mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
fix unused-but-set-variable warnings reported in #579
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
9aaee8616a
commit
3a6e6df4f5
11 changed files with 19 additions and 8 deletions
|
@ -52,6 +52,7 @@ namespace sat {
|
|||
|
||||
bool clause::check_approx() const {
|
||||
var_approx_set curr = m_approx;
|
||||
(void)curr;
|
||||
const_cast<clause*>(this)->update_approx();
|
||||
SASSERT(may_eq(curr, m_approx));
|
||||
return true;
|
||||
|
|
|
@ -159,7 +159,8 @@ namespace sat {
|
|||
for (unsigned l_idx = 0; it != end; ++it, ++l_idx) {
|
||||
literal l = ~to_literal(l_idx);
|
||||
watch_list const & wlist = *it;
|
||||
CTRACE("sat_bug", s.was_eliminated(l.var()) && !wlist.empty(),
|
||||
CTRACE("sat_bug",
|
||||
s.was_eliminated(l.var()) && !wlist.empty(),
|
||||
tout << "l: " << l << "\n";
|
||||
s.display_watches(tout);
|
||||
s.display(tout););
|
||||
|
@ -179,7 +180,7 @@ namespace sat {
|
|||
tout << "\n";
|
||||
sat::display(tout, s.m_cls_allocator, s.get_wlist(~(it2->get_literal())));
|
||||
tout << "\n";);
|
||||
SASSERT(s.get_wlist(~(it2->get_literal())).contains(watched(l, it2->is_learned())));
|
||||
SASSERT(s.get_wlist(~(it2->get_literal())).contains(watched(l, it2->is_learned())));
|
||||
break;
|
||||
case watched::TERNARY:
|
||||
SASSERT(!s.was_eliminated(it2->get_literal1().var()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue