3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-04 12:40:23 +00:00

fix polysat params

This commit is contained in:
Jakob Rath 2023-08-01 13:40:31 +02:00
parent cd373527ff
commit d943eb4787
6 changed files with 47 additions and 27 deletions

View file

@ -363,8 +363,10 @@ namespace bv {
void solver::polysat_set(euf::theory_var v, pdd const& p) {
#ifndef NDEBUG
expr* e = var2enode(v)->get_expr();
verbose_stream() << "polysat_set: " << expr_ref(e, m) << " -> " << p << std::endl;
IF_VERBOSE(8,
expr* e = var2enode(v)->get_expr();
verbose_stream() << "polysat_set: " << expr_ref(e, m) << " -> " << p << std::endl;
);
#endif
m_var2pdd.reserve(get_num_vars(), p);
m_var2pdd_valid.reserve(get_num_vars(), false);

View file

@ -52,17 +52,13 @@ namespace bv {
euf::th_euf_solver(ctx, symbol("bv"), id),
bv(m),
m_autil(m),
m_polysat(m.limit()),
m_polysat(m.limit(), get_config()),
m_ackerman(*this),
m_bb(m, get_config()),
m_find(*this) {
m_bb.set_flat_and_or(false);
}
void solver::updt_params(params_ref const& p) {
m_polysat.updt_params(p);
}
bool solver::is_fixed(euf::theory_var v, expr_ref& val, sat::literal_vector& lits) {
numeral n;
if (!get_fixed_value(v, n))

View file

@ -407,7 +407,6 @@ namespace bv {
public:
solver(euf::solver& ctx, theory_id id);
void updt_params(params_ref const& p) override;
void set_lookahead(sat::lookahead* s) override { }
void init_search() override {}
double get_reward(literal l, sat::ext_constraint_idx idx, sat::literal_occs_fun& occs) const override;