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

Method test_ashr_negative

tests/test_z3_semantic.py:561–563  ·  view source on GitHub ↗

Arithmetic shift right of negative value fills with 1s.

(self, kernel)

Source from the content-addressed store, hash-verified

559 assert _try_prove(AShr(BitVecVal(64, 8), 2) == BitVecVal(16, 8))
560
561 def test_ashr_negative(self, kernel):
562 """Arithmetic shift right of negative value fills with 1s."""
563 assert _try_prove(AShr(BitVecVal(0x80, 8), 2) == BitVecVal(0xE0, 8))
564
565
566class TestBVUniversal:

Callers

nothing calls this directly

Calls 3

_try_proveFunction · 0.90
AShrFunction · 0.90
BitVecValFunction · 0.90

Tested by

no test coverage detected