Skip to content

Commit

Permalink
Fix BackendVarTransform.replaceExp
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaeuber committed Oct 4, 2016
1 parent a6e4095 commit c687a77
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Compiler/BackEnd/BackendVarTransform.mo
Expand Up @@ -1045,6 +1045,14 @@ algorithm
isIterationVar(repl, ident)
then
(e,false);
case ((e as DAE.CREF(componentRef = cr,ty = t)),repl,cond)
guard replaceExpCond(cond, e)
equation
(cr,_) = replaceCrefSubs(cr,repl,cond);
e1 = getReplacement(repl, cr);
e2 = avoidDoubleHashLookup(e1,t);
then
(e2,true);
case ((e as DAE.CREF(componentRef = cr)),repl,cond)
guard replaceExpCond(cond, e)
equation
Expand All @@ -1054,14 +1062,6 @@ algorithm
(e3,_) = replaceExp(e2,repl,cond);
then
(e3,true);
case ((e as DAE.CREF(componentRef = cr,ty = t)),repl,cond)
guard replaceExpCond(cond, e)
equation
(cr,_) = replaceCrefSubs(cr,repl,cond);
e1 = getReplacement(repl, cr);
e2 = avoidDoubleHashLookup(e1,t);
then
(e2,true);
case ((e as DAE.CREF(componentRef = cr,ty = t)),repl,cond)
guard replaceExpCond(cond, e)
equation
Expand Down

0 comments on commit c687a77

Please sign in to comment.