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/theory/quantifiers/ce_guided_instantiation.h | |
parent | f3045ccce9d30114f6e90cfa72de176da344cb1f (diff) |
Output solutions for synthesis conjectures with --dump-synth. Minor refactor of previous commit.
Diffstat (limited to 'src/theory/quantifiers/ce_guided_instantiation.h')
-rw-r--r-- | src/theory/quantifiers/ce_guided_instantiation.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/theory/quantifiers/ce_guided_instantiation.h b/src/theory/quantifiers/ce_guided_instantiation.h index 8c74b06f6..f4449117c 100644 --- a/src/theory/quantifiers/ce_guided_instantiation.h +++ b/src/theory/quantifiers/ce_guided_instantiation.h @@ -56,6 +56,8 @@ private: /** list of variables on inner quantification */ std::vector< Node > d_inner_vars; std::vector< std::vector< Node > > d_inner_vars_disj; + /** list of terms we have instantiated candidates with */ + std::map< int, std::vector< Node > > d_candidate_inst; /** initialize guard */ void initializeGuard( QuantifiersEngine * qe ); /** measure term */ @@ -99,11 +101,14 @@ private: /** check conjecture */ void checkCegConjecture( CegConjecture * conj ); /** get model values */ - bool getModelValues( std::vector< Node >& n, std::vector< Node >& v ); + bool getModelValues( CegConjecture * conj, std::vector< Node >& n, std::vector< Node >& v ); /** get model value */ Node getModelValue( Node n ); /** get model term */ Node getModelTerm( Node n ); +private: + /** print sygus term */ + void printSygusTerm( std::ostream& out, Node n ); public: CegInstantiation( QuantifiersEngine * qe, context::Context* c ); public: @@ -118,6 +123,8 @@ public: Node getNextDecisionRequest(); /** Identify this module (for debugging, dynamic configuration, etc..) */ std::string identify() const { return "CegInstantiation"; } + /** print solution for synthesis conjectures */ + void printSynthSolution( std::ostream& out ); }; } |