mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
enable theory propagation of regex accept condition
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
be36a8fd80
commit
3b1149330d
4 changed files with 51 additions and 10 deletions
|
@ -1325,6 +1325,8 @@ unsigned seq_util::re::min_length(expr* r) const {
|
|||
return std::max(min_length(r1), min_length(r2));
|
||||
if (is_loop(r, r1, lo, hi))
|
||||
return u.max_mul(lo, min_length(r1));
|
||||
if (is_range(r))
|
||||
return 1;
|
||||
if (is_to_re(r, s))
|
||||
return u.str.min_length(s);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue