summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers_engine.cpp
diff options
context:
space:
mode:
authorTim King <taking@google.com>2017-03-27 10:24:13 -0700
committerTim King <taking@google.com>2017-03-27 10:24:13 -0700
commit4930de53415ffbf614d6965af59b1f44e405451c (patch)
tree5fb07f7dfbf7b358c6d79a92d8af6376e33147cf /src/theory/quantifiers_engine.cpp
parent09d14ac7f81111882327cb168f100e9f998611ac (diff)
Making ppNotifyAssertions take a const vector.
Diffstat (limited to 'src/theory/quantifiers_engine.cpp')
-rw-r--r--src/theory/quantifiers_engine.cpp32
1 files changed, 19 insertions, 13 deletions
diff --git a/src/theory/quantifiers_engine.cpp b/src/theory/quantifiers_engine.cpp
index bdf2de7f7..b369e30b7 100644
--- a/src/theory/quantifiers_engine.cpp
+++ b/src/theory/quantifiers_engine.cpp
@@ -355,22 +355,28 @@ void QuantifiersEngine::presolve() {
}
}
-void QuantifiersEngine::ppNotifyAssertions( std::vector< Node >& assertions ) {
- Trace("quant-engine-proc") << "ppNotifyAssertions in QE, #assertions = " << assertions.size() << " check epr = " << (d_qepr!=NULL) << std::endl;
- if( ( options::instLevelInputOnly() && options::instMaxLevel()!=-1 ) || d_qepr!=NULL ){
- for( unsigned i=0; i<assertions.size(); i++ ) {
- if( options::instLevelInputOnly() && options::instMaxLevel()!=-1 ){
- setInstantiationLevelAttr( assertions[i], 0 );
+void QuantifiersEngine::ppNotifyAssertions(
+ const std::vector<Node>& assertions) {
+ Trace("quant-engine-proc")
+ << "ppNotifyAssertions in QE, #assertions = " << assertions.size()
+ << " check epr = " << (d_qepr != NULL) << std::endl;
+ if ((options::instLevelInputOnly() && options::instMaxLevel() != -1) ||
+ d_qepr != NULL) {
+ for (unsigned i = 0; i < assertions.size(); i++) {
+ if (options::instLevelInputOnly() && options::instMaxLevel() != -1) {
+ setInstantiationLevelAttr(assertions[i], 0);
}
- if( d_qepr!=NULL ){
- d_qepr->registerAssertion( assertions[i] );
+ if (d_qepr != NULL) {
+ d_qepr->registerAssertion(assertions[i]);
}
}
- if( d_qepr!=NULL ){
- //must handle sources of other new constants e.g. separation logic
- //FIXME: cleanup
- ((sep::TheorySep*)getTheoryEngine()->theoryOf( THEORY_SEP ))->initializeBounds();
- d_qepr->finishInit();
+ if (d_qepr != NULL) {
+ // must handle sources of other new constants e.g. separation logic
+ // FIXME: cleanup
+ sep::TheorySep* theory_sep =
+ static_cast<sep::TheorySep*>(getTheoryEngine()->theoryOf(THEORY_SEP));
+ theory_sep->initializeBounds();
+ d_qepr->finishInit();
}
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback