ACM SIGSOFT Software Engineering Notes · 2005 · 48 citations · 11 references
ComputingComputer ScienceMolecular EvolutionProgramming LanguagesSoftware EngineeringAbstract Syntax TreesSoftware EvolutionSoftware MaintenanceSoftware RefactoringSoftware ReuseStatic Code AnalysisClone DetectionCode Clone DetectionCode Clone EvolutionCode Snippet ReuseMaintenanceRefactoringSoftware Maintenance ProcessSource Code Evolution
Programmers often create similar code snippets or reuse existing code snippets by copying and pasting. Code clones---syntactically and semantically similar code snippets---can cause problems during software maintenance because programmers may need to locate code clones and change them consistently. In this work, we investigate (1) how code clones evolve, (2) how many code clones impose maintenance challenges, and (3) what kind of tool or engineering process would be useful for maintaining code clones.Based on a formal definition of clone evolution, we built a clone genealogy tool that automatically extracts the history of code clones from a source code repository (CVS). Our clone genealogy tool enables several analyses that reveal evolutionary characteristics of code clones. Our initial results suggest that aggressive refactoring may not be the best solution for all code clones; thus, we propose alternative tool solutions that assist in maintaining code clones using clone genealogy information.
11
Clone detection using abstract syntax trees
Ira D. Baxter, A. Yahin, Leonardo de Moura et al. · 2002 · 1.3K citations
Identifying similar code with program dependence graphs
Jens Krinke · 2002 · 622 citations
Predicting source code changes by mining change history
Annie T. T. Ying, Gail C. Murphy, Raymond T. Ng et al. · IEEE Transactions on Software Engineering · 2004 · 571 citations