arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1906.01778cs.SE
收藏

RESTORE:面向自动化程序修复的回顾式故障定位增强方法

RESTORE: Retrospective Fault Localization Enhancing Automated Program Repair

Tongtong Xu, Liushan Chen, Yu Pei, Tian Zhang, Minxue Pan, Carlo A. Furia

AI总结:

本文提出回顾式故障定位技术,通过复用失败补丁验证结果进行基于变异的动态分析,并在RESTORE工具中实现,在Defects4J基准上以更高效率修复了41个缺陷,显著优于现有Java自动修复工具。

摘要:

故障定位是自动化程序修复中的关键步骤,因为准确识别与故障最密切相关的程序位置会极大地影响补丁生成过程的有效性。理想的故障定位技术应当在提供精确信息的同时,只需要适度的计算资源,从而最好地支持对正确修复方案的高效搜索。相比之下,大多数自动化程序修复工具使用标准的故障定位技术,这些技术并未与整体程序修复过程紧密集成,因此只能提供次优的效率。本文提出了回顾式故障定位:一种面向自动化程序修复需求的新型故障定位技术。回顾式故障定位的一个关键思想是复用失败的补丁验证结果来支持基于变异的动态分析,从而在不产生繁重计算开销的情况下提供准确的故障定位信息。我们在一个名为RESTORE的工具中实现了回顾式故障定位,该工具基于JAID Java程序修复系统构建。涉及Defects4J标准基准中故障的实验表明,回顾式故障定位能够提升自动化程序修复的效果:RESTORE能够高效地探索大规模修复空间,在实现最先进的有效性(正确修复了41个Defects4J缺陷,比任何其他面向Java的自动化修复工具多修复8个)的同时提升性能(与JAID相比加速超过3倍)。回顾式故障定位适用于任何依赖故障定位和补丁动态验证的自动化程序修复技术。

英文摘要:

Fault localization is a crucial step of automated program repair, because accurately identifying program locations that are most closely implicated with a fault greatly affects the effectiveness of the patching process. An ideal fault localization technique would provide precise information while requiring moderate computational resources---to best support an efficient search for correct fixes. In contrast, most automated program repair tools use standard fault localization techniques---which are not tightly integrated with the overall program repair process, and hence deliver only subpar efficiency. In this paper, we present retrospective fault localization: a novel fault localization technique geared to the requirements of automated program repair. A key idea of retrospective fault localization is to reuse the outcome of failed patch validation to support mutation-based dynamic analysis---providing accurate fault localization information without incurring onerous computational costs. We implemented retrospective fault localization in a tool called RESTORE---based on the JAID Java program repair system. Experiments involving faults from the Defects4J standard benchmark indicate that retrospective fault localization can boost automated program repair: RESTORE efficiently explores a large fix space, delivering state-of-the-art effectiveness (41 Defects4J bugs correctly fixed, 8 more than any other automated repair tools for Java) while simultaneously boosting performance (speedup over 3 compared to JAID). Retrospective fault localization is applicable to any automated program repair techniques that rely on fault localization and dynamic validation of patches.

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

↑