diff options
author | ajreynol <andrew.j.reynolds@gmail.com> | 2016-02-16 14:55:28 -0600 |
---|---|---|
committer | ajreynol <andrew.j.reynolds@gmail.com> | 2016-02-16 14:55:28 -0600 |
commit | c603a047ac534ed4caafb128b5d333e05e1fd191 (patch) | |
tree | b24999a8050d82df3cbcb0a8ade4ba7990af56c8 /src/theory/theory_engine.cpp | |
parent | 80daa7fd5917526513a510261fd3901f03949dfa (diff) |
Public interface for quantifier elimination. Minor changes to datatypes rewriter.
Diffstat (limited to 'src/theory/theory_engine.cpp')
-rw-r--r-- | src/theory/theory_engine.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/theory/theory_engine.cpp b/src/theory/theory_engine.cpp index 45f7506de..dcb3fec0a 100644 --- a/src/theory/theory_engine.cpp +++ b/src/theory/theory_engine.cpp @@ -1212,6 +1212,8 @@ Node TheoryEngine::ensureLiteral(TNode n) { void TheoryEngine::printInstantiations( std::ostream& out ) { if( d_quantEngine ){ d_quantEngine->printInstantiations( out ); + }else{ + out << "Internal error : instantiations not available when quantifiers are not present." << std::endl; } } @@ -1223,6 +1225,15 @@ void TheoryEngine::printSynthSolution( std::ostream& out ) { } } +void TheoryEngine::getInstantiations( std::map< Node, std::vector< Node > >& insts ) { + if( d_quantEngine ){ + d_quantEngine->getInstantiations( insts ); + }else{ + Assert( false ); + } +} + + static Node mkExplanation(const std::vector<NodeTheoryPair>& explanation) { std::set<TNode> all; |