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

simplify ""* to ""

This commit is contained in:
Nikolaj Bjorner 2021-03-29 14:18:57 -07:00
parent 6d28b1a858
commit 5cc29bec14

View file

@ -4094,6 +4094,10 @@ br_status seq_rewriter::mk_re_star(expr* a, expr_ref& result) {
result = re().mk_to_re(str().mk_empty(seq_sort));
return BR_DONE;
}
if (re().is_to_re(a, b) && str().is_empty(b)) {
result = a;
return BR_DONE;
}
if (re().is_plus(a, b)) {
result = re().mk_star(b);
return BR_DONE;