Fixed-width bit-vector sort, maps to Lean's ``BitVec n``.
| 236 | |
| 237 | |
| 238 | class 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 | |
| 252 | def BitVecSort(n: int) -> BitVecSortRef: |
no outgoing calls
no test coverage detected