x ^ x == 0.
(self, kernel)
| 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.""" |