ACM SIGPLAN Notices · 1997 · 10 citations · 13 references
ComputingComputer ScienceFormal MethodsProgramming LanguagesTheory Of ComputationAbstract Syntax TreesData-flow AnalysisDeductive VerificationPredicate LogicRecursion TheoryType CheckingCounterexample ConstructionCounterexample GenerationHoare TriplesInvariantsLoop InvariantsMonadic Second-order LogicPointer AnalysisPointer Arithmetic
We present a technique for automatic verification of pointer programs based on a decision procedure for the monadic second-order logic on finite strings.We are concerned with a while-fragment of Pascal, which includes recursively-defined pointer structures but excludes pointer arithmetic.We define a logic of stores with interesting basic predicates such as pointer equality, tests for nil pointers, and garbage cells, as well as reachability along pointers.We present a complete decision procedure for Hoare triples based on this logic over loop-free code. Combined with explicit loop invariants, the decision procedure allows us to answer surprisingly detailed questions about small but non-trivial programs. If a program fails to satisfy a certain property, then we can automatically supply an initial store that provides a counterexample.Our technique had been fully and efficiently implemented for linear linked lists, and it extends in principle to tree structures. The resulting system can be used to verify extensive properties of smaller pointer programs and could be particularly useful in a teaching environment.
13
Graph-Based Algorithms for Boolean Function Manipulation
Bryant · IEEE Transactions on Computers · 1986 · 8.9K citations · Full text
Efficient context-sensitive pointer analysis for C programs
Robert P. Wilson, Monica S. Lam · 1995 · 458 citations · Full text
A safe approximate algorithm for interprocedural aliasing
William Landi, Barbara G. Ryder · 1992 · 335 citations · Full text
Interprocedural may-alias analysis for pointers
Alain Deutsch · 1994 · 326 citations