已入深夜,您辛苦了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
yxy发布了新的文献求助10
1秒前
FST完成签到,获得积分10
2秒前
yf完成签到 ,获得积分10
2秒前
2秒前
哈哈完成签到,获得积分10
2秒前
香蕉觅云应助汪洋采纳,获得10
2秒前
桐桐应助元夕夕夕采纳,获得10
2秒前
可乐发布了新的文献求助10
2秒前
3秒前
yuyuyu发布了新的文献求助10
3秒前
Allowsany完成签到,获得积分10
4秒前
4秒前
molihuakai应助bbband采纳,获得10
7秒前
叶黄戍发布了新的文献求助10
7秒前
大轩发布了新的文献求助10
8秒前
8秒前
顾矜应助www采纳,获得10
9秒前
9秒前
ssy发布了新的文献求助10
9秒前
重要的炳完成签到 ,获得积分10
10秒前
11秒前
11秒前
想去后山玩完成签到 ,获得积分10
11秒前
11秒前
12秒前
林一发布了新的文献求助10
13秒前
14秒前
梦泽儿发布了新的文献求助10
15秒前
马莉发布了新的文献求助10
16秒前
bbband发布了新的文献求助10
18秒前
星辰大海应助策略采纳,获得10
18秒前
Ava应助Jsssds采纳,获得10
18秒前
18秒前
22222发布了新的文献求助10
19秒前
19秒前
思源应助bbband采纳,获得10
21秒前
无语的汉堡完成签到 ,获得积分10
21秒前
22秒前
22秒前
23秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Les Mantodea de Guyane Insecta, Polyneoptera 2000
Quality by Design - An Indispensable Approach to Accelerate Biopharmaceutical Product Development 800
Pulse width control of a 3-phase inverter with non sinusoidal phase voltages 777
Signals, Systems, and Signal Processing 610
Research Methods for Applied Linguistics: A Practical Guide 600
Research Methods for Applied Linguistics 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6404116
求助须知:如何正确求助?哪些是违规求助? 8223361
关于积分的说明 17428820
捐赠科研通 5456467
什么是DOI,文献DOI怎么找? 2883501
邀请新用户注册赠送积分活动 1859814
关于科研通互助平台的介绍 1701219