Introduction
Testing safety-critical reactive systems—such as automotive cruise control or aerospace flight surfaces—presents a unique challenge. These systems are "always on," continuously processing inputs and updating internal states. In "on-target" testing, where software is validated on actual hardware, the standard practice of resetting the system to its initial state between test cases creates a significant bottleneck. Traditional test generators often produce numerous short, independent test cases, leading to massive overhead and redundancy.
To address this, researchers have developed a method to generate "test case chains." A test case chain is a single, continuous execution sequence that satisfies multiple test goals without requiring a system reset. By finding the shortest path through the system's state space that covers all required properties, testing time and resource consumption can be drastically reduced.
The ChainCover Framework
The proposed solution is implemented in a tool called ChainCover, which follows a three-step algorithmic process:
- Abstraction via K-Reachability Graphs: The system is first modeled as an abstract "property K-reachability graph." In this model, nodes represent specific test goals (formulated as safety properties). Edges between nodes are weighted by the minimum number of steps required to transition from one goal to the next, calculated using Bounded Model Checking (BMC) up to a predefined bound K.
- Path Optimization: Once the abstract graph is constructed, the problem of finding the most efficient test sequence is treated as a variation of the Asymmetric Traveling Salesman Problem (ATSP). Specialized solvers are employed to find the optimal sequence of goals that minimizes the total number of execution steps.
- Concretization: Finally, the tool uses BMC again to "fill in the blanks," generating the precise sequence of concrete inputs (e.g., sensor readings, button presses) required to drive the actual software through the optimized path.
If certain goals are mutually exclusive, the algorithm automatically partitions them into the minimum number of separate chains necessary for full coverage.
Evaluation and Results
The ChainCover approach was evaluated using C code generated from standard industrial Simulink models, including cruise control systems, power window controllers, and car alarms.
Key findings from the comparative study against state-of-the-art tools like FShell include:
- Reduced Execution Length: ChainCover consistently produced shorter total execution sequences. For instance, in a window controller benchmark, ChainCover achieved full coverage in 40 steps, whereas FShell required 56 steps across multiple independent tests.
- Improved Generation Speed: ChainCover demonstrated significant speedups in test generation. In one car alarm benchmark, it completed the task in under 2 seconds, while FShell took over 500 seconds.
- Effective Deep State Coverage: Unlike random testing, which often fails to reach complex "deep" logic states, ChainCover’s directed approach successfully achieved full property coverage across all benchmarks.
Conclusion
By shifting the focus from independent test cases to optimized execution chains, the ChainCover framework significantly enhances the efficiency of on-target testing for reactive systems. While challenges remain regarding state space explosion in very large systems, the use of property-level abstraction and ATSP optimization provides a scalable path forward for safety-critical software verification.
Summary updated