summaryrefslogtreecommitdiff
path: root/src/main/main.cpp
diff options
context:
space:
mode:
authorGereon Kremer <gereon.kremer@cs.rwth-aachen.de>2021-03-22 22:09:55 +0100
committerGitHub <noreply@github.com>2021-03-22 21:09:55 +0000
commit442bc26b6ce093efed14bfd6764dac30bfdf918f (patch)
tree2c3452bb40116de7e9e0437c29aea654324fc7eb /src/main/main.cpp
parent134985065820077d2628023b9b72f78471392968 (diff)
Move statistics from the driver into the SmtEngine (#6170)
This PR does some refactoring on how we handle statistics in the driver, and some minor cleanup along the way. The SmtEngine now has dedicated statistics for the data collected within the driver and provides utility functions to set them. The driver pushes the collected statistics to the SmtEngine instead of adding them itself to the statistics registry. The node manager no longer holds a statistics registry (that nobody used anymore anyway) The command executor no longer holds a pointer to the SmtEngine itself. The pointer is not necessary and seems to become stale after we call reset on the command executor (which, luckily, we don't seem to do usually) The main motivation for this change is to make the whole statistics infrastructure private to the library and not exporting it to the outside world.
Diffstat (limited to 'src/main/main.cpp')
-rw-r--r--src/main/main.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp
index 7e0ed1e83..eb313c3bd 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -32,7 +32,6 @@
#include "parser/parser_builder.h"
#include "parser/parser_exception.h"
#include "util/result.h"
-#include "util/statistics.h"
using namespace std;
using namespace CVC4;
@@ -68,7 +67,6 @@ int main(int argc, char* argv[]) {
*opts.getErr() << "(error \"" << e << "\")" << endl;
}
if(opts.getStatistics() && pExecutor != NULL) {
- pTotalTime->stop();
pExecutor->flushStatistics(*opts.getErr());
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback