3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00

fix #7446, by adding rewrite simplification

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2024-11-11 19:08:11 -08:00
parent 30ad22a4ef
commit 1cc808c58d

View file

@ -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) {