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

Method test_is_sort

tests/test_z3_ported.py:2781–2786  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2779 assert not is_arith(BitVec("v", 8))
2780
2781 def test_is_sort(self):
2782 assert is_sort(IntSort())
2783 assert is_sort(BoolSort())
2784 assert is_sort(BitVecSort(8))
2785 assert not is_sort(Int("x"))
2786 assert not is_sort(42)
2787
2788 def test_is_app(self):
2789 f = Function("f", IntSort(), IntSort())

Callers

nothing calls this directly

Calls 5

is_sortFunction · 0.90
IntSortFunction · 0.90
BoolSortFunction · 0.90
BitVecSortFunction · 0.90
IntFunction · 0.90

Tested by

no test coverage detected