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

Method test_bv_sub_self

tests/test_z3_ported.py:703–707  ·  view source on GitHub ↗

x - x == 0.

(self, kernel)

Source from the content-addressed store, hash-verified

701 assert prove(claim)
702
703 def test_bv_sub_self(self, kernel):
704 """x - x == 0."""
705 x = BitVec("x", 8)
706 claim = ForAll([x], x - x == BitVecVal(0, 8))
707 assert prove(claim)
708
709 def test_shift_left_right(self, kernel):
710 """(x << 2) >> 2 masks top bits (logical shift)."""

Callers

nothing calls this directly

Calls 4

BitVecFunction · 0.90
ForAllFunction · 0.90
BitVecValFunction · 0.90
proveFunction · 0.90

Tested by

no test coverage detected