fix(kernel/level): add (trivial) case for is_geq predicate: l >= 0 for any l

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-06-02 18:13:50 -07:00
parent 045fa911d1
commit f816487f4b

View file

@ -665,7 +665,7 @@ bool is_equivalent(level const & lhs, level const & rhs) {
}
bool is_geq_core(level l1, level l2) {
if (l1 == l2)
if (l1 == l2 || is_zero(l2))
return true;
if (is_max(l2))
return is_geq(l1, max_lhs(l2)) && is_geq(l1, max_rhs(l2));