3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 09:34:08 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-24 00:52:02 -07:00
parent 2793c3af2c
commit 851c38f64a

View file

@ -1270,6 +1270,7 @@ br_status seq_rewriter::mk_seq_index(expr* a, expr* b, expr* c, expr_ref& result
expr_ref a1(m());
a1 = m_util.str.mk_concat(as.size() - i, as.c_ptr() + i, sort_a);
result = m_util.str.mk_index(a1, b, m_autil.mk_int(r));
result = m().mk_ite(m_autil.mk_ge(result, zero()), m_autil.mk_add(m_autil.mk_int(i), result), minus_one());
return BR_REWRITE2;
}
}