CloneSet430


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17450.955statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117788
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java
217883
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java
317997
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java
4171426
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java
Clone Instance
1
Line Count
17
Source Line
788
Source File
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java

                // for each pending break or continue instruction which are related to
                // this loop, set the offset of the corresponding jump.
                for (Iterator iter = fCompleteInstructions.iterator(); iter.hasNext();) {
                        CompleteInstruction instruction = (CompleteInstruction) iter.next();
                        Jump jumpInstruction = instruction.fInstruction;
                        int instructionAddress = fInstructions.indexOf(jumpInstruction);
                        if (instructionAddress > bodyStartAddress && (instruction.fLabel == null || instruction.fLabel.equals(label))) {
                                iter.remove();
                                if (instruction.fIsBreak) {
                                        // jump to the instruction after the last jump
                                        jumpInstruction.setOffset((conditionAddress - instructionAddress) + 1);
                                }
                                else   {
                                        // jump to the first instruction of the condition
                                        jumpInstruction.setOffset(bodyAddress - instructionAddress);
                                }
                        }
                }
                storeInstruction();


Clone Instance
2
Line Count
17
Source Line
883
Source File
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java

                for (Iterator iter = fCompleteInstructions.iterator(); iter.hasNext();) {
                        CompleteInstruction instruction = (CompleteInstruction) iter.next();
                        Jump jumpInstruction = instruction.fInstruction;
                        int instructionAddress = fInstructions.indexOf(jumpInstruction);
                        if (instructionAddress > conditionAddress && (instruction.fLabel == null || instruction.fLabel.equals(label))) {
                                iter.remove();
                                if (instruction.fIsBreak) {
                                        // jump to the instruction after the last jump
                                        jumpInstruction.setOffset((bodyAddress - instructionAddress) + 1);
                                }
                                else   {
                                        // jump to the first instruction of the condition
                                        jumpInstruction.setOffset(initAddress - instructionAddress);
                                }
                        }
                }
                storeInstruction();


Clone Instance
3
Line Count
17
Source Line
997
Source File
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java

                // for each pending break or continue instruction which are related to
                // this loop, set the offset of the corresponding jump.
                for (Iterator iter = fCompleteInstructions.iterator(); iter.hasNext();) {
                        CompleteInstruction instruction = (CompleteInstruction) iter.next();
                        Jump jumpInstruction = instruction.fInstruction;
                        int instructionAddress = fInstructions.indexOf(jumpInstruction);
                        if (instructionAddress > bodyStartAddress && (instruction.fLabel == null || instruction.fLabel.equals(label))) {
                                iter.remove();
                                if (instruction.fIsBreak) {
                                        // jump to the instruction after the last jump
                                        jumpInstruction.setOffset((updatersAddress - instructionAddress) + 1);
                                }
                                else   {
                                        // jump to the first instruction of the condition
                                        jumpInstruction.setOffset(bodyAddress - instructionAddress);
                                }
                        }
                }
                storeInstruction();


Clone Instance
4
Line Count
17
Source Line
1426
Source File
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java

                // for each pending break or continue instruction which are related to
                // this loop, set the offset of the corresponding jump.
                for (Iterator iter = fCompleteInstructions.iterator(); iter.hasNext();) {
                        CompleteInstruction instruction = (CompleteInstruction) iter.next();
                        Jump jumpInstruction = instruction.fInstruction;
                        int instructionAddress = fInstructions.indexOf(jumpInstruction);
                        if (instructionAddress > conditionAddress && (instruction.fLabel == null || instruction.fLabel.equals(label))) {
                                iter.remove();
                                if (instruction.fIsBreak) {
                                        // jump to the instruction after the last jump
                                        jumpInstruction.setOffset((bodyAddress - instructionAddress) + 2);
                                }
                                else   {
                                        // jump to the first instruction of the condition
                                        jumpInstruction.setOffset((conditionAddress - condition.getSize()) - instructionAddress);
                                }
                        }
                }
                fCounter += 2;


Clone AbstractionParameter Count: 5Parameter Bindings

// for each pending break or continue instruction which are related to
// this loop, set the offset of the corresponding jump.
for (Iterator iter = fCompleteInstructions.iterator(); iter.hasNext();) {
  CompleteInstruction instruction = (CompleteInstruction) iter.next();
  Jump jumpInstruction = instruction.fInstruction;
  int instructionAddress = fInstructions.indexOf(jumpInstruction);
  if (instructionAddress >  [[#variable92bcff80]]&& (instruction.fLabel == null || instruction.fLabel.equals(label))) {
    iter.remove();
    if (instruction.fIsBreak) {
      // jump to the instruction after the last jump
      jumpInstruction.setOffset(( [[#variable587ac580]] - instructionAddress) +  [[#variable4d34efe0]]);
    }
    else {
      // jump to the first instruction of the condition
      jumpInstruction.setOffset( [[#variable4d34efa0]] - instructionAddress);
    }
  }
}
 [[#variable4d34f180]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#92bcff80]]
bodyStartAddress 
12[[#92bcff80]]
conditionAddress 
13[[#92bcff80]]
bodyStartAddress 
14[[#92bcff80]]
conditionAddress 
21[[#587ac580]]
conditionAddress 
22[[#587ac580]]
bodyAddress 
23[[#587ac580]]
updatersAddress 
24[[#587ac580]]
bodyAddress 
31[[#4d34efe0]]
1 
32[[#4d34efe0]]
1 
33[[#4d34efe0]]
1 
34[[#4d34efe0]]
2 
41[[#4d34efa0]]
bodyAddress 
42[[#4d34efa0]]
initAddress 
43[[#4d34efa0]]
bodyAddress 
44[[#4d34efa0]]
(conditionAddress - condition.getSize()) 
51[[#4d34f180]]
storeInstruction() 
52[[#4d34f180]]
storeInstruction() 
53[[#4d34f180]]
storeInstruction() 
54[[#4d34f180]]
fCounter += 2