articleNov 27, 2002Closed access

Clone detection using abstract syntax trees

Semantic Designs (United States) · Pontifical Catholic University of Rio de Janeiro · +1 more institution

Indexed incrossref

Abstract

Existing research suggests that a considerable fraction (5-10%) of the source code of large scale computer programs is duplicate code ("clones"). Detection and removal of such clones promises decreased software maintenance costs of possibly the same magnitude. Previous work was limited to detection of either near misses differing only in single lexems, or near misses only between complete functions. The paper presents simple and practical methods for detecting exact and near miss clones over arbitrary program fragments in program source code by using abstract syntax trees. Previous work also did not suggest practical means for removing detected clones. Since our methods operate in terms of the program…

Citation impact

1,276
total citations
FWCI
91.79
Percentile
100%
References
13
Citations per year

Authors

5

Topics & keywords

Keywords
  • Computer science
  • Abstract syntax tree
  • Preprocessor
  • Source code
  • Programming language
  • Macro
  • clone (Java method)
  • Operand
No related works found for this paper.