DeepFix: Fixing Common C Language Errors by Deep Learning

By Rahul Gupta, Soham Pal, Aditya Kanade, Shirish K. Shevade. 2017

549 citations recorded by the source corpus.

The problem of automatically fixing programming errors is a very active research topic in software engineering. This is a challenging problem as fixing even a single error may require analysis of the entire program. In practice, a number of errors arise due to programmer's inexperience with the programming language or lack of attention to detail. We call these common programming errors. These are analogous to grammatical errors in natural languages. Compilers detect such errors, but their error messages are usually inaccurate. In this work, we present an end-to-end solution, called DeepFix, that can fix multiple such errors in a program without relying on any external tool to locate or fix them. At the heart of DeepFix is a multi-layered sequence-to-sequence neural network with attention which is trained to predict erroneous program locations along with the required correct statements. On a set of 6971 erroneous C programs written by students for 93 programming tasks, DeepFix could fix 1881 (27%) programs completely and 1338 (19%) programs partially.

Subfields: Computer Networks and Communications, Information Systems, Software, Program Analysis & Verification

How researchers see this paper

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

In Computer Networks and Communications

  1. Rishabh Singh
  2. Percy Liang
  3. Michael Pradel
  4. Michihiro Yasunaga
  5. Pushmeet Kohli
  6. Koushik Sen
  7. Charles Sutton
  8. Tien Nhut Nguyen

In Information Systems

  1. Charles Sutton
  2. Percy Liang
  3. Rishabh Singh
  4. Miltiadis Allamanis
  5. Michael Pradel
  6. Michihiro Yasunaga
  7. Koushik Sen
  8. Tien Nhut Nguyen

In Software

  1. Michael Pradel
  2. Rishabh Singh
  3. Koushik Sen
  4. Charles Sutton
  5. Percy Liang
  6. Michihiro Yasunaga
  7. Miltiadis Allamanis
  8. Lingming Zhang

In Program Analysis & Verification

  1. Charles Sutton
  2. Michael Pradel
  3. Aditya Kanade
  4. Rishabh Singh
  5. Petros Maniatis
  6. Percy Liang
  7. Miltiadis Allamanis
  8. Michihiro Yasunaga

Citations in the corpus