Each expression knows its sort.
(self)
| 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 | # =================================================================== |