mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55: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
|
@ -362,7 +362,7 @@ namespace qe {
|
|||
}
|
||||
app* ite;
|
||||
if (find_ite(fml, ite)) {
|
||||
expr* cond, *th, *el;
|
||||
expr* cond = 0, *th = 0, *el = 0;
|
||||
VERIFY(m.is_ite(ite, cond, th, el));
|
||||
expr_ref tmp1(fml, m), tmp2(fml, m);
|
||||
m_replace->apply_substitution(ite, th, tmp1);
|
||||
|
|
|
@ -673,7 +673,7 @@ namespace qe {
|
|||
}
|
||||
|
||||
unsigned find_max(model& mdl, bool do_pos) {
|
||||
unsigned result;
|
||||
unsigned result = 0;
|
||||
bool new_max = true;
|
||||
rational max_r, r;
|
||||
expr_ref val(m);
|
||||
|
|
|
@ -2445,7 +2445,7 @@ public:
|
|||
}
|
||||
|
||||
virtual void assign(contains_app& x, expr* fml, rational const& vl) {
|
||||
nlarith::branch_conditions *brs;
|
||||
nlarith::branch_conditions *brs = 0;
|
||||
VERIFY (m_cache.find(x.x(), fml, brs));
|
||||
SASSERT(vl.is_unsigned());
|
||||
SASSERT(vl.get_unsigned() < brs->size());
|
||||
|
|
|
@ -792,9 +792,8 @@ namespace qe {
|
|||
TRACE("qe", tout << mk_pp(x.x(), m) << " has a recognizer\n";);
|
||||
}
|
||||
else {
|
||||
unsigned sz = m_datatype_util.get_datatype_num_constructors(s);
|
||||
SASSERT(vl.is_unsigned());
|
||||
SASSERT(vl.get_unsigned() < sz);
|
||||
SASSERT(vl.get_unsigned() < m_datatype_util.get_datatype_num_constructors(s));
|
||||
c = (*m_datatype_util.get_datatype_constructors(s))[vl.get_unsigned()];
|
||||
}
|
||||
subst_constructor(x, c, fml, def);
|
||||
|
|
|
@ -1667,7 +1667,7 @@ namespace fm {
|
|||
sbuffer<var> xs;
|
||||
buffer<rational> as;
|
||||
rational c;
|
||||
bool strict;
|
||||
bool strict = false;
|
||||
unsigned num;
|
||||
expr * const * args;
|
||||
if (m.is_or(f)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue