Quality Evaluation Method of Automatic Software Repair Using Syntax Distance Metrics

Author:

Dong Yukun1ORCID,Tang Daolong1,Cheng Xiaotong1,Yang Yufei1

Affiliation:

1. College of Computer Science and Technology, China University of Petroleum, Qingdao 266580, China

Abstract

In recent years, test-based automatic program repair has attracted widespread attention. However, the test suites in practice are not perfect ways to guarantee the correctness of patches generated by repair tools, and weak test suites lead to a large number of incorrect patches produced by the existing repair tool. To reduce the number of incorrect patches generated by repair tools, we propose a patch quality evaluation method based on syntax distance metrics, which measures the syntax distance of patches through four evaluation features—variable, expression, structure, and repair location. By fusing the distance values of the four features, the quality of a patch can be evaluated. Our method evaluates 368 patches from multiple famous repair tools, such as jKali, Nopol, SimFix, DynaMoth, and CapGen; 95% of the correct patches were ranked in the top one of the plausible patches for each defect, which indicates our method can find high-quality patches.

Funder

Natural Foundation of Shandong Province

Fundamental Research Funds for the Central Universities

Major Scientific and Technological Projects of CNPC

Publisher

MDPI AG

Subject

Physics and Astronomy (miscellaneous),General Mathematics,Chemistry (miscellaneous),Computer Science (miscellaneous)

Reference38 articles.

1. Nilizadeh, A. (2022, January 4–14). Automated Program Repair and Test Overfitting: Measurements and Approaches using Formal Methods. Proceedings of the 2022 IEEE Conference on Software Testing, Verification and Validation, Valencia, Spain.

2. Gao, X., Wang, B., Duck, G.J., Ji, R., Xiong, Y., and Roychoudhury, A. (2021). ACM Transactions on Software Engineering and Methodology, Association for Computing Machinery.

3. Yi, J., and Ismayilzada, E. (2022). Speeding up constraint-based program repair using a search-based technique. Inf. Softw. Technol., 146.

4. Xiong, Y., Liu, X., Zeng, M., Lu, Z., and Gang, H. (June, January 27). Identifying patch correctness in test-based program repair. Proceedings of the 40th International Conference on Software Engineering, Gothenburg, Sweden.

5. Restore: Retrospective Fault Localization Enhancing Automated Program Repair;Xu;IEEE Trans. Softw. Eng.,2022

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3