mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
add count of memory allocations and way to limit allocations globally. Fix purification in nlsat_smt to fix regressions on QF_UFNRA
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4675643271
commit
564da787fb
14 changed files with 88 additions and 32 deletions
|
@ -1624,11 +1624,10 @@ void cmd_context::set_solver_factory(solver_factory * f) {
|
|||
|
||||
void cmd_context::display_statistics(bool show_total_time, double total_time) {
|
||||
statistics st;
|
||||
unsigned long long mem = memory::get_max_used_memory();
|
||||
if (show_total_time)
|
||||
st.update("total time", total_time);
|
||||
st.update("time", get_seconds());
|
||||
st.update("memory", static_cast<double>(mem)/static_cast<double>(1024*1024));
|
||||
get_memory_statistics(st);
|
||||
if (m_check_sat_result) {
|
||||
m_check_sat_result->collect_statistics(st);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue