Introduction
Hybrid systems, which integrate discrete control logic with continuous physical dynamics (often modeled by ODEs), are foundational to modern infrastructure like self-driving cars and industrial plants. However, verifying their safety is notoriously difficult. Bugs often manifest as "rare events"—specific sequences of transitions that are unlikely to be hit by random testing but too complex for pure symbolic execution due to the computational cost of solving ODEs.
The Concolic Testing Framework
To address this, the authors propose a concolic approach implemented in a tool named HYCHECKER. This method dynamically switches between inexpensive random sampling and precise, yet expensive, symbolic execution to find hidden bugs more efficiently than either method alone.
Probabilistic Interpretation and Dynamic Switching
The core innovation lies in modeling the hybrid system as a Discrete-Time Markov Chain (DTMC). By tracking state visits, the algorithm uses Bayesian inference to measure "confidence" in the system's safety and estimates the probability of discovering new modes through random sampling.
When the probability of finding a new state via random sampling drops below a certain threshold, the system triggers symbolic execution to "force" a transition into unexplored areas of the state space. This cost-aware strategy ensures that heavy mathematical solvers are only used when random methods hit a "rare event" wall.
Local vs. Global Strategies
The researchers distinguish between "global" concolic testing (solving a full path from the start) and "local" concolic testing (solving just the next step from an existing trace). They found that the "local" approach is far more practical for hybrid systems because SMT solvers like dReal struggle with the long chains of equations required for global paths.
Experimental Evaluation
HYCHECKER was evaluated on four distinct benchmarks: a thermodynamic 3-room house model, a navigation system, a traffic simulation, and a complex 2,721-mode model of a Secure Water Treatment (SWaT) plant.
The "local" concolic strategy outperformed pure random sampling across the board:
- Speed: In the thermodynamic system, HYCHECKER found a counterexample in ~41 seconds, compared to ~340 seconds for random sampling.
- Discovery: In the traffic system, random sampling failed to find the bug within a 10-minute timeout, whereas HYCHECKER found it in just ~29 seconds.
- Efficiency: For the complex SWaT system, HYCHECKER required only 68 samples to find a bug, while random sampling needed 169 samples and took nearly twice as long.
Conclusion
By combining the speed of random sampling with the precision of local symbolic execution, HYCHECKER provides a scalable path forward for verifying complex hybrid systems. While the method's performance is currently tied to the underlying SMT solver, future improvements in machine-learning-based cost estimation could further optimize the switching logic and handle even higher-dimensional systems.
Summary updated