Skip to content

Commit 2f85364

Browse files
author
Vitalij Ruge
committed
remove wrong rule
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21446 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 40b8b4a commit 2f85364

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

Compiler/BackEnd/ExpressionSolve.mo

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ algorithm
190190
local
191191
DAE.ComponentRef cr,cr1;
192192
DAE.Type tp;
193-
DAE.Exp e1,e2,e3,res;
193+
DAE.Exp e1,e2,res;
194194
Real r;
195195
list<DAE.Statement> asserts;
196196

@@ -261,26 +261,11 @@ algorithm
261261
1.0 = realMod(r,2.0);
262262
false = Expression.expHasCref(inExp2, cr);
263263
true = Expression.expHasCref(e1, cr);
264-
false = Expression.expHasCref(e2, cr);
265264
res = Expression.expDiv(DAE.RCONST(1.0),e2);
266265
res = Expression.expPow(inExp2,res);
267266
(res, asserts) = solve(e1,res,inExp3);
268267
then
269268
(res,asserts);
270-
// b^(f(a)) = c => f(a) = log(|c|)/log(|b|)
271-
case (DAE.BINARY(e1,DAE.POW(tp),e2), _, DAE.CREF(componentRef = cr))
272-
equation
273-
false = Expression.expHasCref(inExp2, cr);
274-
true = Expression.expHasCref(e1, cr);
275-
true = Expression.expHasCref(e2, cr);
276-
e1 = Expression.makePureBuiltinCall("abs",{e1},tp);
277-
e1 = Expression.makePureBuiltinCall("log",{e1},tp);
278-
e3 = Expression.makePureBuiltinCall("abs",{inExp2},tp);
279-
e3 = Expression.makePureBuiltinCall("log",{e3},tp);
280-
e3 = Expression.expDiv(e3,e1);
281-
(res, asserts) = solve(e2,e3,inExp3);
282-
then
283-
(res,asserts);
284269

285270
// -cr = exp
286271
case (DAE.UNARY(operator = DAE.UMINUS(ty=_), exp = DAE.CREF(componentRef = cr1)),_,DAE.CREF(componentRef = cr))

0 commit comments

Comments
 (0)