Towards Understanding the Effectiveness of Large Language Models on Directed Test Input Generation

计算机科学 考试(生物学) 程序设计语言 地质学 古生物学
作者
Zongze Jiang,Ming Wen,Jialun Cao,Xuanhua Shi,Hai Jin
标识
DOI:10.1145/3691620.3695513
摘要

Automatic testing has garnered significant attention and success over the past few decades. Techniques such as unit testing and coverage-guided fuzzing have revealed numerous critical software bugs and vulnerabilities. However, a long-standing, formidable challenge for existing techniques is how to achieve higher testing coverage. Constraint-based techniques, such as symbolic execution and concolic testing, have been well-explored and integrated into the existing approaches. With the popularity of Large Language Models (LLMs), recent research efforts to design tailored prompts to generate inputs that can reach more uncovered target branches. However, the effectiveness of using LLMs for generating such directed inputs and the comparison with the proven constraint-based solutions has not been systematically explored. To bridge this gap, we conduct the first systematic study on the mainstream LLMs and constraint-based tools for directed input generation with a comparative perspective. We find that LLMs such as ChatGPT are comparable to or even better than the constraint-based tools, succeeding in 43.40%-58.57% samples in our dataset. Meanwhile, there are also limitations for LLMs in certain scenarios such as sequential calculation, where constraint-based tools are in a position of strength. Based on these findings, we propose a simple yet effective method to combine these two types of tools and implement a prototype based on ChatGPT and constraint-based tools. Our evaluation shows that our approach can outperform the baselines by 1.4x to 2.3x relatively. We believe our study can provide novel insights into directed input generation using LLMs, and our findings are essential for future testing research.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
无问问完成签到,获得积分10
刚刚
野原发布了新的文献求助30
刚刚
sls完成签到,获得积分10
刚刚
星星完成签到,获得积分10
1秒前
拥一人入怀完成签到,获得积分10
1秒前
1秒前
天祥发布了新的文献求助10
1秒前
匆匆完成签到,获得积分10
1秒前
1秒前
1秒前
猩猩完成签到,获得积分10
2秒前
正直纸飞机完成签到,获得积分10
3秒前
3秒前
张美环发布了新的文献求助10
3秒前
小脑袋完成签到,获得积分10
3秒前
复杂从梦完成签到,获得积分10
3秒前
3秒前
动听的亦寒完成签到 ,获得积分10
4秒前
4秒前
4秒前
科研通AI6.3应助FAYE采纳,获得10
4秒前
4秒前
Xuan完成签到,获得积分10
4秒前
田様应助失眠的血茗采纳,获得10
5秒前
小脚丫发布了新的文献求助10
5秒前
koori发布了新的文献求助10
5秒前
5秒前
科研通AI2S应助Su_Zehe采纳,获得10
5秒前
倩倩0857完成签到,获得积分10
5秒前
爱吃糖果的小象完成签到,获得积分10
6秒前
科研人完成签到,获得积分10
6秒前
6秒前
妮妮应助皮蛋瘦肉周采纳,获得10
6秒前
JrPaleo101完成签到,获得积分10
6秒前
3080发布了新的文献求助10
6秒前
luna107发布了新的文献求助10
7秒前
春夏发布了新的文献求助30
7秒前
蓝莓夹心蛋糕完成签到,获得积分10
7秒前
Kiki发布了新的文献求助10
7秒前
纯情的白开水完成签到 ,获得积分10
7秒前
高分求助中
Modern Epidemiology, Fourth Edition 5000
Kinesiophobia : a new view of chronic pain behavior 5000
Molecular Biology of Cancer: Mechanisms, Targets, and Therapeutics 3000
Digital Twins of Advanced Materials Processing 2000
Propeller Design 2000
Weaponeering, Fourth Edition – Two Volume SET 2000
First commercial application of ELCRES™ HTV150A film in Nichicon capacitors for AC-DC inverters: SABIC at PCIM Europe 1000
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 纳米技术 化学工程 生物化学 物理 计算机科学 内科学 复合材料 催化作用 物理化学 光电子学 电极 冶金 细胞生物学 基因
热门帖子
关注 科研通微信公众号,转发送积分 6005520
求助须知:如何正确求助?哪些是违规求助? 7529970
关于积分的说明 16114722
捐赠科研通 5151295
什么是DOI,文献DOI怎么找? 2759972
邀请新用户注册赠送积分活动 1737217
关于科研通互助平台的介绍 1632284