From Program Synthesis to Program Reachability: Automatic Program Repair using Test Input Generation. Nguyen, T., Kapur, D., Weimer, W., & Forrest, S. In Foundation of Software Engineering, submitted, 2014. IEEE.
From Program Synthesis to Program Reachability: Automatic Program Repair using Test Input Generation [link]Code  From Program Synthesis to Program Reachability: Automatic Program Repair using Test Input Generation [pdf]Paper  abstract   bibtex   2 downloads  
Program synthesis, which automatically generates code to meet required specifications, is a practical problem with growing interest due to the pressing demand for more reliable software. Program reachability, which decides if a program location is reachable, is a classical and well-studied problem in computer science. In this paper, we present a constructive proof that certain formulations of these two problems are equivalent. We transform a program synthesis problem into a program consisting of a special location, reachable only when code could be generated for the original problem. Conversely, we show that a reachability query can be encoded as a synthesis problem, where a successful synthesis indicates the reachability of the target location. These results demonstrate a link between the two problems and thus allow for the application of ideas between subfields that were previously considered separately. Based on these ideas, we develop an algorithm for automated program repair (a synthesis problem) using test input generation techniques (which solve reachability problems). We transform a buggy program and a test suite defining its expected behaviors into a specific program containing a location reachable only when the original program can be repaired. The transformed program is then sent to an off-the-shelf test input generation tool to find test values that can reach the desired location. Those test values correspond exactly to fixes for the original program. Preliminary case studies suggest that this method can have higher success rates than many other standard methods.

Downloads: 2