summaryrefslogtreecommitdiff
path: root/src/theory/theory_engine.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2013-05-07 16:59:59 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2013-05-07 17:39:00 -0400
commitd46b3638e09cd4e6f2c939386d686ed7ac2d8fdb (patch)
treec5318dd74f3045c19e1d14de30396671dd74bf0a /src/theory/theory_engine.h
parentb702a70790f37e239c6f8c91bbc0ac107f1a4618 (diff)
fix for nonterminating model-based array loop
Diffstat (limited to 'src/theory/theory_engine.h')
-rw-r--r--src/theory/theory_engine.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/theory/theory_engine.h b/src/theory/theory_engine.h
index 3aa3a1ec5..97b018214 100644
--- a/src/theory/theory_engine.h
+++ b/src/theory/theory_engine.h
@@ -275,8 +275,10 @@ class TheoryEngine {
}
void safePoint() throw(theory::Interrupted, AssertionException) {
- if (d_engine->d_interrupted)
+ spendResource();
+ if (d_engine->d_interrupted) {
throw theory::Interrupted();
+ }
}
void conflict(TNode conflictNode) throw(AssertionException) {
@@ -340,6 +342,7 @@ class TheoryEngine {
void spendResource() throw() {
d_engine->spendResource();
}
+
void handleUserAttribute( const char* attr, theory::Theory* t ){
d_engine->handleUserAttribute( attr, t );
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback