summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers_engine.cpp
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2016-07-20 11:52:37 -0500
committerajreynol <andrew.j.reynolds@gmail.com>2016-07-20 11:52:37 -0500
commitdaf2eca9a4bb32680cbf35945bb09cfd13be76a7 (patch)
treefd387c71b6d1bd03e79e4e3403041c12a906a98a /src/theory/quantifiers_engine.cpp
parentae7434f94a1bc66ee12474414985249a71881b6c (diff)
Print only instantiations that are in the unsat core when --proof is enabled. Add option to minimize sygus solutions based on unsat core (disabled by default).
Diffstat (limited to 'src/theory/quantifiers_engine.cpp')
-rw-r--r--src/theory/quantifiers_engine.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/theory/quantifiers_engine.cpp b/src/theory/quantifiers_engine.cpp
index 59fa3592d..da8233fc1 100644
--- a/src/theory/quantifiers_engine.cpp
+++ b/src/theory/quantifiers_engine.cpp
@@ -1286,10 +1286,11 @@ void QuantifiersEngine::flushLemmas(){
}
bool QuantifiersEngine::getUnsatCoreLemmas( std::vector< Node >& active_lemmas ) {
- //TODO: only if unsat core available
+ //only if unsat core available
bool isUnsatCoreAvailable = false;
- //if( options::proof() ){
- //}
+ if( options::proof() ){
+ isUnsatCoreAvailable = ProofManager::currentPM()->unsatCoreAvailable();
+ }
if( isUnsatCoreAvailable ){
Trace("inst-unsat-core") << "Get instantiations in unsat core..." << std::endl;
ProofManager::currentPM()->getLemmasInUnsatCore(theory::THEORY_QUANTIFIERS, active_lemmas);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback