Computer Engineering & Science ›› 2020, Vol. 42 ›› Issue (07): 1191-1196.
Previous Articles Next Articles
ZOU Yue, WU Ming, XU Yun
Received:
Revised:
Accepted:
Online:
Published:
Abstract: Code clone detection is a basic research in software engineering, and it is widely used in software analysis and maintenance. At present, for detecting high-level clone with text difference, namely type-3/type-4 clone defined in the academic field, the existing methods have the problem of low detection rate (recall rate). The PDG (Program Dependency Graph) based detection methods are very important in high-level clone detection area, but these methods mostly rely on the accurate graph matching algorithms such as subgraph isomorphism, which have high time complexity and low recovery. Therefore, we propose a novel high-level code clone detection method, which uses the approximate graph matching algorithm based on Weisfeiler -Lehman graph kernel to detect clones. The experimental results show that our method can detect more high-level clones and run faster than the existing methods.
Key words: code clone detection, program dependency graph, Weisfeiler-Lehman graph kernel
ZOU Yue, WU Ming, XU Yun. Design and implementation of a high level code clone detection method[J]. Computer Engineering & Science, 2020, 42(07): 1191-1196.
0 / / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://joces.nudt.edu.cn/EN/
http://joces.nudt.edu.cn/EN/Y2020/V42/I07/1191