Abstract
Verifying concurrent programs is challenged by the exponential growth of possible thread interleavings, known as the state-space explosion. While Dynamic Partial Order Reduction (DPOR) helps by exploring only representative traces from equivalence classes, traditional "value-blind" equivalences often remain too fine-grained. This paper presents Value-centric Dynamic Partial Order Reduction (VC-DPOR), which utilizes a novel "value-happens-before" (VHB) equivalence. By focusing on the actual data values communicated between threads, VC-DPOR achieves significant reductions in the number of explored traces—often by exponential factors—while maintaining polynomial-time exploration without the need for SMT solvers.
Introduction
The reliability of concurrent software is difficult to ensure because threads can interact in a vast number of ways. Stateless model checking (SMC) is a powerful technique for finding bugs in such systems by systematically exploring execution traces. To manage the complexity, SMC uses Dynamic Partial Order Reduction (DPOR) to partition the set of all possible traces into equivalence classes.
Standard DPOR typically relies on Mazurkiewicz equivalence, which considers two traces equivalent if one can be transformed into the other by swapping adjacent, non-conflicting operations. However, this approach is often too conservative because it ignores the actual values being read and written, leading to an explosion of redundant equivalence classes.
Methodology: Value-centric DPOR
The authors propose a coarser equivalence relation called value-happens-before (VHB). Under VHB, two traces are equivalent if they result in the same values being read by all threads. This "value-sensitivity" allows the model checker to ignore differences in operation ordering that do not affect the program's observable behavior.
The VHB Equivalence Relation
VHB focuses on the causal flow of values. If a read operation in two different interleavings observes the same write operation (or a write operation with the same value), the traces may be considered equivalent. This approach significantly reduces the number of "buckets" the model checker must explore to guarantee full coverage.
The VC-DPOR Algorithm
To implement VHB efficiently, the authors developed the VC-DPOR algorithm. Key technical features include:
- Asymmetric Exploration: By designating one thread as a "root" and others as "leaves," the algorithm simplifies the tracking of causal dependencies.
- Annotated Partial Orders: The state space is represented using structures that track both event ordering and data-flow constraints.
- Polynomial-Time Closure: A critical breakthrough is the "closure" operation, which determines if a set of value constraints is feasible in polynomial time. This avoids the exponential bottleneck of using NP-hard SMT solvers, which is common in other "coarse" DPOR techniques.
Experimental Evaluation
The VC-DPOR algorithm was implemented in the Nidhugg model checker and tested against a wide range of benchmarks, including mutual-exclusion protocols, dynamic programming algorithms, and SV-COMP suites.
Performance and Reduction
The experimental results demonstrate that VC-DPOR consistently outperforms existing state-of-the-art DPOR algorithms like Source-DPOR and DC-DPOR.
- Trace Reduction: On the
parker(6)benchmark, VC-DPOR explored only 38,670 traces, compared to over 1.1 million for Source-DPOR. - Execution Time: The massive reduction in traces translates to significant time savings. For the
27_Boop(6)benchmark, VC-DPOR finished in 3.5 minutes, while Optimal DPOR took nearly 3 hours.
Conclusion
VC-DPOR provides a scalable solution to the state-space explosion problem in concurrent program verification. By incorporating value sensitivity into the equivalence relation and ensuring polynomial-time exploration, it offers a powerful alternative to traditional value-blind DPOR methods. While the per-trace computational overhead is higher due to the complex bookkeeping required, the exponential reduction in the number of traces makes it highly effective for complex concurrent systems.
Summary updated