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

Method test_expression_sort

tests/test_z3_ported.py:1938–1943  ·  view source on GitHub ↗

Each expression knows its sort.

(self)

Source from the content-addressed store, hash-verified

1936 assert isinstance(s, ArraySortRef)
1937
1938 def test_expression_sort(self):
1939 """Each expression knows its sort."""
1940 assert Int("x").sort() == IntSort()
1941 assert Real("x").sort() == RealSort()
1942 assert Bool("x").sort() == BoolSort()
1943 assert BitVec("x", 8).sort() == BitVecSort(8)
1944
1945
1946# ===================================================================

Callers

nothing calls this directly

Calls 9

IntFunction · 0.90
IntSortFunction · 0.90
RealFunction · 0.90
RealSortFunction · 0.90
BoolFunction · 0.90
BoolSortFunction · 0.90
BitVecFunction · 0.90
BitVecSortFunction · 0.90
sortMethod · 0.45

Tested by

no test coverage detected