3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-20 12:53:38 +00:00

have opt_frontend display results by default

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-08-08 14:19:05 +02:00
parent aa431bb67f
commit ff24375550

View file

@ -261,14 +261,8 @@ public:
}; };
static void display_results() {
static void display_statistics() { if (g_opt) {
if (g_display_statistics && g_opt) {
::statistics stats;
g_opt->collect_statistics(stats);
stats.display(std::cout);
double end_time = static_cast<double>(clock());
std::cout << "time: " << (end_time - g_start_time)/CLOCKS_PER_SEC << " secs\n";
for (unsigned i = 0; i < g_handles.size(); ++i) { for (unsigned i = 0; i < g_handles.size(); ++i) {
expr_ref lo = g_opt->get_lower(g_handles[i]); expr_ref lo = g_opt->get_lower(g_handles[i]);
expr_ref hi = g_opt->get_upper(g_handles[i]); expr_ref hi = g_opt->get_upper(g_handles[i]);
@ -282,6 +276,18 @@ static void display_statistics() {
} }
} }
static void display_statistics() {
if (g_display_statistics && g_opt) {
::statistics stats;
g_opt->collect_statistics(stats);
stats.display(std::cout);
double end_time = static_cast<double>(clock());
std::cout << "time: " << (end_time - g_start_time)/CLOCKS_PER_SEC << " secs\n";
}
display_results();
}
static void on_ctrl_c(int) { static void on_ctrl_c(int) {
if (g_opt && g_first_interrupt) { if (g_opt && g_first_interrupt) {
g_opt->set_cancel(true); g_opt->set_cancel(true);