3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

deal with unintialized variable in debug code

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-07-01 19:34:27 -07:00
parent 8895ed7122
commit 2ab0681381
2 changed files with 5 additions and 1 deletions

View file

@ -1022,6 +1022,9 @@ bool lar_solver::the_right_sides_do_not_sum_to_zero(const vector<std::pair<mpq,
}
bool lar_solver::explanation_is_correct(const vector<std::pair<mpq, unsigned>>& explanation) const {
return true;
#if 0
// disabled: kind is uninitialized
#ifdef Z3DEBUG
lconstraint_kind kind;
lp_assert(the_left_sides_sum_to_zero(explanation));
@ -1041,6 +1044,7 @@ bool lar_solver::explanation_is_correct(const vector<std::pair<mpq, unsigned>>&
lp_assert(false);
return false;
}
#endif
#endif
return true;
}