Automating Deductive Verification for Weak-Memory Programs
Preprint
Abstract
Writing correct programs for weak memory models such as the C11 memory model is challenging because of the weak consistency guarantees these models provide. The first program logics for the verification of such programs have recently been proposed, but their usage has been limited thus far to manual proofs. Automating proofs in these logics via first-order solvers is non-trivial, due to reasoning features such as higher-order assertions, modalities and rich permission resources. In this paper, we provide the first implementation of a weak memory program logic using existing deductive verification tools. We tackle three recent program logics: Relaxed Separation Logic and two forms of Fenced Separation Logic, and show how these can be encoded using the Viper verification infrastructure. Many ingredients of our encoding are not specific to the particular logics tackled, and we explain the general techniques applied. We evaluate the encoding on examples from existing papers and on code from an open-source library.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- Implicit dynamic framesACM Transactions on Programming Languages and Systems, 2012
- The Relationship between Separation Logic and Implicit Dynamic Frames2011
- A Basis for Verifying Multi-threaded Programs2009
- VCC: A Practical System for Verifying Concurrent C2009
- Separation logic: a logic for shared mutable data structures2003
- Checking Interference with Fractional Permissions2003