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

Function lean_int64_of_int

lean_py/_runtime.py:668–676  ·  view source on GitHub ↗
(self, p)

Source from the content-addressed store, hash-verified

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

Callers 1

leanpy_int64_of_intFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected