2020-08-23 19:21:45 +00:00
|
|
|
contract C {
|
2020-11-05 13:25:15 +00:00
|
|
|
function f() public pure {
|
|
|
|
// ffff0000 in bytes4
|
|
|
|
bytes4 x = ~bytes4(hex"ffff");
|
|
|
|
assert(x == 0xffff0000); // should fail
|
|
|
|
assert(x == 0x0000ffff); // should hold
|
|
|
|
}
|
2020-08-23 19:21:45 +00:00
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2020-08-23 19:21:45 +00:00
|
|
|
// ----
|
2023-02-09 16:07:13 +00:00
|
|
|
// Warning 6328: (100-123): CHC: Assertion violation happens here.
|
|
|
|
// Info 1391: CHC: 1 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.
|