Sound and Complete Invariant-Based Heap Encodings

Read full text
Authors: Zafer Esen, Philipp Rümmer, Tjark Weber
Cited by: 0

Abstract

Verification of programs operating on heap-allocated data structures, for instance lists or trees, poses significant challenges due to the potentially unbounded size of such data structures. We present time-indexed heap invariants , a novel invariant-based heap encoding leveraging uninterpreted predicates and prophecy variables to reduce verification of heap-manipulating programs to verification of programs over integers only. Our encoding of heap is general and agnostic to specific data structures. To the best of our knowledge, our approach is the first heap invariant-based method that achieves both soundness and completeness. We provide formal proofs establishing the correctness of our encodings. Through an experimental evaluation, we demonstrate that time-indexed heap invariants significantly extend the capability of existing verification tools, allowing automatic verification of programs with heap that were previously out of reach for state-of-the-art tools.

Fields of Study & Subjects

Music Technology and Sound Studies Speech and Audio Processing

Publication details

Journal / source
Proceedings of the ACM on Programming Languages
Volume
10
Issue
OOPSLA1
Pages
794–822
Publication date
10 April 2026
Language
EN