已入深夜,您辛苦了!由于当前在线用户较少,发布求助请尽量完整的填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!祝你早点完成任务,早点休息,好梦!

LLM-Powered Test Case Generation for Detecting Tricky Bugs

考试(生物学) 计算机科学 可靠性工程 工程类 地质学 古生物学
作者
Kaibo Liu,Yiyang Liu,Zhenpeng Chen,Jie M. Zhang,Yudong Han,Yun Ma,Ge Li,Gang Huang
出处
期刊:Cornell University - arXiv
标识
DOI:10.48550/arxiv.2404.10304
摘要

Conventional automated test generation tools struggle to generate test oracles and tricky bug-revealing test inputs. Large Language Models (LLMs) can be prompted to produce test inputs and oracles for a program directly, but the precision of the tests can be very low for complex scenarios (only 6.3% based on our experiments). To fill this gap, this paper proposes AID, which combines LLMs with differential testing to generate fault-revealing test inputs and oracles targeting plausibly correct programs (i.e., programs that have passed all the existing tests). In particular, AID selects test inputs that yield diverse outputs on a set of program variants generated by LLMs, then constructs the test oracle based on the outputs. We evaluate AID on two large-scale datasets with tricky bugs: TrickyBugs and EvalPlus, and compare it with three state-of-the-art baselines. The evaluation results show that the recall, precision, and F1 score of AID outperform the state-of-the-art by up to 1.80x, 2.65x, and 1.66x, respectively.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
W~舞完成签到,获得积分10
2秒前
冷酷的柜门完成签到,获得积分10
2秒前
jnoker完成签到 ,获得积分10
3秒前
明明不可以完成签到,获得积分10
4秒前
dada完成签到 ,获得积分10
6秒前
kdc完成签到,获得积分10
6秒前
我爱科研完成签到 ,获得积分10
7秒前
iyNew_xx发布了新的文献求助10
9秒前
9秒前
科研通AI5应助wxyllxx采纳,获得10
9秒前
小枣完成签到 ,获得积分10
10秒前
桐桐应助hello采纳,获得10
11秒前
JXDeng完成签到,获得积分10
11秒前
maclogos完成签到,获得积分10
12秒前
12秒前
ttTINA完成签到,获得积分10
13秒前
14秒前
16秒前
如意竺完成签到,获得积分10
18秒前
小楠完成签到 ,获得积分10
18秒前
Fern完成签到 ,获得积分10
21秒前
逢场作戱__完成签到 ,获得积分10
22秒前
花火完成签到,获得积分10
23秒前
丰富的八宝粥完成签到,获得积分10
24秒前
科研通AI5应助wxyllxx采纳,获得10
26秒前
eason应助南暮采纳,获得10
29秒前
Leo完成签到 ,获得积分10
31秒前
insomnia417完成签到,获得积分0
31秒前
33秒前
冰糖雪梨完成签到 ,获得积分10
34秒前
七慕凉完成签到,获得积分10
35秒前
小胖完成签到 ,获得积分10
36秒前
大个应助科研通管家采纳,获得30
37秒前
Akim应助科研通管家采纳,获得10
37秒前
田様应助科研通管家采纳,获得10
37秒前
科研通AI5应助科研通管家采纳,获得10
37秒前
YifanWang应助科研通管家采纳,获得20
38秒前
man应助科研通管家采纳,获得20
38秒前
orixero应助科研通管家采纳,获得10
38秒前
YifanWang应助科研通管家采纳,获得20
38秒前
高分求助中
Continuum Thermodynamics and Material Modelling 3000
Production Logging: Theoretical and Interpretive Elements 2700
Mechanistic Modeling of Gas-Liquid Two-Phase Flow in Pipes 2500
Structural Load Modelling and Combination for Performance and Safety Evaluation 1000
Conference Record, IAS Annual Meeting 1977 720
電気学会論文誌D(産業応用部門誌), 141 巻, 11 号 510
Typology of Conditional Constructions 500
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 有机化学 生物化学 物理 纳米技术 计算机科学 内科学 化学工程 复合材料 基因 遗传学 物理化学 催化作用 量子力学 光电子学 冶金
热门帖子
关注 科研通微信公众号,转发送积分 3566470
求助须知:如何正确求助?哪些是违规求助? 3139182
关于积分的说明 9430889
捐赠科研通 2840029
什么是DOI,文献DOI怎么找? 1560936
邀请新用户注册赠送积分活动 730090
科研通“疑难数据库(出版商)”最低求助积分说明 717778