mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 02:15:19 +00:00
disable aig tactic in inc_sat_solver (it can blow up the size of formulas significantly without sharing) and fix configuration update bug for optimization context exposed in example by Corina
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
95fe9a3a68
commit
c1a6163bda
|
@ -383,6 +383,9 @@ void cmd_context::global_params_updated() {
|
|||
p.set_bool("auto_config", false);
|
||||
m_solver->updt_params(p);
|
||||
}
|
||||
if (m_opt) {
|
||||
get_opt()->updt_params(gparams::get_module("opt"));
|
||||
}
|
||||
}
|
||||
|
||||
void cmd_context::set_produce_models(bool f) {
|
||||
|
|
|
@ -125,6 +125,7 @@ public:
|
|||
virtual bool is_pareto() = 0;
|
||||
virtual void set_logic(symbol const& s) = 0;
|
||||
virtual bool print_model() const = 0;
|
||||
virtual void updt_params(params_ref& p) = 0;
|
||||
};
|
||||
|
||||
class cmd_context : public progress_callback, public tactic_manager, public ast_printer_context {
|
||||
|
|
|
@ -195,7 +195,7 @@ namespace opt {
|
|||
|
||||
void display(std::ostream& out);
|
||||
static void collect_param_descrs(param_descrs & r);
|
||||
void updt_params(params_ref& p);
|
||||
virtual void updt_params(params_ref& p);
|
||||
params_ref& get_params() { return m_params; }
|
||||
|
||||
expr_ref get_lower(unsigned idx);
|
||||
|
|
|
@ -84,12 +84,14 @@ public:
|
|||
simp2_p.set_uint("local_ctx_limit", 10000000);
|
||||
simp2_p.set_bool("flat", true); // required by som
|
||||
simp2_p.set_bool("hoist_mul", false); // required by som
|
||||
simp2_p.set_bool("elim_and", true);
|
||||
|
||||
m_preprocess =
|
||||
and_then(mk_card2bv_tactic(m, m_params),
|
||||
using_params(mk_simplify_tactic(m), simp2_p),
|
||||
mk_max_bv_sharing_tactic(m),
|
||||
mk_bit_blaster_tactic(m, &m_bb_rewriter),
|
||||
mk_aig_tactic(),
|
||||
//mk_aig_tactic(),
|
||||
using_params(mk_simplify_tactic(m), simp2_p));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue