summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/inst_match.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-01-28 13:27:27 -0600
committerGitHub <noreply@github.com>2021-01-28 13:27:27 -0600
commit3234db430074e278258e6d687c07146a59769a92 (patch)
tree17db55e1ff335c3998e1c4e172d174dc9f6e3b21 /src/theory/quantifiers/inst_match.h
parent4cd2d73366aba081a38900ddc2f4f172ce9ed2f8 (diff)
Use standard equality engine information in quantifiers state (#5824)
This refactors quantifiers so that it uses the standard interfaces for setting up an equality engine and using it via TheoryState. This eliminates the need for several special interfaces including getMasterEqualityEngine, CombinationEngine::getCoreEqualityEngine, and most uses of EqualityQuery.
Diffstat (limited to 'src/theory/quantifiers/inst_match.h')
-rw-r--r--src/theory/quantifiers/inst_match.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/theory/quantifiers/inst_match.h b/src/theory/quantifiers/inst_match.h
index a51c0ecdc..e3d7909b7 100644
--- a/src/theory/quantifiers/inst_match.h
+++ b/src/theory/quantifiers/inst_match.h
@@ -24,7 +24,9 @@
namespace CVC4 {
namespace theory {
-class EqualityQuery;
+namespace quantifiers {
+class QuantifiersState;
+}
namespace inst {
@@ -50,13 +52,6 @@ public:
* not already initialized in this match.
*/
void add(InstMatch& m);
- /** merge with match m
- *
- * This method returns true if the merge was successful, that is, all jointly
- * initialized fields of this class and m are equivalent modulo the equalities
- * given by q.
- */
- bool merge( EqualityQuery* q, InstMatch& m );
/** is this complete, i.e. are all fields non-null? */
bool isComplete();
/** is this empty, i.e. are all fields the null node? */
@@ -87,7 +82,7 @@ public:
* This method returns true if the i^th field was previously uninitialized,
* or is equivalent to n modulo the equalities given by q.
*/
- bool set(EqualityQuery* q, size_t i, TNode n);
+ bool set(quantifiers::QuantifiersState& qs, size_t i, TNode n);
};
inline std::ostream& operator<<(std::ostream& out, const InstMatch& m) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback