Automatic patch generation by learning correct code

By Fan Long, Martin C. Rinard. 2016

604 citations recorded by the source corpus.

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.

Subfields: Information Systems, Software

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. Michael Pradel
  2. Rishabh Singh
  3. Charles Sutton
  4. Michele Tufano
  5. Aditya Kanade
  6. Denys Poshyvanyk
  7. Miltiadis Allamanis
  8. Koushik Sen

In Software

  1. Rishabh Singh
  2. Michael Pradel
  3. Pushmeet Kohli
  4. Aditya Kanade
  5. Lingming Zhang
  6. Chun Xia
  7. Michele Tufano
  8. Tien Nhut Nguyen

Citations in the corpus