3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-26 18:45:33 +00:00

avoid unintialized value build warnings

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-24 15:02:31 -07:00
parent a557913307
commit af51d98a32
3 changed files with 33 additions and 26 deletions

View file

@ -120,10 +120,10 @@ void intervals::add_linear_to_vector(const nex* e, vector<std::pair<rational, lp
// e = a * can_t + b
lp::lar_term intervals::expression_to_normalized_term(const nex_sum* e, rational& a, rational& b) {
TRACE("nla_horner_details", tout << *e << "\n";);
lpvar smallest_j;
lpvar smallest_j = 0;
vector<std::pair<rational, lpvar>> v;
b = rational(0);
unsigned a_index;
unsigned a_index = UINT_MAX;
for (const nex* c : *e) {
if (c->is_scalar()) {
b += c->to_scalar().value();