Skip to content

Commit c88cb2c

Browse files
author
Jens Frenkel
committed
- update new index reduction method
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9309 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 08153c5 commit c88cb2c

File tree

6 files changed

+405
-126
lines changed

6 files changed

+405
-126
lines changed

Compiler/BackEnd/BackendDAE.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ uniontype DAEHandlerJop
428428
end DAEHandlerJop;
429429

430430
public
431-
type DAEHandlerArg = tuple<StateOrder,list<list<tuple<Integer,Equation>>>>;
431+
type DAEHandlerArg = tuple<StateOrder,list<tuple<Integer,list<tuple<Equation,Boolean>>>>>;
432432

433433
public
434434
uniontype StateOrder

Compiler/BackEnd/BackendDAECreate.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ protected import OptManager;
6262
protected import RTOpts;
6363
protected import SCode;
6464
protected import Util;
65-
protected import BackendDump;
6665

6766
public function lower
6867
"function: lower

Compiler/BackEnd/BackendDAEOptimize.mo

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,6 +2348,12 @@ algorithm
23482348
DAE.Exp e;
23492349
Integer k;
23502350
DAE.Operator op;
2351+
case (e1 as DAE.CREF(componentRef = cr),DAE.UNARY(operator=op as DAE.UMINUS(ty=_),exp=DAE.CREF(componentRef = _)),inVars)
2352+
then fail();
2353+
case (e1 as DAE.CREF(componentRef = cr),DAE.CREF(componentRef = _),inVars)
2354+
then fail();
2355+
case (DAE.UNARY(operator=op as DAE.UMINUS(ty=_),exp=e1 as DAE.CREF(componentRef = cr)),DAE.CREF(componentRef = _),inVars)
2356+
then fail();
23512357
// a = -f(...);
23522358
case (e1 as DAE.CREF(componentRef = cr),DAE.UNARY(operator=op as DAE.UMINUS(ty=_),exp=e2),inVars)
23532359
equation

0 commit comments

Comments
 (0)