Skip to content

Commit

Permalink
fix #7446, by adding rewrite simplification
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <[email protected]>
  • Loading branch information
NikolajBjorner committed Nov 12, 2024
1 parent 30ad22a commit 1cc808c
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 @@ -2467,6 +2467,10 @@ br_status seq_rewriter::mk_str_le(expr* a, expr* b, expr_ref& result) {

br_status seq_rewriter::mk_str_lt(expr* a, expr* b, expr_ref& result) {
zstring as, bs;
if (str().is_empty(b)) {
result = m().mk_false();
return BR_DONE;
}
if (str().is_string(a, as) && str().is_string(b, bs)) {
unsigned sz = std::min(as.length(), bs.length());
for (unsigned i = 0; i < sz; ++i) {
Expand Down

0 comments on commit 1cc808c

Please sign in to comment.