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

Method test_extract

tests/test_z3_compat.py:920–925  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

918 assert isinstance(r._ast, BinOpNode) and r._ast.op == BinOp.MOD
919
920 def test_extract(self):
921 x = BitVec("x", 8)
922 r = Extract(3, 0, x)
923 assert isinstance(r._ast, ExtractNode)
924 assert r._ast.hi == 3 and r._ast.lo == 0
925 assert r.size() == 4
926
927 def test_concat(self):
928 a = BitVec("a", 4)

Callers

nothing calls this directly

Calls 3

BitVecFunction · 0.90
ExtractFunction · 0.90
sizeMethod · 0.45

Tested by

no test coverage detected