'Return whether the index is out of bounds.'

def is_out_of_bounds(self, idx):

    underflow = self._builder.icmp_signed('<', idx, ir.Constant(idx.type, 0))
    overflow = self._builder.icmp_signed('>=', idx, self.size)
    return self._builder.or_(underflow, overflow)
