mirror of
https://github.com/Z3Prover/z3
synced 2025-04-16 05:48:44 +00:00
remove unintialized variable
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b6054b8406
commit
8895ed7122
|
@ -2610,6 +2610,7 @@ public:
|
||||||
lp::var_index vi = m_theory_var2var_index[v];
|
lp::var_index vi = m_theory_var2var_index[v];
|
||||||
rational val;
|
rational val;
|
||||||
if (m_solver->has_value(vi, val)) {
|
if (m_solver->has_value(vi, val)) {
|
||||||
|
if (is_int(n) && !val.is_int()) return false;
|
||||||
r = a.mk_numeral(val, is_int(n));
|
r = a.mk_numeral(val, is_int(n));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1024,7 +1024,6 @@ 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 {
|
bool lar_solver::explanation_is_correct(const vector<std::pair<mpq, unsigned>>& explanation) const {
|
||||||
#ifdef Z3DEBUG
|
#ifdef Z3DEBUG
|
||||||
lconstraint_kind kind;
|
lconstraint_kind kind;
|
||||||
lp_assert(the_relations_are_of_same_type(explanation, kind));
|
|
||||||
lp_assert(the_left_sides_sum_to_zero(explanation));
|
lp_assert(the_left_sides_sum_to_zero(explanation));
|
||||||
mpq rs = sum_of_right_sides_of_explanation(explanation);
|
mpq rs = sum_of_right_sides_of_explanation(explanation);
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
|
|
Loading…
Reference in a new issue