void CommandExecutor::printStatistics(std::ostream& out) const
{
- if (d_solver->getOptions().base.statistics)
+ const auto& baseopts = d_solver->getOptions().base;
+ if (baseopts.statistics)
{
- out << d_solver->getStatistics();
+ const auto& stats = d_solver->getStatistics();
+ auto it = stats.begin(baseopts.statisticsExpert, baseopts.statisticsAll);
+ for (; it != stats.end(); ++it)
+ {
+ out << it->first << " = " << it->second << std::endl;
+ }
}
}
return d_env->getNodeManager();
}
-void SmtEngine::printStatistics(std::ostream& out) const
-{
- d_env->getStatisticsRegistry().print(out);
-}
-
void SmtEngine::printStatisticsSafe(int fd) const
{
d_env->getStatisticsRegistry().printSafe(fd);
/** Permit access to the underlying NodeManager. */
NodeManager* getNodeManager() const;
- /**
- * Print statistics from the statistics registry in the env object owned by
- * this SmtEngine.
- */
- void printStatistics(std::ostream& out) const;
-
/**
* Print statistics from the statistics registry in the env object owned by
* this SmtEngine. Safe to use in a signal handler.