Directed model checking with distance-preserving abstractions

Klaus Dräger, Bernd Finkbeiner, Andreas Podelski · DOI

Introduction

Model checking is a cornerstone of formal verification for concurrent systems, such as distributed protocols and embedded software. However, it is perennially plagued by the "state explosion problem," where the number of possible system states grows exponentially with the addition of new components. This paper introduces a novel "distance-preserving abstraction" technique designed to accelerate directed model checking by generating highly accurate distance estimates to guide the search for bugs.

The Challenge of State Explosion

In directed model checking, the state space is explored using a heuristic—an estimate of the distance from the current state to the nearest error state. A high-quality heuristic can find bugs rapidly, but for complex concurrent systems, calculating such an estimate is often as computationally expensive as the verification itself.

Initial concurrent processes $P_1, P_2, \text{ and } P_3$ that serve as the input for the compose-and-abstract framework.

Existing methods frequently overlook process synchronization, leading to "blind" heuristics that fail to account for dependencies between components. This results in poor search guidance and inefficient verification.

The Compose-and-Abstract Framework

To address these issues, the authors propose a three-part framework that incrementally builds the system model while keeping state spaces manageable:

  1. Iterative Composition: Instead of constructing the entire system at once, the algorithm selects two processes, composes them, and immediately applies abstraction.
  2. Distance-Preserving Abstraction: The core innovation lies in how processes are simplified. States are grouped together if they share the same distance to an error state. By using a refinement loop, the algorithm ensures the number of abstract states remains under a user-defined bound ($N$), while crucially preserving the synchronization behavior necessary for accurate distance estimation in subsequent compositions.
  3. Strategic Ranking: The order of composition is determined by a ranking system that prioritizes merging processes whose shared actions are located near error states, effectively mapping the "danger zones" early in the process.
A composed and abstracted state space showing distance estimates ($d$) to the goal state ($p_3q_3$).

Key Insights

  • Numerical Distance over Boolean Reachability: Traditional abstractions often focus on simple reachability. This work argues that for directed search, the numerical distance provides a much finer-grained "compass" for the search algorithm.
  • Tunable Complexity: The parameter $N$ allows users to balance the time spent on pre-calculating the heuristic versus the time saved during the actual search.
  • Capturing Synchronization: By preserving how processes interact, the method captures critical dependencies (e.g., Process A waiting for Process B) that simpler heuristics miss.

Experimental Results

The approach was evaluated using benchmarks in an experimental version of the UPPAAL model checker, including Arbiter Trees, Towers of Hanoi, and industrial case studies like a tramway controller.

  • Significant State Reduction: The method reduced the number of explored states by orders of magnitude. In one instance (Arbiter Tree A4), the state count dropped from 130,000 with standard heuristics to just 187.
  • Enhanced Reach: The algorithm successfully identified errors in benchmarks that were previously unsolvable by standard UPPAAL configurations.
  • Overall Efficiency: Despite the initial overhead of abstraction, the total verification time was significantly reduced due to the extreme efficiency of the guided search.

Conclusion and Future Work

Distance-preserving abstractions represent a significant step forward in making directed model checking practical for large-scale concurrent systems. While highly effective, future work aims to improve the handling of complex data types (like clocks and integers) and to automate the selection of the state bound $N$. Combining these abstractions with structural heuristics from other domains could further enhance the robustness of software verification.

Summary updated

BibTeX
@inproceedings{drager2006directed,
  author = {Klaus Dräger and Bernd Finkbeiner and Andreas Podelski},
  title = {{Directed model checking with distance-preserving abstractions}},
  booktitle = {SPIN},
  year = {2006},
  doi = {10.1007/11691617\_2},
}
Figure