mirror of
https://github.com/Z3Prover/z3
synced 2025-06-27 00:18:45 +00:00
fix #7446, by adding rewrite simplification
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
30ad22a4ef
commit
1cc808c58d
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
br_status seq_rewriter::mk_str_lt(expr* a, expr* b, expr_ref& result) {
|
||||||
zstring as, bs;
|
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)) {
|
if (str().is_string(a, as) && str().is_string(b, bs)) {
|
||||||
unsigned sz = std::min(as.length(), bs.length());
|
unsigned sz = std::min(as.length(), bs.length());
|
||||||
for (unsigned i = 0; i < sz; ++i) {
|
for (unsigned i = 0; i < sz; ++i) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue