11617-1-2

options += "i"; } else if (argv[i].equals("-m")) { options += "m"; } else if (argv[i].equals("-s")) { options += "s"; } else if (argv[i].equals("-u")) { options += "u";
options += "s"; } else if (argv[i].equals("-u")) { options += "u"; } else if (argv[i].equals("-w")) { options += "w"; } else if (argv[i].equals("-X")) { options += "X";

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java
Method name: `void main(String[])` |  | Method name: `void main(String[])`
Number of AST nodes: 4 |  | Number of AST nodes: 4

1

    options += "i";↵

1

    options += "s";↵

2

                    } else if (argv[i].equals("-m")) {↵

2

                    } else if (argv[i].equals("-u")) {↵

3

                        options += "m";↵

3

                        options += "u";↵

4

                    } else if (argv[i].equals("-s")) {↵

4

                    } else if (argv[i].equals("-w")) {↵

5

                        options += "s";↵

5

                        options += "w";↵

6

                    } else if (argv[i].equals("-u")) {↵

6

                    } else if (argv[i].equals("-X")) {↵

7

                        options += "u";

7

                        options += "X";

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 1
Number of refactorable cases | 1
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location | Clones are in the same method
Number of node comparisons | 2

1. {Refactorable}

   Mapping Summary
   Number of mapped statements | 1
   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) | 0.0
   Clone type | Type 2

   Mapped Statements
   ID | Statement |  | ID | Statement
   --- | --- | --- | --- | ---

   16

       options += "i";

   16 | options += "i";
   20 | options += "s";

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   "i" | "s" | LITERAL_VALUE_MISMATCH

   20

       options += "s";

   Precondition Violations (0)
   Row | Violation
   --- | ---