Sciweavers

SYNASC
2005
IEEE

Archeology of Code Duplication: Recovering Duplication Chains from Small Duplication Fragments

13 years 10 months ago
Archeology of Code Duplication: Recovering Duplication Chains from Small Duplication Fragments
Code duplication is a common problem, and a wellknown sign of bad design. As a result of that, in the last decade, the issue of detecting code duplication led to various solutions and tools that can automatically find duplicated blocks of code. However, duplicated fragments rarely remain identical after they are copied; they are oftentimes modified here and there. This adaptation usually “scatters” the duplicated code block into a large amount of small “islands” of duplication, which detected and analyzed separately hide the real magnitude and impact of the duplicated block. In this paper we propose a novel, automated approach for recovering duplication blocks, by composing small isolated fragments of duplication into larger and more relevant duplication chains. We validate both the efficiency and the scalability of the approach by applying it on several well known open-source case-studies and discussing some relevant findings. By recovering such duplication chains, the ma...
Richard Wettel, Radu Marinescu
Added 25 Jun 2010
Updated 25 Jun 2010
Type Conference
Year 2005
Where SYNASC
Authors Richard Wettel, Radu Marinescu
Comments (0)