}
void PropEngine::spendResource() throw() {
- // TODO implement me
+ d_satSolver->spendResource();
checkTime();
}
}
bool QuantifiersEngine::addLemma( Node lem, bool doCache ){
+ // For resource-limiting (also does a time check).
+ getOutputChannel().spendResource();
+
if( doCache ){
Debug("inst-engine-debug") << "Adding lemma : " << lem << std::endl;
lem = Rewriter::rewrite(lem);
}
theory::LemmaStatus TheoryEngine::lemma(TNode node, bool negated, bool removable, bool preprocess, theory::TheoryId atomsTo) {
+ // For resource-limiting (also does a time check).
+ spendResource();
// Do we need to check atoms
if (atomsTo != theory::THEORY_LAST) {