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/arith/nl/ext | |
parent | ffd7bb2069df08c31fd9d8a03d786f1e9fc7147c (diff) |
Add std::hash overloads for Node, TNode and TypeNode. (#6534)
Eliminates NodeHashFunction, TNodeHashFunction and TypeNodeHashFunction.
Diffstat (limited to 'src/theory/arith/nl/ext')
-rw-r--r-- | src/theory/arith/nl/ext/ext_state.h | 2 | ||||
-rw-r--r-- | src/theory/arith/nl/ext/monomial_check.cpp | 2 | ||||
-rw-r--r-- | src/theory/arith/nl/ext/split_zero_check.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/theory/arith/nl/ext/ext_state.h b/src/theory/arith/nl/ext/ext_state.h index b2279344d..b0a4fd859 100644 --- a/src/theory/arith/nl/ext/ext_state.h +++ b/src/theory/arith/nl/ext/ext_state.h @@ -86,7 +86,7 @@ struct ExtState // ( x*y, x*z, y ) for each pair of monomials ( x*y, x*z ) with common factors std::map<Node, std::map<Node, Node> > d_mono_diff; /** the set of monomials we should apply tangent planes to */ - std::unordered_set<Node, NodeHashFunction> d_tplane_refine; + std::unordered_set<Node> d_tplane_refine; }; } // namespace nl diff --git a/src/theory/arith/nl/ext/monomial_check.cpp b/src/theory/arith/nl/ext/monomial_check.cpp index 6df35c71d..404916453 100644 --- a/src/theory/arith/nl/ext/monomial_check.cpp +++ b/src/theory/arith/nl/ext/monomial_check.cpp @@ -238,7 +238,7 @@ void MonomialCheck::checkMagnitude(unsigned c) Trace("nl-ext-comp") << "Compute redundancies for " << lemmas.size() << " lemmas." << std::endl; // naive - std::unordered_set<Node, NodeHashFunction> r_lemmas; + std::unordered_set<Node> r_lemmas; for (std::map<int, std::map<Node, std::map<Node, Node> > >::iterator itb = cmp_infers.begin(); itb != cmp_infers.end(); diff --git a/src/theory/arith/nl/ext/split_zero_check.h b/src/theory/arith/nl/ext/split_zero_check.h index b42c7932d..c50737d51 100644 --- a/src/theory/arith/nl/ext/split_zero_check.h +++ b/src/theory/arith/nl/ext/split_zero_check.h @@ -40,7 +40,7 @@ class SplitZeroCheck void check(); private: - using NodeSet = context::CDHashSet<Node, NodeHashFunction>; + using NodeSet = context::CDHashSet<Node>; /** Basic data that is shared with other checks */ ExtState* d_data; |