mirror of
https://github.com/Z3Prover/z3
synced 2025-08-02 09:20:22 +00:00
bv and gc of literals (#4692)
* bv and gc of literals Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * overload Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * diseq Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * diseq Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2d52367368
commit
549753845e
34 changed files with 1480 additions and 854 deletions
|
@ -167,9 +167,11 @@ namespace sat {
|
|||
return;
|
||||
|
||||
if (m_probing_binary) {
|
||||
watch_list & wlist = s.get_wlist(~l);
|
||||
for (unsigned i = 0; i < wlist.size(); ++i) {
|
||||
unsigned sz = s.get_wlist(~l).size();
|
||||
for (unsigned i = 0; i < sz; ++i) {
|
||||
watch_list& wlist = s.get_wlist(~l);
|
||||
watched & w = wlist[i];
|
||||
sz = wlist.size();
|
||||
if (!w.is_binary_clause())
|
||||
continue;
|
||||
literal l2 = w.get_literal();
|
||||
|
@ -177,7 +179,8 @@ namespace sat {
|
|||
continue;
|
||||
if (s.value(l2) != l_undef)
|
||||
continue;
|
||||
// Note: that try_lit calls propagate, which may update the watch lists.
|
||||
// Note: that try_lit calls propagate, which may update the watch lists
|
||||
// and potentially change the set of variables.
|
||||
if (!try_lit(l2, false))
|
||||
return;
|
||||
if (s.inconsistent())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue