arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.08885cs.SE
收藏

面向 JIT 编译器缺陷定位的定向测试程序生成

Directed Test Program Generation for JIT Compiler Bug Localization

HeuiChan Lim, Saumya Debray

AI总结:

针对 JIT 编译器缺陷定位中测试程序生成效果不佳的问题,提出依据种子程序结构定向生成相似通过输入与相异失败输入的方法,实验证明可显著提升定位效果。

摘要:

即时(Just-in-Time,JIT)编译器的缺陷定位技术基于分析目标 JIT 编译器在为此目的生成的一组测试程序上的执行行为;这些测试输入的特征会显著影响缺陷定位的准确性。然而,当前的自动测试程序生成方法在 JIT 编译器缺陷定位方面效果不佳。本文提出一种用于 JIT 编译器缺陷定位的新型自动测试程序生成技术,该技术基于两个关键洞见:(1)生成的测试程序应同时包含通过输入(不会触发缺陷)和失败输入(会触发缺陷);(2)通过输入应尽可能接近初始种子输入,而失败程序应尽可能与其不同。我们利用对种子程序的结构化分析来确定对于通过和失败两种情形分别应变异代码的哪些部分。使用原型实现进行的实验表明,与现有方法相比,采用我们的方法生成的测试输入可带来显著改善的缺陷定位结果。

英文摘要:

Bug localization techniques for Just-in-Time (JIT) compilers are based on analyzing the execution behaviors of the target JIT compiler on a set of test programs generated for this purpose; characteristics of these test inputs can significantly impact the accuracy of bug localization. However, current approaches for automatic test program generation do not work well for bug localization in JIT compilers. This paper proposes a novel technique for automatic test program generation for JIT compiler bug localization that is based on two key insights: (1) the generated test programs should contain both passing inputs (which do not trigger the bug) and failing inputs (which trigger the bug); and (2) the passing inputs should be as similar as possible to the initial seed input, while the failing programs should be as different as possible from it. We use a structural analysis of the seed program to determine which parts of the code should be mutated for each of the passing and failing cases. Experiments using a prototype implementation indicate that test inputs generated using our approach result in significantly improved bug localization results than existing approaches.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑