Advertisement
Guest User

Untitled

a guest
May 24th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. protected function createNewOrderedEqWithCSEs3
  2. input DAE.Exp inExp;
  3. input HashTableExpToExpAndExpLst.HashTable inHT;
  4. output DAE.Exp outExp;
  5. output HashTableExpToExpAndExpLst.HashTable outHT;
  6. protected
  7. DAE.Exp key, value;
  8. list<DAE.Exp> valueLst;
  9. algorithm
  10. if Flags.isSet(Flags.DUMP_CSE_VERBOSE) then
  11. print("Exp_: " + ExpressionDump.printExpStr(inExp) + "\n");
  12. end if;
  13. if BaseHashTable.hasKey(inExp, inHT) then
  14. (value, valueLst) := BaseHashTable.get(inExp, inHT);
  15. outHT := updateHT(inExp, value, inHT);
  16. outExp := value;
  17. else
  18. outExp := inExp;
  19. outHT := inHT;
  20. end if;
  21. end createNewOrderedEqWithCSEs3;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement