mirror of
https://github.com/Z3Prover/z3
synced 2025-08-05 19:00:25 +00:00
update smt logging format to follow SAT solver
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
77088745d0
commit
ecb43ccca2
6 changed files with 95 additions and 24 deletions
|
@ -20,6 +20,7 @@ Revision History:
|
|||
|
||||
#include<cstdlib>
|
||||
#include<ostream>
|
||||
#include<iomanip>
|
||||
#include "util/z3_exception.h"
|
||||
|
||||
#ifndef __has_builtin
|
||||
|
@ -127,5 +128,13 @@ void dealloc_svect(T * ptr) {
|
|||
memory::deallocate(ptr);
|
||||
}
|
||||
|
||||
struct mem_stat {
|
||||
};
|
||||
|
||||
inline std::ostream & operator<<(std::ostream & out, mem_stat const & m) {
|
||||
double mem = static_cast<double>(memory::get_allocation_size())/static_cast<double>(1024*1024);
|
||||
return out << std::fixed << std::setprecision(2) << mem;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue