TBar: revisiting template-based automated program repair

By Kui Liu, Anil Koyuncu, Dongsun Kim, Tégawendé F. Bissyandé. International Symposium on Software Testing and Analysis, 2019

438 citations recorded by the source corpus.

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 Defects4J 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).

Subfields: Information Systems, Software

View Paper: https://www.semanticscholar.org/paper/3c9b9664ca8cbbd17f5153997c276b0ce5c4f3bd

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Information Systems

  1. Chun Xia
  2. Lingming Zhang
  3. Yinlin Deng
  4. Tien Nhut Nguyen
  5. Soren Dunn
  6. Shaohua Wang
  7. Yi Li
  8. Hung Viet Pham

In Software

  1. Chun Xia
  2. Lingming Zhang
  3. Yinlin Deng
  4. Soren Dunn
  5. Tien Nhut Nguyen
  6. Shaohua Wang
  7. Yi Li
  8. Hung Viet Pham

Citations in the corpus