diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-01-28 13:27:27 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 13:27:27 -0600 |
commit | 3234db430074e278258e6d687c07146a59769a92 (patch) | |
tree | 17db55e1ff335c3998e1c4e172d174dc9f6e3b21 /src/theory/quantifiers/inst_strategy_enumerative.cpp | |
parent | 4cd2d73366aba081a38900ddc2f4f172ce9ed2f8 (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_strategy_enumerative.cpp')
-rw-r--r-- | src/theory/quantifiers/inst_strategy_enumerative.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/theory/quantifiers/inst_strategy_enumerative.cpp b/src/theory/quantifiers/inst_strategy_enumerative.cpp index d1c09a9e8..c0f294528 100644 --- a/src/theory/quantifiers/inst_strategy_enumerative.cpp +++ b/src/theory/quantifiers/inst_strategy_enumerative.cpp @@ -188,7 +188,7 @@ bool InstStrategyEnum::process(Node f, bool fullEffort, bool isRd) std::map<TypeNode, std::vector<Node> > term_db_list; std::vector<TypeNode> ftypes; TermDb* tdb = d_quantEngine->getTermDatabase(); - EqualityQuery* qy = d_quantEngine->getEqualityQuery(); + QuantifiersState& qs = d_quantEngine->getState(); // iterate over substitutions for variables for (unsigned i = 0; i < f[0].getNumChildren(); i++) { @@ -212,7 +212,7 @@ bool InstStrategyEnum::process(Node f, bool fullEffort, bool isRd) Node gt = tdb->getTypeGroundTerm(ftypes[i], j); if (!options::cegqi() || !quantifiers::TermUtil::hasInstConstAttr(gt)) { - Node rep = qy->getRepresentative(gt); + Node rep = qs.getRepresentative(gt); if (reps_found.find(rep) == reps_found.end()) { reps_found[rep] = gt; |