mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
392 B
Solidity
12 lines
392 B
Solidity
pragma experimental SMTChecker;
|
|
contract C {
|
|
function f() public pure {
|
|
assert(byte("") & ("") == byte(0)); // should hold
|
|
assert(byte(0xAA) & byte(0x55) == byte(0)); // should hold
|
|
assert(byte(0xFF) & byte(0xAA) == byte(0xAA)); // should hold
|
|
assert(byte(0xFF) & byte(0xAA) == byte(0)); // should fail
|
|
}
|
|
}
|
|
// ----
|
|
// Warning 6328: (253-295): CHC: Assertion violation happens here.
|