diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-02-01 13:52:34 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-01 13:52:34 -0600 |
commit | 64192c63a0011e4737eec2d27cf4deabf74d6c0a (patch) | |
tree | 03b0fa8d31186f4dc5da37d990a2e31bb1016519 /src/theory/quantifiers/ce_guided_instantiation.cpp | |
parent | dbd1797f64216ba9eb598579de27cc45814e1db4 (diff) |
Add interface in sygus to get synthesis solution Nodes (#1552)
Diffstat (limited to 'src/theory/quantifiers/ce_guided_instantiation.cpp')
-rw-r--r-- | src/theory/quantifiers/ce_guided_instantiation.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/theory/quantifiers/ce_guided_instantiation.cpp b/src/theory/quantifiers/ce_guided_instantiation.cpp index b54ce4805..dc359d252 100644 --- a/src/theory/quantifiers/ce_guided_instantiation.cpp +++ b/src/theory/quantifiers/ce_guided_instantiation.cpp @@ -310,14 +310,28 @@ void CegInstantiation::getCRefEvaluationLemmas( CegConjecture * conj, std::vecto } void CegInstantiation::printSynthSolution( std::ostream& out ) { - if( d_conj->isAssigned() ){ - // print the conjecture + if( d_conj->isAssigned() ) + { d_conj->printSynthSolution( out, d_last_inst_si ); - }else{ + } + else + { Assert( false ); } } +void CegInstantiation::getSynthSolutions(std::map<Node, Node>& sol_map) +{ + if (d_conj->isAssigned()) + { + d_conj->getSynthSolutions(sol_map, d_last_inst_si); + } + else + { + Assert(false); + } +} + void CegInstantiation::preregisterAssertion( Node n ) { //check if it sygus conjecture if( QuantAttributes::checkSygusConjecture( n ) ){ |