Verifying Simulink Stateflow model: Timed automata approach

Simulink Stateflow is widely used for the model-driven development of software. However, the increasing demand of rigorous verification for safety critical applications brings new challenge to the Simulink Stateflow because of the lack of formal semantics. In this paper, we present STU, a self-contained toolkit to bridge the Simulink Stateflow and a well-defined rigorous verification. The tool translates the Simulink Stateflow into the Uppaal timed automata for verification. Compared to existing work, more advanced and complex modeling features in Stateflow such as the event stack, conditional action and timer are supported. Then, with the strong verification power of Uppaal, we can not only find design defects that are missed by the Simulink Design Verifier, but also check more important temporal properties. The evaluation on artificial examples and real industrial applications demonstrates the effectiveness.

[1]  Stavros Tripakis,et al.  From simulink to SCADE/lustre to TTA: a layered approach for distributed embedded applications , 2003, LCTES '03.

[2]  Simon Wimmer,et al.  Timed Automata , 2016, Arch. Formal Proofs.

[3]  Javier Esparza,et al.  Reachability Analysis of Pushdown Automata: Application to Model-Checking , 1997, CONCUR.

[4]  Insup Lee,et al.  Safety-critical medical device development using the UPP2SF model translation tool , 2014, ACM Trans. Embed. Comput. Syst..

[5]  Jun Sun,et al.  Formal modeling and validation of Stateflow diagrams , 2012, International Journal on Software Tools for Technology Transfer.

[6]  Yu Jiang,et al.  Design of Mixed Synchronous/Asynchronous Systems with Multiple Clocks , 2015, IEEE Transactions on Parallel and Distributed Systems.

[7]  Kenneth L. McMillan,et al.  The SMV System , 1993 .

[8]  Yu Jiang,et al.  Design and Optimization of Multiclocked Embedded Systems Using Formal Techniques , 2015, IEEE Transactions on Industrial Electronics.

[9]  C. Frei,et al.  SAL—A Novel Quality Measure for the Verification of Quantitative Precipitation Forecasts , 2008 .

[10]  S. Ramesh,et al.  AutoMOTGen: Automatic Model Oriented Test Generator for Embedded Control Systems , 2008, CAV.

[11]  Xiaoyu Song,et al.  Formal modeling and synthesis of programmable logic controllers , 2011, Comput. Ind..

[12]  Lui Sha,et al.  From Stateflow Simulation to Verified Implementation: A Verification Approach and A Real-Time Train Controller Design , 2016, 2016 IEEE Real-Time and Embedded Technology and Applications Symposium (RTAS).