remove unused LtNode.__floordiv__ (#3445)

This commit is contained in:
chenyu
2024-02-18 22:12:54 -05:00
committed by GitHub
parent 86efdf0b34
commit ddec76e9c4

View File

@@ -167,7 +167,6 @@ class OpNode(Node):
def get_bounds(self) -> Tuple[int, int]: raise NotImplementedError("must be implemented")
class LtNode(OpNode):
def __floordiv__(self, b: Union[Node, int], _=False): return (self.a//b) < (self.b//b)
def get_bounds(self) -> Tuple[int, int]:
if isinstance(self.b, int): return (1, 1) if self.a.max < self.b else (0, 0) if self.a.min >= self.b else (0, 1)
return (1, 1) if self.a.max < self.b.min else (0, 0) if self.a.min >= self.b.max else (0, 1)