Identifying Patch Correctness in Test-Based Program Repair

Yingfei Xiong, Xinyuan Liu, Muhan Zeng, Lu Zhang, Gang Huang
6/28/2017
214 citations
cs.SE

Official code: Ultimanecat/DefectRepairing (20 stars, Java, last commit 2020-02-17).

Abstract

Test-based automatic program repair has attracted a lot of attention in recent years. However, the test suites in practice are often too weak to guarantee correctness and existing approaches often generate a large number of incorrect patches.

Show full abstract

To reduce the number of incorrect patches generated, we propose a novel approach that heuristically determines the correctness of the generated patches. The core idea is to exploit the behavior similarity of test case executions. The passing tests on original and patched programs are likely to behave similarly while the failing tests on original and patched programs are likely to behave differently. Also, if two tests exhibit similar runtime behavior, the two tests are likely to have the same test results. Based on these observations, we generate new test inputs to enhance the test suites and use their behavior similarity to determine patch correctness. Our approach is evaluated on a dataset consisting of 139 patches generated from existing program repair systems including jGenProg, Nopol, jKali, ACS and HDRepair. Our approach successfully prevented 56.3\% of the incorrect patches to be generated, without blocking any correct patches.

View on arXivView PDF

Code Implementations(1)

A tool for identifying patch correctness in test-based program repair

2013Java, PerlJul 30, 20166 years ago

Similar Papers

Cite this paper

@article{xiong2017identifying,
  title  = {Identifying Patch Correctness in Test-Based Program Repair},
  author = {Yingfei Xiong and Xinyuan Liu and Muhan Zeng and Lu Zhang and Gang Huang},
  year   = {2017},
  eprint = {1706.09120},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1706.09120}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1706.09120.svg)](https://codeofpaper.com/paper/1706.09120)

Discussion