Title :
A language independent approach for detecting duplicated code
Author :
Ducasse, Stéphane ; Rieger, Matthias ; Demeyer, Serge
Author_Institution :
Software Composition Group, Bern Univ., Switzerland
Abstract :
Code duplication is one of the factors that severely complicates the maintenance and evolution of large software systems. Techniques for detecting duplicated code exist but rely mostly on parsers, technology that has proven to be brittle in the face of different languages and dialects. In this paper we show that is possible to circumvent this hindrance by applying a language independent and visual approach, i.e. a tool that requires no parsing, yet is able to detect a significant amount of code duplication. We validate our approach on a number of case studies, involving four different implementation languages and ranging from 256 K up to 13 Mb of source code size
Keywords :
program processors; program visualisation; software maintenance; software tools; duplicated code detection; language independent approach; large software evolution; large software maintenance; visual approach; Application software; Computer industry; Costs; Gas detectors; Programming profession; Read only memory; Software maintenance; Software systems; Testing; Writing;
Conference_Titel :
Software Maintenance, 1999. (ICSM '99) Proceedings. IEEE International Conference on
Conference_Location :
Oxford
Print_ISBN :
0-7695-0016-1
DOI :
10.1109/ICSM.1999.792593