STCG: State-Aware Test Case Generation for Simulink Models
Zhuo Su, Zehong Yu, Dongyan Wang, Yixiao Yang, Rui Wang, Wanli Chang, Aiguo Cui, Yu Jiang
Abstract
Simulink has been widely used in system design, which supports the efficient modeling and synthesis of embedded controllers, with automatic test case generation to simulate and validate the correctness of the constructed Simulink model. However, the increasing complexity of the model, especially the internal states, brings extra challenges to existing model testing techniques such as constraint solving and random search, which results in difficulties when trying to reach the deeper logic of the model effectively.
In this paper, we propose STCG, a state-aware test case generation method for Simulink models. STCG solves only one iteration of the model each time to get the test input that can cover a target branch, then executes the model once to obtain and update the novel model state based on the solved input dynamically. Then, it solves the remaining branches based on the new model state iteratively until all the coverage requirements are satisfied. We implemented STCG and evaluated it on several benchmark Simulink models. Compared to the built-in Simulink Design Verifier and state-of-the-art academic work SimCoTest, STCG achieves an average improvement of 58% and 132% on Decision Coverage, 52% and 70% on Condition Coverage and 239% and 237% on Modified Condition Decision Coverage, respectively.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 185f5196-1294-48f2-abbb-143034ab3c0eCited by top-tier papers2
- Test Case Generation for Simulink Models using Model Fuzzing and State SolvingZhuo Su, Zehong Yu, Dongyan Wang, Wanli Chang et al.ASE 2024 · 1 citation
- Synthesizing Hardware-Specific Instructions for Efficient Code Generation of SimulinkZehong Yu, Zhuo Su, Rui Wang, Yu JiangICSE 2026
Related papers
- CFTCG: Test Case Generation for Simulink Model through Code Based FuzzingZhuo Su, Zehong Yu, Dongyan Wang, Rui Wang et al.DAC 2024 · 1 citation
- AccMoS: Accelerating Model Simulation for Simulink via Code GenerationYifan Cheng, Zehong Yu, Zhuo Su, Ting Chen et al.DAC 2024 · 3 citations
- HCG: optimizing embedded code generation of simulink with SIMD instruction synthesisZhuo Su, Zehong Yu, Dongyan Wang, Yixiao Yang et al.DAC 2022 · 10 citations
- Partition Based Differential Testing for Finding Embedded Code Generation Bugs in SimulinkHe Jiang, Hongyi Cheng, Shikai Guo, Xiaochen LiDAC 2023 · 2 citations
- Detecting Simulink compiler bugs via controllable zombie blocks mutationShikai Guo, He Jiang, Zhihao Xu, Xiaochen Li et al.FSE 2022 · 15 citations
