mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
fixed nullability bug in the if-then-else info (#5620)
This commit is contained in:
parent
4cfc73779a
commit
efcad5ff35
|
@ -1703,7 +1703,13 @@ seq_util::rex::info seq_util::rex::info::orelse(seq_util::rex::info const& i) co
|
||||||
// unsigned ite_min_length = std::min(min_length, i.min_length);
|
// unsigned ite_min_length = std::min(min_length, i.min_length);
|
||||||
// lbool ite_nullable = (nullable == i.nullable ? nullable : l_undef);
|
// lbool ite_nullable = (nullable == i.nullable ? nullable : l_undef);
|
||||||
// TBD: whether ite is interpreted or not depends on whether the condition is interpreted and both branches are interpreted
|
// TBD: whether ite is interpreted or not depends on whether the condition is interpreted and both branches are interpreted
|
||||||
return info(false, false, false, false, normalized && i.normalized, monadic && i.monadic, singleton && i.singleton, nullable, std::min(min_length, i.min_length), std::max(star_height, i.star_height));
|
return info(false, false, false, false,
|
||||||
|
normalized && i.normalized,
|
||||||
|
monadic && i.monadic,
|
||||||
|
singleton && i.singleton,
|
||||||
|
((nullable == l_true && i.nullable == l_true) ? l_true : ((nullable == l_false && i.nullable == l_false) ? l_false : l_undef)),
|
||||||
|
std::min(min_length, i.min_length),
|
||||||
|
std::max(star_height, i.star_height));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return i;
|
return i;
|
||||||
|
|
Loading…
Reference in a new issue