3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-12-20 19:23:44 +00:00

fixed loop lower bound bug in loop info and default nullable value in invalid_info

This commit is contained in:
Margus Veanes 2020-08-21 15:59:56 -07:00
parent 6b11af7ec6
commit 7b478c8406
2 changed files with 2 additions and 2 deletions

View file

@ -1867,7 +1867,7 @@ seq_util::rex::info seq_util::rex::info::loop(unsigned lower) const {
if (is_known()) {
//r{l,m} is not normalized if r is nullable but l > 0
unsigned m = min_length * lower;
if (m < min_length || m < lower)
if (m > 0 && (m < min_length || m < lower))
m = UINT_MAX;
bool loop_normalized = (nullable == l_false && lower > 0 ? false : normalized);
lbool loop_nullable = (nullable == l_true || lower == 0 ? l_true : nullable);