Automatic patch generation by learning correct code
Fan Long, Martin Rinard · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · 2016
We present Prophet, a novel patch generation system that works with a set of successful human patches obtained from open- source software repositories to learn a probabilistic, application-independent model of correct code. It generates a space of candidate patches, uses the model to rank the candidate patches in order of likely correctness, and validates the ranked patches against a suite of test cases to find correct patches. Experimental results show that, on a benchmark set of 69 real-world defects drawn from eight open-source projects, Prophet significantly outperforms the previous state-of-the-art patch generation system.
Cited by 481 works. doi:10.1145/2837614.2837617 Open-access PDF
Authors
References
- Simplifying and isolating failure-inducing input
- Automatically finding patches using genetic programming
- Enhancing server availability and security through failure-oblivious computing
- DieHard
- Automatically patching errors in deployed software
- Automatic patch generation learned from human-written patches
- SemFix: program repair via semantic analysis
- DieHard
- Predicting Program Properties from "Big Code"
- An analysis of patch plausibility and correctness for generate-and-validate patch generation systems