mirror of
https://github.com/Z3Prover/z3
synced 2025-08-26 04:56:03 +00:00
remove justified vars
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a5fdf6ba8a
commit
1dcb7e6f6a
4 changed files with 71 additions and 25 deletions
|
@ -44,6 +44,7 @@ namespace polysat {
|
|||
unsigned m_num_propagations;
|
||||
unsigned m_num_conflicts;
|
||||
unsigned m_num_bailouts;
|
||||
unsigned m_num_restarts;
|
||||
void reset() { memset(this, 0, sizeof(*this)); }
|
||||
stats() { reset(); }
|
||||
};
|
||||
|
@ -140,6 +141,7 @@ namespace polysat {
|
|||
void del_var();
|
||||
|
||||
dd::pdd_manager& sz2pdd(unsigned sz);
|
||||
dd::pdd_manager& var2pdd(pvar v);
|
||||
|
||||
void push_level();
|
||||
void pop_levels(unsigned num_levels);
|
||||
|
@ -195,10 +197,20 @@ namespace polysat {
|
|||
void revert_bool_decision(sat::literal lit);
|
||||
|
||||
void report_unsat();
|
||||
void learn_lemma(pvar v, clause& lemma);
|
||||
void learn_lemma(clause& lemma);
|
||||
void backjump(unsigned new_level);
|
||||
void add_lemma(clause& lemma);
|
||||
|
||||
bool should_simplify();
|
||||
void simplify();
|
||||
|
||||
unsigned m_conflicts_at_restart = 0;
|
||||
unsigned m_restart_threshold = UINT_MAX;
|
||||
unsigned m_restart_init = 100;
|
||||
unsigned m_luby_idx = 0;
|
||||
bool should_restart();
|
||||
void restart();
|
||||
|
||||
signed_constraint lit2cnstr(sat::literal lit) const { return m_constraints.lookup(lit); }
|
||||
void assert_constraint(signed_constraint c, unsigned dep);
|
||||
static void insert_constraint(signed_constraints& cs, signed_constraint c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue