Loading [MathJax]/extensions/MathZoom.js
Semantic Code Clone Detection Via Event Embedding Tree and GAT Network | IEEE Conference Publication | IEEE Xplore

Semantic Code Clone Detection Via Event Embedding Tree and GAT Network


Abstract:

Semantic code clone detection is an important yet challenging task in software engineering. Traditional methods rely on expert experience and cannot automatically determi...Show More

Abstract:

Semantic code clone detection is an important yet challenging task in software engineering. Traditional methods rely on expert experience and cannot automatically determine which features are better for semantic code clone detection. Moreover, the program dynamics (e.g., the execution characteristics and execution order of statements) are not considered in these methods. As a result, this limits their ability to detect semantic clones. To address this issue, we propose a code clone detection method based on event embedding tree and Graph Attention Network. Our method uses a program control flow graph to capture the execution characteristics of each statement and extract the context relationship of different statements in the control flow. Based on such information, our method can calculate the functional similarity of two pieces of code, thereby identifying semantically similar code fragments. Experimental results show that our method is superior to state-of-the-art open source methods for Type-3 (syntactic) / Type-4 (semantic) clone detection.
Date of Conference: 11-14 December 2020
Date Added to IEEE Xplore: 11 December 2020
ISBN Information:
Conference Location: Macau, China

Funding Agency:


Contact IEEE to Subscribe

References

References is not available for this document.