summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/expr_miner_manager.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-08-03 17:05:35 -0500
committerGitHub <noreply@github.com>2020-08-03 17:05:35 -0500
commitdc9af8641003b8c0efd8a952095dfa76997983c1 (patch)
treea1189f25598ba0333022237aa84600f896aa6cf5 /src/theory/quantifiers/expr_miner_manager.cpp
parentf332d9eb50796d0dde8302d463ed830fc6770133 (diff)
Generalize interface for candidate rewrite database (#4797)
This class will be used as a utility in a new algorithm for solution reconstruction and requires a generalized interface. FYI @abdoo8080
Diffstat (limited to 'src/theory/quantifiers/expr_miner_manager.cpp')
-rw-r--r--src/theory/quantifiers/expr_miner_manager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/theory/quantifiers/expr_miner_manager.cpp b/src/theory/quantifiers/expr_miner_manager.cpp
index f99b06567..36f152508 100644
--- a/src/theory/quantifiers/expr_miner_manager.cpp
+++ b/src/theory/quantifiers/expr_miner_manager.cpp
@@ -27,7 +27,8 @@ ExpressionMinerManager::ExpressionMinerManager()
d_doFilterLogicalStrength(false),
d_use_sygus_type(false),
d_qe(nullptr),
- d_tds(nullptr)
+ d_tds(nullptr),
+ d_crd(options::sygusRewSynthCheck(), options::sygusRewSynthAccel(), false)
{
}
@@ -142,7 +143,8 @@ bool ExpressionMinerManager::addTerm(Node sol,
bool ret = true;
if (d_doRewSynth)
{
- ret = d_crd.addTerm(sol, options::sygusRewSynthRec(), out, rew_print);
+ Node rsol = d_crd.addTerm(sol, options::sygusRewSynthRec(), out, rew_print);
+ ret = (sol == rsol);
}
// a unique term, let's try the query generator
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback