3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-03 01:40:22 +00:00
Signed-off-by: Lev Nachmanson <levnach@microsoft.com>
This commit is contained in:
Lev Nachmanson 2025-06-30 13:52:52 -07:00
parent bc96e9e9ae
commit fd4cc17689
11 changed files with 71 additions and 1 deletions

View file

@ -2306,6 +2306,20 @@ void cmd_context::display_statistics(bool show_total_time, double total_time) {
st.display_smt2(regular_stream());
}
void cmd_context::flush_statistics() {
// Force aggregation of theory statistics before displaying them
// This ensures detailed theory stats are available even on timeout/interruption
if (m_check_sat_result) {
m_check_sat_result->flush_statistics();
}
else if (m_solver) {
m_solver->flush_statistics();
}
else if (m_opt) {
// m_opt->flush_statistics(); // Not implemented for optimization
}
}
vector<std::pair<expr*,expr*>> cmd_context::tracked_assertions() {
vector<std::pair<expr*,expr*>> result;

View file

@ -508,6 +508,7 @@ public:
void display_assertions();
void display_statistics(bool show_total_time = false, double total_time = 0.0);
void flush_statistics(); // Force aggregation of theory statistics
void display_dimacs();
void display_parameters(std::ostream& out);
void reset(bool finalize = false);