Detecting Condition-Related Bugs with Control Flow Graph Neural Network

计算机科学 控制流程 杠杆(统计) 控制流程图 图形 软件错误 人工智能 机器学习 调用图 人工神经网络 程序理解 知识图 抽象语法树 源代码 数据挖掘 软件 语法 理论计算机科学 软件系统 程序设计语言
作者
Jian Zhang,Xu Wang,Hongyu Zhang,Hailong Sun,Xudong Li,Chunming Hu,Yang Liu
标识
DOI:10.1145/3597926.3598142
摘要

Automated bug detection is essential for high-quality software development and has attracted much attention over the years. Among the various bugs, previous studies show that the condition expressions are quite error-prone and the condition-related bugs are commonly found in practice. Traditional approaches to automated bug detection are usually limited to compilable code and require tedious manual effort. Recent deep learning-based work tends to learn general syntactic features based on Abstract Syntax Tree (AST) or apply the existing Graph Neural Networks over program graphs. However, AST-based neural models may miss important control flow information of source code, and existing Graph Neural Networks for bug detection tend to learn local neighbourhood structure information. Generally, the condition-related bugs are highly influenced by control flow knowledge, therefore we propose a novel CFG-based Graph Neural Network (CFGNN) to automatically detect condition-related bugs, which includes a graph-structured LSTM unit to efficiently learn the control flow knowledge and long-distance context information. We also adopt the API-usage attention mechanism to leverage the API knowledge. To evaluate the proposed approach, we collect real-world bugs in popular GitHub repositories and build a large-scale condition-related bug dataset. The experimental results show that our proposed approach significantly outperforms the state-of-the-art methods for detecting condition-related bugs.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
lilli完成签到,获得积分10
刚刚
Peng小糕完成签到,获得积分10
2秒前
666完成签到,获得积分10
2秒前
Ju发布了新的文献求助10
3秒前
行走的荷尔蒙应助科研啦采纳,获得30
3秒前
3秒前
南北发布了新的文献求助10
4秒前
yue完成签到 ,获得积分10
4秒前
JamesPei应助Hoooo...采纳,获得10
5秒前
百事菀漾漾完成签到 ,获得积分10
5秒前
加油少年完成签到,获得积分10
5秒前
我是传奇发布了新的文献求助10
6秒前
NMR完成签到,获得积分10
7秒前
kevin发布了新的文献求助30
7秒前
Chavif完成签到,获得积分10
8秒前
优秀的流沙完成签到,获得积分10
9秒前
乐观的问枫完成签到 ,获得积分10
9秒前
10秒前
13988548568完成签到,获得积分10
10秒前
积木123完成签到,获得积分10
10秒前
btyyl完成签到,获得积分10
10秒前
10秒前
hodi完成签到,获得积分10
11秒前
qyzhu发布了新的文献求助30
11秒前
跳跃驳回了Lucas应助
11秒前
12秒前
12秒前
过时的广山完成签到 ,获得积分10
13秒前
甘楽发布了新的文献求助10
13秒前
玉梅完成签到,获得积分10
13秒前
在水一方应助科研通管家采纳,获得10
14秒前
情怀应助科研通管家采纳,获得10
14秒前
田様应助科研通管家采纳,获得10
14秒前
molihuakai应助科研通管家采纳,获得10
14秒前
Avalonx应助科研通管家采纳,获得10
14秒前
14秒前
饱满雁玉完成签到,获得积分10
14秒前
Owen应助科研通管家采纳,获得10
14秒前
CodeCraft应助科研通管家采纳,获得10
14秒前
15秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Organic Chemistry, 5th Edition 1000
Nondestructive Testing Handbook: Vol. 4, Thermal and Infrared Testing (IR), 4th ed 800
作者名:Kristopher P. Plain,悉尼大学的,目前只能查到其四篇论文,想找到其博士论文 590
Évora na Idade Média 555
Soil mites of the family Rhagidiidae (Actinedida: Eupodoidea). Morphology, Systematics, Ecology 520
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7371196
求助须知:如何正确求助?哪些是违规求助? 8978827
关于积分的说明 19088682
捐赠科研通 7013188
什么是DOI,文献DOI怎么找? 3225034
关于科研通互助平台的介绍 2388657
邀请新用户注册赠送积分活动 2205699