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

Method as_long

lean_py/z3/core.py:756–760  ·  view source on GitHub ↗

Return the unsigned integer value.

(self)

Source from the content-addressed store, hash-verified

754 __slots__ = ()
755
756 def as_long(self) -> int:
757 """Return the unsigned integer value."""
758 if isinstance(self._ast, BvLit):
759 return self._ast.val
760 raise TypeError("Not a bitvector literal")
761
762 def as_signed_long(self) -> int:
763 """Return the signed integer value."""

Callers 1

as_stringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected