feat(kernel/level): add missing normalization rule

This commit is contained in:
Leonardo de Moura 2014-10-08 11:07:11 -07:00
parent 24227f0e51
commit 93e0599a0f

View file

@ -235,9 +235,11 @@ level mk_imax(level const & l1, level const & l2) {
if (is_not_zero(l2))
return mk_max(l1, l2);
else if (is_zero(l2))
return l2;
return l2; // imax u 0 = 0 for any u
else if (is_zero(l1))
return l2; // imax 0 u = u for any u
else if (l1 == l2)
return l1;
return l1; // imax u u = u
else
return level(new level_max_core(true, l1, l2));
}