3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-04-02 09:58:59 +00:00

seq_ne_solver: short-circuit propagate_ne2eq for str.unit elements

Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/269206ba-eec0-4986-93b3-738478e88991

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-01 22:06:52 +00:00 committed by GitHub
parent 57fdf43475
commit ec495c094c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -134,11 +134,12 @@ bool theory_seq::propagate_ne2eq(unsigned idx, expr_ref_vector const& es) {
if (es.empty())
return false;
for (expr* e : es) {
if (m_util.str.is_unit(e))
return true;
expr_ref len_e = mk_len(e);
rational lo;
if (lower_bound(len_e, lo) && lo > 0) {
if (lower_bound(len_e, lo) && lo > 0)
return true;
}
}
ne const& n = m_nqs[idx];
expr_ref e(m), head(m), tail(m);