diff options
author | ajreynol <andrew.j.reynolds@gmail.com> | 2015-01-26 13:11:01 +0100 |
---|---|---|
committer | ajreynol <andrew.j.reynolds@gmail.com> | 2015-01-26 13:11:01 +0100 |
commit | edd8886e56c8bb84f3fd85fc6f697d870bc0a3b7 (patch) | |
tree | 1fe3e8699f3c4831a302a369b377396ae5a347a4 /src/smt | |
parent | f3045ccce9d30114f6e90cfa72de176da344cb1f (diff) |
Output solutions for synthesis conjectures with --dump-synth. Minor refactor of previous commit.
Diffstat (limited to 'src/smt')
-rw-r--r-- | src/smt/options | 2 | ||||
-rw-r--r-- | src/smt/smt_engine.cpp | 7 | ||||
-rw-r--r-- | src/smt/smt_engine.h | 5 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/smt/options b/src/smt/options index 20dd5b7d5..593fc4887 100644 --- a/src/smt/options +++ b/src/smt/options @@ -37,6 +37,8 @@ option dumpProofs --dump-proofs bool :default false :link --proof output proofs after every UNSAT/VALID response option dumpInstantiations --dump-instantiations bool :default false output instantiations of quantified formulas after every UNSAT/VALID response +option dumpSynth --dump-synth bool :default false + output solution for synthesis conjectures after every UNSAT/VALID response option unsatCores produce-unsat-cores --produce-unsat-cores bool :predicate CVC4::smt::proofEnabledBuild CVC4::smt::beforeSearch :predicate-include "smt/options_handlers.h" turn on unsat core generation option dumpUnsatCores --dump-unsat-cores bool :default false :link --produce-unsat-cores :link-smt produce-unsat-cores :predicate CVC4::smt::beforeSearch :predicate-include "smt/options_handlers.h" diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index 6732b3dc7..94efd8a75 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -4155,6 +4155,13 @@ void SmtEngine::printInstantiations( std::ostream& out ) { } } +void SmtEngine::printSynthSolution( std::ostream& out ) { + SmtScope smts(this); + if( d_theoryEngine ){ + d_theoryEngine->printSynthSolution( out ); + } +} + vector<Expr> SmtEngine::getAssertions() throw(ModalException) { SmtScope smts(this); finalOptionsAreSet(); diff --git a/src/smt/smt_engine.h b/src/smt/smt_engine.h index a39d2a7b5..7c5c45e42 100644 --- a/src/smt/smt_engine.h +++ b/src/smt/smt_engine.h @@ -521,6 +521,11 @@ public: void printInstantiations( std::ostream& out ); /** + * Print solution for synthesis conjectures found by ce_guided_instantiation module + */ + void printSynthSolution( std::ostream& out ); + + /** * Get an unsatisfiable core (only if immediately preceded by an * UNSAT or VALID query). Only permitted if CVC4 was built with * unsat-core support and produce-unsat-cores is on. |