mirror of
https://github.com/Z3Prover/z3
synced 2025-06-02 20:31:21 +00:00
simplify ""* to ""
This commit is contained in:
parent
6d28b1a858
commit
5cc29bec14
1 changed files with 4 additions and 0 deletions
|
@ -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));
|
result = re().mk_to_re(str().mk_empty(seq_sort));
|
||||||
return BR_DONE;
|
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)) {
|
if (re().is_plus(a, b)) {
|
||||||
result = re().mk_star(b);
|
result = re().mk_star(b);
|
||||||
return BR_DONE;
|
return BR_DONE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue