Symbolic MRD: Dynamic Memory, Undefined Behaviour, and Extrinsic Choice
Open Access
- 9 April 2025
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 9 (OOPSLA1) , 1858-1882
Abstract
We present the first thin-air free memory model that admits compiler optimisations that aggressively leverage knowledge from alias analysis, an assumption of freedom from undefined behaviour, and from the extrinsic choices of real implementations such as over-alignment. Our model has tooling support with state-of-the-art performance, executing a battery of tests orders of magnitude quicker than other executable thin-air free semantics. The model integrates with the C/C++ memory model through an exportable semantic dependency relation, it allows standard compilation mappings for atomics, and it matches all tests in the recently published desiderata for C/C++ from the ISO.Keywords
Funding Information
- Engineering and Physical Sciences Research Council (EP/X015076/1, EP/X021173/1, and EP/V000470/1)
This publication has 24 references indexed in Scilit:
- The Decidability of Verification under PS 2.02021
- PrideMM: Second Order Model Checking for Memory Consistency Models2020
- Modular Relaxed Dependencies in Weak Memory Concurrency2020
- Cerberus-BMC: A Principled Reference Semantics and Exploration Tool for Concurrent and Sequential C2019
- Portability Analysis for Weak Memory Models porthos: One Tool for all Models2017
- The Problem of Programming Language Concurrency Semantics2015
- Herding cats2014
- Understanding POWER multiprocessors2011
- Mathematizing C++ concurrency2011
- Z3: An Efficient SMT Solver2008