Automatic termination proofs for programs with shape-shifting heaps

  • Authors:
  • Josh Berdine;Byron Cook;Dino Distefano;Peter W. O'Hearn

  • Affiliations:
  • Microsoft Research;Microsoft Research;Queen Mary, University of London;,Microsoft Research

  • Venue:
  • CAV'06 Proceedings of the 18th international conference on Computer Aided Verification
  • Year:
  • 2006

Quantified Score

Hi-index 0.02

Visualization

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 formulæ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.