Syntax tree fingerprinting for source code similarity detection
Michel Chilowicz, Étienne Duris, Gilles Roussel · IEEE International Conference on Program Comprehension (ICPC) · 2009
Numerous approaches based on metrics, token sequence pattern-matching, abstract syntax tree (AST) or program dependency graph (PDG) analysis have already been proposed to highlight similarities in source code: in this paper we present a simple and scalable architecture based on AST fingerprinting. Thanks to a study of several hashing strategies reducing false-positive collisions, we propose a framework that efficiently indexes AST representations in a database, that quickly detects exact (w.r.t source code abstraction) clone clusters and that easily retrieves their corresponding ASTs. Our aim is to allow further processing of neighboring exact matches in order to identify the larger approximate matches, dealing with the common modification patterns seen in the intra-project copy-pastes and in the plagiarism cases.
Cited by 87 works. doi:10.1109/icpc.2009.5090050
Authors
References
- Organization and maintenance of large ordered indexes
- Clone detection using abstract syntax trees
- On finding duplication and near-duplication in large software systems
- Winnowing
- DECKARD: Scalable and Accurate Tree-Based Detection of Code Clones
- Comparison and Evaluation of Clone Detection Tools
- Organization and Maintenance of Large Ordered Indexes
- Computer algorithms for plagiarism detection
- Simple Linear Work Suffix Array Construction
- YAP3