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

程序缩减对自动程序修复的影响

The Impact of Program Reduction on Automated Program Repair

Linas Vidziunas, David Binkley, Leon Moonen

AI总结:

本文提出利用程序切片缩减无关代码以提升自动程序修复的可扩展性,并在Defects4J上验证其可将TBar的中位修复时间从80分钟降至18分钟以内,同时保持修复质量。

摘要:

使用现代自动程序修复(APR)纠正错误可能既耗时又耗费资源。我们描述了一种旨在提高现代APR工具可扩展性的程序修复方法。该方法利用程序缩减中的程序切片技术来消除与修复错误无关的代码,从而提高APR工具的整体性能。我们研究了切片对修复过程所有三个阶段的影响:故障定位、补丁生成和补丁验证。我们的实证探索发现,所提出的方法平均而言增强了TBar APR工具的修复能力,但我们也发现了一些不太成功的案例。具体来说,在广泛使用的Defects4J数据集的示例上,我们获得了中位修复时间的大幅缩短,从80分钟降至略低于18分钟。我们得出结论,程序缩减可以在不降低修复质量的情况下提高APR的性能,但这种改进并非普遍适用。复现包可通过Zenodo获取,地址为https://doi.org/10.5281/zenodo.13074333。

英文摘要:

Correcting bugs using modern Automated Program Repair (APR) can be both time-consuming and resource-expensive. We describe a program repair approach that aims to improve the scalability of modern APR tools. The approach leverages program reduction in the form of program slicing to eliminate code irrelevant to fixing the bug, which improves the APR tool's overall performance. We investigate slicing's impact on all three phases of the repair process: fault localization, patch generation, and patch validation. Our empirical exploration finds that the proposed approach, on average, enhances the repair ability of the TBar APR tool, but we also discovered a few cases where it was less successful. Specifically, on examples from the widely used Defects4J dataset, we obtain a substantial reduction in median repair time, which falls from 80 minutes to just under 18 minutes. We conclude that program reduction can improve the performance of APR without degrading repair quality, but this improvement is not universal. A replication package is available via Zenodo at https://doi.org/10.5281/zenodo.13074333. Keywords: automated program repair, dynamic program slicing, fault localization, test-suite reduction, hybrid techniques.

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

↑