summaryrefslogtreecommitdiff
path: root/src/proof
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/proof
parentffd7bb2069df08c31fd9d8a03d786f1e9fc7147c (diff)
Add std::hash overloads for Node, TNode and TypeNode. (#6534)
Eliminates NodeHashFunction, TNodeHashFunction and TypeNodeHashFunction.
Diffstat (limited to 'src/proof')
-rw-r--r--src/proof/cnf_proof.h4
-rw-r--r--src/proof/proof_manager.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/proof/cnf_proof.h b/src/proof/cnf_proof.h
index 50ce78eb8..8e8f2bc91 100644
--- a/src/proof/cnf_proof.h
+++ b/src/proof/cnf_proof.h
@@ -32,14 +32,14 @@ namespace prop {
class CnfProof;
-typedef std::unordered_map<Node, Node, NodeHashFunction> NodeToNode;
+typedef std::unordered_map<Node, Node> NodeToNode;
typedef std::unordered_set<ClauseId> ClauseIdSet;
typedef context::CDHashMap<ClauseId, Node> ClauseIdToNode;
typedef std::pair<Node, Node> NodePair;
typedef std::set<NodePair> NodePairSet;
-typedef std::unordered_set<Node, NodeHashFunction> NodeSet;
+typedef std::unordered_set<Node> NodeSet;
class CnfProof {
protected:
diff --git a/src/proof/proof_manager.h b/src/proof/proof_manager.h
index f0bc20fea..8d1bbc70c 100644
--- a/src/proof/proof_manager.h
+++ b/src/proof/proof_manager.h
@@ -54,8 +54,8 @@ namespace prop {
} // namespace prop
typedef std::unordered_map<ClauseId, prop::SatClause*> IdToSatClause;
-typedef context::CDHashSet<Node, NodeHashFunction> CDNodeSet;
-typedef context::CDHashMap<Node, std::vector<Node>, NodeHashFunction> CDNodeToNodes;
+typedef context::CDHashSet<Node> CDNodeSet;
+typedef context::CDHashMap<Node, std::vector<Node>> CDNodeToNodes;
typedef std::unordered_set<ClauseId> IdHashSet;
class ProofManager {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback