Verified Symbolic Execution with Kripke Specification Monads (and no Meta-Programming) - Artifact
Authors/Creators
- 1. Vrije Universiteit Brussel
- 2. Newcastle University
- 3. KU Leuven
Description
Verifying soundness of symbolic execution-based program verifiers is a significant challenge. This is especially true if the resulting tool needs to be usable outside of the proof assistant, in which case we cannot rely on shallowly embedded assertion logics and meta-programming. The tool needs to manipulate deeply embedded assertions and it is crucial for efficiency to eagerly prune unreachable paths and simplify intermediate assertions, in a way that can be justified towards the soundness proof. Only a few such tools exist in the literature and their soundness proofs are intricate and hard to generalize or reuse. We contribute a novel, systematic approach for the construction and soundness proof of such a symbolic execution-based verifier. We first implement a verification condition generator as an object language interpreter in a specification monad, using an abstract interface featuring angelic and demonic nondeterminism. Next, we build a symbolic executor by implementing a similar interpreter, this time in a symbolic specification monad. This symbolic monad lives in a universe that is Kripke-indexed by variables in scope and a path condition. Finally, we relate the resulting symbolic executor with the concrete verification condition generator using a Kripke logical relation. We report on the practical application of these techniques in Katamaran, a tool for verifying security guarantees offered by instruction set architectures (ISAs). The tool is fully verified by combining our symbolic execution machinery with a soundness proof of the concrete verification conditions against an axiomatized separation logic, and an Iris-based implementation of the axioms, proven sound against the operational semantics. Based on our experience with Katamaran, we can report good results on practicality and efficiency of the tool, demonstrating practical viability of our symbolic execution approach.
Files
Files
(1.5 GB)
| Name | Size | Download all |
|---|---|---|
|
md5:95bb32a78b539834c667c1891f85ae40
|
219.3 kB | Download |
|
md5:a27b632e46350cb1ce5779e825bd9487
|
1.5 GB | Download |