Skip to content

Commit

Permalink
- rewrite function makeZeroCrossing without match case
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7495 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Dec 19, 2010
1 parent f2eff89 commit ce5f92e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Compiler/BackEnd/BackendDAECreate.mo
Expand Up @@ -3067,16 +3067,11 @@ protected function makeZeroCrossing
Constructs a BackendDAE.ZeroCrossing from an expression and lists of equation indices
and when clause indices."
input DAE.Exp inExp1;
input list<Integer> inIntegerLst2;
input list<Integer> inIntegerLst3;
input list<Integer> eq_ind;
input list<Integer> wc_ind;
output BackendDAE.ZeroCrossing outZeroCrossing;
algorithm
outZeroCrossing := matchcontinue (inExp1,inIntegerLst2,inIntegerLst3)
local
DAE.Exp e;
list<BackendDAE.Value> eq_ind,wc_ind;
case (e,eq_ind,wc_ind) then BackendDAE.ZERO_CROSSING(e,eq_ind,wc_ind);
end matchcontinue;
outZeroCrossing := BackendDAE.ZERO_CROSSING(inExp1,eq_ind,wc_ind);
end makeZeroCrossing;

protected function makeZeroCrossings
Expand Down

0 comments on commit ce5f92e

Please sign in to comment.