mirror of
https://github.com/Z3Prover/z3
synced 2026-06-20 07:36:31 +00:00
Apply ZIPT improvements: fix loop nullable, drop bounds check, symmetric star merging
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
593e22ba4e
commit
a0b359212e
2 changed files with 19 additions and 5 deletions
|
|
@ -212,11 +212,16 @@ namespace euf {
|
|||
if (same_star_body(a, b))
|
||||
push_merge(n, a);
|
||||
|
||||
// Rule 1 extended: concat(v*, concat(v*, c)) = concat(v*, c)
|
||||
// Rule 1 extended (right): concat(v*, concat(v*, c)) = concat(v*, c)
|
||||
enode* b1, *b2;
|
||||
if (is_concat(b, b1, b2) && same_star_body(a, b1))
|
||||
push_merge(n, b);
|
||||
|
||||
// Rule 1 extended (left): concat(concat(c, v*), v*) = concat(c, v*)
|
||||
enode* a1, *a2;
|
||||
if (is_concat(a, a1, a2) && same_star_body(a2, b))
|
||||
push_merge(n, a);
|
||||
|
||||
// Rule 2: Nullable absorption by .*
|
||||
// concat(.*, v) = .* when v is nullable
|
||||
if (is_full_seq(a) && is_nullable(b))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue