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

Method test_extract

tests/test_z3_ported.py:2224–2229  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2222 assert isinstance(URem(x, y)._ast, BinOpNode)
2223
2224 def test_extract(self):
2225 x = BitVec("x", 16)
2226 r = Extract(7, 0, x)
2227 assert r.size() == 8
2228 r2 = Extract(15, 8, x)
2229 assert r2.size() == 8
2230
2231 def test_concat(self):
2232 a, b = BitVecs("a b", 4)

Callers

nothing calls this directly

Calls 3

BitVecFunction · 0.90
ExtractFunction · 0.90
sizeMethod · 0.45

Tested by

no test coverage detected