Title :
Refactoring Clones: An Optimization Problem
Author :
Krishnan, Giri Panamoottil ; Tsantalis, N.
Author_Institution :
Dept. of Comput. Sci. & Software Eng., Concordia Univ., Montreal, QC, Canada
Abstract :
The refactoring of software clones is achieved by extracting their common functionality into a single method. Any differences in identifiers and literals between the clones have to become parameters in the extracted method. Obviously, a large number of differences leads to an extracted method with limited reusability due to the large number of introduced parameters. We support that minimizing the differences between the matched statements of clones is crucial for the purpose of refactoring and propose an algorithm that treats the matching process as an optimization problem.
Keywords :
optimisation; pattern matching; software maintenance; software reusability; common functionality extraction; matching process; optimization problem; reusability; software clones refactoring; Algorithm design and analysis; Cloning; Complexity theory; Optimization; Process control; Software; Software algorithms; Maximum Common Subgraph; Optimization; Program Dependence Graph; Refactoring; Software clones;
Conference_Titel :
Software Maintenance (ICSM), 2013 29th IEEE International Conference on
Conference_Location :
Eindhoven
DOI :
10.1109/ICSM.2013.47