Automatic termination proofs for programs with shape-shifting heaps

Automatic termination proofs for programs with shape-shifting heaps

by Josh Berdine, Byron Cook, Dino Distefano, and Peter W. O'Hearn
Abstract. We describe a new program termination analysis designed to handle imperative programs whose termination depends on the mutation of the program's heap. We first describe how an abstract interpretation can be used to construct a finite number of relations which, if each is well-founded, implies termination. We then give an abstract interpretation based on separation logic formula which tracks the depths of pieces of heaps. Finally, we combine these two techniques to produce an automatic termination prover. We show that the analysis is able to prove the termination of loops extracted from Windows device drivers that could not be proved terminating before by other means; we also discuss a previously unknown bug found with the analysis.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Become an editor and post to

Become an editor and post to the homepage!