mirror of
https://github.com/Z3Prover/z3
synced 2025-05-08 16:25:48 +00:00
don't need marks in bool_var_manager anymore
This commit is contained in:
parent
7b9726a95c
commit
71e97a4098
2 changed files with 6 additions and 29 deletions
|
@ -27,9 +27,6 @@ namespace polysat {
|
|||
// For enumerative backtracking we store the lemma we're handling with a certain decision
|
||||
svector<clause*> m_lemma;
|
||||
|
||||
unsigned_vector m_marks;
|
||||
unsigned m_clock = 0;
|
||||
|
||||
public:
|
||||
// allocated size (not the number of active variables)
|
||||
unsigned size() const { return m_level.size(); }
|
||||
|
@ -37,10 +34,6 @@ namespace polysat {
|
|||
sat::bool_var new_var();
|
||||
void del_var(sat::bool_var var);
|
||||
|
||||
void reset_marks();
|
||||
bool is_marked(sat::bool_var var) const { return m_clock == m_marks[var]; }
|
||||
void set_mark(sat::bool_var var);
|
||||
|
||||
bool is_assigned(sat::bool_var var) const { return value(var) != l_undef; }
|
||||
bool is_assigned(sat::literal lit) const { return value(lit) != l_undef; }
|
||||
bool is_decision(sat::bool_var var) const { return is_assigned(var) && !reason(var); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue