A novel detection approach for statement clones

Qing Qing Shi, Li Ping Zhang, Fan Jun Meng, Dongsheng Liu · 2013

Activities such as copying, pasting and modifying codes usually lead to a lot of code clones in the software systems. These code clones have a great impact on software development and maintenance. This paper presents a new clone detection approach. That is to uses a algorithm based on suffix array to efficiently search repeated token substrings and finally to detect code clones. We also develop a clone detection tool SaCD in order to implement the method. This tool has detected statement clones in 31 open source software systems of C, C++ and Java language. The experimental results show that the SaCD can efficiently detect code clones at the statement granularity in the software.

Read the paper · More papers on PaperTik