3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-26 10:35:33 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-02 13:22:37 -07:00
parent 55329ea935
commit bab879c832

View file

@ -967,6 +967,7 @@ class theory_lra::imp {
return get_zero(a.is_int(term));
}
else {
TRACE("arith", tout << st.offset() << " " << st.coeffs().size() << " " << st.coeffs()[0] << "\n";);
init_left_side(st);
if (m_left_side.empty() && st.offset().is_zero()) {
return get_zero(a.is_int(term));
@ -985,9 +986,10 @@ class theory_lra::imp {
TRACE("arith_verbose", tout << "v" << v << " := " << mk_pp(term, m) << " slack: " << vi << " scopes: " << m_scopes.size() << "\n";
lp().print_term(lp().get_term(vi), tout) << "\n";);
}
else {
SASSERT(lp::tv::is_term(vi));
else {
SASSERT(lp::tv::is_term(vi) || a.is_to_real(term));
}
rational val;
if (a.is_numeral(term, val)) {
m_fixed_var_table.insert(value_sort_pair(val, is_int(v)), v);