Research on code clone analysis approach

Kechao Wang,Chenguang Zhu,Tiantian Wang,Xiaohong Su
DOI: https://doi.org/10.3969/j.issn.1001-3695.2017.03.025
2017-01-01
Abstract:Most existing clone detection tools only output the detection results in the form of clone sets,lacking clone analysis.To solve this problem,this paper proposed a key clone recognition approach.The approach could analysis the clones which decreased the quality of software.Firstly,this approach defined a unified clone representation form to support the analysis of various clone detection tools.Then,the approach analysed the source code and clone detection results to detect identifier renaming inconsistent clones,which were potential bugs.Next,the approach detected the clones diffusing in various functional different files,which might decrease the maintainability of software.Finally,the approach visually analysed the detection results.The proposed analysis tool analyzed the open source code httpd,which detected 1 identifier renaming inconsistent clone,and 44 clones diffusing in various functional different files.The experimental results show that it can facilitate the analysis and maintenance of code clones.
What problem does this paper attempt to address?