summaryrefslogtreecommitdiff
path: root/src/printer
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2021-05-12 23:33:00 -0700
committerGitHub <noreply@github.com>2021-05-13 06:33:00 +0000
commit31242de4b423d7225174dd1672edb2dacb68f5b8 (patch)
tree657a453475affc67628b1391909af92f3346b411 /src/printer
parentffd7bb2069df08c31fd9d8a03d786f1e9fc7147c (diff)
Add std::hash overloads for Node, TNode and TypeNode. (#6534)
Eliminates NodeHashFunction, TNodeHashFunction and TypeNodeHashFunction.
Diffstat (limited to 'src/printer')
-rw-r--r--src/printer/let_binding.cpp4
-rw-r--r--src/printer/let_binding.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/printer/let_binding.cpp b/src/printer/let_binding.cpp
index 16fc4703c..a807b9d83 100644
--- a/src/printer/let_binding.cpp
+++ b/src/printer/let_binding.cpp
@@ -82,8 +82,8 @@ Node LetBinding::convert(Node n, const std::string& prefix, bool letTop) const
return n;
}
NodeManager* nm = NodeManager::currentNM();
- std::unordered_map<TNode, Node, TNodeHashFunction> visited;
- std::unordered_map<TNode, Node, TNodeHashFunction>::iterator it;
+ std::unordered_map<TNode, Node> visited;
+ std::unordered_map<TNode, Node>::iterator it;
std::vector<TNode> visit;
TNode cur;
visit.push_back(n);
diff --git a/src/printer/let_binding.h b/src/printer/let_binding.h
index abdf5985d..b67ceb129 100644
--- a/src/printer/let_binding.h
+++ b/src/printer/let_binding.h
@@ -87,7 +87,7 @@ namespace cvc5 {
class LetBinding
{
using NodeList = context::CDList<Node>;
- using NodeIdMap = context::CDHashMap<Node, uint32_t, NodeHashFunction>;
+ using NodeIdMap = context::CDHashMap<Node, uint32_t>;
public:
LetBinding(uint32_t thresh = 2);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback