mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
fix un-intialized variable warnings
This commit is contained in:
parent
2c94a3a1b3
commit
551cc53a2f
8 changed files with 10 additions and 10 deletions
|
@ -313,7 +313,7 @@ namespace datalog {
|
|||
void context::register_finite_sort(sort * s, sort_kind k) {
|
||||
m_pinned.push_back(s);
|
||||
SASSERT(!m_sorts.contains(s));
|
||||
sort_domain * dom;
|
||||
sort_domain * dom = nullptr;
|
||||
switch (k) {
|
||||
case SK_SYMBOL:
|
||||
dom = alloc(symbol_sort_domain, *this, s);
|
||||
|
|
|
@ -158,7 +158,7 @@ void anti_unifier::operator()(expr *e1, expr *e2, expr_ref &res,
|
|||
m_todo.pop_back();
|
||||
}
|
||||
|
||||
expr *r;
|
||||
expr *r = nullptr;
|
||||
VERIFY(m_cache.find(e1, e2, r));
|
||||
res = r;
|
||||
|
||||
|
|
|
@ -404,7 +404,7 @@ class pred_transformer {
|
|||
}
|
||||
pt_rule &mk_rule(const pt_rule &v);
|
||||
void set_tag(expr *tag, pt_rule &v) {
|
||||
pt_rule *p;
|
||||
pt_rule *p = nullptr;
|
||||
VERIFY(find_by_rule(v.rule(), p));
|
||||
p->set_tag(tag);
|
||||
m_tags.insert(tag, p);
|
||||
|
@ -569,7 +569,7 @@ class pred_transformer {
|
|||
expr *transition() const { return m_transition; }
|
||||
expr *init() const { return m_init; }
|
||||
expr *rule2tag(datalog::rule const *r) {
|
||||
pt_rule *p;
|
||||
pt_rule *p = nullptr;
|
||||
return m_pt_rules.find_by_rule(*r, p) ? p->tag() : nullptr;
|
||||
}
|
||||
unsigned get_num_levels() const { return m_frames.size(); }
|
||||
|
@ -600,7 +600,7 @@ class pred_transformer {
|
|||
bool_vector &reach_pred_used,
|
||||
unsigned &num_reuse_reach);
|
||||
expr *get_transition(datalog::rule const &r) {
|
||||
pt_rule *p;
|
||||
pt_rule *p = nullptr;
|
||||
return m_pt_rules.find_by_rule(r, p) ? p->trans() : nullptr;
|
||||
}
|
||||
ptr_vector<app> &get_aux_vars(datalog::rule const &r) {
|
||||
|
|
|
@ -569,7 +569,7 @@ void model_evaluator::eval_eq(app* e, expr* arg1, expr* arg2)
|
|||
void model_evaluator::eval_basic(app* e)
|
||||
{
|
||||
expr* arg1, *arg2;
|
||||
expr *argCond, *argThen, *argElse, *arg;
|
||||
expr *argCond = nullptr, *argThen = nullptr, *argElse = nullptr, *arg = nullptr;
|
||||
bool has_x = false;
|
||||
unsigned arity = e->get_num_args();
|
||||
switch (e->get_decl_kind()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue