Skip to content

Commit

Permalink
fix #5399
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Jul 10, 2021
1 parent 2973d3b commit 0f8d2d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ast/rewriter/seq_rewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1775,6 +1775,10 @@ br_status seq_rewriter::mk_seq_replace(expr* a, expr* b, expr* c, expr_ref& resu
result = str().mk_concat(c, a);
return BR_REWRITE1;
}
if (str().is_empty(a) && str().is_empty(c)) {
result = a;
return BR_DONE;
}

m_lhs.reset();
str().get_concat(a, m_lhs);
Expand Down

0 comments on commit 0f8d2d1

Please sign in to comment.