Skip to content

Commit

Permalink
- fixed removeSimpleEquations for TUPLE(WILD,cref)
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18348 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Nov 29, 2013
1 parent 33d355b commit 3d3c278
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Compiler/BackEnd/RemoveSimpleEquations.mo
Expand Up @@ -3867,12 +3867,17 @@ algorithm
HashSet.HashSet hs;
DAE.ComponentRef cr;
DAE.Exp e;
case((e as DAE.CREF(componentRef=DAE.WILD()), hs))
then
inExp;

case((e as DAE.CREF(componentRef=cr), hs))
equation
cr = ComponentReference.crefStripLastSubs(cr);
hs = BaseHashSet.add(cr, hs);
then
((e, hs ));
// let WILD pass
case _ then inExp;
end match;
end addUnreplaceableFromEqnsExp;
Expand Down

0 comments on commit 3d3c278

Please sign in to comment.