3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-01 18:38:47 +00:00

sketch fixed-length heuristic

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-07-27 19:34:32 -07:00
parent 5664b570a3
commit b71a64365d
3 changed files with 34 additions and 0 deletions

View file

@ -1353,6 +1353,8 @@ unsigned seq_util::re::max_length(expr* r) const {
return std::min(max_length(r1), max_length(r2));
if (is_loop(r, r1, lo, hi))
return u.max_mul(hi, max_length(r1));
if (is_range(r))
return 1;
if (is_to_re(r, s))
return u.str.max_length(s);
return UINT_MAX;