Back to Search
Start Over
Priority Measurement of Patches for Program Repair Based on Semantic Distance
- Source :
- Symmetry, Vol 12, Iss 2102, p 2102 (2020), Symmetry; Volume 12; Issue 12; Pages: 2102
- Publication Year :
- 2020
- Publisher :
- MDPI AG, 2020.
-
Abstract
- Automated program repair is an effective way to ensure software quality and improve software development efficiency. At present, there are many methods and tools of automated program reapir in real world, but most of them have low repair accuracy, resulting in a large number of incorrect patches in the generated patches. To solve this problem, we propose a patch quality evaluation method based on semantic distance, which measures the semantic distance of patches by using features of interval distance, output coverage, and path matching. For each evaluation feature, we give a quantitative formula to obtain a specific distance value and use the distance to calculate the recommended patch value to measure the quality of the patch. Our quality evaluation method evaluated 279 patches from previous program repair tools, including Nopol, DynaMoth, ACS, jGenProg, and CapGen. This quality evaluation method successfully arranged the correct patches before the plausible but incorrect patches, and it recommended the higher-ranked patches to users first. On this basis, we compared our evaluation method with the existing evaluation methods and judged the evaluation ability of each feature. We showed that our proposed patch quality evaluation method can improve the repair accuracy of repair tools.
- Subjects :
- Matching (statistics)
Physics and Astronomy (miscellaneous)
Computer science
General Mathematics
media_common.quotation_subject
02 engineering and technology
Interval (mathematics)
computer.software_genre
Semantic similarity
automated program repair
020204 information systems
0202 electrical engineering, electronic engineering, information engineering
Computer Science (miscellaneous)
Quality (business)
semantic distance
patch quality evaluation
patch ranking
media_common
business.industry
lcsh:Mathematics
Software development
020207 software engineering
lcsh:QA1-939
Software quality
Chemistry (miscellaneous)
Feature (computer vision)
Path (graph theory)
Data mining
business
computer
Subjects
Details
- Language :
- English
- ISSN :
- 20738994
- Volume :
- 12
- Issue :
- 2102
- Database :
- OpenAIRE
- Journal :
- Symmetry
- Accession number :
- edsair.doi.dedup.....1e252866731c5fabe68f042101f3b50a