diff options
author | ajreynol <andrew.j.reynolds@gmail.com> | 2016-03-16 13:57:53 -0500 |
---|---|---|
committer | ajreynol <andrew.j.reynolds@gmail.com> | 2016-03-16 13:57:53 -0500 |
commit | eb27070783709a410e6655ba9af6da6de5b0da9d (patch) | |
tree | c4fcb9203e2e72c9a96a51641ac15207f292a75b /src/theory/quantifiers_engine.cpp | |
parent | fd3844131f334e929bfb04eb2dcb6229cf1190cd (diff) |
Change internal representative selection for finite domains that do not involve uninterpreted sorts, including bounded integer quantification.
Diffstat (limited to 'src/theory/quantifiers_engine.cpp')
-rw-r--r-- | src/theory/quantifiers_engine.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/theory/quantifiers_engine.cpp b/src/theory/quantifiers_engine.cpp index 568483380..4be55ebb5 100644 --- a/src/theory/quantifiers_engine.cpp +++ b/src/theory/quantifiers_engine.cpp @@ -88,6 +88,9 @@ QuantifiersEngine::QuantifiersEngine(context::Context* c, context::UserContext* d_te( te ), d_lemmas_produced_c(u), d_skolemized(u), + //d_ierCounter(c), + //d_ierCounter_lc(c), + //d_ierCounterLastLc(c), d_presolve(u, true), d_presolve_in(u), d_presolve_cache(u), @@ -141,7 +144,7 @@ QuantifiersEngine::QuantifiersEngine(context::Context* c, context::UserContext* //allow theory combination to go first, once initially d_ierCounter = options::instWhenTcFirst() ? 0 : 1; d_ierCounter_lc = 0; - d_ierCounterLastLc = d_ierCounter_lc; + d_ierCounterLastLc = 0; d_inst_when_phase = 1 + ( options::instWhenPhase()<1 ? 1 : options::instWhenPhase() ); } @@ -465,11 +468,11 @@ void QuantifiersEngine::check( Theory::Effort e ){ if( e==Theory::EFFORT_FULL ){ //increment if a last call happened, we are not strictly enforcing interleaving, or already were in phase if( d_ierCounterLastLc!=d_ierCounter_lc || !options::instWhenStrictInterleave() || d_ierCounter%d_inst_when_phase!=0 ){ - d_ierCounter++; + d_ierCounter = d_ierCounter + 1; d_ierCounterLastLc = d_ierCounter_lc; } }else if( e==Theory::EFFORT_LAST_CALL ){ - d_ierCounter_lc++; + d_ierCounter_lc = d_ierCounter_lc + 1; } }else if( quant_e==QEFFORT_MODEL ){ if( e==Theory::EFFORT_LAST_CALL ){ @@ -1339,7 +1342,7 @@ Node EqualityQueryQuantifiersEngine::getInternalRepresentative( Node a, Node f, Assert( f.isNull() || f.getKind()==FORALL ); Node r = getRepresentative( a ); if( options::finiteModelFind() ){ - if( r.isConst() ){ + if( r.isConst() && quantifiers::TermDb::containsUninterpretedConstant( r ) ){ //map back from values assigned by model, if any if( d_qe->getModel() ){ std::map< Node, Node >::iterator it = d_qe->getModel()->d_rep_set.d_values_to_terms.find( r ); |