summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers_engine.cpp
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2015-09-15 10:39:29 +0200
committerajreynol <andrew.j.reynolds@gmail.com>2015-09-15 10:39:29 +0200
commitbad7f4fe4dca4c6511c2862bf81b6791640ac78f (patch)
tree0be31a9300766d39ae36c9efba02e2c5a68dd156 /src/theory/quantifiers_engine.cpp
parentace360b4da1edef06088a366dc21b58f9431efc2 (diff)
Fix bug related to quantifiers + incremental, thanks John Backes for the bug report. Other minor cleanup.
Diffstat (limited to 'src/theory/quantifiers_engine.cpp')
-rw-r--r--src/theory/quantifiers_engine.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/theory/quantifiers_engine.cpp b/src/theory/quantifiers_engine.cpp
index 1a5be5a57..23d46fd40 100644
--- a/src/theory/quantifiers_engine.cpp
+++ b/src/theory/quantifiers_engine.cpp
@@ -80,7 +80,8 @@ quantifiers::TermDb * QuantifiersModule::getTermDatabase() {
QuantifiersEngine::QuantifiersEngine(context::Context* c, context::UserContext* u, TheoryEngine* te):
d_te( te ),
-d_lemmas_produced_c(u){
+d_lemmas_produced_c(u),
+d_skolemized(u){
d_eq_query = new EqualityQueryQuantifiersEngine( this );
d_term_db = new quantifiers::TermDb( c, u, this );
d_tr_trie = new inst::TriggerTrie;
@@ -1000,13 +1001,14 @@ void QuantifiersEngine::getPhaseReqTerms( Node f, std::vector< Node >& nodes ){
void QuantifiersEngine::printInstantiations( std::ostream& out ) {
bool printed = false;
- for( std::map< Node, bool >::iterator it = d_skolemized.begin(); it != d_skolemized.end(); ++it ){
+ for( BoolMap::iterator it = d_skolemized.begin(); it != d_skolemized.end(); ++it ){
+ Node q = (*it).first;
printed = true;
- out << "Skolem constants of " << it->first << " : " << std::endl;
+ out << "Skolem constants of " << q << " : " << std::endl;
out << " ( ";
- for( unsigned i=0; i<d_term_db->d_skolem_constants[it->first].size(); i++ ){
+ for( unsigned i=0; i<d_term_db->d_skolem_constants[q].size(); i++ ){
if( i>0 ){ out << ", "; }
- out << d_term_db->d_skolem_constants[it->first][i];
+ out << d_term_db->d_skolem_constants[q][i];
}
out << " )" << std::endl;
out << std::endl;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback