| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 47 | 4 | 6 | 0.979 | statement_sequence_member |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 47 | 667 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java |
| 2 | 47 | 775 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java |
| 3 | 45 | 881 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java |
| 4 | 47 | 987 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java |
| ||||
if (valueRequired) {
if (falseLabel == null) {
if (trueLabel != null) {
// implicit falling through the FALSE case
switch (promotedTypeID) {
case T_int:
codeStream.if_icmpgt(trueLabel);
break;
case T_float:
codeStream.fcmpl();
codeStream.ifgt(trueLabel);
break;
case T_long:
codeStream.lcmp();
codeStream.ifgt(trueLabel);
break;
case T_double:
codeStream.dcmpl();
codeStream.ifgt(trueLabel);
}
// reposition the endPC
codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
return;
}
}
else {
if (trueLabel == null) {
// implicit falling through the TRUE case
switch (promotedTypeID) {
case T_int:
codeStream.if_icmple(falseLabel);
break;
case T_float:
codeStream.fcmpl();
codeStream.ifle(falseLabel);
break;
case T_long:
codeStream.lcmp();
codeStream.ifle(falseLabel);
break;
case T_double:
codeStream.dcmpl();
codeStream.ifle(falseLabel);
}
// reposition the endPC
codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
return;
}
else {
// no implicit fall through TRUE/FALSE --> should never occur
}
}
}
|
| ||||
if (valueRequired) {
if (falseLabel == null) {
if (trueLabel != null) {
// implicit falling through the FALSE case
switch (promotedTypeID) {
case T_int:
codeStream.if_icmpge(trueLabel);
break;
case T_float:
codeStream.fcmpl();
codeStream.ifge(trueLabel);
break;
case T_long:
codeStream.lcmp();
codeStream.ifge(trueLabel);
break;
case T_double:
codeStream.dcmpl();
codeStream.ifge(trueLabel);
}
// reposition the endPC
codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
return;
}
}
else {
if (trueLabel == null) {
// implicit falling through the TRUE case
switch (promotedTypeID) {
case T_int:
codeStream.if_icmplt(falseLabel);
break;
case T_float:
codeStream.fcmpl();
codeStream.iflt(falseLabel);
break;
case T_long:
codeStream.lcmp();
codeStream.iflt(falseLabel);
break;
case T_double:
codeStream.dcmpl();
codeStream.iflt(falseLabel);
}
// reposition the endPC
codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
return;
}
else {
// no implicit fall through TRUE/FALSE --> should never occur
}
}
}
|
| ||||
if (valueRequired) {
if (falseLabel == null) {
if (trueLabel != null) {
// implicit falling through the FALSE case
switch (promotedTypeID) {
case T_int:
codeStream.if_icmplt(trueLabel);
break;
case T_float:
codeStream.fcmpg();
codeStream.iflt(trueLabel);
break;
case T_long:
codeStream.lcmp();
codeStream.iflt(trueLabel);
break;
case T_double:
codeStream.dcmpg();
codeStream.iflt(trueLabel);
}
codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
return;
}
}
else {
if (trueLabel == null) {
// implicit falling through the TRUE case
switch (promotedTypeID) {
case T_int:
codeStream.if_icmpge(falseLabel);
break;
case T_float:
codeStream.fcmpg();
codeStream.ifge(falseLabel);
break;
case T_long:
codeStream.lcmp();
codeStream.ifge(falseLabel);
break;
case T_double:
codeStream.dcmpg();
codeStream.ifge(falseLabel);
}
codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
return;
}
else {
// no implicit fall through TRUE/FALSE --> should never occur
}
}
}
|
| ||||
if (valueRequired) {
if (falseLabel == null) {
if (trueLabel != null) {
// implicit falling through the FALSE case
switch (promotedTypeID) {
case T_int:
codeStream.if_icmple(trueLabel);
break;
case T_float:
codeStream.fcmpg();
codeStream.ifle(trueLabel);
break;
case T_long:
codeStream.lcmp();
codeStream.ifle(trueLabel);
break;
case T_double:
codeStream.dcmpg();
codeStream.ifle(trueLabel);
}
// reposition the endPC
codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
return;
}
}
else {
if (trueLabel == null) {
// implicit falling through the TRUE case
switch (promotedTypeID) {
case T_int:
codeStream.if_icmpgt(falseLabel);
break;
case T_float:
codeStream.fcmpg();
codeStream.ifgt(falseLabel);
break;
case T_long:
codeStream.lcmp();
codeStream.ifgt(falseLabel);
break;
case T_double:
codeStream.dcmpg();
codeStream.ifgt(falseLabel);
}
// reposition the endPC
codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
return;
}
else {
// no implicit fall through TRUE/FALSE --> should never occur
}
}
}
|
| |||
if (valueRequired) {
if (falseLabel == null) {
if (trueLabel != null) {
// implicit falling through the FALSE case
switch (promotedTypeID) {
case T_int:
codeStream. [[#variableb8256b80]](trueLabel);
break;
case T_float:
codeStream. [[#variableb8256b00]]();
codeStream. [[#variableb8256aa0]](trueLabel);
break;
case T_long:
codeStream.lcmp();
codeStream. [[#variableb8256aa0]](trueLabel);
break;
case T_double:
codeStream. [[#variablebb974c60]]();
codeStream. [[#variableb8256aa0]](trueLabel);
}
// reposition the endPC
codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
return;
}
}
else {
if (trueLabel == null) {
// implicit falling through the TRUE case
switch (promotedTypeID) {
case T_int:
codeStream. [[#variablebb974c00]](falseLabel);
break;
case T_float:
codeStream. [[#variableb8256b00]]();
codeStream. [[#variablebb974be0]](falseLabel);
break;
case T_long:
codeStream.lcmp();
codeStream. [[#variablebb974be0]](falseLabel);
break;
case T_double:
codeStream. [[#variablebb974c60]]();
codeStream. [[#variablebb974be0]](falseLabel);
}
// reposition the endPC
codeStream.updateLastRecordedEndPC(currentScope, codeStream.position);
return;
}
else {
// no implicit fall through TRUE/FALSE --> should never occur
}
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b8256b80]] | if_icmpgt |
| 1 | 2 | [[#b8256b80]] | if_icmpge |
| 1 | 3 | [[#b8256b80]] | if_icmplt |
| 1 | 4 | [[#b8256b80]] | if_icmple |
| 2 | 1 | [[#b8256b00]] | fcmpl |
| 2 | 2 | [[#b8256b00]] | fcmpl |
| 2 | 3 | [[#b8256b00]] | fcmpg |
| 2 | 4 | [[#b8256b00]] | fcmpg |
| 3 | 1 | [[#b8256aa0]] | ifgt |
| 3 | 2 | [[#b8256aa0]] | ifge |
| 3 | 3 | [[#b8256aa0]] | iflt |
| 3 | 4 | [[#b8256aa0]] | ifle |
| 4 | 1 | [[#bb974c60]] | dcmpl |
| 4 | 2 | [[#bb974c60]] | dcmpl |
| 4 | 3 | [[#bb974c60]] | dcmpg |
| 4 | 4 | [[#bb974c60]] | dcmpg |
| 5 | 1 | [[#bb974c00]] | if_icmple |
| 5 | 2 | [[#bb974c00]] | if_icmplt |
| 5 | 3 | [[#bb974c00]] | if_icmpge |
| 5 | 4 | [[#bb974c00]] | if_icmpgt |
| 6 | 1 | [[#bb974be0]] | ifle |
| 6 | 2 | [[#bb974be0]] | iflt |
| 6 | 3 | [[#bb974be0]] | ifge |
| 6 | 4 | [[#bb974be0]] | ifgt |