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@20599 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed May 14, 2014
1 parent cf2a74d commit 5043b8c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Compiler/BackEnd/ExpressionSolve.mo
Expand Up @@ -227,7 +227,7 @@ algorithm
false = Expression.expHasDerCref(inExp2, cr);
then
(inExp1,{});

// log(a) = b => a = exp(b)
case (DAE.CALL(path = Absyn.IDENT(name = "log"),expLst = {DAE.CREF(componentRef = cr1)}),_,DAE.CREF(componentRef = cr))
equation
Expand All @@ -236,7 +236,7 @@ algorithm
e2 = Expression.makeBuiltinCall("exp",{inExp2},DAE.T_REAL_DEFAULT);
then
(e2,{});

// b = log(a)=> a = exp(b)
case (_,DAE.CALL(path = Absyn.IDENT(name = "log"),expLst = {DAE.CREF(componentRef = cr1)}),DAE.CREF(componentRef = cr))
equation
Expand All @@ -245,7 +245,7 @@ algorithm
e2 = Expression.makeBuiltinCall("exp",{inExp1},DAE.T_REAL_DEFAULT);
then
(e2,{});

// exp(a) = b => a = log(b)
case (DAE.CALL(path = Absyn.IDENT(name = "exp"),expLst = {DAE.CREF(componentRef = cr1)}),_,DAE.CREF(componentRef = cr))
equation
Expand All @@ -254,7 +254,7 @@ algorithm
e2 = Expression.makeBuiltinCall("log",{inExp2},DAE.T_REAL_DEFAULT);
then
(e2,{});

// b = exp(a)=> a = exp(b)
case (_,DAE.CALL(path = Absyn.IDENT(name = "exp"),expLst = {DAE.CREF(componentRef = cr1)}),DAE.CREF(componentRef = cr))
equation
Expand All @@ -263,7 +263,7 @@ algorithm
e2 = Expression.makeBuiltinCall("log",{inExp1},DAE.T_REAL_DEFAULT);
then
(e2,{});

// a^n = c => a = c^-n
// where n is odd
case (DAE.BINARY(DAE.CREF(componentRef = cr1),DAE.POW(tp),DAE.RCONST(r)), _, DAE.CREF(componentRef = cr))
Expand All @@ -276,7 +276,7 @@ algorithm
e2 = DAE.BINARY(inExp2,DAE.POW(tp),e1);
then
(e2,{});

// c = a^n => a = c^-n
// where n is odd
case (_, DAE.BINARY(DAE.CREF(componentRef = cr1),DAE.POW(tp),DAE.RCONST(r)), DAE.CREF(componentRef = cr))
Expand All @@ -289,7 +289,7 @@ algorithm
e2 = DAE.BINARY(inExp1,DAE.POW(tp),e1);
then
(e2,{});

// -cr = exp
case (DAE.UNARY(operator = DAE.UMINUS(ty=_), exp = DAE.CREF(componentRef = cr1)),_,DAE.CREF(componentRef = cr))
equation
Expand Down

0 comments on commit 5043b8c

Please sign in to comment.