K(IntSort(), 0) creates an array where every element is 0.
(self, kernel)
| 947 | assert prove(claim) |
| 948 | |
| 949 | def test_constant_array(self, kernel): |
| 950 | """K(IntSort(), 0) creates an array where every element is 0.""" |
| 951 | c = K(IntSort(), IntVal(0)) |
| 952 | i = Int("i") |
| 953 | claim = ForAll([i], Select(c, i) == IntVal(0)) |
| 954 | assert prove(claim) |
| 955 | |
| 956 | def test_array_getitem_syntax(self): |
| 957 | """a[i] is shorthand for Select(a, i).""" |