summaryrefslogtreecommitdiff
path: root/src/expr/proof_node_manager.cpp
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/expr/proof_node_manager.cpp
parentffd7bb2069df08c31fd9d8a03d786f1e9fc7147c (diff)
Add std::hash overloads for Node, TNode and TypeNode. (#6534)
Eliminates NodeHashFunction, TNodeHashFunction and TypeNodeHashFunction.
Diffstat (limited to 'src/expr/proof_node_manager.cpp')
-rw-r--r--src/expr/proof_node_manager.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/expr/proof_node_manager.cpp b/src/expr/proof_node_manager.cpp
index d4a8b604f..c2c72f35d 100644
--- a/src/expr/proof_node_manager.cpp
+++ b/src/expr/proof_node_manager.cpp
@@ -87,19 +87,19 @@ std::shared_ptr<ProofNode> ProofNodeManager::mkScope(
}
Trace("pnm-scope") << "ProofNodeManager::mkScope " << assumps << std::endl;
// we first ensure the assumptions are flattened
- std::unordered_set<Node, NodeHashFunction> ac{assumps.begin(), assumps.end()};
+ std::unordered_set<Node> ac{assumps.begin(), assumps.end()};
// map from the rewritten form of assumptions to the original. This is only
// computed in the rare case when we need rewriting to match the
// assumptions. An example of this is for Boolean constant equalities in
// scoped proofs from the proof equality engine.
- std::unordered_map<Node, Node, NodeHashFunction> acr;
+ std::unordered_map<Node, Node> acr;
// whether we have compute the map above
bool computedAcr = false;
// The free assumptions of the proof
std::map<Node, std::vector<std::shared_ptr<ProofNode>>> famap;
expr::getFreeAssumptionsMap(pf, famap);
- std::unordered_set<Node, NodeHashFunction> acu;
+ std::unordered_set<Node> acu;
for (const std::pair<const Node, std::vector<std::shared_ptr<ProofNode>>>&
fa : famap)
{
@@ -153,8 +153,7 @@ std::shared_ptr<ProofNode> ProofNodeManager::mkScope(
}
}
Node ar = theory::Rewriter::rewrite(a);
- std::unordered_map<Node, Node, NodeHashFunction>::iterator itr =
- acr.find(ar);
+ std::unordered_map<Node, Node>::iterator itr = acr.find(ar);
if (itr != acr.end())
{
aMatch = itr->second;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback