Skip to content

Commit

Permalink
-Changed implementation of unused (by OpenModelica) function expIsPos…
Browse files Browse the repository at this point in the history
…itive to be based on expIsPositiveOrZero.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12691 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Aug 27, 2012
1 parent cb626fb commit afbc5f6
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions Compiler/FrontEnd/Expression.mo
Original file line number Diff line number Diff line change
Expand Up @@ -6737,18 +6737,7 @@ See also isPositiveOrZero.
input DAE.Exp e;
output Boolean res;
algorithm
res := matchcontinue(e)
local
DAE.Exp e1,e2;

/* constant >= 0 */
case(e) equation
true = isConst(e);
false = expReal(e) <. intReal(0);
then true;

else false;
end matchcontinue;
res :=isPositiveOrZero(e) and not isZero(e);
end expIsPositive;

public function isEven "returns true if expression is even"
Expand Down

0 comments on commit afbc5f6

Please sign in to comment.