mirror of
https://github.com/Z3Prover/z3
synced 2025-08-16 07:45:27 +00:00
ensure that bca takes also lemmas into account
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
0919fd4075
commit
829c140087
21 changed files with 384 additions and 149 deletions
|
@ -246,8 +246,8 @@ namespace sat {
|
|||
inline bool is_true(literal l) const { return is_true_at(l, m_level); }
|
||||
inline void set_true(literal l) { m_stamp[l.var()] = m_level + l.sign(); }
|
||||
inline void set_undef(literal l) { m_stamp[l.var()] = 0; }
|
||||
inline unsigned get_level(literal l) const { return m_stamp[l.var()] & UINT_MAX - 1; }
|
||||
void set_level(literal d, literal s) { m_stamp[d.var()] = (m_stamp[s.var()] & ~0x1) + d.sign(); }
|
||||
inline unsigned get_level(literal l) const { return m_stamp[l.var()] & ~0x1; }
|
||||
void set_level(literal d, literal s) { m_stamp[d.var()] = get_level(s) + d.sign(); }
|
||||
lbool value(literal l) const { return is_undef(l) ? l_undef : is_true(l) ? l_true : l_false; }
|
||||
|
||||
// set the level within a scope of the search.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue