CloneSet105


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
51440.995statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
151616
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java
251724
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java
349832
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java
451936
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java
Clone Instance
1
Line Count
51
Source Line
616
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java

        int promotedTypeID = (this.left.implicitConversion&  TypeIds.IMPLICIT_CONVERSION_MASK) >> 4;
        // both sides got promoted in the same way
        if (promotedTypeID == TypeIds.T_int) {
                // 0 > x
                if ((this.left.constant != Constant.NotAConstant) && (this.left.constant.intValue() == 0)) {
                        this.right.generateCode(currentScope, codeStream, valueRequired);
                        if (valueRequired) {
                                if (falseLabel == null) {
                                        if (trueLabel != null) {
                                                // implicitly falling through the FALSE case
                                                codeStream.iflt(trueLabel);
                                        }
                                }
                                else   {
                                        if (trueLabel == null) {
                                                // implicitly falling through the TRUE case
                                                codeStream.ifge(falseLabel);
                                        }
                                        else   {
                                                // no implicit fall through TRUE/FALSE --> should never occur
                                        }
                                }
                        }
                        // reposition the endPC
                        codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
                        return;
                }
                // x > 0
                if ((this.right.constant != Constant.NotAConstant) && (this.right.constant.intValue() == 0)) {
                        this.left.generateCode(currentScope, codeStream, valueRequired);
                        if (valueRequired) {
                                if (falseLabel == null) {
                                        if (trueLabel != null) {
                                                // implicitly falling through the FALSE case
                                                codeStream.ifgt(trueLabel);
                                        }
                                }
                                else   {
                                        if (trueLabel == null) {
                                                // implicitly falling through the TRUE case
                                                codeStream.ifle(falseLabel);
                                        }
                                        else   {
                                                // no implicit fall through TRUE/FALSE --> should never occur
                                        }
                                }
                        }
                        // reposition the endPC
                        codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
                        return;
                }
        }
        // default comparison
        this.left.generateCode(currentScope, codeStream, valueRequired);
        this.right.generateCode(currentScope, codeStream, valueRequired);


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

        int promotedTypeID = (this.left.implicitConversion&  TypeIds.IMPLICIT_CONVERSION_MASK) >> 4;
        // both sides got promoted in the same way
        if (promotedTypeID == TypeIds.T_int) {
                // 0 >= x
                if ((this.left.constant != Constant.NotAConstant) && (this.left.constant.intValue() == 0)) {
                        this.right.generateCode(currentScope, codeStream, valueRequired);
                        if (valueRequired) {
                                if (falseLabel == null) {
                                        if (trueLabel != null) {
                                                // implicitly falling through the FALSE case
                                                codeStream.ifle(trueLabel);
                                        }
                                }
                                else   {
                                        if (trueLabel == null) {
                                                // implicitly falling through the TRUE case
                                                codeStream.ifgt(falseLabel);
                                        }
                                        else   {
                                                // no implicit fall through TRUE/FALSE --> should never occur
                                        }
                                }
                        }
                        // reposition the endPC
                        codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
                        return;
                }
                // x >= 0
                if ((this.right.constant != Constant.NotAConstant) && (this.right.constant.intValue() == 0)) {
                        this.left.generateCode(currentScope, codeStream, valueRequired);
                        if (valueRequired) {
                                if (falseLabel == null) {
                                        if (trueLabel != null) {
                                                // implicitly falling through the FALSE case
                                                codeStream.ifge(trueLabel);
                                        }
                                }
                                else   {
                                        if (trueLabel == null) {
                                                // implicitly falling through the TRUE case
                                                codeStream.iflt(falseLabel);
                                        }
                                        else   {
                                                // no implicit fall through TRUE/FALSE --> should never occur
                                        }
                                }
                        }
                        // reposition the endPC
                        codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
                        return;
                }
        }
        // default comparison
        this.left.generateCode(currentScope, codeStream, valueRequired);
        this.right.generateCode(currentScope, codeStream, valueRequired);


Clone Instance
3
Line Count
49
Source Line
832
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java

        int promotedTypeID = (this.left.implicitConversion&  TypeIds.IMPLICIT_CONVERSION_MASK) >> 4;
        // both sides got promoted in the same way
        if (promotedTypeID == TypeIds.T_int) {
                // 0 < x
                if ((this.left.constant != Constant.NotAConstant) && (this.left.constant.intValue() == 0)) {
                        this.right.generateCode(currentScope, codeStream, valueRequired);
                        if (valueRequired) {
                                if (falseLabel == null) {
                                        if (trueLabel != null) {
                                                // implicitly falling through the FALSE case
                                                codeStream.ifgt(trueLabel);
                                        }
                                }
                                else   {
                                        if (trueLabel == null) {
                                                // implicitly falling through the TRUE case
                                                codeStream.ifle(falseLabel);
                                        }
                                        else   {
                                                // no implicit fall through TRUE/FALSE --> should never occur
                                        }
                                }
                        }
                        codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
                        return;
                }
                // x < 0
                if ((this.right.constant != Constant.NotAConstant) && (this.right.constant.intValue() == 0)) {
                        this.left.generateCode(currentScope, codeStream, valueRequired);
                        if (valueRequired) {
                                if (falseLabel == null) {
                                        if (trueLabel != null) {
                                                // implicitly falling through the FALSE case
                                                codeStream.iflt(trueLabel);
                                        }
                                }
                                else   {
                                        if (trueLabel == null) {
                                                // implicitly falling through the TRUE case
                                                codeStream.ifge(falseLabel);
                                        }
                                        else   {
                                                // no implicit fall through TRUE/FALSE --> should never occur
                                        }
                                }
                        }
                        codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
                        return;
                }
        }
        // default comparison
        this.left.generateCode(currentScope, codeStream, valueRequired);
        this.right.generateCode(currentScope, codeStream, valueRequired);


Clone Instance
4
Line Count
51
Source Line
936
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java

        int promotedTypeID = (this.left.implicitConversion&  TypeIds.IMPLICIT_CONVERSION_MASK) >> 4;
        // both sides got promoted in the same way
        if (promotedTypeID == TypeIds.T_int) {
                // 0 <= x
                if ((this.left.constant != Constant.NotAConstant) && (this.left.constant.intValue() == 0)) {
                        this.right.generateCode(currentScope, codeStream, valueRequired);
                        if (valueRequired) {
                                if (falseLabel == null) {
                                        if (trueLabel != null) {
                                                // implicitly falling through the FALSE case
                                                codeStream.ifge(trueLabel);
                                        }
                                }
                                else   {
                                        if (trueLabel == null) {
                                                // implicitly falling through the TRUE case
                                                codeStream.iflt(falseLabel);
                                        }
                                        else   {
                                                // no implicit fall through TRUE/FALSE --> should never occur
                                        }
                                }
                        }
                        // reposition the endPC
                        codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
                        return;
                }
                // x <= 0
                if ((this.right.constant != Constant.NotAConstant) && (this.right.constant.intValue() == 0)) {
                        this.left.generateCode(currentScope, codeStream, valueRequired);
                        if (valueRequired) {
                                if (falseLabel == null) {
                                        if (trueLabel != null) {
                                                // implicitly falling through the FALSE case
                                                codeStream.ifle(trueLabel);
                                        }
                                }
                                else   {
                                        if (trueLabel == null) {
                                                // implicitly falling through the TRUE case
                                                codeStream.ifgt(falseLabel);
                                        }
                                        else   {
                                                // no implicit fall through TRUE/FALSE --> should never occur
                                        }
                                }
                        }
                        // reposition the endPC
                        codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
                        return;
                }
        }
        // default comparison
        this.left.generateCode(currentScope, codeStream, valueRequired);
        this.right.generateCode(currentScope, codeStream, valueRequired);


Clone AbstractionParameter Count: 4Parameter Bindings

int promotedTypeID = (this.left.implicitConversion&TypeIds.IMPLICIT_CONVERSION_MASK) >> 4;
// both sides got promoted in the same way
if (promotedTypeID == TypeIds.T_int) {
  // 0 > x
  // 0 < x
  // 0 <= x
  // 0 >= x
  if ((this.left.constant != Constant.NotAConstant) && (this.left.constant.intValue() == 0)) {
    this.right.generateCode(currentScope, codeStream, valueRequired);
    if (valueRequired) {
      if (falseLabel == null) {
        if (trueLabel != null) {
          // implicitly falling through the FALSE case
          codeStream. [[#variableb43c9b60]](trueLabel);
        }
      }
      else {
        if (trueLabel == null) {
          // implicitly falling through the TRUE case
          codeStream. [[#variableb43c9a80]](falseLabel);
        }
        else {
        // no implicit fall through TRUE/FALSE --> should never occur
        }
      }
    }
    // reposition the endPC
    codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
    return;
  }
  // x > 0
  // x < 0
  // x <= 0
  // x >= 0
  if ((this.right.constant != Constant.NotAConstant) && (this.right.constant.intValue() == 0)) {
    this.left.generateCode(currentScope, codeStream, valueRequired);
    if (valueRequired) {
      if (falseLabel == null) {
        if (trueLabel != null) {
          // implicitly falling through the FALSE case
          codeStream. [[#variableb2a73980]](trueLabel);
        }
      }
      else {
        if (trueLabel == null) {
          // implicitly falling through the TRUE case
          codeStream. [[#variableb43c9b00]](falseLabel);
        }
        else {
        // no implicit fall through TRUE/FALSE --> should never occur
        }
      }
    }
    // reposition the endPC
    codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
    return;
  }
}
// default comparison
this.left.generateCode(currentScope, codeStream, valueRequired);
this.right.generateCode(currentScope, codeStream, valueRequired);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b43c9b60]]
iflt 
12[[#b43c9b60]]
ifgt 
13[[#b43c9b60]]
ifge 
14[[#b43c9b60]]
ifle 
21[[#b43c9a80]]
ifge 
22[[#b43c9a80]]
ifle 
23[[#b43c9a80]]
iflt 
24[[#b43c9a80]]
ifgt 
31[[#b2a73980]]
ifgt 
32[[#b2a73980]]
iflt 
33[[#b2a73980]]
ifle 
34[[#b2a73980]]
ifge 
41[[#b43c9b00]]
ifle 
42[[#b43c9b00]]
ifge 
43[[#b43c9b00]]
ifgt 
44[[#b43c9b00]]
iflt