Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected function createNewOrderedEqWithCSEs3
- input DAE.Exp inExp;
- input HashTableExpToExpAndExpLst.HashTable inHT;
- output DAE.Exp outExp;
- output HashTableExpToExpAndExpLst.HashTable outHT;
- protected
- DAE.Exp key, value;
- list<DAE.Exp> valueLst;
- algorithm
- if Flags.isSet(Flags.DUMP_CSE_VERBOSE) then
- print("Exp_: " + ExpressionDump.printExpStr(inExp) + "\n");
- end if;
- if BaseHashTable.hasKey(inExp, inHT) then
- (value, valueLst) := BaseHashTable.get(inExp, inHT);
- outHT := updateHT(inExp, value, inHT);
- outExp := value;
- else
- outExp := inExp;
- outHT := inHT;
- end if;
- end createNewOrderedEqWithCSEs3;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement