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

Method test_ashr_positive

tests/test_z3_semantic.py:558–559  ·  view source on GitHub ↗
(self, kernel)

Source from the content-addressed store, hash-verified

556 assert _try_prove(LShR(BitVecVal(128, 8), 4) == BitVecVal(8, 8))
557
558 def test_ashr_positive(self, kernel):
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."""

Callers

nothing calls this directly

Calls 3

_try_proveFunction · 0.90
AShrFunction · 0.90
BitVecValFunction · 0.90

Tested by

no test coverage detected