DOI: 10.1007/978-3-642-11503-5_10
View full text

Abstract: Abstract. A well-known bad code smell in refactoring and software maintenance is duplicated code, that is the existence of code clones, which are code fragments that are identical or similar to one another. Unjustified code clones increase code size, make maintenance and comprehension more difficult, and also indicate design problems such as a lack of encapsulation or abstraction. This paper describes an approach to detecting 'similar' code based on the notion of anti-unification, or least-general common abst…

Expand abstract