The reads-from equivalence for the TSO and PSO memory models
Truc Lam Bui, Krishnendu Chatterjee, Tushar Gautam, Andreas Pavlogiannis, Viktor Toman
Abstract
The verification of concurrent programs remains an open challenge due to the non-determinism in inter-process communication. One recurring algorithmic problem in this challenge is the consistency verification of concurrent executions. In particular, consistency verification under a reads-from map allows to compute the reads-from (RF) equivalence between concurrent traces, with direct applications to areas such as Stateless Model Checking (SMC). Importantly, the RF equivalence was recently shown to be coarser than the standard Mazurkiewicz equivalence, leading to impressive scalability improvements for SMC under SC (sequential consistency). However, for the relaxed memory models of TSO and PSO (total/partial store order), the algorithmic problem of deciding the RF equivalence, as well as its impact on SMC, has been elusive. In this work we solve the algorithmic problem of consistency verification for the TSO and PSO memory models given a reads-from map, denoted VTSO-rf and VPSO-rf, respectively. For an execution of n events over k threads and d variables, we establish novel bounds that scale as n k +1 for TSO and as n k +1 · min( n k 2 , 2 k · d ) for PSO. Moreover, based on our solution to these problems, we develop an SMC algorithm under TSO and PSO that uses the RF equivalence. The algorithm is exploration-optimal , in the sense that it is guaranteed to explore each class of the RF partitioning exactly once, and spends polynomial time per class when k is bounded. Finally, we implement all our algorithms in the SMC tool Nidhugg, and perform a large number of experiments over benchmarks from existing literature. Our experimental results show that our algorithms for VTSO-rf and VPSO-rf provide significant scalability improvements over standard alternatives. Moreover, when used for SMC, the RF partitioning is often much coarser than the standard Shasha-Snir partitioning for TSO/PSO, which yields a significant speedup in the model checking task.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- The Complexity of Dynamic Data Race Prediction cites Fast, sound, and effectively complete dynamic race prediction
- CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution Analysis cites The Complexity of Dynamic Data Race Prediction
- CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution Analysis cites Fast, sound, and effectively complete dynamic race prediction
- CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution Analysis cites SmartTrack: efficient predictive race detection
- CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution Analysis cites Optimal Reads-From Consistency Checking for C11-Style Memory Models
- CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution Analysis cites How Hard Is Weak-Memory Testing?
- Truly stateless, optimal dynamic partial order reduction cites HMC: Model Checking for Hardware Memory Models
- SmartTrack: efficient predictive race detection cites Fast, sound, and effectively complete dynamic race prediction
- Optimal Reads-From Consistency Checking for C11-Style Memory Models cites The Complexity of Dynamic Data Race Prediction
- Optimal Reads-From Consistency Checking for C11-Style Memory Models cites Truly stateless, optimal dynamic partial order reduction
- Optimal Reads-From Consistency Checking for C11-Style Memory Models cites Fast, sound, and effectively complete dynamic race prediction
- How Hard Is Weak-Memory Testing? cites The Complexity of Dynamic Data Race Prediction
- How Hard Is Weak-Memory Testing? cites Truly stateless, optimal dynamic partial order reduction
- How Hard Is Weak-Memory Testing? cites Fast, sound, and effectively complete dynamic race prediction
- How Hard Is Weak-Memory Testing? cites Optimal Reads-From Consistency Checking for C11-Style Memory Models
- AWDIT: An Optimal Weak Database Isolation Tester cites The Complexity of Dynamic Data Race Prediction
- AWDIT: An Optimal Weak Database Isolation Tester cites CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution Analysis
- AWDIT: An Optimal Weak Database Isolation Tester cites Fast, sound, and effectively complete dynamic race prediction
- AWDIT: An Optimal Weak Database Isolation Tester cites Optimal Reads-From Consistency Checking for C11-Style Memory Models
- AWDIT: An Optimal Weak Database Isolation Tester cites How Hard Is Weak-Memory Testing?
Cited by top-tier papers8
- Truly stateless, optimal dynamic partial order reductionMichalis Kokologiannakis, Iason Marmanis, Vladimir Gladstein, Viktor VafeiadisPOPL 2022 · 46 citations
- Optimal Reads-From Consistency Checking for C11-Style Memory ModelsHünkar Can Tunç, Parosh Aziz Abdulla, Soham Chakraborty, Shankaranarayanan Krishna et al.PLDI 2023 · 12 citations
- How Hard Is Weak-Memory Testing?Soham Chakraborty, Shankara Narayanan Krishna, Umang Mathur, Andreas PavlogiannisPOPL 2024 · 10 citations
- CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution AnalysisHünkar Can Tunç, Ameya Prashant Deshmukh, Berk Çirisci, Constantin Enea et al.ASPLOS 2024 · 6 citations
- AWDIT: An Optimal Weak Database Isolation TesterLasse Møldrup, Andreas PavlogiannisPLDI 2025 · 5 citations
Builds on4
- Fast, sound, and effectively complete dynamic race predictionAndreas PavlogiannisPOPL 2020 · 46 citations
- HMC: Model Checking for Hardware Memory ModelsMichalis Kokologiannakis, Viktor VafeiadisASPLOS 2020 · 29 citations
- SmartTrack: efficient predictive race detectionJake Roemer, Kaan Genç, Michael D. BondPLDI 2020 · 28 citations
- The Complexity of Dynamic Data Race PredictionUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanLICS 2020 · 27 citations
Related papers
- Stateless Model Checking Under a Reads-Value-From EquivalencePratyush Agarwal, Krishnendu Chatterjee, Shreya Pathak, Andreas Pavlogiannis et al.CAV 2021 · 25 citations
- Parsimonious Optimal Dynamic Partial Order ReductionParosh Aziz Abdulla, Mohamed Faouzi Atig, Sarbojit Das, Bengt Jonsson et al.CAV 2024 · 4 citations
- Parameterized verification under TSO is PSPACE-completeParosh Aziz Abdulla, Mohamed Faouzi Atig, Rojin RezvanPOPL 2020 · 15 citations
- Verification under Intel-x86 with PersistencyParosh Aziz Abdulla, Mohamed Faouzi Atig, Ahmed Bouajjani, K. Narayan Kumar et al.PLDI 2024 · 3 citations
- CAAT: consistency as a theoryThomas Haas, Roland Meyer, Hernán Ponce de LeónOOPSLA 2022 · 11 citations
