CloneSet642


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24250.979switch_group
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
124241
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java
224265
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java
Clone Instance
1
Line Count
24
Source Line
241
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java

                                case T_int:
                                        // 0 & x
                                        if ((this.left.constant != Constant.NotAConstant) &&
                                                   (this.left.constant.typeID() == TypeIds.T_int) &&
                                                   (this.left.constant.intValue() == 0)) {
                                                this.right.generateCode(currentScope, codeStream, false);
                                                if (valueRequired)
                                                        codeStream.iconst_0();
                                        }
                                        else   {
                                                // x & 0
                                                if ((this.right.constant != Constant.NotAConstant) &&
                                                           (this.right.constant.typeID() == TypeIds.T_int) &&
                                                           (this.right.constant.intValue() == 0)) {
                                                        this.left.generateCode(currentScope, codeStream, false);
                                                        if (valueRequired)
                                                                codeStream.iconst_0();
                                                }
                                                else   {
                                                        this.left.generateCode(currentScope, codeStream, valueRequired);
                                                        this.right.generateCode(currentScope, codeStream, valueRequired);
                                                        if (valueRequired)
                                                                codeStream.iand();
                                                }
                                        }
                                        break;


Clone Instance
2
Line Count
24
Source Line
265
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java

                                case T_long:
                                        // 0 & x
                                        if ((this.left.constant != Constant.NotAConstant) &&
                                                   (this.left.constant.typeID() == TypeIds.T_long) &&
                                                   (this.left.constant.longValue() == 0L)) {
                                                this.right.generateCode(currentScope, codeStream, false);
                                                if (valueRequired)
                                                        codeStream.lconst_0();
                                        }
                                        else   {
                                                // x & 0
                                                if ((this.right.constant != Constant.NotAConstant) &&
                                                           (this.right.constant.typeID() == TypeIds.T_long) &&
                                                           (this.right.constant.longValue() == 0L)) {
                                                        this.left.generateCode(currentScope, codeStream, false);
                                                        if (valueRequired)
                                                                codeStream.lconst_0();
                                                }
                                                else   {
                                                        this.left.generateCode(currentScope, codeStream, valueRequired);
                                                        this.right.generateCode(currentScope, codeStream, valueRequired);
                                                        if (valueRequired)
                                                                codeStream.land();
                                                }
                                        }
                                        break;


Clone AbstractionParameter Count: 5Parameter Bindings

case [[#variableb1a1f1a0]]:
  // 0 & x
  if ((this.left.constant != Constant.NotAConstant) && (this.left.constant.typeID() == TypeIds. [[#variableb1a1f1a0]]) && (this.left.constant. [[#variableb1a1f120]]() == [[#variableb1a1f040]])) {
    this.right.generateCode(currentScope, codeStream, false);
    if (valueRequired)
      codeStream. [[#variableb1f091c0]]();
  }
  else {
    // x & 0
    if ((this.right.constant != Constant.NotAConstant) && (this.right.constant.typeID() == TypeIds. [[#variableb1a1f1a0]]) && (this.right.constant. [[#variableb1a1f120]]() == [[#variableb1a1f040]])) {
      this.left.generateCode(currentScope, codeStream, false);
      if (valueRequired)
        codeStream. [[#variableb1f091c0]]();
    }
    else {
      this.left.generateCode(currentScope, codeStream, valueRequired);
      this.right.generateCode(currentScope, codeStream, valueRequired);
      if (valueRequired)
        codeStream. [[#variableb1a1f0e0]]();
    }
  }
  break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b1a1f1a0]]
T_int 
12[[#b1a1f1a0]]
T_long 
21[[#b1a1f120]]
intValue 
22[[#b1a1f120]]
longValue 
31[[#b1a1f040]]
0 
32[[#b1a1f040]]
0L 
41[[#b1f091c0]]
iconst_0 
42[[#b1f091c0]]
lconst_0 
51[[#b1a1f0e0]]
iand 
52[[#b1a1f0e0]]
land