3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-29 09:28:45 +00:00
make rewriting exception safe (for cancelation).
The state during restart in smt_context is not exception safe.
This commit is contained in:
Nikolaj Bjorner 2023-03-01 17:30:07 -08:00
parent 027770930e
commit 46d37b6e30
2 changed files with 30 additions and 6 deletions

View file

@ -1237,7 +1237,7 @@ namespace seq {
seq.str.is_string(x)) {
expr_ref len(n, m);
m_rewrite(len);
SASSERT(n != len);
SASSERT(m.limit().is_canceled() || n != len);
add_clause(mk_eq(len, n));
}
else {