pith. machine review for the scientific record. sign in

arxiv: 0904.4902 · v2 · submitted 2009-04-30 · 💻 cs.LO · cs.PL

Recognition: unknown

Simulating reachability using first-order logic with applications to verification of linked data structures

Authors on Pith no claims yet
classification 💻 cs.LO cs.PL
keywords reachabilityfirst-orderdestructivelinkedlogicmainmark-and-sweepmethods
0
0 comments X
read the original abstract

This paper shows how to harness existing theorem provers for first-order logic to automatically verify safety properties of imperative programs that perform dynamic storage allocation and destructive updating of pointer-valued structure fields. One of the main obstacles is specifying and proving the (absence) of reachability properties among dynamically allocated cells. The main technical contributions are methods for simulating reachability in a conservative way using first-order formulas--the formulas describe a superset of the set of program states that would be specified if one had a precise way to express reachability. These methods are employed for semi-automatic program verification (i.e., using programmer-supplied loop invariants) on programs such as mark-and-sweep garbage collection and destructive reversal of a singly linked list. (The mark-and-sweep example has been previously reported as being beyond the capabilities of ESC/Java.)

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.