3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 20:18:18 +00:00

Fix Z3_PRINT_SMTLIB_FULL not working as expected

This commit is contained in:
KangJing Huang (Chaserhkj) 2017-06-14 02:18:21 -04:00
parent c980cfd783
commit e3f32ca3a8

View file

@ -821,9 +821,13 @@ extern "C" {
RESET_ERROR_CODE(); RESET_ERROR_CODE();
std::ostringstream buffer; std::ostringstream buffer;
switch (mk_c(c)->get_print_mode()) { switch (mk_c(c)->get_print_mode()) {
case Z3_PRINT_SMTLIB_FULL: case Z3_PRINT_SMTLIB_FULL: {
buffer << mk_pp(to_ast(a), mk_c(c)->m()); params_ref p;
p.set_uint("max_depth", 4294967295u);
p.set_uint("min_alias_size", 4294967295u);
buffer << mk_pp(to_ast(a), mk_c(c)->m(), p);
break; break;
}
case Z3_PRINT_LOW_LEVEL: case Z3_PRINT_LOW_LEVEL:
buffer << mk_ll_pp(to_ast(a), mk_c(c)->m()); buffer << mk_ll_pp(to_ast(a), mk_c(c)->m());
break; break;