3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 17:45:32 +00:00

guard against different bitwidth

This commit is contained in:
Jakob Rath 2023-03-09 13:51:10 +01:00
parent 9773ce60d6
commit dba8a4b73a

View file

@ -749,6 +749,8 @@ namespace polysat {
if (!d->is_ule())
continue;
auto u_l_k = inequality::from_ule(d);
if (u_l_k.rhs().power_of_2() != m.power_of_2())
continue;
// a <= k or x <= k
k = u_l_k.rhs();
if (!k.is_val())