summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers_engine.cpp
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2014-09-18 19:15:26 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2014-09-18 19:15:26 -0400
commit49747c4574eec3cfa192ffb6e6a2451b949e8b3e (patch)
treea12ac6ac5ff3b882a04fdbe4a67eba1ee8f434a8 /src/theory/quantifiers_engine.cpp
parente8f2fcf2fd26542a3b1f24a67adae62508a741b4 (diff)
Resource spending support in theories (and especially in quantifiers).
Diffstat (limited to 'src/theory/quantifiers_engine.cpp')
-rw-r--r--src/theory/quantifiers_engine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/theory/quantifiers_engine.cpp b/src/theory/quantifiers_engine.cpp
index 23b3ac50a..4855083a8 100644
--- a/src/theory/quantifiers_engine.cpp
+++ b/src/theory/quantifiers_engine.cpp
@@ -577,6 +577,9 @@ bool QuantifiersEngine::existsInstantiation( Node f, InstMatch& m, bool modEq, b
}
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);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback