mirror of
https://github.com/Z3Prover/z3
synced 2025-05-10 17:25:47 +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
|
@ -27,6 +27,7 @@ void env_params::updt_params() {
|
|||
set_verbosity_level(p.get_uint("verbose", get_verbosity_level()));
|
||||
enable_warning_messages(p.get_bool("warning", true));
|
||||
memory::set_max_size(megabytes_to_bytes(p.get_uint("memory_max_size", 0)));
|
||||
memory::set_max_alloc_count(p.get_uint("memory_max_alloc_count", 0));
|
||||
memory::set_high_watermark(p.get_uint("memory_high_watermark", 0));
|
||||
}
|
||||
|
||||
|
@ -34,5 +35,6 @@ void env_params::collect_param_descrs(param_descrs & d) {
|
|||
d.insert("verbose", CPK_UINT, "be verbose, where the value is the verbosity level", "0");
|
||||
d.insert("warning", CPK_BOOL, "enable/disable warning messages", "true");
|
||||
d.insert("memory_max_size", CPK_UINT, "set hard upper limit for memory consumption (in megabytes), if 0 then there is no limit", "0");
|
||||
d.insert("memory_max_alloc_count", CPK_UINT, "set hard upper limit for memory allocations, if 0 then there is no limit", "0");
|
||||
d.insert("memory_high_watermark", CPK_UINT, "set high watermark for memory consumption (in megabytes), if 0 then there is no limit", "0");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue