MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / __init__

Method __init__

lean_py/z3/core.py:576–580  ·  view source on GitHub ↗
(self, num: int, den: int)

Source from the content-addressed store, hash-verified

574 __slots__ = ("_num", "_den")
575
576 def __init__(self, num: int, den: int) -> None:
577 ast = BinOpNode(BinOp.DIV, ToRealNode(IntLit(num)), ToRealNode(IntLit(den)))
578 super().__init__(ast, RealSort())
579 self._num = num
580 self._den = den
581
582 def numerator(self) -> IntNumRef:
583 return IntNumRef(IntLit(self._num), IntSort())

Callers

nothing calls this directly

Calls 5

BinOpNodeClass · 0.90
ToRealNodeClass · 0.90
IntLitClass · 0.90
RealSortFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected