diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2021-05-12 23:33:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 06:33:00 +0000 |
commit | 31242de4b423d7225174dd1672edb2dacb68f5b8 (patch) | |
tree | 657a453475affc67628b1391909af92f3346b411 /src/theory/shared_terms_database.h | |
parent | ffd7bb2069df08c31fd9d8a03d786f1e9fc7147c (diff) |
Add std::hash overloads for Node, TNode and TypeNode. (#6534)
Eliminates NodeHashFunction, TNodeHashFunction and TypeNodeHashFunction.
Diffstat (limited to 'src/theory/shared_terms_database.h')
-rw-r--r-- | src/theory/shared_terms_database.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/theory/shared_terms_database.h b/src/theory/shared_terms_database.h index 655c2aa88..40f6080e5 100644 --- a/src/theory/shared_terms_database.h +++ b/src/theory/shared_terms_database.h @@ -47,7 +47,7 @@ class SharedTermsDatabase : public context::ContextNotifyObj { IntStat d_statSharedTerms; // Needs to be a map from Nodes as after a backtrack they might not exist - typedef std::unordered_map<Node, shared_terms_list, TNodeHashFunction> SharedTermsMap; + typedef std::unordered_map<Node, shared_terms_list> SharedTermsMap; /** A map from atoms to a list of shared terms */ SharedTermsMap d_atomsToTerms; @@ -66,12 +66,11 @@ class SharedTermsDatabase : public context::ContextNotifyObj { SharedTermsTheoriesMap d_termsToTheories; /** Map from term to theories that have already been notified about the shared term */ - typedef context::CDHashMap<TNode, theory::TheoryIdSet, TNodeHashFunction> - AlreadyNotifiedMap; + typedef context::CDHashMap<TNode, theory::TheoryIdSet> AlreadyNotifiedMap; AlreadyNotifiedMap d_alreadyNotifiedMap; /** The registered equalities for propagation */ - typedef context::CDHashSet<Node, NodeHashFunction> RegisteredEqualitiesSet; + typedef context::CDHashSet<Node> RegisteredEqualitiesSet; RegisteredEqualitiesSet d_registeredEqualities; private: |