+ def __ge__(self, other):
+ if isinstance(other, SelectableInt):
+ assert other.bits == self.bits
+ other = other.value
+ if isinstance(other, int):
+ return other >= self.value
+ assert False
+
+ def __le__(self, other):
+ if isinstance(other, SelectableInt):
+ assert other.bits == self.bits
+ other = other.value
+ if isinstance(other, int):
+ return other <= self.value
+ assert False
+
+ def __gt__(self, other):
+ if isinstance(other, SelectableInt):
+ assert other.bits == self.bits
+ other = other.value
+ if isinstance(other, int):
+ return other > self.value
+ assert False
+
+ def __lt__(self, other):
+ if isinstance(other, SelectableInt):
+ assert other.bits == self.bits
+ other = other.value
+ if isinstance(other, int):
+ return other < self.value
+ assert False
+