(self, p)
| 666 | return big(n) |
| 667 | |
| 668 | def lean_int64_of_int(self, p): |
| 669 | fn = self._find_leanpy_helper("leanpy_int64_of_int") |
| 670 | if fn is not None: |
| 671 | fn.argtypes = [LeanObjectPtr] |
| 672 | fn.restype = c_int64 |
| 673 | return int(fn(p)) |
| 674 | if self.lean_is_scalar(p): |
| 675 | return int(self.lean_scalar_to_int(p)) |
| 676 | raise RuntimeError("leanpy_int64_of_int not found") |
| 677 | |
| 678 | def lean_scalar_to_int(self, p): |
| 679 | # The C runtime encodes Int as `lean_box((unsigned)(int)n)`, so |
no outgoing calls
no test coverage detected