Skip to content

Commit 1cc808c

Browse files
fix #7446, by adding rewrite simplification
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
1 parent 30ad22a commit 1cc808c

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
@@ -2467,6 +2467,10 @@ br_status seq_rewriter::mk_str_le(expr* a, expr* b, expr_ref& result) {
24672467

24682468
br_status seq_rewriter::mk_str_lt(expr* a, expr* b, expr_ref& result) {
24692469
zstring as, bs;
2470+
if (str().is_empty(b)) {
2471+
result = m().mk_false();
2472+
return BR_DONE;
2473+
}
24702474
if (str().is_string(a, as) && str().is_string(b, bs)) {
24712475
unsigned sz = std::min(as.length(), bs.length());
24722476
for (unsigned i = 0; i < sz; ++i) {

0 commit comments

Comments
 (0)