pith. sign in

arxiv: 1410.5088 · v1 · pith:NOOVEOQVnew · submitted 2014-10-19 · 💻 cs.LO

Propositional Reasoning about Safety and Termination of Heap-Manipulating Programs

classification 💻 cs.LO
keywords safetyterminationlistsprogramssingly-linkedargumentsarithmeticcyclic
0
0 comments X
read the original abstract

This paper shows that it is possible to reason about the safety and termination of programs handling potentially cyclic, singly-linked lists using propositional reasoning even when the safety invariants and termination arguments depend on constraints over the lengths of lists. For this purpose, we propose the theory SLH of singly-linked lists with length, which is able to capture non-trivial interactions between shape and arithmetic. When using the theory of bit-vector arithmetic as a background, SLH is efficiently decidable via a reduction to SAT. We show the utility of SLH for software verification by using it to express safety invariants and termination arguments for programs manipulating potentially cyclic, singly-linked lists with unrestricted, unspecified sharing. We also provide an implementation of the decision procedure and use it to check safety and termination proofs for several heap-manipulating programs.

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.