A Mutation/Injection-Based Automatic Framework for Evaluating Code Clone Detection Tools

  • Authors:
  • Chanchal K. Roy;James R. Cordy

  • Affiliations:
  • -;-

  • Venue:
  • ICSTW '09 Proceedings of the IEEE International Conference on Software Testing, Verification, and Validation Workshops
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

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 toolscan 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.