Skip to content

Commit

Permalink
- fix cse for Annex60 model
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23422 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Volker Waurich committed Nov 18, 2014
1 parent 3b5ade5 commit 4490009
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/BackEnd/CommonSubExpression.mo
Expand Up @@ -357,7 +357,7 @@ algorithm
varExp = BackendVariable.varExp(var1);
repl = BackendVarTransform.addReplacement(repl,cref,varExp,NONE());
//BackendVarTransform.dumpReplacements(repl);
eqIdcs = arrayGet(mT,varIdx2);
eqIdcs = arrayGet(mT,varIdxRepl);
eqLst = BackendEquation.getEqns(eqIdcs,eqs);
(eqLst,_) = BackendVarTransform.replaceEquations(eqLst,repl,NONE());
eqs = List.threadFold(eqIdcs,eqLst,BackendEquation.setAtIndexFirst,eqs);
Expand All @@ -368,7 +368,7 @@ algorithm
shared = updateAllAliasVars(sharedIn,repl);
shared = BackendVariable.addAliasVarDAE(var2,shared);
eqSys = BackendDAE.EQSYSTEM(vars,eqs,NONE(),NONE(),BackendDAE.NO_MATCHING(),stateSets,partitionKind);
then commonSubExpressionUpdate(rest,m,mT,eqSys,shared,eqIdx2::deleteEqLstIn);
then commonSubExpressionUpdate(rest,m,mT,eqSys,shared,eqIdxDel::deleteEqLstIn);
case(_::rest,_,_,_,_,_)
equation
then commonSubExpressionUpdate(rest,m,mT,sysIn,sharedIn,deleteEqLstIn);
Expand Down

0 comments on commit 4490009

Please sign in to comment.