Semantically enhanced code clone refinement algorithm based on analysis of multiple detection reports

Ricardo Sotolongo*, Fangyan Dong, Kaoru Hirota

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

Abstract

An algorithm based on semantic analysis of multiple detection tools' reports using WordNet is proposed oriented on the refinement of code clones. It parses different detection tools' reports looking for new clone specifications, and refines the location of existing ones using semantic information contained in source code. It is applied to a real and complex software system and is compared to three other well-known detection algorithms, discovering 4888 clone pairs more than the average detected by other tools; also making the code clones 3 lines longer (for a subset of the same system the results are proportional to the size reduction). The objective is to provide higher quantity of code clones, and more appropriated localization to be used in refactoring processes.

Original languageEnglish
Pages (from-to)322-328
Number of pages7
JournalJournal of Advanced Computational Intelligence and Intelligent Informatics
Volume15
Issue number3
DOIs
Publication statusPublished - May 2011
Externally publishedYes

Keywords

  • Code clones
  • Fefinement
  • Semantic analysis
  • WordNet

Fingerprint

Dive into the research topics of 'Semantically enhanced code clone refinement algorithm based on analysis of multiple detection reports'. Together they form a unique fingerprint.

Cite this