Boom: Taking Boolean Program Model Checking One Step Further

Gérard Basler, Matthew Hague, Daniel Kroening, C.-h. Luke Ong, Thomas Wahl, Haoxian Zhao

Introduction

Concurrent Boolean programs present a significant challenge for formal verification due to the "state space explosion" problem. As multi-core architectures become standard, the need for tools that can handle asynchronous parallel threads is critical. This paper introduces BOOM, a model checker designed to address these challenges through context-aware counter abstraction and symbolic implementation. BOOM is the first tool to provide exact reachability analysis for non-recursive Boolean programs with both bounded and unbounded thread creation.

Methodology

BOOM employs several innovative techniques to scale verification:

  • Counter Abstraction: Exploits symmetry by counting threads in specific local states rather than tracking individual thread identities. This drastically reduces the state space for programs with identical threads.
  • Context-Awareness: On-the-fly counter creation ensures that only reachable states are tracked, managing the exponential potential state space. Research showed that even with millions of conceivable states, very few counters are needed in practice.
  • Karp-Miller Trees: Enables exact reachability analysis for programs with unbounded thread creation by operating directly on the Boolean program, avoiding the dimensionality problems of intermediate model translations.
  • Symbolic Implementation: Utilizes Binary Decision Diagrams (BDDs) for compact state representation, allowing the tool to handle much larger models than explicit-state checkers.

Evaluation and Results

The authors evaluated BOOM using real-world device driver models, synthetic benchmarks for unbounded threads, and comparative tests against other state-of-the-art tools.

Performance Gains

A key finding is the efficiency of counter abstraction. In head-to-head comparisons, BOOM with counter abstraction significantly outperformed basic symbolic exploration.

Performance comparison of Symbolic BOOM with and without Counter Abstraction.

As shown in the scatter plot, the counter abstraction technique (x-axis) consistently completes verification tasks faster than the baseline symbolic approach (y-axis), with many cases showing orders of magnitude improvement. BOOM also outperformed standard Partial Order Reduction (POR) methods in similar tests.

Comparison with GetaFix

BOOM was also compared against GetaFix using non-recursive examples. BOOM demonstrated competitive performance, particularly as the complexity of thread interleavings increased.

Comparison of BOOM execution time against GetaFix with varying context bounds.

The results indicate that BOOM can explore all possible thread interleavings in less time than GetaFix requires for a limited number of context switches, especially as the number of threads ($n$) grows. For instance, at $n=6$, BOOM completes in 88.8 seconds, while GetaFix takes significantly longer or fails to terminate within higher context bounds.

Conclusion

BOOM represents a significant advancement in the verification of concurrent programs. By leveraging symmetry through counter abstraction and avoiding intermediate model translations, it achieves high performance on both bounded and unbounded thread models. While challenges remain for complex unbounded cases and recursive functions, BOOM provides a powerful engine for system-level software verification.

Summary updated

BibTeX
@inproceedings{basler2010boom,
  author = {Gérard Basler and Matthew Hague and Daniel Kroening and C.-H. Luke Ong and Thomas Wahl and Haoxian Zhao},
  title = {{Boom: Taking Boolean Program Model Checking One Step Further}},
  booktitle = {TACAS},
  year = {2010},
  doi = {10.1007/978-3-642-12002-2\_11},
}
Figure