mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
Fix is_infty_level to treat 2^16-1 as infinity
This commit is contained in:
parent
5d2f682f7a
commit
f67346d16e
|
@ -94,6 +94,7 @@ void prop_solver::add_level()
|
|||
|
||||
void prop_solver::ensure_level(unsigned lvl)
|
||||
{
|
||||
if (is_infty_level(lvl)) return;
|
||||
while (lvl >= level_cnt()) {
|
||||
add_level();
|
||||
}
|
||||
|
|
|
@ -48,7 +48,8 @@ namespace spacer {
|
|||
}
|
||||
|
||||
inline bool is_infty_level(unsigned lvl) {
|
||||
return lvl == infty_level ();
|
||||
// XXX: level is 16 bits in class pob
|
||||
return lvl >= 65535;
|
||||
}
|
||||
|
||||
inline unsigned next_level(unsigned lvl) {
|
||||
|
|
Loading…
Reference in a new issue