Evolution of Type-1 Clones
Author:
- Nils GödeNGNils Göde
- 1 January 2009
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 77-86
Abstract
It is useful to study the evolution of code clones to better understand the nature, effects, and reasons of cloning. There are different approaches that investigate multiple versions of a program and detect patterns in the evolution of clones. The shortcomings of these methods are that they require significant computational effort, are limited to detecting predefined patterns and are mostly based on heuristics. This paper presents an approach that models clone evolution based on the source code changes that were made between consecutive program versions. Instead of relating clone classes by predefined patterns, the focus is on how individual cloned fragments evolve. The model has been used to analyze different aspects of type-1 clone evolution in nine open-source systems. The empirical results show that the ratio of clones decreased in the majority of the systems and cloned fragments survived more than a year on average. It was found that -- depending on the system -- either consistent or inconsistent changes to clone classes were more frequent. Overall, the peculiarity of clone evolution is significantly different for each system, making general conclusions difficult.Keywords
This publication has 15 references indexed in Scilit:
- An empirical study on the maintenance of source code clonesEmpirical Software Engineering, 2009
- Clonetracker2008
- Clone Smells in Software Evolution2007
- Evaluating the Harmfulness of Cloning: A Change Based Experiment2007
- Tracking Code Clones in Evolving Software29th International Conference on Software Engineering (ICSE'07), 2007
- Analysis of the Linux Kernel Evolution Using Code Clone Coverage2007
- CP-Miner: finding copy-paste and related bugs in large-scale software codeIEEE Transactions on Software Engineering, 2006
- Modeling clones evolution through time series2002
- Analyzing cloning evolution in the Linux kernelInformation and Software Technology, 2002
- Assessing the benefits of incorporating function clone detection in a development process1997