mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
reduce set of mainly verbose warnings raised by -Wmaybe-uninitialized and unused variable warnings from release mode builds
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
fa6f9b4a37
commit
5b497b6249
44 changed files with 68 additions and 70 deletions
|
@ -70,9 +70,9 @@ namespace sat {
|
|||
tout << "watch_list:\n";
|
||||
sat::display(tout, s.m_cls_allocator, s.get_wlist(~c[0]));
|
||||
tout << "\n";);
|
||||
SASSERT(contains_watched(s.get_wlist(~c[0]), c[1], c[2]));
|
||||
SASSERT(contains_watched(s.get_wlist(~c[1]), c[0], c[2]));
|
||||
SASSERT(contains_watched(s.get_wlist(~c[2]), c[0], c[1]));
|
||||
VERIFY(contains_watched(s.get_wlist(~c[0]), c[1], c[2]));
|
||||
VERIFY(contains_watched(s.get_wlist(~c[1]), c[0], c[2]));
|
||||
VERIFY(contains_watched(s.get_wlist(~c[2]), c[0], c[1]));
|
||||
}
|
||||
else {
|
||||
if (s.value(c[0]) == l_false || s.value(c[1]) == l_false) {
|
||||
|
|
|
@ -42,7 +42,7 @@ namespace sat {
|
|||
// if it->get_kind() == BLOCK_LIT, then it might be the case that m[it->var()] != l_undef,
|
||||
// and the following procedure flips its value.
|
||||
bool sat = false;
|
||||
bool var_sign;
|
||||
bool var_sign = false;
|
||||
literal_vector::const_iterator it2 = it->m_clauses.begin();
|
||||
literal_vector::const_iterator end2 = it->m_clauses.end();
|
||||
for (; it2 != end2; ++it2) {
|
||||
|
|
|
@ -381,7 +381,7 @@ private:
|
|||
|
||||
m_core.reset();
|
||||
for (unsigned i = 0; i < core.size(); ++i) {
|
||||
expr* e;
|
||||
expr* e = 0;
|
||||
VERIFY(asm2dep.find(core[i].index(), e));
|
||||
m_core.push_back(e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue