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@23771 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Dec 12, 2014
1 parent d89adcd commit f2b07d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Compiler/BackEnd/BackendDAE.mo
Expand Up @@ -703,19 +703,19 @@ public uniontype compInfo"types to count operations for the components"
Integer numAdds;
Integer numMul;
Integer numTrig;
Integer numRelations;
Integer numRelations;
Integer numLog; // logical operations
Integer numOth; // pow,...
Integer funcCalls;
end COUNTER;

record LES_ANALYSE//linear system of equations
StrongComponent comp;
compInfo allOperations;
Integer size;
Real density;
end LES_ANALYSE;

end compInfo;


Expand Down
10 changes: 5 additions & 5 deletions Compiler/BackEnd/BackendDAEOptimize.mo
Expand Up @@ -2277,11 +2277,11 @@ algorithm
(_,tpl) = traversecountOperationsExp(exp2,shared,tpl);
(_,(i1,i2,i3,i4,i5,i6,i7)) = traversecountOperationsExp(cond,shared,tpl);
then (e, (i1,i2,i3,i4,i5,i6+1,i7));

case (e as DAE.RECORD(exps=expLst),_,_) equation
(_,tpl) = Expression.traverseExpList(expLst,function countOperationsExp(shared=shared),inTuple);
then (e, tpl);

case (e as DAE.ARRAY(array=expLst),_,_) equation
(_,tpl) = Expression.traverseExpList(expLst,function countOperationsExp(shared=shared),inTuple);
then (e, tpl);
Expand All @@ -2293,16 +2293,16 @@ algorithm
case (e as DAE.CALL(path=Absyn.IDENT(name=opName)),_,(i1,i2,i3,i4,i5,i6,i7)) equation
true = stringEq(opName,"sin") or stringEq(opName,"cos") or stringEq(opName,"tan");
then (e, (i1,i2,i3,i4+1,i5,i6,i7));

case (e as DAE.CALL(path=Absyn.IDENT(name=opName)),_,(i1,i2,i3,i4,i5,i6,i7)) equation
true = stringEq(opName,"exp");
then (e, (i1,i2,i3+1,i4,i5,i6,i7));

case (e as DAE.CALL(path=path),_,_) equation
func = DAEUtil.getNamedFunction(path,BackendDAEUtil.getFunctions(shared));
elemLst = DAEUtil.getFunctionElements(func);
//print(ExpressionDump.dumpExpStr(e,0)+"\n");
//print("THE FUCNTION CALL\n "+DAEDump.dumpElementsStr(elemLst)+"\n");
//print("THE FUCNTION CALL\n "+DAEDump.dumpElementsStr(elemLst)+"\n");
(i1,i2,i3,i4,i5,i6,i7) = countOperationsInFunction(elemLst,shared,inTuple);
then (e, (i1,i2,i3,i4,i5,i6,i7+1));
else
Expand Down

0 comments on commit f2b07d9

Please sign in to comment.