@inproceedings{7bc0e60374a243858d64dda7265d077e,
title = "Distilling useful clones by contextual differencing",
abstract = "Clone detectors find similar code fragments and report large numbers of them for large systems. Textually similar clones may perform different computations, depending on the program context in which clones occur. Understanding these contextual differences is essential to distill useful clones for a specific maintenance task, such as refactoring. Manual analysis of contextual differences is time consuming and error-prone. To mitigate this problem, we present an automated approach to helping developers find and analyze contextual differences of clones. Our approach represents context of clones as program dependence graphs, and applies a graph differencing technique to identify required contextual differences of clones. We implemented a tool called CloneDifferentiator that identifies contextual differences of clones and allows developers to formulate queries to distill candidate clones that are useful for a given refactoring task. Two empirical studies show that CloneDifferentiator can reduce the efforts of post-detection analysis of clones for refactorings.",
keywords = "Clone analysis, graph matching, program dependence graph",
author = "Zhenchang Xing and Yinxing Xue and Stan Jarzabek",
year = "2013",
doi = "10.1109/WCRE.2013.6671285",
language = "English",
isbn = "9781479929313",
series = "Proceedings - Working Conference on Reverse Engineering, WCRE",
pages = "102--111",
booktitle = "Proceedings - 20th Working Conference on Reverse Engineering, WCRE 2013",
note = "20th Working Conference on Reverse Engineering, WCRE 2013 ; Conference date: 14-10-2013 Through 17-10-2013",
}