Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 98136a9

Browse files
checkModel support for state machines
Related to the discussion in ticket:4570 Belonging to [master]: - #1916
1 parent 6c085bb commit 98136a9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Compiler/FrontEnd/CheckModel.mo

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,14 @@ algorithm
274274
case DAE.CONSTRAINT()
275275
then inArg;
276276

277+
// flat state machine section
278+
case DAE.FLAT_SM(dAElist = daeElts)
279+
then List.fold(daeElts, countVarEqnSize, inArg);
280+
281+
// a state/mode component in a state machine
282+
case DAE.SM_COMP(dAElist = daeElts)
283+
then List.fold(daeElts, countVarEqnSize, inArg);
284+
277285
else
278286
equation
279287
// show only on failtrace!

0 commit comments

Comments
 (0)