'Raise an exception if *num* is smaller than *ok_value*.'

def check_int_status(self, num, ok_value=0):

    ok = lc.Constant.int(num.type, ok_value)
    pred = self.builder.icmp(lc.ICMP_SLT, num, ok)
    with cgutils.if_unlikely(self.builder, pred):
        self.return_exception_raised()
