3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-27 16:38:45 +00:00

fix unit tests, add subsampling mode for false literals

This commit is contained in:
Nikolaj Bjorner 2025-01-20 17:34:59 -08:00
parent 22e4054674
commit fb5834268e
3 changed files with 61 additions and 6 deletions

View file

@ -19,13 +19,17 @@ namespace bv {
sat::clause_info const& get_clause(unsigned idx) const override { return m_clauses[idx]; }
ptr_iterator<unsigned> get_use_list(sat::literal lit) override { return ptr_iterator<unsigned>(nullptr, nullptr); }
void flip(sat::bool_var v) override { }
sat::bool_var bool_flip() override { return sat::null_bool_var; }
double reward(sat::bool_var v) override { return 0; }
double get_weigth(unsigned clause_idx) override { return 0; }
bool is_true(sat::literal lit) override { return true; }
bool try_rotate(sat::bool_var v, sat::bool_var_set& rotated, unsigned& bound) override { return false; }
unsigned num_vars() const override { return 0; }
indexed_uint_set const& unsat() const override { return s; }
indexed_uint_set const& unsat_vars() const override { return s; }
void shift_weights() override {}
void on_model(model_ref& mdl) override {}
unsigned num_external_in_unsat_vars() const override { return 0; }
sat::bool_var add_var() override { return sat::null_bool_var;}
void add_clause(unsigned n, sat::literal const* lits) override {}
// void collect_statistics(statistics& st) const override {}