CFTCG: Test Case Generation for Simulink Model through Code Based Fuzzing
Zhuo Su, Zehong Yu, Dongyan Wang, Rui Wang, Yang Tao, Yu Jiang
摘要
Simulink is extensively utilized in system design for its ability to facilitate modeling and synthesis of embedded controllers. It provides automatic test case generation to assist testers in inspecting the model. However, with the continuous increase in the model's scale, the control logic and internal states of the model are becoming more and more complex. Mainstream test case generation methods based on constraint solving and model simulation face challenges in achieving high coverage metrics.
In this paper, we propose CFTCG, a fuzzing based test case generation method for Simulink models. First, CFTCG generates the fuzzing code, which includes the fuzz driver based on the model's input information and the fuzz code with model-level branch instrumentation. These codes are then compiled together to execute the model oriented fuzzing loop. During this fuzzing loop, we make use of the field information of the model inports and the coverage difference between iterative executions, allowing for more targeted input mutation. We evaluated CFTCG on several benchmark Simulink models. In comparison to the built-in Simulink Design Verifier and the state-of-the-art academic work SimCoTest, CFTCG demonstrates an average improvement of 47.2% and 100.8% on Decision Coverage, 38.3% and 44.6% on Condition Coverage, and 144.5% and 232.4% on Modified Condition Decision Coverage, respectively.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
相关 Paper
- Test Case Generation for Simulink Models using Model Fuzzing and State SolvingZhuo Su, Zehong Yu, Dongyan Wang, Wanli Chang 等ASE 2024 · 1 次引用
- STCG: State-Aware Test Case Generation for Simulink ModelsZhuo Su, Zehong Yu, Dongyan Wang, Yixiao Yang 等DAC 2023 · 4 次引用
- MoFuzz: A Fuzzer Suite for Testing Model-Driven Software Engineering ToolsHoang Lam Nguyen, Nebras Nassar, Timo Kehrer, Lars GrunskeASE 2020 · 12 次引用
- AccMoS: Accelerating Model Simulation for Simulink via Code GenerationYifan Cheng, Zehong Yu, Zhuo Su, Ting Chen 等DAC 2024 · 3 次引用
- An LLM-Driven Fuzzing Framework for Detecting Logic Instruction Bugs in PLCsJiaxing Cheng, Ming Zhou, Haining Wang, Xin Chen 等NDSS 2026 · 3 次引用
