electrojit / cocoSim2

Automated Analysis Framework for Simulink/Stateflow

Home Page:https://coco-team.github.io/cocosim/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


CoCoSim is an automated analysis and code generation framework for Simulink and Stateflow models. Specifically, CoCoSim can be used to verify automatically user-supplied safety requirements. Moreover, CoCoSim can be used to generate C and/or Rust code. CoCoSim uses Lustre as its intermediate language. CoCoSim is currently under development. We welcome any feedback and bug report.


Installation instructions can be found here.

CoCoSim Features


  1. Launch cocosim start_cocosim
  2. Open one of the examples open('contract/DoorLockCompositional.slx')
  3. To verify the model, go to Tools menu and select Tools/CoCoSim/Verify

Tutorial Videos

The first video below explains the concept of contract specification using a simple Lustre model that simulates the evolution of a bacteria population. The second video shows how CoCoSim can be used to specify a contract for a CoCoSim version of the bacteria population model. Finally, the third video explains the concept of compositional analysis using a semi-realistic model of a door lock.

  1. Contracts in Lustre
  2. Contracts in CoCoSim
  3. Compositional analysis


  • Project leaders: Temesghen Kahsai, Cesare Tinelli, and Corina Pasareanu

  • Developers/Contributors: Hamza Bourbouh (SGT - USA), Pierre-Loic Garoche (Onera - France), Mudathir Mohamed (The University of Iowa - USA), Baoluo Meng (The University of Iowa - USA), Daniel Larraz (The University of Iowa - USA), Christelle Dambreville (ENSEEIHTENSEEIHT - France), Claire Pagetti (Onera - France), Eric Noulard (Onera - France), Thomas Loquen (Onera - France), Xavier Thirioux (ENSEEIHT - France), and Arnaud Dieumegard (IRIT - France)

Acknowledgments and Disclaimers

CoCoSim was partially funded by:

  • NSF award 1136008

Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) do not necessarily reflect the views of NASA and NSF.


Automated Analysis Framework for Simulink/Stateflow




Language:MATLAB 83.4%Language:HTML 6.6%Language:Java 5.9%Language:C 1.6%Language:Python 1.1%Language:CSS 1.0%Language:ANTLR 0.1%Language:Shell 0.1%Language:Batchfile 0.0%