Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 4 | 0.959 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 769 | plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java |
2 | 7 | 1404 | 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); |
| ||||
/* 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); |
| |||
/* 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#77c0e1a0]] | conditionAddress |
1 | 2 | [[#77c0e1a0]] | bodyAddress |
2 | 1 | [[#77c0e1c0]] | condition |
2 | 2 | [[#77c0e1c0]] | body |
3 | 1 | [[#77c0e120]] | bodyAddress |
3 | 2 | [[#77c0e120]] | conditionAddress |
4 | 1 | [[#77c0e100]] | body |
4 | 2 | [[#77c0e100]] | condition |