Abstract
We present a new framework for verifying partial specifications of programs in order to catch type and memory errors and check data structure invariants. Our technique can verify a large class of data structures, namely all those that can be expressed as graph types. Earlier versions were restricted to simple special cases such as lists or trees. Even so, our current implementation is as fast as the previous specialized tools.
Programs are annotated with partial specifications expressed in Pointer Assertion Logic, a new notation for expressing properties of the program store. We work in the logical tradition by encoding the programs and partial specifications as formulas in monadic second-order logic. Validity of these formulas is checked by the MONA tool, which also can provide explicit counterexamples to invalid formulas.
To make verification decidable, the technique requires explicit loop and function call invariants. In return, the technique is highly modular: every statement of a given program is analyzed only once.
The main target applications are safety-critical data-type algorithms, where the cost of annotating a program with invariants is justified by the value of being able to automatically verify complex properties of the program.
Original language | English |
---|---|
Title of host publication | Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation |
Editors | Mary Lou Sofia |
Number of pages | 10 |
Volume | 36(5) |
Publisher | Association for Computing Machinery |
Publication date | 2001 |
Pages | 221-231 |
ISBN (Print) | 1-58113-414-2 |
DOIs | |
Publication status | Published - 2001 |
Event | Conference on Programming Language Design and Implementation. PLDI '01 - Snowbird, Utah, United States Duration: 20 Jun 2001 → 22 Jun 2001 Conference number: 15 |
Conference
Conference | Conference on Programming Language Design and Implementation. PLDI '01 |
---|---|
Number | 15 |
Country/Territory | United States |
City | Snowbird, Utah |
Period | 20/06/2001 → 22/06/2001 |