summaryrefslogtreecommitdiff
path: root/src/smt/expand_definitions.h
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/smt/expand_definitions.h
parentffd7bb2069df08c31fd9d8a03d786f1e9fc7147c (diff)
Add std::hash overloads for Node, TNode and TypeNode. (#6534)
Eliminates NodeHashFunction, TNodeHashFunction and TypeNodeHashFunction.
Diffstat (limited to 'src/smt/expand_definitions.h')
-rw-r--r--src/smt/expand_definitions.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/smt/expand_definitions.h b/src/smt/expand_definitions.h
index d4e591c31..801622e27 100644
--- a/src/smt/expand_definitions.h
+++ b/src/smt/expand_definitions.h
@@ -51,8 +51,7 @@ class ExpandDefs
* @param cache Cache of previous results
* @return The expanded term.
*/
- Node expandDefinitions(
- TNode n, std::unordered_map<Node, Node, NodeHashFunction>& cache);
+ Node expandDefinitions(TNode n, std::unordered_map<Node, Node>& cache);
/**
* Set proof node manager, which signals this class to enable proofs using the
@@ -65,10 +64,9 @@ class ExpandDefs
* Helper function for above, called to specify if we want proof production
* based on the optional argument tpg.
*/
- theory::TrustNode expandDefinitions(
- TNode n,
- std::unordered_map<Node, Node, NodeHashFunction>& cache,
- TConvProofGenerator* tpg);
+ theory::TrustNode expandDefinitions(TNode n,
+ std::unordered_map<Node, Node>& cache,
+ TConvProofGenerator* tpg);
/** Reference to the environment. */
Env& d_env;
/** Reference to the SMT stats */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback