Skip to content

Commit

Permalink
- remove trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich authored and OpenModelica-Hudson committed Jun 15, 2015
1 parent 3a00a42 commit 10e080e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Compiler/BackEnd/EvaluateFunctions.mo
Expand Up @@ -1637,7 +1637,7 @@ algorithm
scalars = getRecordScalars(cref);
(exp2,_) = BackendVarTransform.replaceExp(exp2,replIn,NONE());
(exp2,_) = ExpressionSimplify.simplify(exp2);

(exp2,(exp1,funcTree,idx,addStmts)) = Expression.traverseExpTopDown(exp2,evaluateConstantFunctionWrapper,(exp1,funcTree,idx,{}));

// (exp2,changed) = bcallret1_2(changed,ExpressionSimplify.simplify,exp2,exp2,changed); This does nothing useful with the statement below...
Expand Down Expand Up @@ -2352,17 +2352,17 @@ algorithm
list<BackendDAE.Equation> addEqs;
list<DAE.Statement> stmts,stmtsIn;
case (DAE.CALL(),(lhs,funcs,idx,stmtsIn))
equation
equation
((rhs,lhs,addEqs,funcs,idx,_)) = evaluateConstantFunction(inExp,lhs,funcs,idx);
stmts = List.map(addEqs,equationToStmt);
stmts = listAppend(stmts,stmtsIn);
then (rhs,true,(lhs,funcs,idx,stmts));

case (DAE.UNBOX(exp=rhs, ty=ty),(lhs,funcs,idx,stmts))
equation
(rhs,_,(lhs,funcs,idx,stmts)) = evaluateConstantFunctionWrapper(rhs,inTpl);
then (rhs,true,(lhs,funcs,idx,stmts));

case (rhs,(lhs,funcs,idx,stmtsIn))
then (rhs,false,(lhs,funcs,idx,stmtsIn));
end matchcontinue;
Expand Down
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/Expression.mo
Expand Up @@ -7297,7 +7297,7 @@ algorithm
/*TODO:Make this work for multiple iters, guard exps*/
case (DAE.REDUCTION(expr=e1,iterators={DAE.REDUCTIONITER(exp=e2)}),_)
then isConstWork(e1,isConstWork(e2,true));

case(DAE.BOX(exp=e),_) then isConstWork(e,true);

else false;
Expand Down

0 comments on commit 10e080e

Please sign in to comment.