CloneSet1339


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11330.964statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111148
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ForeachStatement.java
211198
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ForStatement.java
311145
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/WhileStatement.java
Clone Instance
1
Line Count
11
Source Line
148
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ForeachStatement.java

                FlowInfo mergedInfo = FlowInfo.mergedOptimizedBranches(
                                (loopingContext.initsOnBreak.tagBits&
                                        FlowInfo.UNREACHABLE) != 0 ?
                                        loopingContext.initsOnBreak:
                                        flowInfo.addInitializationsFrom(loopingContext.initsOnBreak), // recover upstream null info
                                 false, 
                                exitBranch, 
                                false, 
                                true
                                     /*for(;;){}while(true); unreachable(); */
                                                                      );
                mergedInitStateIndex = currentScope.methodScope().recordInitializationStates(mergedInfo);
                return mergedInfo;


Clone Instance
2
Line Count
11
Source Line
198
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ForStatement.java

                //end of loop
                FlowInfo mergedInfo = FlowInfo.mergedOptimizedBranches(
                                (loopingContext.initsOnBreak.tagBits&
                                        FlowInfo.UNREACHABLE) != 0 ?
                                        loopingContext.initsOnBreak:
                                        flowInfo.addInitializationsFrom(loopingContext.initsOnBreak), // recover upstream null info
                                 isConditionOptimizedTrue, 
                                exitBranch, 
                                isConditionOptimizedFalse, 
                                !isConditionTrue
                                                 /*for(;;){}while(true); unreachable(); */
                                                                      );
                mergedInitStateIndex = currentScope.methodScope().recordInitializationStates(mergedInfo);
                return mergedInfo;


Clone Instance
3
Line Count
11
Source Line
145
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/WhileStatement.java

                // end of loop
                FlowInfo mergedInfo = FlowInfo.mergedOptimizedBranches(
                                (loopingContext.initsOnBreak.tagBits&
                                        FlowInfo.UNREACHABLE) != 0 ?
                                        loopingContext.initsOnBreak:
                                        flowInfo.addInitializationsFrom(loopingContext.initsOnBreak), // recover upstream null info
                                 isConditionOptimizedTrue, 
                                exitBranch, 
                                isConditionOptimizedFalse, 
                                !isConditionTrue
                                                 /*while(true); unreachable(); */
                                                                      );
                mergedInitStateIndex = currentScope.methodScope().recordInitializationStates(mergedInfo);
                return mergedInfo;


Clone AbstractionParameter Count: 3Parameter Bindings

// end of loop
//end of loop
FlowInfo mergedInfo = FlowInfo.mergedOptimizedBranches((loopingContext.initsOnBreak.tagBits&FlowInfo.UNREACHABLE) != 0 ? loopingContext.initsOnBreak: flowInfo.addInitializationsFrom(loopingContext.initsOnBreak), // recover upstream null info
                                                         [[#variableb40cd300]], exitBranch,  [[#variableb945ca80]],  [[#variable54b22940]]
                                                                                                                   /*while(true); unreachable(); */
                                                                                                                   /*for(;;){}while(true); unreachable(); */
                                                                                                                   );
mergedInitStateIndex = currentScope.methodScope().recordInitializationStates(mergedInfo);
return mergedInfo;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b40cd300]]
isConditionOptimizedTrue 
12[[#b40cd300]]
false 
13[[#b40cd300]]
isConditionOptimizedTrue 
21[[#b945ca80]]
isConditionOptimizedFalse 
22[[#b945ca80]]
false 
23[[#b945ca80]]
isConditionOptimizedFalse 
31[[#54b22940]]
!isConditionTrue 
32[[#54b22940]]
true 
33[[#54b22940]]
!isConditionTrue