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

ObjSim:基于对象相似性的轻量级自动补丁优先级划分

ObjSim: Lightweight Automatic Patch Prioritization via Object Similarity

Ali Ghanbari

摘要:

在基于测试用例的自动程序修复(APR)中,通过所有测试用例但未能修复错误的补丁被称为过拟合补丁。目前,APR工具生成的补丁由用户手动检查,以找到并采用真正的修复程序。作为一个费力的活动,阻碍了广泛采用的APR,自动识别过拟合补丁最近一直是积极的研究课题。本文介绍了ObjSim的工程细节:一个全自动的,轻量级的基于相似性的补丁优先级工具,基于JVM的语言。该工具的工作原理是比较修补之前和之后修补方法的出口点处的系统状态,并优先考虑导致状态与原始未修补版本在通过测试时更相似而在失败时不太相似的补丁。我们对最近APR工具PraPR为Defects4J v1.4.0中可修复的错误生成的补丁进行了实验,结果表明ObjSim将16.67%以上的真正修复优先级排在第一位。该工具的演示视频位于https://bit.ly/2K8gnYV。

英文摘要:

In the context of test case based automatic program repair (APR), patches that pass all the test cases but fail to fix the bug are called overfitted patches. Currently, patches generated by APR tools get inspected manually by the users to find and adopt genuine fixes. Being a laborious activity hindering widespread adoption of APR, automatic identification of overfitted patches has lately been the topic of active research. This paper presents engineering details of ObjSim: a fully automatic, lightweight similarity-based patch prioritization tool for JVM-based languages. The tool works by comparing the system state at the exit point(s) of patched method before and after patching and prioritizing patches that result in state that is more similar to that of original, unpatched version on passing tests while less similar on failing ones. Our experiments with patches generated by the recent APR tool PraPR for fixable bugs from Defects4J v1.4.0 show that ObjSim prioritizes 16.67% more genuine fixes in top-1 place. A demo video of the tool is located at https://bit.ly/2K8gnYV.

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

↑