From Local to Global Semantic Clone Detection

Yuan Yuan, W. Kong, Gang Hou, Yan Hu, Masahiko Watanabe, Akira Fukuda
{"title":"From Local to Global Semantic Clone Detection","authors":"Yuan Yuan, W. Kong, Gang Hou, Yan Hu, Masahiko Watanabe, Akira Fukuda","doi":"10.1109/DSA.2019.00012","DOIUrl":null,"url":null,"abstract":"Clone detection detects similar code fragments (refer to as clone code) in software products. It can help with software optimization and maintenance. Code clone detection can be divided into textual, lexical, syntactic and semantic levels. The existing technologies have achieved many good results in the first three levels, but no significant results have been obtained in semantic clone detection. In this paper, we propose a novel semantic level clone detection approach. We use the control flow graph (CFG) as an intermediate representation of the program method, combining the classical dynamic time warping (DTW) algorithm in the field of speech recognition with two deep neural network models (bidirectional RNN autoencoder and graph convolutional network (GCN)) to detect semantic level clone from local to global. We experimented with a dataset consisting of five large-scale real-world systems and a code corpus containing a large number of programming problems. The experimental results show that our approach can achieve good results in detecting both local and global semantic clone.","PeriodicalId":342719,"journal":{"name":"2019 6th International Conference on Dependable Systems and Their Applications (DSA)","volume":"6 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"7","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 6th International Conference on Dependable Systems and Their Applications (DSA)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/DSA.2019.00012","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 7

Abstract

Clone detection detects similar code fragments (refer to as clone code) in software products. It can help with software optimization and maintenance. Code clone detection can be divided into textual, lexical, syntactic and semantic levels. The existing technologies have achieved many good results in the first three levels, but no significant results have been obtained in semantic clone detection. In this paper, we propose a novel semantic level clone detection approach. We use the control flow graph (CFG) as an intermediate representation of the program method, combining the classical dynamic time warping (DTW) algorithm in the field of speech recognition with two deep neural network models (bidirectional RNN autoencoder and graph convolutional network (GCN)) to detect semantic level clone from local to global. We experimented with a dataset consisting of five large-scale real-world systems and a code corpus containing a large number of programming problems. The experimental results show that our approach can achieve good results in detecting both local and global semantic clone.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
从局部到全局语义克隆检测
克隆检测检测软件产品中相似的代码片段(称为克隆代码)。它可以帮助软件优化和维护。代码克隆检测可分为文本、词汇、句法和语义四个层次。现有的技术在前三个层次上都取得了很好的效果,但在语义克隆检测方面还没有取得显著的成果。本文提出了一种新的语义级克隆检测方法。我们使用控制流图(CFG)作为程序方法的中间表示,将语音识别领域经典的动态时间规整(DTW)算法与两种深度神经网络模型(双向RNN自编码器和图卷积网络(GCN))相结合,检测从局部到全局的语义级克隆。我们用一个由五个大规模现实世界系统组成的数据集和一个包含大量编程问题的代码语料库进行了实验。实验结果表明,该方法在检测局部和全局语义克隆方面都取得了较好的效果。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
相关文献
Guided Inquiry-Based Electronic Module Development on Circulation System Ma-Terial to Improve Student Learning Outcomes
IF 0 BioedusciencePub Date : 2022-04-01 DOI: 10.22236/j.bes/617089
Madiany Erika Purnama, S. Hidayat, Rusdy A. Siroj
Management of Laboratory-Based Learning Activity on Electronic Flight Instrument System
IF 0 2021 6th International STEM Education Conference (iSTEM-Ed)Pub Date : 2021-11-10 DOI: 10.1109/iSTEM-Ed52129.2021.9625098
N. Tangthong, Somsak Aktimagool
Electronic module of geometry based on inquiry
IF 0 IOP Conference Series: Materials Science and EngineeringPub Date : 2021-03-01 DOI: 10.1088/1757-899X/1098/3/032086
D. Triwahyuningtyas, I. Suastika
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Rational Design of the Appearance of Complex Industrial Products Based on Visual Communication Research on Anti-Noise Performance of New Chaos Criterion Research on Railway Intelligent Operation and Maintenance and Its System Architecture Research on Industrial Software Testing Knowledge Database Based on Ontology Research on Design and Verification of Sobel Image Edge Detection Based on High Level Synthesis
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1