Types, bytes, and separation logic
Harvey Tuch, Gerwin Klein, Michael Norrish · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · 2007
We present a formal model of memory that both captures the low-level features of C's pointers and memory, and that forms the basis for an expressive implementation of separation logic. At the low level, we do not commit common oversimplifications, but correctly deal with C's model of programming language values and the heap. At the level of separation logic, we are still able to reason abstractly and efficiently. We implement this framework in the theorem prover Isabelle/HOL and demonstrate it on two case studies. We show that the divide between detailed and abstract does not impose undue verification overhead, and that simple programs remain easy to verify. We also show that the framework is applicable to real, security- and safety-critical code by formally verifying the memory allocator of the L4 microkernel.
Cited by 98 works. doi:10.1145/1190216.1190234
Authors
References
- Automatically Validating Temporal Safety Properties of Interfaces
- Parametric shape analysis via 3-valued logic
- BI as an assertion language for mutable data structures
- Specification and verification of the UCLA Unix security kernel
- The pointer assertion logic engine
- Some Techniques for Proving Correctness of Programs which Alter Data Structures
- CCured: type-safe retrofitting of legacy software
- Multi-prover Verification of C Programs
- A Decidable Fragment of Separation Logic
- Kit: a study in operating system verification