diff options
author | Morgan Deters <mdeters@gmail.com> | 2012-09-22 21:10:51 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2012-09-22 21:10:51 +0000 |
commit | e2611a54c5479086df0c4a80f56597aae80b5c4e (patch) | |
tree | b0d98600bd70147f28197883d3481614b87d76f6 /src/main/main.h | |
parent | 8b106b77c11d12d16abac845ed704845ef888bd2 (diff) |
Separate public-facing and internal-facing interfaces to Statistics.
The external interface (e.g., what's answered by ExprManager::getStatistics() and SmtEngine::getStatistics()) is a snapshot of the current statistics (rather than a reference to the actual StatisticsRegistry).
The StatisticsRegistry is now internal-only. However, it's built as a convenience library so that the parser and driver can use it too (by re-linking against it).
This is part of the ongoing effort to clean up the public interface.
(this commit was certified error- and warning-free by the test-and-commit script.)
Diffstat (limited to 'src/main/main.h')
-rw-r--r-- | src/main/main.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main/main.h b/src/main/main.h index 09ba60c94..8ed4da1cb 100644 --- a/src/main/main.h +++ b/src/main/main.h @@ -20,8 +20,10 @@ #include <string> #include "options/options.h" +#include "expr/expr_manager.h" +#include "smt/smt_engine.h" #include "util/exception.h" -#include "util/stats.h" +#include "util/statistics.h" #include "util/tls.h" #include "cvc4autoconfig.h" @@ -31,14 +33,16 @@ namespace CVC4 { namespace main { +class CommandExecutor; + /** Full argv[0] */ extern const char* progPath; /** Just the basename component of argv[0] */ extern const char* progName; -/** A reference to the StatisticsRegistry for use by the signal handlers */ -extern CVC4::StatisticsRegistry* pStatistics; +/** A reference for use by the signal handlers to print statistics */ +extern CVC4::main::CommandExecutor* pExecutor; /** * If true, will not spin on segfault even when CVC4_DEBUG is on. |