mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
parent
a9f8ec1bcb
commit
96c1375786
|
@ -2060,6 +2060,10 @@ br_status seq_rewriter::mk_seq_replace_all(expr* a, expr* b, expr* c, expr_ref&
|
||||||
result = m().mk_ite(str().mk_is_empty(b), str().mk_empty(a->get_sort()), c);
|
result = m().mk_ite(str().mk_is_empty(b), str().mk_empty(a->get_sort()), c);
|
||||||
return BR_REWRITE2;
|
return BR_REWRITE2;
|
||||||
}
|
}
|
||||||
|
if (str().is_empty(a) && str().is_empty(c)) {
|
||||||
|
result = a;
|
||||||
|
return BR_DONE;
|
||||||
|
}
|
||||||
zstring s1, s2;
|
zstring s1, s2;
|
||||||
expr_ref_vector strs(m());
|
expr_ref_vector strs(m());
|
||||||
if (str().is_string(a, s1) && str().is_string(b, s2)) {
|
if (str().is_string(a, s1) && str().is_string(b, s2)) {
|
||||||
|
|
Loading…
Reference in a new issue