File path: /jruby-1.4.0/test/org/jruby/test/bench/BenchFixnumFibRecursive.java | File path: /jruby-1.4.0/test/org/jruby/test/bench/BenchLongFibRecursive.java | |||
Method name: void main(String[])
|
Method name: void main(String[])
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (args.length >= 1) {↵ | 1 | if (args.length >= 1) {↵ | |
2 | times = Integer.parseInt(args[0]);↵ | 2 | times = Long.parseLong(args[0]);↵ | |
3 | if (args.length >= 2) {↵ | 3 | if (args.length >= 2) {↵ | |
4 | n = Integer.parseInt(args[1]);↵ | 4 | n = Long.parseLong(args[1]);↵ | |
5 | }↵ | 5 | }↵ | |
6 | } | 6 |
| |
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 8 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
3 | if (args.length >= 1) | 3 | if (args.length >= 1) | ||||
|
| 4 | times = Long.parseLong(args[0]); | ||||
4 | times = Integer.parseInt(args[0]); |
| | ||||
5 | if (args.length >= 2) | 5 | if (args.length >= 2) | ||||
|
| 6 | n = Long.parseLong(args[1]); | ||||
6 | n = Integer.parseInt(args[1]); |
| |
Row | Violation |
---|---|
1 | Unmatched statement times=Long.parseLong(args[0]); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
2 | Unmatched statement times=Integer.parseInt(args[0]); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
3 | Unmatched statement n=Long.parseLong(args[1]); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
4 | Unmatched statement n=Integer.parseInt(args[1]); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |