3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-12 10:06:23 +00:00

guard update to depth bound to avoid overflow

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2026-06-29 12:30:43 -07:00
parent a8e8498d9c
commit a1b926fea3

View file

@ -2058,7 +2058,8 @@ namespace seq {
return r;
}
// depth limit hit double the bound and retry
m_depth_bound *= 2;
if (m_depth_bound < INT_MAX/2)
m_depth_bound *= 2;
SASSERT(m_depth_bound < INT_MAX);
}
++m_stats.m_num_unknown;