Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23838 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Dec 17, 2014
1 parent 53f7ebe commit 2c02aad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Compiler/BackEnd/ExpressionSolve.mo
Expand Up @@ -1438,19 +1438,19 @@ protected function simplifyBinaryMulCoeff
"generalization of ExpressionSimplify.simplifyBinaryMulCoeff2"
input DAE.Exp inExp;
output tuple<DAE.Exp, DAE.Exp> outRes;
algorithm
algorithm
outRes := match(inExp)
local
DAE.Exp e,e1,e2;
DAE.Exp coeff;

case ((e as DAE.CREF()))
then ((e, DAE.RCONST(1.0)));
then ((e, DAE.RCONST(1.0)));

case (DAE.BINARY(exp1 = e1,operator = DAE.POW(),exp2 = DAE.UNARY(operator = DAE.UMINUS(), exp = coeff)))
then
((e1, Expression.negate(coeff)));

case (DAE.BINARY(exp1 = e1,operator = DAE.POW(),exp2 = coeff))
then ((e1,coeff));

Expand Down Expand Up @@ -1499,7 +1499,7 @@ algorithm
true := Expression.expEqual(e2,e5);
b1 := Expression.expEqual(e3, Expression.expMul(DAE.RCONST(2.0),e6));
b2 := Expression.expEqual(e6, Expression.expMul(DAE.RCONST(2.0),e3));

true := b1 or b2;
false := expHasCref(e1, inExp3);
true := expHasCref(e2, inExp3);
Expand Down Expand Up @@ -1574,7 +1574,7 @@ algorithm

rhs := DAE.IFEXP(con, e7 ,lhs);
lhs := if b1 then Expression.expPow(e2, e6) else Expression.expPow(e2, e3);

end solveQE;

protected function solveIfExp
Expand Down

0 comments on commit 2c02aad

Please sign in to comment.