An extended assessment of type-3 clones as detected by state-of-the-art tools

  • Authors:
  • Rebecca Tiarks;Rainer Koschke;Raimar Falke

  • Affiliations:
  • University of Bremen, Bremen, Germany 28359;University of Bremen, Bremen, Germany 28359;University of Bremen, Bremen, Germany 28359

  • Venue:
  • Software Quality Control
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

Code reuse through copying and pasting leads to so-called software clones. These clones can be roughly categorized into identical fragments (type-1 clones), fragments with parameter substitution (type-2 clones), and similar fragments that differ through modified, deleted, or added statements (type-3 clones). Although there has been extensive research on detecting clones, detection of type-3 clones is still an open research issue due to the inherent vagueness in their definition. In this paper, we analyze type-3 clones detected by state-of-the-art tools and investigate type-3 clones in terms of their syntactic differences. Then, we derive their underlying semantic abstractions from their syntactic differences. Finally, we investigate whether there are code characteristics that indicate that a tool-suggested clone candidate is a real type-3 clone from a human's perspective. Our findings can help developers of clone detectors and clone refactoring tools to improve their tools.