清晨好,您是今天最早来到科研通的研友!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您科研之路漫漫前行!

Java Code Clone Detection by Exploiting Semantic and Syntax Information From Intermediate Code-Based Graph

计算机科学 程序设计语言 源代码 抽象语法树 Java 程序理解 抽象语法 冗余代码 代码生成 图形 编码(集合论) 理论计算机科学 人工智能 软件 语义学(计算机科学) 软件系统 解析 操作系统 钥匙(锁) 集合(抽象数据类型)
作者
Dawei Yuan,Sen Fang,Tao Zhang,Zhou Xu,Xiapu Luo
出处
期刊:IEEE Transactions on Reliability [Institute of Electrical and Electronics Engineers]
卷期号:72 (2): 511-526 被引量:16
标识
DOI:10.1109/tr.2022.3176922
摘要

Code clone detection plays a critical role in the field of software engineering. To achieve this goal, developers are required to have rich development experience for finding the "functional" clone code. However, this is unfriendly to novice developers. Although many approaches were proposed to automatically detect code clones, the results are not satisfactory. A major reason is that it is difficult to extract syntax and semantic information from the source code. To resolve this problem, in this article, we develop a novel graph representation approach based on intermediate code to detect the functional code clones. This graph representation is built based on intermediate code compiled from the source code. By using it, we can easily utilize graph embedding techniques to extract syntactic and semantic features from abstract syntax tree, control flow graph, and DFG generated from intermediate code. After that, we use the Softmax classifier to detect functional code clone pairs. We evaluate the performance of the proposed graph representation approach based on intermediate code for the code clone detection task on the BigCloneBench dataset. In order to improve performance, the embedded representation of intermediate code is initialized based on pretrained vectors learned from the collected LLVM IR dataset in advance. The experimental results show that our proposed intermediate code-based graph approach performs better than existing functional code clone detection approaches. Especially for the type-4 code clone detection, our approach outperforms the baseline approaches by an average of 33.49% in the term of F 1 score.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
NexusExplorer的应助被wangyucode采纳,获得10
1秒前
2秒前
如意2023完成签到 ,获得积分10
2秒前
kunzai发布了新的文献求助10
6秒前
21秒前
漂亮的元灵完成签到,获得积分10
23秒前
陈雅玲完成签到 ,获得积分10
44秒前
英俊的铭的应助被科研通管家采纳,获得10
1分钟前
隐形曼青的应助被科研通管家采纳,获得10
1分钟前
完美世界的应助被科研通管家采纳,获得30
1分钟前
能干的颦完成签到,获得积分10
1分钟前
姜OMG完成签到,获得积分10
1分钟前
1分钟前
小马甲的应助被颜林林采纳,获得10
1分钟前
2分钟前
机智的如曼完成签到,获得积分10
2分钟前
woyufeng7完成签到 ,获得积分10
2分钟前
多情柚子完成签到,获得积分10
3分钟前
369ninja的应助被科研通管家采纳,获得10
3分钟前
思源的应助被颜林林采纳,获得10
3分钟前
3分钟前
颜林林发布了新的文献求助10
3分钟前
失眠雪柳完成签到,获得积分10
3分钟前
qq完成签到 ,获得积分0
4分钟前
drhkc完成签到,获得积分10
4分钟前
4分钟前
阿克图尔斯·蒙斯克完成签到,获得积分10
4分钟前
9527发布了新的文献求助10
4分钟前
sky完成签到 ,获得积分10
4分钟前
星辰大海的应助被颜林林采纳,获得10
4分钟前
鲜艳的雪曼完成签到,获得积分10
4分钟前
369ninja的应助被科研通管家采纳,获得10
5分钟前
369ninja的应助被科研通管家采纳,获得10
5分钟前
369ninja的应助被科研通管家采纳,获得10
5分钟前
5分钟前
颜林林发布了新的文献求助10
5分钟前
陶醉的傲霜完成签到,获得积分10
5分钟前
yang_keai完成签到,获得积分10
6分钟前
迷路的穆完成签到,获得积分10
6分钟前
6分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Rosenblum, Global Change Biology 800
自動車の空力技術 800
Organizational Behavior 510
Management and the Arts 510
Issues in Task-Based Language Teaching 500
Geschichtliche Grundbegriffe (GGB), Band 5: Pro–Soz 300
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 化学工程 工程类 有机化学 物理 复合材料 生物化学 内科学 细胞生物学 基因 遗传学 免疫学 冶金 光电子学 癌症研究
热门帖子
关注 科研通微信公众号,转发送积分 7785496
求助须知:如何正确求助?哪些是违规求助? 9324397
关于积分的说明 20398491
捐赠科研通 7374062
什么是DOI,文献DOI怎么找? 3321365
关于科研通互助平台的介绍 2469339
邀请新用户注册赠送积分活动 2337765