mirror of
https://github.com/Z3Prover/z3
synced 2025-10-08 00:41:56 +00:00
Add a sharp throttle to lia2card tactic to control overhead in default tactic mode
lia2card was added to qfuflia tactic based on a user scenario, but it overshot: lia2card is by default harmful. It is here tamed to only convert binary variables and throttle on nested ite terms
This commit is contained in:
parent
fd2a8a554d
commit
99cbfa715c
3 changed files with 24 additions and 10 deletions
|
@ -192,6 +192,11 @@ tactic * mk_preamble_tactic(ast_manager& m) {
|
|||
ctx_simp_p.set_uint("max_depth", 30);
|
||||
ctx_simp_p.set_uint("max_steps", 5000000);
|
||||
|
||||
// only binary integer variables are converted to PB
|
||||
params_ref lia2card_p;
|
||||
lia2card_p.set_uint("lia2card.max_range", 1);
|
||||
lia2card_p.set_uint("lia2card.max_ite_nesting", 1);
|
||||
|
||||
return
|
||||
and_then(
|
||||
mk_simplify_tactic(m),
|
||||
|
@ -199,7 +204,7 @@ tactic * mk_preamble_tactic(ast_manager& m) {
|
|||
using_params(mk_ctx_simplify_tactic(m), ctx_simp_p),
|
||||
using_params(mk_simplify_tactic(m), pull_ite_p),
|
||||
mk_solve_eqs_tactic(m),
|
||||
mk_lia2card_tactic(m),
|
||||
mk_lia2card_tactic(m, lia2card_p),
|
||||
mk_elim_uncnstr_tactic(m));
|
||||
}
|
||||
|
||||
|
@ -209,6 +214,8 @@ tactic * mk_qflia_tactic(ast_manager & m, params_ref const & p) {
|
|||
main_p.set_bool("som", true);
|
||||
main_p.set_bool("blast_distinct", true);
|
||||
main_p.set_uint("blast_distinct_threshold", 128);
|
||||
main_p.set_uint("lia2card.max_range", 1);
|
||||
main_p.set_uint("lia2card.max_ite_nesting", 1);
|
||||
// main_p.set_bool("push_ite_arith", true);
|
||||
|
||||
params_ref quasi_pb_p;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue