2020-09-22 09:16:34 +00:00
|
|
|
contract C {
|
|
|
|
function f(uint256 a, uint256 b) internal pure returns (uint256) {
|
|
|
|
a <<= b;
|
|
|
|
return a;
|
|
|
|
}
|
|
|
|
function t() public pure {
|
|
|
|
assert(f(0x4266, 0x0) == 0x4266);
|
|
|
|
assert(f(0x4266, 0x8) == 0x426600);
|
|
|
|
assert(f(0x4266, 0xf0) == 0x4266000000000000000000000000000000000000000000000000000000000000);
|
|
|
|
assert(f(0x4266, 0x4266) == 0);
|
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2020-09-22 09:16:34 +00:00
|
|
|
// ----
|
2023-02-09 16:07:13 +00:00
|
|
|
// Info 1391: CHC: 4 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.
|