TBar:重新审视基于模板的自动程序修复
TBar: Revisiting Template-based Automated Program Repair
摘要:
我们重新审视基于模板的APR的性能,以建立有关修复模式有效性的全面知识,并强调补充步骤(如故障定位或供体代码检索)的重要性。为此,我们首先调查文献收集,总结和标签经常使用的修复模式。基于调查,我们建立TBar,一个简单的APR工具,系统地尝试将这些修复模式应用于程序错误。我们在Defects 4J基准上彻底评估了TBar。特别是,我们评估的实际定性和定量的多样性的修复模式,以及它们的有效性,产生合理的或正确的补丁。最终,我们发现,假设一个完美的故障定位,TBar正确/可修复74/101个错误。复制APR评估的标准和实用管道,我们证明TBar正确修复了Defects 4J中的43个错误,这是文献中前所未有的表现(包括所有方法,即,基于模板、基于随机突变或基于合成的APR)。
英文摘要:
We revisit the performance of template-based APR to build comprehensive knowledge about the effectiveness of fix patterns, and to highlight the importance of complementary steps such as fault localization or donor code retrieval. To that end, we first investigate the literature to collect, summarize and label recurrently-used fix patterns. Based on the investigation, we build TBar, a straightforward APR tool that systematically attempts to apply these fix patterns to program bugs. We thoroughly evaluate TBar on the Defects4J benchmark. In particular, we assess the actual qualitative and quantitative diversity of fix patterns, as well as their effectiveness in yielding plausible or correct patches. Eventually, we find that, assuming a perfect fault localization, TBar correctly/plausibly fixes 74/101 bugs. Replicating a standard and practical pipeline of APR assessment, we demonstrate that TBar correctly fixes 43 bugs from Defects4J, an unprecedented performance in the literature (including all approaches, i.e., template-based, stochastic mutation-based or synthesis-based APR).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。