solidity/test/libsolidity/smtCheckerTests/operators/bitwise_combo.sol
2023-03-09 14:59:32 +01:00

14 lines
317 B
Solidity

contract C {
function f() public pure {
uint8 x = 0xff;
uint8 y = ~x;
assert(x & y == 0);
assert(x | y == 0xff);
assert(x ^ y == 0xff);
}
}
// ====
// SMTEngine: all
// ----
// Info 1391: CHC: 3 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.