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:
parent
aa431bb67f
commit
ff24375550
1 changed files with 14 additions and 8 deletions
|
@ -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]);
|
||||||
|
@ -279,7 +273,19 @@ static void display_statistics() {
|
||||||
std::cout << " [" << lo << ":" << hi << "]\n";
|
std::cout << " [" << lo << ":" << hi << "]\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue