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

Method test_bv_xor_self_is_zero

tests/test_z3_ported.py:673–677  ·  view source on GitHub ↗

x ^ x == 0.

(self, kernel)

Source from the content-addressed store, hash-verified

671 assert prove(claim)
672
673 def test_bv_xor_self_is_zero(self, kernel):
674 """x ^ x == 0."""
675 x = BitVec("x", 8)
676 claim = ForAll([x], (x ^ x) == BitVecVal(0, 8))
677 assert prove(claim)
678
679 def test_bv_and_self(self, kernel):
680 """x & x == x."""

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