diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-08-03 17:05:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-03 17:05:35 -0500 |
commit | dc9af8641003b8c0efd8a952095dfa76997983c1 (patch) | |
tree | a1189f25598ba0333022237aa84600f896aa6cf5 /src/theory/quantifiers/expr_miner_manager.cpp | |
parent | f332d9eb50796d0dde8302d463ed830fc6770133 (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.cpp | 6 |
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 |