Abstract
We propose two parallel state-space exploration algorithms for hybrid systems to enhance performance on multi-core shared memory systems. The first is an adaptation of the parallel breadth-first search (BFS) from the SPIN model checker. We demonstrate that this adaptation often fails to provide adequate load balancing for hybrid systems. The second is a task-parallel algorithm that utilizes cheap precomputation of post-operation costs for effective load balancing. These algorithms are implemented in the XSpeed model checker. Experimental results show a maximum speed-up of 900x on a navigation benchmark compared to the SpaceEx LGG scenario when evaluated on an equal number of post-operations.
Introduction
Hybrid systems, which integrate discrete control logic with continuous physical dynamics, present significant verification challenges. Reachability analysis—the process of computing all reachable states to ensure safety—is computationally intensive. While tools like SpaceEx are widely used, their sequential nature limits performance as system complexity grows. Parallelizing reachability analysis for hybrid systems is non-trivial due to irregular workloads: continuous "flow" computations can vary significantly in complexity compared to discrete "jumps," leading to severe load-imbalance on multi-core processors where some cores remain idle while others handle heavy computational tasks.
Methodology
We introduce two parallel algorithms in the XSpeed tool to address these challenges:
- Adapted Gerard J. Holzmann’s Algorithm (A-GJH): A lock-free parallel BFS that uses a 2D data structure for concurrent state access, allowing multiple threads to read and write states simultaneously without expensive synchronization locks.
- Task Parallel BFS (TP-BFS): Our primary innovation, which decomposes exploration into atomic tasks. It employs a "widening-narrowing" technique to rapidly estimate the computational cost of continuous simulations (flowpipes) before execution. This allows for even distribution of work across CPU cores by splitting simulations into equal-sized chunks.
Experimental Evaluation
The algorithms were tested on benchmarks including Oscillator circuits, Bouncing Ball models, and Navigation grids (3x3 to 9x9). The Navigation benchmarks are particularly demanding due to numerous discrete transitions between cells with varying velocities. Each cell in the grid represents a different mode of operation, requiring distinct flowpipe calculations that vary in duration and complexity.
Results and Discussion
Our analysis revealed the "Idle Core" trap: standard parallel BFS underutilizes CPUs when state counts are low or costs are uneven. For instance, A-GJH utilized only 12-19% of the CPU on the Circle model. In contrast, TP-BFS achieved significantly higher utilization, reaching 82.7% on the Nav 3x3 benchmark.
As shown in the table, XSpeed consistently outperforms SpaceEx. On the Nav 5x5 benchmark (breadth 7), A-GJH achieved an 11.8x speedup over SpaceEx in raw execution time. The peak performance improvement reached 900x on the 9x9 Navigation benchmark when normalized by the number of post-operations.
The effectiveness of TP-BFS stems from its ability to handle the inherent irregularity of hybrid system state spaces. By precomputing costs, TP-BFS avoids the situation where most cores finish quickly and wait for a single core to complete a "heavy" flowpipe calculation. However, we noted that for systems with a massive number of states, the overhead of TP-BFS's task management can make the simpler A-GJH more efficient, as random distribution naturally balances the load over large state sets.
Conclusion
This work demonstrates that task-parallelism with cost precomputation significantly improves reachability analysis performance for hybrid systems. While A-GJH provides a solid baseline for large state spaces, TP-BFS is essential for maintaining high CPU utilization in irregular or smaller models. Future work will focus on extending cost estimation to non-linear dynamics and adapting the algorithms for distributed-memory clusters to further scale verification capabilities.
Summary updated