AbPress: Flexing Partial-Order Reduction and Abstraction

Daniel Kroening, Subodh Sharma, Björn WachterarXiv 2014

Introduction

Verifying concurrent software is a formidable challenge due to two primary sources of complexity: the data-state explosion, where the number of possible variable values is immense, and the interleaving explosion, where the exponential number of thread instruction orderings must be explored. Traditionally, researchers have addressed these issues separately. Lazy abstraction (e.g., the Impact algorithm) uses mathematical interpolants to group similar data states, while Partial-Order Reduction (POR) identifies independent actions to avoid redundant path exploration.

However, these techniques are often incompatible. Naively combining them can lead to unsoundness: if a search branch is "covered" (pruned) because its data state matches a previously explored one, the algorithm might miss a future shared variable access—a "race"—that the POR logic requires to ensure correctness. AbPress is a novel algorithm designed to harmonize these methods by introducing abstract summaries of shared variable accesses.

The AbPress Algorithm

AbPress integrates three core components to achieve efficient and sound verification:

  1. The Impact Algorithm: This builds an Abstract Reachability Tree (ART). When the algorithm encounters a node that is "covered" by an existing node (i.e., its state is a subset of the previous one), it terminates exploration of that branch to save resources.
  2. Optimal DPOR with Source-sets: Moving beyond older POR methods, AbPress utilizes "source-sets." This modern Dynamic Partial-Order Reduction (DPOR) approach more precisely identifies which thread transitions are necessary to capture all unique program behaviors.
  3. Abstract Summarization: To resolve the soundness conflict, AbPress employs a summarization technique. When a branch is pruned via a "cover" check, the algorithm stores a summary of all shared variable accesses that would have occurred within that pruned subtree.
Figure 2: The concept of "covering" in an Abstract Reachability Tree (ART), where a node is pruned if its state is already represented.

By feeding these summaries back into the DPOR logic, AbPress ensures that no potential races are overlooked, even when the actual code paths are not fully traversed. This "summary bridge" allows the algorithm to maintain the pruning efficiency of abstraction without sacrificing the precision of POR.

Figure 3: Abstract summarization mechanism, where a summary of the pruned subtree is used to inform the DPOR logic.

Evaluation and Results

The authors evaluated AbPress using benchmarks from the SV-COMP 2014 competition and various weak-memory Litmus tests. The test suite included complex mutual-exclusion algorithms (pthread-atomic), parametric thread programs (pthread-ext), and basic concurrent data structures.

Key findings include:

  • Performance Gains: AbPress outperformed state-of-the-art tools like THREADER and CBMC, successfully solving 10 SV-COMP benchmarks that THREADER could not handle due to timeouts or complex data structures like arrays and pointers.
  • Efficiency: The summarization technique proved vital. In the qrcu_true benchmark, it reduced the workload from analyzing 14 postfixes per cover check to a single efficient lookup, preventing an order-of-magnitude increase in explored paths.
  • Robustness: AbPress successfully handled weak-memory Litmus tests, demonstrating its applicability across diverse concurrency models where many symbolic execution tools fail.

Conclusion and Future Work

While AbPress represents a significant step forward, it currently has limitations regarding programs with an unbounded number of threads, where it can only provide analysis for fixed thread bounds. Additionally, the tool does not yet model memory allocation failures (e.g., malloc returning NULL), which led to one incorrect result in the bigshot_s_false benchmark.

Future research will focus on "property-guided" abstractions. By tailoring the abstraction process to the specific safety property being verified, the researchers aim to further reduce the interleaving space and enhance the scalability of concurrent program verification.

Summary updated

BibTeX
@misc{kroening2014abpress,
  author = {Daniel Kroening and Subodh Sharma and Björn Wachter},
  title = {{AbPress: Flexing Partial-Order Reduction and Abstraction}},
  year = {2014},
  eprint = {1410.6044},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1410.6044},
}
Figure