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

Method test_select_store

tests/test_z3_ported.py:927–932  ·  view source on GitHub ↗

Guide: Select and Store operations.

(self)

Source from the content-addressed store, hash-verified

925 assert is_array(a)
926
927 def test_select_store(self):
928 """Guide: Select and Store operations."""
929 a = Array("a", IntSort(), IntSort())
930 b = Store(a, IntVal(0), IntVal(42))
931 v = Select(b, IntVal(0))
932 assert isinstance(v, ExprRef)
933
934 def test_store_select_axiom(self, kernel):
935 """Select(Store(a, i, v), i) == v (read-over-write same index)."""

Callers

nothing calls this directly

Calls 5

ArrayFunction · 0.90
IntSortFunction · 0.90
StoreFunction · 0.90
IntValFunction · 0.90
SelectFunction · 0.90

Tested by

no test coverage detected