File path: /apache-ant-1.7.0/src/org/apache/tools/bzip2/CBZip2OutputStream.java | File path: /apache-ant-1.7.0/src/org/apache/tools/bzip2/CBZip2OutputStream.java | |||
Method name: void hbMakeCodeLengths(char[], int[], int, int)
|
Method name: void hbMakeCodeLengths(byte[], int[], Data, int, int)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | parent[i] = -1;↵ | 1 | parent[i] = -1;↵ | |
2 | nHeap++;↵ | 2 | nHeap++;↵ | |
3 | heap[nHeap] = i;↵ | 3 | heap[nHeap] = i;↵ | |
4 | int zz = nHeap;↵ | 4 | int zz = nHeap;↵ | |
5 | int tmp = heap[zz];↵ | 5 | int tmp = heap[zz];↵ | |
6 | while (weight[tmp] < weight[heap[zz >> 1]]) {↵ | 6 | while (weight[tmp] < weight[heap[zz >> 1]]) {↵ | |
7 | heap[zz] = heap[zz >> 1];↵ | 7 | heap[zz] = heap[zz >> 1];↵ | |
8 | zz >>= 1;↵ | 8 | zz >>= 1;↵ | |
9 | }↵ | 9 | }↵ | |
10 | heap[zz] = tmp; | 10 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 55 |
Number of mapped statements | 9 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 2.3 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
14 | parent[i] = -1; | 14 | parent[i] = -1; | |
15 | nHeap++; | 15 | nHeap++; | |
16 | heap[nHeap] = i; | 16 | heap[nHeap] = i; | |
17 | int zz = nHeap; | 17 | int zz = nHeap; | |
18 | int tmp = heap[zz]; | 18 | int tmp = heap[zz]; | |
19 | while (weight[tmp] < weight[heap[zz >> 1]]) | 19 | while (weight[tmp] < weight[heap[zz >> 1]]) | |
20 | heap[zz] = heap[zz >> 1]; | 20 | heap[zz] = heap[zz >> 1]; | |
21 | zz >>= 1; | 21 | zz >>= 1; | |
22 | heap[zz] = tmp; | 22 | heap[zz] = tmp; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables nHeap, heap, parent , while Clone fragment #2 returns variables nHeap, heap, parent |