缺陷可以用弱测试套件修复吗?Defects4J 50例缺陷分析
Can defects be fixed with weak test suites? An analysis of 50 defects from Defects4J
摘要:
自动程序修复技术,其目标是自动生成正确的补丁,为现实世界的缺陷,在过去的十年中,得到了很多的关注。已经提出和开发了许多不同的技术和工具。然而,即使是最复杂的程序修复技术也只能修复一小部分缺陷,同时产生大量不正确的补丁。这种低性能的一个可能原因是,真实世界程序的测试套件通常太弱,无法保证程序的行为。为了了解弱测试套件可以在多大程度上修复缺陷,我们分析了来自Defects4J的50个真实世界的缺陷,其中我们发现高达84%的缺陷可以被正确修复。这一结果表明,目前的自动程序修复技术有很大的改进空间。此外,我们总结了七个故障定位策略和七个补丁生成策略,是有用的定位和修复这些缺陷,并比较这些策略与当前的修复技术。研究结果表明,在未来的研究中,提高自动程序修复的潜在方向。
英文摘要:
Automated program repair techniques, which target to generating correct patches for real world defects automatically, have gained a lot of attention in the last decade. Many different techniques and tools have been proposed and developed. However, even the most sophisticated program repair techniques can only repair a small portion of defects while producing a lot of incorrect patches. A possible reason for this low performance is that the test suites of real world programs are usually too weak to guarantee the behavior of the program. To understand to what extent defects can be fixed with weak test suites, we analyzed 50 real world defects from Defects4J, in which we found that up to 84% of them could be correctly fixed. This result suggests that there is plenty of space for current automated program repair techniques to improve. Furthermore, we summarized seven fault localization strategies and seven patch generation strategies that were useful in localizing and fixing these defects, and compared those strategies with current repair techniques. The results indicate potential directions to improve automatic program repair in the future research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。