mirror of
https://github.com/Z3Prover/z3
synced 2026-03-27 23:05:46 +00:00
... and another one...
This commit is contained in:
parent
4271bdad55
commit
9f4e823c8b
3 changed files with 81 additions and 23 deletions
|
|
@ -617,6 +617,14 @@ namespace euf {
|
|||
return;
|
||||
if (m_seq.re.is_empty(e))
|
||||
return;
|
||||
|
||||
// Expected compound regex operators are handled by recursion below.
|
||||
// If a leaf survives to this point, it is an unhandled regex form.
|
||||
if (re->num_args() == 0) {
|
||||
UNREACHABLE();
|
||||
return;
|
||||
}
|
||||
|
||||
// recurse into compound regex operators
|
||||
for (unsigned i = 0; i < re->num_args(); ++i) {
|
||||
collect_re_predicates(re->arg(i), preds);
|
||||
|
|
@ -669,8 +677,10 @@ namespace euf {
|
|||
}
|
||||
else if (m_seq.re.is_full_char(p))
|
||||
p_set = char_set::full(max_c);
|
||||
else
|
||||
else {
|
||||
UNREACHABLE();
|
||||
continue;
|
||||
}
|
||||
|
||||
if (p_set.is_empty() || p_set.is_full(max_c))
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue