arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.16225cs.SE
收藏

论动态约简技术在自动化程序修复中的有效性

On The Effectiveness of Dynamic Reduction Techniques in Automated Program Repair

Omar I. Al-Bataineh

AI总结:

针对自动化程序修复处理大规模工业级缺陷程序耗时耗资源的问题,提出集成ORBS观测切片的修复框架,通过程序约简优化修复全流程,在Defects4J数据集上实现性能提升且不降低修复质量。

摘要:

使用当前的自动化程序修复(APR)方法修复大规模有缺陷程序是一项耗时的操作,需要大量计算资源。我们提出了一种程序修复框架,可有效处理具有工业级复杂度的大规模有缺陷程序。该框架利用程序切片形式的程序约简,消除与待修复缺陷无关的代码部分,且不会对修复系统生成正确补丁的能力产生负面影响。\n基于观测的切片是一种新近提出的、与语言无关的切片技术,在各类应用中均展现出良好效果。在本研究中,我们展示了如何将ORBS(基于观测的切片)与APR有效集成,以改善修复流程的所有环节,包括缺陷定位步骤、补丁生成步骤和补丁验证步骤。所提出的修复框架通过降低测试套件的执行成本,以及搜索与待修复缺陷对应的故障语句的搜索成本,切实增强了APR的能力。我们在广泛使用的Defects4J数据集上的实证结果表明,该方法可大幅提升性能,且不会降低修复质量。

英文摘要:

Repairing a large-scale buggy program using current automated program repair (APR) approaches can be a time-consuming operation that requires significant computational resources. We describe a program repair framework that effectively handles large-scale buggy programs of industrial complexity. The framework exploits program reduction in the form of program slicing to eliminate parts of the code irrelevant to the bug being repaired without adversely affecting the capability of the repair system in producing correct patches. Observation-based slicing is a recently introduced, language-independent slicing technique that shows a good effectiveness in a wide range of applications. In this work, we show how ORBS can be effectively integrated with APR to improve all aspects of the repair process including the fault localization step, patch generation step, and patch validation step. The presented repair framework indeed enhances the capability of APR by reducing the execution cost of a test suite and the search cost for the appropriate faulty statement corresponding to the bug being repair. Our empirical results on the widely used Defects4J dataset reveal that a substantial improvement in performance can be obtained without any degradation in repair quality.

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

↑