Automating Program Verification and Repair Using Invariant Analysis and Test-input Generation. Nguyen, T. Ph.D. Thesis, University of New Mexico, August, 2014.
Automating Program Verification and Repair Using Invariant Analysis and Test-input Generation [pdf]Paper  Automating Program Verification and Repair Using Invariant Analysis and Test-input Generation [pdf]Slides  Automating Program Verification and Repair Using Invariant Analysis and Test-input Generation [link]Code  abstract   bibtex   3 downloads  
Software bugs are a persistent feature of daily life---crashing web browsers, allowing cyberattacks, and distorting the results of scientific computations. One approach to improving software uses program invariants---mathematical descriptions of program behaviors---to verify code and detect bugs. Current invariant generation techniques lack support for complex yet important forms of invariants, such as general polynomial relations and properties of arrays. As a result, we lack the ability to conduct precise analysis of programs that use this popular data structure. This dissertation presents DIG, a static and dynamic analysis framework for discovering several useful classes of program invariants, including: nonlinear polynomial relations, which are fundamental to many scientific applications; disjunctive invariants, which express branching behaviors in programs; and properties about multi-dimensional arrays, which appear in many practical applications. We describe theoretical and empirical results showing that DIG can efficiently and accurately find many important invariants in real-world uses, e.g., polynomial properties in numerical algorithms and array relations in a full AES encryption implementation. Automatic program verification and synthesis are long-standing problems in computer science. However, there has been a lot of work on program verification and less so on program synthesis. Consequently, important synthesis tasks, e.g., generating program repairs, remain difficult and time-consuming. This dissertation proves that certain formulations of verification and synthesis are equivalent, allowing for direct application of techniques and tools between these two research areas. Based on these ideas, we develop CETI, a tool that leverages existing verification techniques and tools for automatic program repair. Preliminary studies show that CETI can have higher success rates than many other standard program repair methods.

Downloads: 3