3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-19 02:42:02 +00:00

check also for offset #3099

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-02 20:58:04 -08:00
parent 2edab50f53
commit 794c09425e

View file

@ -955,7 +955,7 @@ class theory_lra::imp {
} }
else { else {
init_left_side(st); init_left_side(st);
if (m_left_side.empty()) { if (m_left_side.empty() && st.offset().is_zero()) {
return get_zero(a.is_int(term)); return get_zero(a.is_int(term));
} }
theory_var v = mk_var(term); theory_var v = mk_var(term);