summaryrefslogtreecommitdiff
path: root/src/theory/relevance_manager.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/theory/relevance_manager.h
parentffd7bb2069df08c31fd9d8a03d786f1e9fc7147c (diff)
Add std::hash overloads for Node, TNode and TypeNode. (#6534)
Eliminates NodeHashFunction, TNodeHashFunction and TypeNodeHashFunction.
Diffstat (limited to 'src/theory/relevance_manager.h')
-rw-r--r--src/theory/relevance_manager.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/theory/relevance_manager.h b/src/theory/relevance_manager.h
index dc717157b..6c69861fd 100644
--- a/src/theory/relevance_manager.h
+++ b/src/theory/relevance_manager.h
@@ -104,8 +104,7 @@ class RelevanceManager
*
* The value of this return is only valid if success was not updated to false.
*/
- const std::unordered_set<TNode, TNodeHashFunction>& getRelevantAssertions(
- bool& success);
+ const std::unordered_set<TNode>& getRelevantAssertions(bool& success);
private:
/**
@@ -124,8 +123,7 @@ class RelevanceManager
* This method returns 1 if we justified n to be true, -1 means
* justified n to be false, 0 means n could not be justified.
*/
- int justify(TNode n,
- std::unordered_map<TNode, int, TNodeHashFunction>& cache);
+ int justify(TNode n, std::unordered_map<TNode, int>& cache);
/** Is the top symbol of cur a Boolean connective? */
bool isBooleanConnective(TNode cur);
/**
@@ -140,16 +138,15 @@ class RelevanceManager
* @return True if we wish to visit the next child. If this is the case, then
* the justify value of the current child is added to childrenJustify.
*/
- bool updateJustifyLastChild(
- TNode cur,
- std::vector<int>& childrenJustify,
- std::unordered_map<TNode, int, TNodeHashFunction>& cache);
+ bool updateJustifyLastChild(TNode cur,
+ std::vector<int>& childrenJustify,
+ std::unordered_map<TNode, int>& cache);
/** The valuation object, used to query current value of theory literals */
Valuation d_val;
/** The input assertions */
NodeList d_input;
/** The current relevant selection. */
- std::unordered_set<TNode, TNodeHashFunction> d_rset;
+ std::unordered_set<TNode> d_rset;
/** Have we computed the relevant selection this round? */
bool d_computed;
/**
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback