Skip to content

Commit

Permalink
#2769 Traverse the function body of used partially evaluated function…
Browse files Browse the repository at this point in the history
…s when looking for unused functions...

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21741 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Aug 4, 2014
1 parent 3b9a7c9 commit 4968dc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Compiler/BackEnd/BackendDAEOptimize.mo
Expand Up @@ -1622,11 +1622,11 @@ algorithm
// add it
case ((e as DAE.PARTEVALFUNCTION(path = path),(func,usefuncs)))
equation
(f as SOME(_)) = DAEUtil.avlTreeGet(func, path);
(f,body) = getFunctionAndBody(path,func);
usefuncs1 = DAEUtil.avlTreeAdd(usefuncs, path, f);
// print("add partial function " +& Absyn.pathStringNoQual(path) +& "\n");
(_,(_,usefuncs2)) = DAEUtil.traverseDAE2(body,checkUnusedFunctions,(func,usefuncs1));
then
((e, (func,usefuncs1)));
((e, (func,usefuncs2)));

else inTuple;
end matchcontinue;
Expand Down

0 comments on commit 4968dc2

Please sign in to comment.