Skip to content

Commit 96c1375

Browse files
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
1 parent a9f8ec1 commit 96c1375

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ast/rewriter/seq_rewriter.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -2060,6 +2060,10 @@ br_status seq_rewriter::mk_seq_replace_all(expr* a, expr* b, expr* c, expr_ref&
20602060
result = m().mk_ite(str().mk_is_empty(b), str().mk_empty(a->get_sort()), c);
20612061
return BR_REWRITE2;
20622062
}
2063+
if (str().is_empty(a) && str().is_empty(c)) {
2064+
result = a;
2065+
return BR_DONE;
2066+
}
20632067
zstring s1, s2;
20642068
expr_ref_vector strs(m());
20652069
if (str().is_string(a, s1) && str().is_string(b, s2)) {

0 commit comments

Comments
 (0)