1. Quality Evaluation Method of Automatic Software Repair Using Syntax Distance Metrics
- Author
-
Yukun Dong, Daolong Tang, Xiaotong Cheng, and Yufei Yang
- Subjects
automatic program repair ,program patch ,quality evaluation ,patch ranking ,syntax distance ,Mathematics ,QA1-939 - 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.
- Published
- 2022
- Full Text
- View/download PDF