Skip to content

Commit

Permalink
Add dumping of INITIAL_NORETCALL to DAEDump.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2427
  • Loading branch information
perost authored and OpenModelica-Hudson committed May 9, 2018
1 parent 3d7f6a4 commit a3a1750
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Compiler/Template/DAEDumpTV.mo
Expand Up @@ -433,6 +433,13 @@ package DAE
ElementSource source "the origin of the component/equation/algorithm";
end NORETCALL;

record INITIAL_NORETCALL "call with no return value, i.e. no equation.
Typically sideeffect call of external function but also
Connections.* i.e. Connections.root(...) functions."
Exp exp;
ElementSource source "the origin of the component/equation/algorithm" ;
end INITIAL_NORETCALL;

record CONSTRAINT " constraint section"
Constraint constraints;
ElementSource source "the origin of the component/equation/algorithm";
Expand Down
1 change: 1 addition & 0 deletions Compiler/Template/DAEDumpTpl.tpl
Expand Up @@ -626,6 +626,7 @@ match lst
case INITIAL_TERMINATE(__) then dumpTerminate(message, source)
case REINIT(__) then dumpReinit(componentRef, exp, source)
case NORETCALL(__) then dumpNoRetCall(exp, source)
case INITIAL_NORETCALL(__) then dumpNoRetCall(exp, source)
case INITIALDEFINE(__) then dumpDefine(componentRef, exp, source)
case INITIAL_ARRAY_EQUATION(__) then dumpEquation(exp, array, source)
case INITIAL_COMPLEX_EQUATION(__) then dumpEquation(lhs, rhs, source)
Expand Down

0 comments on commit a3a1750

Please sign in to comment.