Automatically Inspecting Thousands of Static Bug Warnings with Large Language Model: How Far Are We?

计算机科学 水准点(测量) 钥匙(锁) 编码(集合论) 数据科学 任务(项目管理) 静态分析 软件工程 计算机安全 万维网 程序设计语言 大地测量学 管理 集合(抽象数据类型) 经济 地理
作者
Cheng Wen,Yuandao Cai,Bin Zhang,Jie Su,Zhiwu Xu,Dugang Liu,Shengchao Qin,Zhong Ming,Cong Tian
出处
期刊:ACM Transactions on Knowledge Discovery From Data [Association for Computing Machinery]
卷期号:18 (7): 1-34 被引量:13
标识
DOI:10.1145/3653718
摘要

Static analysis tools for capturing bugs and vulnerabilities in software programs are widely employed in practice, as they have the unique advantages of high coverage and independence from the execution environment. However, existing tools for analyzing large codebases often produce a great deal of false warnings over genuine bug reports. As a result, developers are required to manually inspect and confirm each warning, a challenging, time-consuming, and automation-essential task. This article advocates a fast, general, and easily extensible approach called Llm4sa that automatically inspects a sheer volume of static warnings by harnessing (some of) the powers of Large Language Models (LLMs). Our key insight is that LLMs have advanced program understanding capabilities, enabling them to effectively act as human experts in conducting manual inspections on bug warnings with their relevant code snippets. In this spirit, we propose a static analysis to effectively extract the relevant code snippets via program dependence traversal guided by the bug warning reports themselves. Then, by formulating customized questions that are enriched with domain knowledge and representative cases to query LLMs, Llm4sa can remove a great deal of false warnings and facilitate bug discovery significantly. Our experiments demonstrate that Llm4sa is practical in automatically inspecting thousands of static warnings from Juliet benchmark programs and 11 real-world C/C++ projects, showcasing a high precision (81.13%) and a recall rate (94.64%) for a total of 9,547 bug warnings. Our research introduces new opportunities and methodologies for using the LLMs to reduce human labor costs, improve the precision of static analyzers, and ensure software trustworthiness
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
深情安青应助阳光的秋柔采纳,获得10
刚刚
1秒前
Starry完成签到,获得积分10
1秒前
2秒前
Tsunami发布了新的文献求助10
2秒前
3秒前
活泼飞飞完成签到,获得积分10
4秒前
TrDoubleE发布了新的文献求助10
4秒前
4秒前
如意白猫完成签到 ,获得积分10
4秒前
Snowy周完成签到,获得积分10
5秒前
大模型应助pkucj采纳,获得30
5秒前
科研学习完成签到,获得积分10
5秒前
luchang123qq发布了新的文献求助50
6秒前
全没了完成签到,获得积分10
7秒前
7秒前
小满完成签到,获得积分10
7秒前
阳光的秋柔完成签到,获得积分20
7秒前
Nole应助HE采纳,获得10
8秒前
周文凯完成签到,获得积分10
9秒前
woaikeyan完成签到 ,获得积分10
9秒前
9秒前
9秒前
春日完成签到,获得积分10
10秒前
虚心的如冰完成签到 ,获得积分10
10秒前
舒心雨发布了新的文献求助10
11秒前
11秒前
lili完成签到 ,获得积分10
12秒前
NattyPoe发布了新的文献求助10
13秒前
13秒前
13秒前
老实湘关注了科研通微信公众号
14秒前
MrSong完成签到,获得积分10
14秒前
李健应助笑嘻嘻采纳,获得10
14秒前
15秒前
XX应助Zls森采纳,获得50
17秒前
想个名字完成签到,获得积分10
17秒前
aaaaaawwwww发布了新的文献求助10
18秒前
18秒前
生生发布了新的文献求助10
18秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
内視鏡的に摘除しえた十二指腸乳頭部腫瘍の2例 660
On nonlinear stability of contact discontinuities. In: Hyperbolic problems: theory, numerics, applications (Stony Brook, NY, 1994) 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
微电子器件实验教程 400
The Neuroscience of Language 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7678496
求助须知:如何正确求助?哪些是违规求助? 9243770
关于积分的说明 19925520
捐赠科研通 7249408
什么是DOI,文献DOI怎么找? 3287120
关于科研通互助平台的介绍 2444931
邀请新用户注册赠送积分活动 2290335