{"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%.