mirror of
https://github.com/Z3Prover/z3
synced 2025-08-19 01:32:17 +00:00
Add new probes for arithmetic. Check for LIA and LRA (and activate qe if applicable). Modify echo tactic to send results to the regular stream.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
18bae81731
commit
97bf9418f7
8 changed files with 147 additions and 34 deletions
|
@ -26,22 +26,18 @@ Notes:
|
|||
#include"qfnra_tactic.h"
|
||||
#include"nra_tactic.h"
|
||||
#include"probe_arith.h"
|
||||
#include"quant_tactics.h"
|
||||
|
||||
tactic * mk_default_tactic(ast_manager & m, params_ref const & p) {
|
||||
tactic * st = using_params(and_then(mk_simplify_tactic(m),
|
||||
cond(mk_is_qfbv_probe(),
|
||||
mk_qfbv_tactic(m),
|
||||
cond(mk_is_qflia_probe(),
|
||||
mk_qflia_tactic(m),
|
||||
cond(mk_is_qflra_probe(),
|
||||
mk_qflra_tactic(m),
|
||||
cond(mk_is_qfnra_probe(),
|
||||
mk_qfnra_tactic(m),
|
||||
cond(mk_is_qfnia_probe(),
|
||||
mk_qfnia_tactic(m),
|
||||
cond(mk_is_nra_probe(),
|
||||
mk_nra_tactic(m),
|
||||
mk_smt_tactic()))))))),
|
||||
cond(mk_is_qfbv_probe(), mk_qfbv_tactic(m),
|
||||
cond(mk_is_qflia_probe(), mk_qflia_tactic(m),
|
||||
cond(mk_is_qflra_probe(), mk_qflra_tactic(m),
|
||||
cond(mk_is_qfnra_probe(), mk_qfnra_tactic(m),
|
||||
cond(mk_is_qfnia_probe(), mk_qfnia_tactic(m),
|
||||
cond(mk_is_nra_probe(), mk_nra_tactic(m),
|
||||
cond(mk_is_lira_probe(), mk_lira_tactic(m, p),
|
||||
mk_smt_tactic())))))))),
|
||||
p);
|
||||
return st;
|
||||
}
|
||||
|
|
|
@ -72,6 +72,8 @@ tactic * mk_tactic_for_logic(ast_manager & m, params_ref const & p, symbol const
|
|||
return mk_uflra_tactic(m, p);
|
||||
else if (logic=="LRA")
|
||||
return mk_lra_tactic(m, p);
|
||||
else if (logic=="LIA")
|
||||
return mk_lia_tactic(m, p);
|
||||
else if (logic=="UFBV")
|
||||
return mk_ufbv_tactic(m, p);
|
||||
else if (logic=="BV")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue