Skip to content

Commit

Permalink
BackendDump.mo: dump final prefix
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8670 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Apr 15, 2011
1 parent 1d79b46 commit 06cfc2a
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Compiler/BackEnd/BackendDump.mo
Expand Up @@ -1065,9 +1065,9 @@ algorithm
local
Option<DAE.Exp> min,max,start,fixed,nominal;
String snominal;
Option<Boolean> isProtected;
Option<Boolean> isProtected,finalPrefix;
case NONE() then ();
case SOME(DAE.VAR_ATTR_REAL(min=(min,max),initial_=start,fixed=fixed,nominal=nominal,isProtected=isProtected))
case SOME(DAE.VAR_ATTR_REAL(min=(min,max),initial_=start,fixed=fixed,nominal=nominal,isProtected=isProtected,finalPrefix=finalPrefix))
equation
print("(");
dumpOptExpression(min,"min");
Expand All @@ -1076,41 +1076,46 @@ algorithm
dumpOptExpression(fixed,"fixed");
dumpOptExpression(nominal,"nominal");
dumpOptBoolean(isProtected,"protected");
dumpOptBoolean(finalPrefix,"final");
print(") ");
then ();
case SOME(DAE.VAR_ATTR_INT(min=(min,max),initial_=start,fixed=fixed,isProtected=isProtected))
case SOME(DAE.VAR_ATTR_INT(min=(min,max),initial_=start,fixed=fixed,isProtected=isProtected,finalPrefix=finalPrefix))
equation
print("(");
dumpOptExpression(min,"min");
dumpOptExpression(max,"max");
dumpOptExpression(start,"start");
dumpOptExpression(fixed,"fixed");
dumpOptBoolean(isProtected,"protected");
dumpOptBoolean(finalPrefix,"final");
print(") ");
then ();
case SOME(DAE.VAR_ATTR_BOOL(initial_=start,fixed=fixed,isProtected=isProtected))
case SOME(DAE.VAR_ATTR_BOOL(initial_=start,fixed=fixed,isProtected=isProtected,finalPrefix=finalPrefix))
equation
print("(");
dumpOptExpression(start,"start");
dumpOptExpression(fixed,"fixed");
dumpOptBoolean(isProtected,"protected");
dumpOptBoolean(finalPrefix,"final");
print(") ");
then ();
case SOME(DAE.VAR_ATTR_STRING(initial_=start,isProtected=isProtected))
case SOME(DAE.VAR_ATTR_STRING(initial_=start,isProtected=isProtected,finalPrefix=finalPrefix))
equation
print("(");
dumpOptExpression(start,"start");
dumpOptBoolean(isProtected,"protected");
dumpOptBoolean(finalPrefix,"final");
print(") ");
then ();
case SOME(DAE.VAR_ATTR_ENUMERATION(min=(min,max),start=start,fixed=fixed,isProtected=isProtected))
case SOME(DAE.VAR_ATTR_ENUMERATION(min=(min,max),start=start,fixed=fixed,isProtected=isProtected,finalPrefix=finalPrefix))
equation
print("(");
dumpOptExpression(min,"min");
dumpOptExpression(max,"max");
dumpOptExpression(start,"start");
dumpOptExpression(fixed,"fixed");
dumpOptBoolean(isProtected,"protected");
dumpOptBoolean(finalPrefix,"final");
print(") ");
then ();
else ();
Expand Down

0 comments on commit 06cfc2a

Please sign in to comment.