solidity/test/libsolidity/smtCheckerTests/operators/bitwise_combo.sol

13 lines
186 B
Solidity
Raw Normal View History

contract C {
function f() public pure {
uint8 x = 0xff;
uint8 y = ~x;
assert(x & y == 0);
assert(x | y == 0xff);
assert(x ^ y == 0xff);
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
// ----