3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-05 07:23:58 +00:00

fixes to build warnings

This commit is contained in:
Nikolaj Bjorner 2024-09-30 08:23:31 -07:00
parent 2ac6f8bb06
commit 826835fd7c
21 changed files with 20 additions and 65 deletions

View file

@ -25,13 +25,13 @@ namespace sat {
unsigned sz = 0;
for (clause* c : m_clauses)
if (!c->was_removed())
sz++;
SASSERT(sz == m_size);
sz++;
VERIFY(sz == m_size);
unsigned redundant = 0;
for (clause* c : m_clauses)
if (c->is_learned())
redundant++;
SASSERT(redundant == m_num_redundant);
VERIFY(redundant == m_num_redundant);
return true;
}

View file

@ -1392,7 +1392,6 @@ namespace sat {
void lookahead::propagate_clauses_searching(literal l) {
// clauses where l is negative
unsigned sz = m_nary_count[(~l).index()];
literal lit;
SASSERT(m_search_mode == lookahead_mode::searching);
for (nary* n : m_nary[(~l).index()]) {
if (sz-- == 0) break;