summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/ce_guided_instantiation.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-02-01 13:52:34 -0600
committerGitHub <noreply@github.com>2018-02-01 13:52:34 -0600
commit64192c63a0011e4737eec2d27cf4deabf74d6c0a (patch)
tree03b0fa8d31186f4dc5da37d990a2e31bb1016519 /src/theory/quantifiers/ce_guided_instantiation.cpp
parentdbd1797f64216ba9eb598579de27cc45814e1db4 (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.cpp20
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 ) ){
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback