A Mutation/Injection-Based Automatic Framework for Evaluating Code Clone Detection Tools
Chanchal Kumar Roy, James R. Cordy · International Conference on Software Testing, Verification and Validation Workshops · 2009
In recent years many methods and tools for software clone detection have been proposed. While some work has been done on assessing and comparing performance of these tools, very little empirical evaluation has been done. In particular, accuracy measures such as precision and recall have only been roughly estimated, due both to problems in creating a validated clone benchmark against which tools can be compared, and to the manual effort required to hand check large numbers of candidate clones. In this paper we propose an automated method for empirically evaluating clone detection tools that leverages mutation-based techniques to overcome these limitations by automatically synthesizing large numbers of known clones based on an editing theory of clone creation. Our framework is effective in measuring recall and precision of clone detection tools for various types of fine-grained clones in real systems without manual intervention.
Cited by 193 works. doi:10.1109/icstw.2009.18
Authors
References
- CCFinder: a multilinguistic token-based code clone detection system for large scale source code
- Clone detection using abstract syntax trees
- On finding duplication and near-duplication in large software systems
- Experiment on the automatic detection of function clones in a software system using metrics
- A language independent approach for detecting duplicated code
- DECKARD: Scalable and Accurate Tree-Based Detection of Code Clones
- Pattern Matching for Clone and Concept Detection
- Substring matching for clone detection and change tracking
- Using Slicing to Identify Duplication in Source Code
- Identifying similar code with program dependence graphs