summaryrefslogtreecommitdiff
path: root/src/compat/cvc3_compat.cpp
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2012-09-22 21:10:51 +0000
committerMorgan Deters <mdeters@gmail.com>2012-09-22 21:10:51 +0000
commite2611a54c5479086df0c4a80f56597aae80b5c4e (patch)
treeb0d98600bd70147f28197883d3481614b87d76f6 /src/compat/cvc3_compat.cpp
parent8b106b77c11d12d16abac845ed704845ef888bd2 (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/compat/cvc3_compat.cpp')
-rw-r--r--src/compat/cvc3_compat.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compat/cvc3_compat.cpp b/src/compat/cvc3_compat.cpp
index 4e884a9ab..2c5bc0170 100644
--- a/src/compat/cvc3_compat.cpp
+++ b/src/compat/cvc3_compat.cpp
@@ -2335,12 +2335,12 @@ void ValidityChecker::loadFile(std::istream& is,
delete p;
}
-Statistics& ValidityChecker::getStatistics() {
- return *d_smt->getStatisticsRegistry();
+Statistics ValidityChecker::getStatistics() {
+ return d_smt->getStatistics();
}
void ValidityChecker::printStatistics() {
- Message() << d_smt->getStatisticsRegistry();
+ d_smt->getStatistics().flushInformation(Message.getStream());
}
int compare(const Expr& e1, const Expr& e2) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback