Research on the Model of Legacy Software Reuse Based on Code Clone Detection
Authors:
- Meng FanqiMFMeng Fanqi
- Kan YunqiKYKan Yunqi
- 1 September 2013
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 491-495
Abstract
The construction of large-scale engineering project usually relies on the development of many new software systems, whereas it would be very expensive and time consuming if these new software systems are completely developed anew. In order to solve the problem, a model of legacy software reuse is proposed in this paper. The model is based on code clone detection. Firstly, code clone in source code of legacy software is detected by means of code clone detection tool. Secondly, abstract syntax trees of the functions which contain code clone are created. Thirdly, the degree of variation between the functions which contain the code clone belongs to the same clone set is calculated according to their abstract syntax trees, and then some functions whose similarities of abstract syntax trees are in the allowed range are combined. Finally, the combined functions and other frequently invoked functions are refactored into new functions or encapsulated into new classes, and all of these functions or classes can be reused as components in the development of new software systems. The test result shows that the reuse method based on this model can shrink the scope for searching the reusable component in legacy software systems, and thus improve the efficiency of legacy software reuse.Keywords
This publication has 10 references indexed in Scilit:
- Resource requirement prediction using clone detection techniqueFuture Generation Computer Systems, 2013
- Engineering Service-Based Dynamic Software Product LinesComputer, 2012
- Software models for Smart Grid2012
- Automated Behavioral Testing of Refactoring EnginesIEEE Transactions on Software Engineering, 2012
- Clone Management for Evolving SoftwareIEEE Transactions on Software Engineering, 2011
- An Empirical Study of Long-Lived Code Clones2011
- Guilty or Not Guilty: Using Clone Metrics to Determine Open Source Licensing ViolationsIEEE Software, 2010
- Heuristics for Systems Engineering Cost EstimationIEEE Systems Journal, 2010
- Reuse in Systems EngineeringIEEE Systems Journal, 2010
- CCFinder: a multilinguistic token-based code clone detection system for large scale source codeIEEE Transactions on Software Engineering, 2002