summaryrefslogtreecommitdiff
path: root/src/smt/expand_definitions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/smt/expand_definitions.cpp')
-rw-r--r--src/smt/expand_definitions.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/smt/expand_definitions.cpp b/src/smt/expand_definitions.cpp
index 349736d15..91287e5f9 100644
--- a/src/smt/expand_definitions.cpp
+++ b/src/smt/expand_definitions.cpp
@@ -42,17 +42,16 @@ ExpandDefs::ExpandDefs(Env& env, SmtEngineStatistics& stats)
ExpandDefs::~ExpandDefs() {}
-Node ExpandDefs::expandDefinitions(
- TNode n, std::unordered_map<Node, Node, NodeHashFunction>& cache)
+Node ExpandDefs::expandDefinitions(TNode n,
+ std::unordered_map<Node, Node>& cache)
{
TrustNode trn = expandDefinitions(n, cache, nullptr);
return trn.isNull() ? Node(n) : trn.getNode();
}
-TrustNode ExpandDefs::expandDefinitions(
- TNode n,
- std::unordered_map<Node, Node, NodeHashFunction>& cache,
- TConvProofGenerator* tpg)
+TrustNode ExpandDefs::expandDefinitions(TNode n,
+ std::unordered_map<Node, Node>& cache,
+ TConvProofGenerator* tpg)
{
const TNode orig = n;
std::stack<std::tuple<Node, Node, bool>> worklist;
@@ -87,8 +86,7 @@ TrustNode ExpandDefs::expandDefinitions(
}
// maybe it's in the cache
- std::unordered_map<Node, Node, NodeHashFunction>::iterator cacheHit =
- cache.find(n);
+ std::unordered_map<Node, Node>::iterator cacheHit = cache.find(n);
if (cacheHit != cache.end())
{
TNode ret = (*cacheHit).second;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback