CloneSet168


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1181374
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/objectweb/asm/CodeWriter.java
2111395
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/objectweb/asm/CodeWriter.java
Next
Last
Clone Instance
1
Line Count
18
Source Line
1374
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/objectweb/asm/CodeWriter.java

if (state == 1) {
  // true number of bytes to be added (or removed) from this
  // instruction = (future number of padding bytes - current number
  // of padding byte) - previously over estimated variation =
  // = ((3 - newOffset%4) - (3 - u%4)) - u%4
  // = (-newOffset%4 + u%4) - u%4
  // = -(newOffset & 3)
  newOffset = getNewOffset(allIndexes, allSizes, 0, u);
  insert = -(newOffset&3);
}
else
  if ( !resize[u]) {
    // over estimation of the number of bytes to be added to this
    // instruction = 3 - current number of padding bytes = 3 - (3 -
    // u%4) = u%4 = u & 3
    insert = u&3;
    resize[u] = true;
  }
// skips instruction
u = u + 4 - (u&3);


First
Previous
Clone Instance
2
Line Count
11
Source Line
1395
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/objectweb/asm/CodeWriter.java

if (state == 1) {
  // like TABL_INSN
  newOffset = getNewOffset(allIndexes, allSizes, 0, u);
  insert = -(newOffset&3);
}
else
  if ( !resize[u]) {
    // like TABL_INSN
    insert = u&3;
    resize[u] = true;
  }
// skips instruction
u = u + 4 - (u&3);


Clone AbstractionParameter Count: 0Parameter Bindings

if (state == 1) {
  // like TABL_INSN
  // true number of bytes to be added (or removed) from this
  // instruction = (future number of padding bytes - current number
  // of padding byte) - previously over estimated variation =
  // = ((3 - newOffset%4) - (3 - u%4)) - u%4
  // = (-newOffset%4 + u%4) - u%4
  // = -(newOffset & 3)
  newOffset = getNewOffset(allIndexes, allSizes, 0, u);
  insert = -(newOffset&3);
}
else
  if ( !resize[u]) {
    // like TABL_INSN
    // over estimation of the number of bytes to be added to this
    // instruction = 3 - current number of padding bytes = 3 - (3 -
    // u%4) = u%4 = u & 3
    insert = u&3;
    resize[u] = true;
  }
// skips instruction
u = u + 4 - (u&3);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None