Abstract
We revisit the performance of template-based APR to build comprehensive knowledge about the effectiveness of fix patterns, and to highlight the importance of complementary steps such as fault localization or donor code retrieval. To that end, we first investigate the literature to collect, summarize and label recurrently-used fix patterns. Based on the investigation, we build TBar, a straightforward APR tool that systematically attempts to apply these fix patterns to program bugs. We thoroughly evaluate TBar on the De-fects4J benchmark. In particular, we assess the actual qualitative and quantitative diversity of fix patterns, as well as their effectiveness in yielding plausible or correct patches. Eventually, we find that, assuming a perfect fault localization, TBar correctly/plausibly fixes 74/101 bugs. Replicating a standard and practical pipeline of APR assessment, we demonstrate that TBar correctly fixes 43 bugs from Defects4J, an unprecedented performance in the literature (including all approaches, i.e., template-based, stochastic mutation-based or synthesis-based APR).
| Original language | English |
|---|---|
| Title of host publication | ISSTA 2019 - Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis |
| Editors | Dongmei Zhang, Anders Moller |
| Publisher | Association for Computing Machinery, Inc |
| Pages | 43-54 |
| Number of pages | 12 |
| ISBN (Electronic) | 9781450362245 |
| DOIs | |
| Publication status | Published - 2019 Jul 10 |
| Externally published | Yes |
| Event | 28th ACM SIGSOFT International Symposium on Software Testing and Analysis, ISSTA 2019 - Beijing, China Duration: 2019 Jul 15 → 2019 Jul 19 |
Publication series
| Name | ISSTA 2019 - Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis |
|---|
Conference
| Conference | 28th ACM SIGSOFT International Symposium on Software Testing and Analysis, ISSTA 2019 |
|---|---|
| Country/Territory | China |
| City | Beijing |
| Period | 19/7/15 → 19/7/19 |
Bibliographical note
Publisher Copyright:© 2019 Association for Computing Machinery.
Keywords
- Automated program repair
- Empirical assessment
- Fix pattern
ASJC Scopus subject areas
- Computational Theory and Mathematics
- Computer Science Applications
- Software
Fingerprint
Dive into the research topics of 'TBAR: Revisiting template-based automated program repair'. Together they form a unique fingerprint.Cite this
- APA
- Standard
- Harvard
- Vancouver
- Author
- BIBTEX
- RIS