3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +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();

View file

@ -581,6 +581,9 @@ namespace algebraic_numbers {
bool b_lt_a = lt(b, a);
bool c_lt_b = lt(c, b);
bool c_lt_a = lt(c, a);
(void)b_lt_a;
(void)c_lt_b;
(void)c_lt_a;
// (a <= b & b <= c) => a <= c
// b < a or c < b or !(c < a)
CTRACE("algebraic_bug",