Clone Detection Using Abstract Syntax Suffix Trees
Rainer Koschke, Raimar Falke, Pierre Frenzel · Proceedings - Working Conference on Reverse Engineering · 2006
Reusing software through copying and pasting is a continuous plague in software development despite the fact that it creates serious maintenance problems. Various techniques have been proposed to find duplicated redundant code (also known as software clones). A recent study has compared these techniques and shown that token-based clone detection based on suffix trees is extremely fast but yields clone candidates that are often no syntactic units. Current techniques based on abstract syntax trees-on the other hand-find syntactic clones but are considerably less efficient. This paper describes how we can make use of suffix trees to find clones in abstract syntax trees. This new approach is able to find syntactic clones in linear time and space. The paper reports the results of several large case studies in which we empirically compare the new technique to other techniques using the Bellon benchmark for clone detectors
Cited by 314 works. doi:10.1109/wcre.2006.18
Authors
References
- A Space-Economical Suffix Tree Construction Algorithm
- Efficient randomized pattern-matching algorithms
- On-line construction of suffix trees
- 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
- Identifying redundancy in source code using fingerprints
- Pattern Matching for Clone and Concept Detection