Skip to content

Commit 6ac7652

Browse files
author
Jens Frenkel
committed
- bugfix remove simple equations, take care on statesets
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14460 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 08f4d98 commit 6ac7652

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Compiler/BackEnd/BackendDump.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ algorithm
332332
end match;
333333
end printEquationNo;
334334

335-
protected function printStateSets
335+
public function printStateSets
336336
input BackendDAE.StateSets stateSets;
337337
algorithm
338338
List.map_0(stateSets, printStateSet);

Compiler/BackEnd/RemoveSimpleEquations.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2832,7 +2832,7 @@ algorithm
28322832
list<BackendDAE.Equation> ceqns;
28332833
BackendDAE.StateSets sets;
28342834
Boolean b,b1;
2835-
case(_,_,_,_,_) then (iAcc,iDoRepl);
2835+
case({},_,_,_,_) then (iAcc,iDoRepl);
28362836
case(BackendDAE.STATESET(states,ceqns,dstates)::sets,_,_,_,_)
28372837
equation
28382838
// do replacements in states is not neccessary because alias states are not replaced

0 commit comments

Comments
 (0)