mirror of
https://github.com/Z3Prover/z3
synced 2025-08-03 01:40:22 +00:00
t0
Signed-off-by: Lev Nachmanson <levnach@microsoft.com>
This commit is contained in:
parent
bc96e9e9ae
commit
fd4cc17689
11 changed files with 71 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue