An operational semantics for Stateflow

  • Authors:
  • Grégoire Hamon;John Rushby

  • Affiliations:
  • The MathWorks, Natick, MA, USA and Computer Science Laboratory, SRI International, Menlo Park, CA, USA;The MathWorks, Natick, MA, USA and Computer Science Laboratory, SRI International, Menlo Park, CA, USA

  • Venue:
  • International Journal on Software Tools for Technology Transfer (STTT)
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a formal operational semantics for Stateflow, the graphical Statecharts-like language of the Matlab/Simulink tool suite that is widely used in model-based development of embedded systems. Stateflow has many tricky features but our operational treatment yields a surprisingly simple semantics for the subset that is generally recommended for industrial applications. We have validated our semantics by developing an interpreter that allows us to compare its behavior against the Matlab simulator. We have used the semantics as a foundation for developing prototype tools for formal analysis of Stateflow designs.