Predicate abstraction for software verification
Cormac Flanagan A, Shaz Qadeer · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · 2002
Software verification is an important and difficult problem. Many static checking techniques for software require annotations from the programmer in the form of method specifications and loop invariants. This annotation overhead, particularly of loop invariants, is a significant hurdle in the acceptance of static checking. We reduce the annotation burden by inferring loop invariants automatically.Our method is based on predicate abstraction, an abstract interpretation technique in which the abstract domain is constructed from a given set of predicates over program variables. A novel feature of our approach is that it infers universally-quantified loop invariants, which are crucial for verifying programs that manipulate unbounded data such as arrays. We present heuristics for generating appropriate predicates for each loop automatically; the programmer can specify additional predicates as well. We also present an efficient algorithm for computing the abstraction of a set of states in terms of a collection of predicates.Experiments on a 44KLOC program show that our approach can automatically infer the necessary predicates and invariants for all but 31 of the 396 routines that contain loops.
Cited by 284 works. doi:10.1145/503272.503291
Authors
References
- Graph-Based Algorithms for Boolean Function Manipulation
- A Discipline of Programming
- Abstract interpretation
- The Temporal Logic of Reactive and Concurrent Systems
- Frangipani
- Automatic discovery of linear restraints among variables of a program
- The Temporal Logic of Reactive and Concurrent Systems: Specification
- Construction of abstract state graphs with PVS
- Extended static checking
- Counterexample-Guided Abstraction Refinement