MTCD: an Efficient Cloning Detection Technique Based on Method Table

Fangting Liao,Shun Long,Weiheng Zhu,Wenzhu Chen,Silei Cao,Xinyi Guan
DOI: https://doi.org/10.1007/978-3-031-35257-7_19
2023-01-01
Abstract:Code cloning is an effective approach to accelerate software development, but may leave potentially significant pitfalls for maintenance. State-of-the-art clone detection techniques rely heavily on accurate syntax and semantic features which are difficult to identify and extract, making them hard to deploy in practice. This paper presents a simple but efficient approach called MTCD which extracts from a Java method (in its Java class file) the method table section of the code as its feature, and then transforms the feature into a decimal series for comparison. MTCD significantly simplifies feature identification and extraction. Experimental results on BigCloneBench suggested that MTCD clearly outperformed other established approaches by achieving an average F1-score of 0.95 with a modest training cost of 181 s for a 60 k dataset.
What problem does this paper attempt to address?