arXiv · 2505.14092
Verifying Tree-Manipulating Programs via CHCs
Abstract
Programs that manipulate tree-shaped data structures often require complex, specialized proofs that are difficult to generalize and automate. This paper introduces a unified, foundational approach to verifying such programs. Central to our approach is the knitted-tree encoding, modeling each program execution as a tree structure capturing input, output, and intermediate states. Leveraging the compositional nature of knitted-trees, we encode these structures as constrained Horn clauses (CHCs), reducing verification to CHC satisfiability task. To illustrate our approach, we focus on memory safety and show how it naturally leads to simple, modular invariants.
Explore related subjects
Keep this discovery
Marco Faella, Gennaro Parlato. 2025-05-20. Verifying Tree-Manipulating Programs via CHCs. https://arxiv.org/abs/2505.14092
Cite the original work for its findings. Save a collection to share your selection of sources.