summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/sygus/synth_engine.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-03-29 14:40:53 -0500
committerGitHub <noreply@github.com>2021-03-29 19:40:53 +0000
commit96ac1d2a5d1f25eaa1b0b265bb21d1a8b3c3d872 (patch)
tree173382d78c1f917b49922aa0aabc206a497d364d /src/theory/quantifiers/sygus/synth_engine.cpp
parent52c7724a940aee682d550da077d7124a078ac077 (diff)
Eliminate the use of quantifiers engine in sygus solver (#6232)
Diffstat (limited to 'src/theory/quantifiers/sygus/synth_engine.cpp')
-rw-r--r--src/theory/quantifiers/sygus/synth_engine.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/theory/quantifiers/sygus/synth_engine.cpp b/src/theory/quantifiers/sygus/synth_engine.cpp
index d77a42a14..f4d50118e 100644
--- a/src/theory/quantifiers/sygus/synth_engine.cpp
+++ b/src/theory/quantifiers/sygus/synth_engine.cpp
@@ -15,11 +15,10 @@
**/
#include "theory/quantifiers/sygus/synth_engine.h"
-#include "expr/node_algorithm.h"
#include "options/quantifiers_options.h"
#include "theory/quantifiers/quantifiers_attributes.h"
#include "theory/quantifiers/sygus/term_database_sygus.h"
-#include "theory/quantifiers/term_util.h"
+#include "theory/quantifiers/term_registry.h"
using namespace CVC4::kind;
using namespace std;
@@ -34,12 +33,11 @@ SynthEngine::SynthEngine(QuantifiersEngine* qe,
QuantifiersRegistry& qr,
TermRegistry& tr)
: QuantifiersModule(qs, qim, qr, tr, qe),
- d_tds(tr.getTermDatabaseSygus()),
d_conj(nullptr),
d_sqp(qe)
{
d_conjs.push_back(std::unique_ptr<SynthConjecture>(
- new SynthConjecture(d_quantEngine, qs, qim, qr, d_statistics)));
+ new SynthConjecture(qs, qim, qr, tr, d_statistics)));
d_conj = d_conjs.back().get();
}
@@ -159,8 +157,8 @@ void SynthEngine::assignConjecture(Node q)
// allocate a new synthesis conjecture if not assigned
if (d_conjs.back()->isAssigned())
{
- d_conjs.push_back(std::unique_ptr<SynthConjecture>(new SynthConjecture(
- d_quantEngine, d_qstate, d_qim, d_qreg, d_statistics)));
+ d_conjs.push_back(std::unique_ptr<SynthConjecture>(
+ new SynthConjecture(d_qstate, d_qim, d_qreg, d_treg, d_statistics)));
}
d_conjs.back()->assign(q);
}
@@ -190,7 +188,7 @@ void SynthEngine::registerQuantifier(Node q)
// If it is a recursive function definition, add it to the function
// definition evaluator class.
Trace("cegqi") << "Registering function definition : " << q << "\n";
- FunDefEvaluator* fde = d_tds->getFunDefEvaluator();
+ FunDefEvaluator* fde = d_treg.getTermDatabaseSygus()->getFunDefEvaluator();
fde->assertDefinition(q);
return;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback