Z3: set memory_high_watermark to avoid huge memory consumption
MODIFY
smt/ctx.cpp
smt/ctx.cpp
@@ -14,6 +14,7 @@ void context::init() {
Z3_global_param_set("smt.ematching", "false");
Z3_global_param_set("smt.mbqi.max_iterations", "1000000");
Z3_global_param_set("timeout", get_query_timeout());
+ Z3_global_param_set("memory_high_watermark", "2147483648"); // 2 GBs
// Disable Z3's use of UFs for NaNs when converting FPs to BVs
// They generate incorrect formulas when quantifiers are involved
Z3_global_param_set("rewriter.hi_fp_unspecified", "true");

Z3: set memory_high_watermark to avoid huge memory consumption