Skip to content

Commit

Permalink
- Fixed ExpressionSimplify.simplify testcases using the bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Oct 27, 2010
1 parent 6ea1dd6 commit 326775b
Show file tree
Hide file tree
Showing 12 changed files with 224 additions and 223 deletions.
4 changes: 4 additions & 0 deletions Compiler/Builtin.mo
Expand Up @@ -1973,6 +1973,9 @@ protected constant DAE.Type list2boolean=(
protected constant DAE.Type AlistA2boolean=(
DAE.T_FUNCTION({("el",typeA),("lst",(DAE.T_LIST(typeA),NONE()))},DAE.T_BOOL_DEFAULT,DAE.NO_INLINE()),NONE());

protected constant DAE.Type boxed2int=(
DAE.T_FUNCTION({("x",typeBoxedAny)},DAE.T_INTEGER_DEFAULT,DAE.NO_INLINE()),NONE());

protected constant DAE.Type boxed2any=(
DAE.T_FUNCTION({("x",typeBoxedAny)},((DAE.T_NOTYPE(),NONE())),DAE.NO_INLINE()),NONE());

Expand Down Expand Up @@ -3027,6 +3030,7 @@ algorithm
// Global State
env = Env.extendFrameT(env, "getGlobalRoot", int2boxed);
env = Env.extendFrameT(env, "setGlobalRoot", intBoxedNoRetcall);
env = Env.extendFrameT(env, "valueConstructor", boxed2int);
then env;
case env then env;
end matchcontinue;
Expand Down
12 changes: 6 additions & 6 deletions Compiler/ErrorExt.mo
Expand Up @@ -55,13 +55,13 @@ public function updateCurrentComponent
end updateCurrentComponent;

public function addMessage
input Error.ErrorID inErrorID1;
input String inString2;
input String inString3;
input String inString4;
input list<String> inStringLst5;
input Error.ErrorID id;
input String msg_type;
input String msg_severity;
input String msg;
input list<String> msg_tokens;

external "C" ;
external "C" Error_addMessage(id,msg_type,msg_severity,msg,msg_tokens) annotation(Library = "omcruntime");
end addMessage;

public function addSourceMessage
Expand Down

0 comments on commit 326775b

Please sign in to comment.