mirror of
https://github.com/Z3Prover/z3
synced 2026-06-21 16:10:26 +00:00
Added real projection operator
This commit is contained in:
parent
ff99cb442a
commit
70031b674c
7 changed files with 437 additions and 176 deletions
|
|
@ -400,6 +400,14 @@ namespace seq {
|
|||
if (re->is_fail() || re->is_full_char() || re->is_full_seq())
|
||||
return;
|
||||
|
||||
// projection operator: only the regex arguments carry character
|
||||
// structure; the third argument is the integer snapshot index.
|
||||
if (re->is_projection()) {
|
||||
collect_char_boundaries(re->arg(0), bounds);
|
||||
collect_char_boundaries(re->arg(1), bounds);
|
||||
return;
|
||||
}
|
||||
|
||||
// If we reached a leaf and none of the expected leaf forms matched,
|
||||
// this is a regex constructor we did not account for in boundary
|
||||
// extraction and should fail loudly in debug builds.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue