跳到主要导航 跳到搜索 跳到主要内容

Test Case Generation for Simulink Models using Model Fuzzing and State Solving

  • Zhuo Su*
  • , Zehong Yu
  • , Dongyan Wang
  • , Wanli Chang
  • , Bin Gu
  • , Yu Jiang*
  • *此作品的通讯作者
  • Tsinghua University
  • Renmin University of China
  • Hunan University
  • CAS - Beijing Institute of Control Engineering

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Simulink plays an important role in the industry for modeling and synthesis of embedded systems. Ensuring system stability requires using numerous test cases to validate the functionality and safety of the models. However, as requirements increase, the complexity of the models poses new challenges to traditional testing methods. Traditional methods such as constraint solving and random search run into significant obstacles when navigating the complex branching logic and states within models.In this paper, we introduce HybridTCG, a test case generation method by collaborating model fuzzing and state solving for Simulink models. First, HybridTCG starts a code-based fuzzer to generate high-coverage test cases rapidly. Then, it refines the test cases generated by the fuzzer, preserving only those that can achieve new model coverage. These selected test cases are input into the state-solving engine to derive corresponding states and resolve the constraints of subsequent branches. Ultimately, the test cases produced by the solving engine will be fed back into the fuzzer as high-quality seeds to enhance the fuzzing process. We have implemented HybridTCG and conducted a comprehensive evaluation using various benchmark Simulink models. Compared to the built-in Simulink Design Verifier and state-of-the-art academic work SimCoTest and STCG, HybridTCG achieves an average improvement of 54%, 108% and 24% on Decision Coverage, 50%, 62% and 6% on Condition Coverage, 291%, 282% and 45% on Modified Condition Decision Coverage, respectively. Moreover, HybridTCG is also much more efficient in testing than other tools.

源语言英语
主期刊名Proceedings - 2024 39th ACM/IEEE International Conference on Automated Software Engineering, ASE 2024
出版商Association for Computing Machinery, Inc
117-128
页数12
ISBN(电子版)9798400712487
DOI
出版状态已出版 - 27 10月 2024
已对外发布
活动39th ACM/IEEE International Conference on Automated Software Engineering, ASE 2024 - Sacramento, 美国
期限: 28 10月 20241 11月 2024

出版系列

姓名Proceedings - 2024 39th ACM/IEEE International Conference on Automated Software Engineering, ASE 2024

会议

会议39th ACM/IEEE International Conference on Automated Software Engineering, ASE 2024
国家/地区美国
Sacramento
时期28/10/241/11/24

指纹

探究 'Test Case Generation for Simulink Models using Model Fuzzing and State Solving' 的科研主题。它们共同构成独一无二的指纹。

引用此