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 1cc808c commit c0e748a
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 @@ -2471,6 +2471,10 @@ br_status seq_rewriter::mk_str_lt(expr* a, expr* b, expr_ref& result) {
result = m().mk_false();
return BR_DONE;
}
if (str().is_empty(a)) {
result = m().mk_not(m().mk_eq(a, b));
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 c0e748a

Please sign in to comment.