CloneSet3375


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7240.959statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17769
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java
271404
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java
Clone Instance
1
Line Count
7
Source Line
769
Source File
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java

                /* The structure of generated instructions is :
                 *
                 * --
                 * | body
                 * --
                 * --
                 * |condition
                 * --
                 * - jump to the first instruction of the body if the condition is true.
                 *
                 */
                String label = getLabel(node);

                // get adress of each part
                int conditionAddress = fInstructions.getEnd();
                Instruction condition = fInstructions.getInstruction(conditionAddress);
                int bodyAddress = conditionAddress - condition.getSize();
                Instruction body = fInstructions.getInstruction(bodyAddress);


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

                /* The structure of generated instructions is :
                 *
                 * --
                 * |condition
                 * --
                 * - jump to the instruction after the last jump if the condition is false.
                 * --
                 * | body
                 * --
                 * - jump to the first instruction of the condition.
                 *
                 */
                String label = getLabel(node);

                // get adress of each part
                int bodyAddress = fInstructions.getEnd();
                Instruction body = fInstructions.getInstruction(bodyAddress);
                int conditionAddress = bodyAddress - body.getSize();
                Instruction condition = fInstructions.getInstruction(conditionAddress);


Clone AbstractionParameter Count: 4Parameter Bindings

/* The structure of generated instructions is :
                 *
                 * --
                 * | body
                 * --
                 * --
                 * |condition
                 * --
                 * - jump to the first instruction of the body if the condition is true.
                 *
                 */
/* The structure of generated instructions is :
                 *
                 * --
                 * |condition
                 * --
                 * - jump to the instruction after the last jump if the condition is false.
                 * --
                 * | body
                 * --
                 * - jump to the first instruction of the condition.
                 *
                 */
String label = getLabel(node);
// get adress of each part
int  [[#variable77c0e1a0]]= fInstructions.getEnd();
Instruction  [[#variable77c0e1c0]]= fInstructions.getInstruction( [[#variable77c0e1a0]]);
int  [[#variable77c0e120]]= [[#variable77c0e1a0]] -  [[#variable77c0e1c0]].getSize();
Instruction  [[#variable77c0e100]]= fInstructions.getInstruction( [[#variable77c0e120]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#77c0e1a0]]
conditionAddress 
12[[#77c0e1a0]]
bodyAddress 
21[[#77c0e1c0]]
condition 
22[[#77c0e1c0]]
body 
31[[#77c0e120]]
bodyAddress 
32[[#77c0e120]]
conditionAddress 
41[[#77c0e100]]
body 
42[[#77c0e100]]
condition