Skip to content

Commit

Permalink
- leftover from r15458 (VarTransform bug fix). This might cause perfo…
Browse files Browse the repository at this point in the history
…rmance problems since before the code was broken but now it works, which means that replacement rules will take longer time to create. If this is a serious problem, the VarTransform must be redesigned so that inverse rules are not kept as a list that must be taken the union of when updating rules. Instead a HashTable or avltree could be used. An alternative could be to have two data structures for variable replacements, one that is always kept transitive and one that doesn't have the transitive property.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15475 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Mar 5, 2013
1 parent 6d1d4c0 commit c2dde9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/Util/VarTransform.mo
Expand Up @@ -1071,12 +1071,12 @@ protected function addReplacementInv2 "function: addReplacementInv2
will update the rule.
"
input HashTable3.HashTable invHt;
input DAE.ComponentRef src;
input DAE.ComponentRef dst;
input DAE.ComponentRef src;
output HashTable3.HashTable outInvHt;
algorithm
outInvHt:=
matchcontinue (invHt,src,dst)
matchcontinue (invHt,dst,src)
local
HashTable3.HashTable invHt_1;
list<DAE.ComponentRef> srcs;
Expand Down

0 comments on commit c2dde9d

Please sign in to comment.