LLM-Powered Test Case Generation for Detecting Bugs in Plausible Programs
Peking University(北京大学);Nanyang Technological University(南洋理工大学);King’s College London(伦敦国王学院);University College London(伦敦大学学院);National Key Laboratory of Data Space Technology and System(数据空间技术与系统国家重点实验室)
Kaibo Liu, Zhenpeng Chen, Yiyang Liu, Jie M. Zhang, Mark Harman, Yudong Han, Yun Ma, Yihong Dong, Ge Li, Gang Huang
Detecting tricky bugs in plausible programs, those that pass existing test suites yet still contain bugs, remains a significant challenge in software testing. To address this problem, we propose TrickCatcher, an LLM-powered approach to generating test cases for uncovering bugs in plausible programs. TrickCatcher operates in three stages: First, it uses an LLM to generate program variants based on the program under test (PUT) and its specification. Second, it employs an LLM to construct an input generator from the specification for producing test inputs. Finally, these inputs are executed on both the PUT and its program variants to detect inconsistencies in their outputs. We evaluate TrickCatcher on two datasets, TrickyBugs and EvalPlus, which include 366 human-written and 151 AI-generated plausible programs with tricky bugs. TrickCatcher achieves recall, precision, and F1 scores that are 1.80x, 2.65x, and 1.66x those of the state-of-the-art baselines, respectively. Code and data used are available at https://github.com/RinCloud/TrickCatcher.
Tampere University(坦佩雷大学);University of Jyväskylä(于韦斯屈莱大学);University of Helsinki(赫尔辛基大学);Free University of Bozen Bolzano(博尔扎诺自由大学);University of South Eastern Norway(挪威东南大学)
School of Computer Science, Peking University(北京大学计算机学院);Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);School of Software, Tsinghua University(清华大学软件学院)
VeriPilot: An LLM-Powered Verilog Debugging Framework
State Key Lab of Processors, Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所国家专用集成电路设计实验室);University of Chinese Academy of Sciences(中国科学院大学);North China Electric Power University(华北电力大学)
PAFT: Preservation Aware Fine-Tuning for Minimal-Edit Program Repair
School of Artificial Intelligence (School of Software), Yanshan University(燕山大学人工智能学院(软件学院));Department of Computer Science, Aalto University(阿尔托大学计算机科学系)