Interactive Patch Filtering via Test Generation

Quanjun Zhang, Xu Zhai, Shicheng Xu, Wanmin Huang, Jingui Zhang, Yaoming Fan
{"title":"Interactive Patch Filtering via Test Generation","authors":"Quanjun Zhang, Xu Zhai, Shicheng Xu, Wanmin Huang, Jingui Zhang, Yaoming Fan","doi":"10.1109/DSA56465.2022.00015","DOIUrl":null,"url":null,"abstract":"Automatic program repair (APR), which aims to fix software bugs without human intervention, is getting in-creasing attention from academic and industrial communities. Although promising outcomes regarding correctly-fixed bugs have been achieved recently, existing APR tools still suffer from the low accuracy of generated patches. In fact, it is fundamentally difficult to avoid generating incorrect patches due to the weak available test suite. In this paper, to improve the accuracy of patches generated by APR tools, we propose a novel HUman-machine interactive patch filterinG apprOach (HUGO) to help developers identify correct patches by generating additional test cases. We also implement the approach as an Eclipse plugin and evaluate the effectiveness and usefulness of the implementation. The results on the Defects4J dataset show that the proposed method can filter out 82.61 % of the incorrect patches, and improve the accuracy of patches by 25%.","PeriodicalId":208148,"journal":{"name":"2022 9th International Conference on Dependable Systems and Their Applications (DSA)","volume":"11 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 9th International Conference on Dependable Systems and Their Applications (DSA)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/DSA56465.2022.00015","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Automatic program repair (APR), which aims to fix software bugs without human intervention, is getting in-creasing attention from academic and industrial communities. Although promising outcomes regarding correctly-fixed bugs have been achieved recently, existing APR tools still suffer from the low accuracy of generated patches. In fact, it is fundamentally difficult to avoid generating incorrect patches due to the weak available test suite. In this paper, to improve the accuracy of patches generated by APR tools, we propose a novel HUman-machine interactive patch filterinG apprOach (HUGO) to help developers identify correct patches by generating additional test cases. We also implement the approach as an Eclipse plugin and evaluate the effectiveness and usefulness of the implementation. The results on the Defects4J dataset show that the proposed method can filter out 82.61 % of the incorrect patches, and improve the accuracy of patches by 25%.
通过测试生成的交互式补丁过滤
自动程序修复(APR)是一种在没有人为干预的情况下修复软件缺陷的技术,它越来越受到学术界和工业界的关注。虽然最近在正确修复错误方面取得了可喜的成果,但现有的APR工具仍然受到生成补丁的低准确性的影响。事实上,由于可用的测试套件较弱,从根本上很难避免生成不正确的补丁。为了提高APR工具生成的补丁的准确性,我们提出了一种新的人机交互补丁过滤方法(HUGO),通过生成额外的测试用例来帮助开发人员识别正确的补丁。我们还将该方法作为Eclipse插件实现,并评估该实现的有效性和有用性。在Defects4J数据集上的实验结果表明,该方法可以过滤掉82.61%的错误补丁,并将补丁的准确率提高25%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信