Skip to main content

Proving Correctness of Refactorings for Hybrid Simulink Models with Control Flow

  • 746 Accesses

Part of the Lecture Notes in Computer Science book series (LNISA,volume 10107)

Abstract

Hybrid models are highly relevant for the development of embedded systems because they cover both their continuous and discrete aspects. To master the increasing complexity of embedded systems design, transformation techniques such as automated refactoring play an important role, as they allow for simplifying (sub)models. In safety-critical environments, it is crucial to formally verify the behavioural equivalence of source and transformed target model. For data-flow models that contain control flow entities, this is a major challenge because small deviations of trigger values at control flow elements can yield diverging behaviour of the systems. In this paper, we present our approach that enables the semi-automated verification of the behavioural equivalence of hybrid MATLAB/Simulink models. To this end, we define a static analysis that derives proof obligations to estimate the worst case deviation between model and refactored model. Our approach can be applied to many practical applications such as in the automotive or aerospace industry where MATLAB/Simulink is a de-facto standard.

Keywords

  • Control Flow
  • Abstract Representation
  • Computer Algebra System
  • Signal Line
  • Label Transition System

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

This is a preview of subscription content, access via your institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • DOI: 10.1007/978-3-319-51738-4_6
  • Chapter length: 16 pages
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
eBook
USD   44.99
Price excludes VAT (USA)
  • ISBN: 978-3-319-51738-4
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD   59.99
Price excludes VAT (USA)
Fig. 1.
Fig. 2.
Fig. 3.
Fig. 4.

References

  1. Abbas, H., Hoxha, B., Fainekos, G., Deshmukh, J.V., Kapinski, J., Ueda, K.: Conformance testing as falsification for cyber-physical systems (2014). arXiv preprint arXiv:1401.5200

  2. Agrawal, A., Simon, G., Karsai, G.: Semantic translation of simulink/stateflow models to hybrid automata using graph transformations. Electron. Notes Theoret. Comput. Sci. 109, 43–56 (2004)

    CrossRef  MATH  Google Scholar 

  3. Al-Batran, B., Schätz, B., Hummel, B.: Semantic clone detection for model-based development of embedded systems. In: Whittle, J., Clark, T., Kühne, T. (eds.) MODELS 2011. LNCS, vol. 6981, pp. 258–272. Springer, Heidelberg (2011). doi:10.1007/978-3-642-24485-8_19

    CrossRef  Google Scholar 

  4. Alur, R., Henzinger, T.A., Lafferriere, G., Pappas, G.J.: Discrete abstractions of hybrid systems. Proc. IEEE 88(7), 971–984 (2000)

    CrossRef  Google Scholar 

  5. Boström, P.: Contract-based verification of Simulink models. In: Qin, S., Qiu, Z. (eds.) ICFEM 2011. LNCS, vol. 6991, pp. 291–306. Springer, Heidelberg (2011). doi:10.1007/978-3-642-24559-6_21

    CrossRef  Google Scholar 

  6. Bouissou, O., Chapoutot, A.: An operational semantics for Simulink’s simulation engine. In: ACM SIGPLAN Notices, vol. 47, no. 5, pp. 129–138 (2012)

    Google Scholar 

  7. Butcher, J.C.: Numerical Methods for Ordinary Differential Equations, 2nd edn. Wiley, Chichester (2008). http://site.ebrary.com/lib/alltitles/docDetail.action? docID=10232593

    CrossRef  MATH  Google Scholar 

  8. Caspi, P.: Translating discrete-time Simulink to Lustre. ACM Trans. Embed. Comput. Syst. (TECS) 4, 779–818 (2005). New York

    CrossRef  Google Scholar 

  9. Deissenboeck, F., Hummel, B., Juergens, E., Pfaehler, M., Schaetz, B.: Model clone detection in practice. In: Proceedings of 4th International Workshop on Software Clones, pp. 57–64. ACM, New York (2010)

    Google Scholar 

  10. Edalat, A., Pattinson, D.: Denotational semantics of hybrid automata. In: Aceto, L., Ingólfsdóttir, A. (eds.) FoSSaCS 2006. LNCS, vol. 3921, pp. 231–245. Springer, Heidelberg (2006). doi:10.1007/11690634_16

    CrossRef  Google Scholar 

  11. Girard, A.: Approximate bisimulations for constrained linear systems. Automatica 43, 1307–1317 (2005)

    MathSciNet  CrossRef  MATH  Google Scholar 

  12. Girard, A., Pappas, G.J.: Approximate bisimulations for nonlinear dynamical systems. In: Decision and Control, 2005 and 2005 European Control Conference, CDC-ECC 2005, pp. 684–689. IEEE (2005)

    Google Scholar 

  13. Girard, A., Pappas, G.J.: Approximate bisimulation: a bridge between computer science and control theory. Eur. J. Control 17(5), 568–578 (2011)

    MathSciNet  CrossRef  MATH  Google Scholar 

  14. Goebel, R., Sanfelice, R.G., Teel, A.R.: Hybrid Dynamical Systems: Modeling, Stability, and Robustness. Princeton University Press, Princeton (2012)

    MATH  Google Scholar 

  15. Herber, P., Reicherdt, R., Bittner, P.: Bit-precise formal verification of discrete-time MATLAB/Simulink models using SMT solving. In: Proceedings of EMSOFT 2013, Proceedings of 11th ACM International Conference on Embedded Software. IEEE Press (2013)

    Google Scholar 

  16. Lazar, M.: Model predictive control of hybrid systems: stability and robustness. Dissertation, Technische Universiteit Eindhoven, Eindhoven (2006)

    Google Scholar 

  17. Lee, E.A., Zheng, H.: Operational semantics of hybrid systems. In: Morari, M., Thiele, L. (eds.) HSCC 2005. LNCS, vol. 3414, pp. 25–53. Springer, Heidelberg (2005). doi:10.1007/978-3-540-31954-2_2

    CrossRef  Google Scholar 

  18. Matthew, S.: Towards a taxonomy for Simulink model mutations. In: 2014 IEEE 7th International Conference on Software Testing, Verification and Validation Workshops (ICSTW), pp. 206–215. IEEE (2014)

    Google Scholar 

  19. Pappas, G.J.: Bisimilar linear systems. Automatica 39(12), 2035–2047 (2003)

    MathSciNet  CrossRef  MATH  Google Scholar 

  20. Pettersson, S., Lennartson, B.: Stability and robustness for hybrid systems. In: Proceedings of 35th IEEE Conference on Decision and Control. IEEE (1996)

    Google Scholar 

  21. Reicherdt, R., Glesner, S.: Formal verification of discrete-time MATLAB/Simulink models using Boogie. In: Giannakopoulou, D., Salaün, G. (eds.) SEFM 2014. LNCS, vol. 8702, pp. 190–204. Springer, Heidelberg (2014). doi:10.1007/978-3-319-10431-7_14

    Google Scholar 

  22. Schlesinger, S., Herber, P., Göthel, T., Glesner, S.: Towards the verification of refactorings of hybrid Simulink models. In: Lisitsa, A., Nemytyk, A., Pettorossi, A. (eds.) Proceedings of 3rd International Workshop on Verification and Program Transformation, EPTCS, vol. 199, p. 69 (2015). http://eptcs.web.cse.unsw.edu.au/content.cgi?VPT2015#EPTCS199.5

  23. Schlesinger, S., Herber, P., Göthel, T., Glesner, S.: Proving Transformation Correctness of Refactorings for Discrete and Continuous Simulink Models (2016)

    Google Scholar 

  24. Teschl, G.: Ordinary Differential Equations and Dynamical Systems, Graduate Studies in Mathematics, vol. 140. American Mathematical Society, Providence (2012)

    CrossRef  Google Scholar 

  25. The MathWorks Inc.: Simulink documentation website. http://de.mathworks.com/help/simulink/

  26. Tiwari, A.: Abstractions for hybrid systems. Form. Methods Syst. Des. 32(1), 57–83 (2008)

    CrossRef  MATH  Google Scholar 

  27. Tran, Q.M., Wilmes, B., Dziobek, C.: Refactoring of Simulink diagrams via composition of transformation steps. In: ICSEA 2013, 8th International Conference on Software Engineering Advances, pp. 140–145 (2013)

    Google Scholar 

  28. Van der Schaft, A.J.: Equivalence of dynamical systems by bisimulation. IEEE Trans. Autom. Control 49(12), 2160–2172 (2004)

    MathSciNet  CrossRef  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sebastian Schlesinger .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and Permissions

Copyright information

© 2017 Springer International Publishing AG

About this paper

Cite this paper

Schlesinger, S., Herber, P., Göthel, T., Glesner, S. (2017). Proving Correctness of Refactorings for Hybrid Simulink Models with Control Flow. In: Berger, C., Mousavi, M., Wisniewski, R. (eds) Cyber Physical Systems. Design, Modeling, and Evaluation. CyPhy 2016. Lecture Notes in Computer Science(), vol 10107. Springer, Cham. https://doi.org/10.1007/978-3-319-51738-4_6

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-51738-4_6

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-51737-7

  • Online ISBN: 978-3-319-51738-4

  • eBook Packages: Computer ScienceComputer Science (R0)