Skip to content

Commit

Permalink
checkModel support for state machines
Browse files Browse the repository at this point in the history
Related to the discussion in ticket:4570

Belonging to [master]:
  - OpenModelica/OMCompiler#1916
  • Loading branch information
bernhard-thiele authored and OpenModelica-Hudson committed Oct 17, 2017
1 parent 6c085bb commit 98136a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Compiler/FrontEnd/CheckModel.mo
Expand Up @@ -274,6 +274,14 @@ algorithm
case DAE.CONSTRAINT()
then inArg;

// flat state machine section
case DAE.FLAT_SM(dAElist = daeElts)
then List.fold(daeElts, countVarEqnSize, inArg);

// a state/mode component in a state machine
case DAE.SM_COMP(dAElist = daeElts)
then List.fold(daeElts, countVarEqnSize, inArg);

else
equation
// show only on failtrace!
Expand Down

0 comments on commit 98136a9

Please sign in to comment.