diff options
author | Morgan Deters <mdeters@cs.nyu.edu> | 2014-11-12 19:42:23 -0500 |
---|---|---|
committer | Morgan Deters <mdeters@cs.nyu.edu> | 2014-11-17 16:21:40 -0500 |
commit | a64af5c3903cbe75214016aef4b5a3994256e6f8 (patch) | |
tree | 1d5d8ee15a53d2576cf61ffbbc3efb2aaf962f53 /contrib | |
parent | 3ba7ed6b1b09739385ae2ffb77a5c7ccd18b40a5 (diff) |
New, uniform checkTime statistic for all theories (as discussed in meeting).
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/alttheoryskel/theory_DIR.cpp | 5 | ||||
-rw-r--r-- | contrib/theoryskel/theory_DIR.cpp | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/contrib/alttheoryskel/theory_DIR.cpp b/contrib/alttheoryskel/theory_DIR.cpp index 83d837322..ce29fd34d 100644 --- a/contrib/alttheoryskel/theory_DIR.cpp +++ b/contrib/alttheoryskel/theory_DIR.cpp @@ -16,6 +16,11 @@ Theory$camel::Theory$camel(context::Context* c, }/* Theory$camel::Theory$camel() */ void Theory$camel::check(Effort level) { + if (done() && !fullEffort(level)) { + return; + } + + TimerStat::CodeTimer checkTimer(d_checkTime); while(!done()) { // Get all the assertions diff --git a/contrib/theoryskel/theory_DIR.cpp b/contrib/theoryskel/theory_DIR.cpp index 535a54fd7..2130b21f5 100644 --- a/contrib/theoryskel/theory_DIR.cpp +++ b/contrib/theoryskel/theory_DIR.cpp @@ -20,6 +20,8 @@ void Theory$camel::check(Effort level) { return; } + TimerStat::CodeTimer checkTimer(d_checkTime); + while(!done()) { // Get all the assertions Assertion assertion = get(); |