[Paper Review] The Benefits of Duality in Verifying Concurrent Programs under TSO
This paper introduces a dual semantics for the TSO memory model that replaces store buffers with load buffers, enabling simpler and more efficient verification of safety properties in concurrent programs. The approach drastically improves scalability and extends naturally to parametric verification with an arbitrary number of processes, offering a new decidability result and superior performance over existing methods.
We address the problem of verifying safety properties of concurrent programs running over the TSO memory model. Known decision procedures for this model are based on complex encodings of store buffers as lossy channels. These procedures assume that the number of processes is fixed. However, it is important in general to prove correctness of a system/algorithm in a parametric way with an arbitrarily large number of processes. In this paper, we introduce an alternative (yet equivalent) semantics to the classical one for the TSO model that is more amenable for efficient algorithmic verification and for extension to parametric verification. For that, we adopt a dual view where load buffers are used instead of store buffers. The flow of information is now from the memory to load buffers. We show that this new semantics allows (1) to simplify drastically the safety analysis under TSO, (2) to obtain a spectacular gain in efficiency and scalability compared to existing procedures, and (3) to extend easily the decision procedure to the parametric case, which allows to obtain a new decidability result, and more importantly, a verification algorithm that is more general and more efficient in practice than the one for bounded instances.
Motivation & Objective
- To address the limitations of existing decision procedures for TSO, which rely on complex store buffer encodings and assume a fixed number of processes.
- To develop a more efficient and scalable verification framework for safety properties under the TSO memory model.
- To enable parametric verification—supporting an arbitrary number of concurrent processes—by rethinking the underlying semantics of TSO.
- To simplify safety analysis by shifting the information flow from store buffers to load buffers, offering a dual perspective on memory ordering.
Proposed method
- Reformulate the TSO memory model using load buffers instead of store buffers, reversing the traditional data flow from memory to load buffers.
- Define an equivalent yet more amenable semantics that captures TSO behavior through load buffer propagation, simplifying the verification logic.
- Leverage the duality between store and load buffers to reduce the complexity of encoding memory ordering constraints.
- Design a decision procedure based on this dual semantics that avoids lossy channel encodings and enables efficient symbolic execution.
- Extend the procedure to parametric verification by abstracting over the number of processes, enabling decidability for unbounded instances.
- Use the dual semantics to derive a new verification algorithm that is both more general and more efficient than prior bounded approaches.
Experimental results
Research questions
- RQ1Can a dual semantics based on load buffers simplify safety verification under the TSO memory model compared to traditional store buffer encodings?
- RQ2Does the proposed dual semantics enable efficient and scalable verification for concurrent programs with an unbounded number of processes?
- RQ3Can the new semantics support a decision procedure that is both more efficient and more general than existing bounded approaches?
- RQ4What are the theoretical and practical advantages of using load buffers as the primary abstraction in TSO verification?
- RQ5Is it possible to achieve decidability for parametric verification under TSO using this dual approach?
Key findings
- The dual semantics based on load buffers provides a simpler and more intuitive foundation for TSO verification compared to classical store buffer encodings.
- The new approach achieves a significant performance gain in scalability and efficiency, particularly for larger or parametric systems.
- The method enables a natural extension to parametric verification, resulting in a new decidability result for TSO with an arbitrary number of processes.
- The decision procedure based on the dual semantics outperforms existing bounded verification techniques in practice, both in speed and memory usage.
- The reformulation allows for more efficient symbolic execution and reduces the complexity of encoding memory ordering constraints.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.