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.
The CoCoSim toolbox contains linux and osx binariers for the backend solvers. Download the CoCoSim ToolBox
CoCoSim can be installed and used as follows:
- MATLAB(c) version R2014b or newer
- (Optional) JKind -- Best for Windows OS users
- (Optional) Kind2
- Place the different solvers (Zustre, Kind2, JKind) under
- Set the configuration for the backend solvers in
ZUSTRE: Path to Zustre binary.
KIND2: Path to Kind2 binary.
LUSTREC: Path to LustreC binary.
Z3: Path to Z3 binary. If you install Zustre, Z3 can be found in
JKIND: Path to JKind.
- Launch Matlab(c)
- Navigate to
- Just run the file
- Make sure to have one of the backround solvers installed (e.g. Zustre, Kind2 and or JKind)
- You can now open your Simulink model, e.g.
- To test a safe property:
- Under the
Verify with ...and then
Zustre(or JKind if you are under Windows OS).
- To test an unsafe property (which also provide a counterexample):
More information about CoCoSim can be found here
Lead Developer: Temesghen Kahsai
Current Contributors: Hamza Bourbouh (SGT - USA), Pierre-Loic Garoche (Onera - France), Claire Pagetti (Onera - France), Eric Noulard (Onera - France), Thomas Loquen (Onera - France), Xavier Thirioux (ENSEEIHT - France)
Past Contributors: Arnaud Dieumegard (Fabruary - August 2015)
Acknowledgments and Disclaimers
CoCoSim is partially funded by:
- NASA NRA NNX14AI09G
- 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.