Clone Doctor Logo

IntroductionPresentationDownload

Clone Detection in Text Files: Problems

  • Confused by blanks, comments, line breaks, strings (relatively easily fixed)

  • Can�t detect clones that don�t start/end on line boundaries (�C� language)

  • Can�t detect clones involving commutative operators

  • Confused by identical identifiers distinguished by language

  • Extremely difficult to detect �near misses�

  • No support for managing clones after detection

    � HashCode CloneSize

    s=s-k; 6254 ~

    p->queue->length= // adjust queue size 12834 ~

    p->queue->length+k; 83291 ~

    { s=s-n; 72824 ~

    // Inline for speed: 60225 ~

    p->queue->length=n+p->queue->length; 40029 ~

    };

Previous slide Next slide Back to first slide View graphic version

Morter  Logo


Comments or questions: [email protected]