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

Class BitVecSortRef

lean_py/z3/core.py:238–249  ·  view source on GitHub ↗

Fixed-width bit-vector sort, maps to Lean's ``BitVec n``.

Source from the content-addressed store, hash-verified

236
237
238class BitVecSortRef(SortRef):
239 """Fixed-width bit-vector sort, maps to Lean's ``BitVec n``."""
240
241 __slots__ = ("_width",)
242
243 def __init__(self, width: int) -> None:
244 super().__init__(BitvecASTSort(width))
245 self._width = width
246
247 @property
248 def size(self) -> int:
249 return self._width
250
251
252def BitVecSort(n: int) -> BitVecSortRef:

Callers 2

BitVecSortFunction · 0.85
_sort_from_ast_sortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected