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

自动生成补丁的验证:开胃菜

Validation of Automatically Generated Patches: An Appetizer

Ali Ghanbari

摘要:

在基于测试用例的自动程序修复(APR)中,研究界将通过所有测试用例但未能实际修复错误测试用例的补丁称为过拟合补丁。目前,过拟合补丁必须由用户手动检查。作为一个劳动密集型的活动,阻碍了广泛采用的APR工具,自动验证APR生成的补丁一直是近年来的研究课题。在本文中,我们指出了现有的技术/方法的局限性,需要进一步的研究,并介绍了有效的自动补丁验证的两个有前途的方向:(1)动机的相对有效性的反模式,我们建议使用统计技术,以避免应用一些反模式规则的不可计算性和自动化的技术。我们的结果表明,我们达到至少57%的精度。(2)我们提出了一个半自动的技术,帮助程序员在寻找修补方法的属性和压力测试的补丁,这些属性的基础上,以过滤出过拟合的尽可能多的建议。

英文摘要:

In the context of test case based automated program repair (APR), the research community call the patches that pass all the test cases but fail to actually fix the bug test case overfitted patches. Currently, overfitted patches has to be manually inspected by the users. Being a labor intensive activity that hinders widespread adoption of APR tools, automatic validation of APR-generated patches has been the topic of research in recent years. In this paper, we point out the limitations of the existing techniques/methodologies that call for further research, and introduce two promising directions toward effective automatic patch validation: (1) motivated by the relative effectiveness of anti-patterns, we propose to use statistical techniques to avoid the uncomputability of applying some of the anti-pattern rules and automate the technique. Our results show that we achieve at least 57% precision. (2) We present a proposal for a semi-automatic technique that helps the programmers in finding properties of the patched methods and stress testing the patches based on those properties so as to filter out overfitted ones as many as possible.

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

↑