Skip to content

Commit

Permalink
- small fixes so that OMC bootstrapping works!
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8266 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Mar 17, 2011
1 parent 8b85235 commit 53d870f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Compiler/BackEnd/BackendDAEOptimize.mo
Expand Up @@ -3537,7 +3537,9 @@ protected function createDiffListMeta
partial function FuncExpType
input tuple<DAE.Exp, DAE.ComponentRef, Option<Type_a>> inTplExpTypeA;
output DAE.Exp outTplExpTypeA;
replaceable type Type_a subtypeof Any;
end FuncExpType;
replaceable type Type_a subtypeof Any;
algorithm
outExpList := matchcontinue (inExp, indiffVars, func, inTypeA)
local
Expand Down Expand Up @@ -3575,6 +3577,7 @@ end createDiffListMeta;
protected function diffInt
input tuple<DAE.Exp, DAE.ComponentRef, Option<Type_a>> inTplExpTypeA;
output DAE.Exp outTplExpTypeA;
replaceable type Type_a subtypeof Any;
algorithm
outTplExpTypeA := matchcontinue(inTplExpTypeA)
case(_) then DAE.ICONST(0);
Expand All @@ -3584,6 +3587,7 @@ end diffInt;
protected function diffRealZero
input tuple<DAE.Exp, DAE.ComponentRef, Option<Type_a>> inTplExpTypeA;
output DAE.Exp outTplExpTypeA;
replaceable type Type_a subtypeof Any;
algorithm
outTplExpTypeA := matchcontinue(inTplExpTypeA)
case(_) then DAE.RCONST(0.0);
Expand All @@ -3593,6 +3597,7 @@ end diffRealZero;
protected function diffCrefVar
input tuple<DAE.Exp, DAE.ComponentRef, Option<Type_a>> inTplExpTypeA;
output DAE.Exp outTplExpTypeA;
replaceable type Type_a subtypeof Any;
algorithm
outTplExpTypeA := matchcontinue(inTplExpTypeA)
local
Expand Down Expand Up @@ -3674,6 +3679,7 @@ end diffCref;
protected function diffDerCref
input tuple<DAE.Exp, DAE.ComponentRef, Option<Type_a>> inTplExpTypeA;
output DAE.Exp outTplExpTypeA;
replaceable type Type_a subtypeof Any;
algorithm
outTplExpTypeA := matchcontinue(inTplExpTypeA)
local
Expand Down
2 changes: 1 addition & 1 deletion Compiler/Template/TplMain.mo
Expand Up @@ -16,7 +16,7 @@ public import TplCodegen;

protected
constant Tpl.Text emptyTxt = Tpl.MEM_TEXT({}, {});
constant SourceInfo dsi = TplAbsyn.dummySourceInfo;
constant TplAbsyn.SourceInfo dsi = TplAbsyn.dummySourceInfo;


public function main
Expand Down
6 changes: 3 additions & 3 deletions Compiler/Util/Util.mo
Expand Up @@ -2293,15 +2293,15 @@ algorithm
outLst:=
matchcontinue (lst,func,a1,a2,a3,a4,a5,a6,a7,a8)
local
list<Type_i> f_1;
list<Type_i> r_1;
list<Type_j> f_1;
list<list<Type_j>> r_1;
Type_a f;
list<Type_a> r;

case ({},_,_,_,_,_,_,_,_,_) then {};
case ((f :: r),func,a1,a2,a3,a4,a5,a6,a7,a8)
equation
f_1 = func(f, a1,a2,a3,a4,a5,a6,a7,a8);
f_1 = func(f,a1,a2,a3,a4,a5,a6,a7,a8);
r_1 = listMap8list(r, func, a1,a2,a3,a4,a5,a6,a7,a8);
then
(f_1 :: r_1);
Expand Down

0 comments on commit 53d870f

Please sign in to comment.