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

rewrite equality too

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-08-09 15:32:04 -07:00
parent aa7e9b09f3
commit 3eb849ad9e
2 changed files with 2 additions and 2 deletions

View file

@ -1950,7 +1950,7 @@ br_status seq_rewriter::mk_seq_replace_all(expr* a, expr* b, expr* c, expr_ref&
} }
if (a == b) { if (a == b) {
result = m().mk_ite(str().mk_is_empty(b), str().mk_empty(a->get_sort()), c); result = m().mk_ite(str().mk_is_empty(b), str().mk_empty(a->get_sort()), c);
return BR_REWRITE1; return BR_REWRITE2;
} }
zstring s1, s2; zstring s1, s2;
expr_ref_vector strs(m()); expr_ref_vector strs(m());

View file

@ -1070,7 +1070,7 @@ std::ostream& seq_util::rex::pp::compact_helper_seq(std::ostream& out, expr* s)
compact_helper_seq(out, e); compact_helper_seq(out, e);
} }
else if (re.u.str.is_string(s, z)) { else if (re.u.str.is_string(s, z)) {
for (int i = 0; i < z.length(); i++) for (unsigned i = 0; i < z.length(); i++)
out << (char)z[i]; out << (char)z[i];
} }
//using braces to indicate 'full' output //using braces to indicate 'full' output