2020-09-04 14:55:45 +00:00
|
|
|
contract C {
|
|
|
|
function f(uint256 a, uint256 b) internal pure returns (uint256) {
|
|
|
|
return a << b;
|
|
|
|
}
|
|
|
|
function t() public pure {
|
|
|
|
assert(f(0x4266, 0x0) == 0x4266);
|
|
|
|
// Fails because the above is true.
|
|
|
|
assert(f(0x4266, 0x0) == 0x4268);
|
|
|
|
|
|
|
|
assert(f(0x4266, 0x8) == 0x426600);
|
|
|
|
// Fails because the above is true.
|
|
|
|
assert(f(0x4266, 0x8) == 0x120939);
|
|
|
|
|
|
|
|
assert(f(0x4266, 0xf0) == 0x4266000000000000000000000000000000000000000000000000000000000000);
|
|
|
|
// Fails because the above is true.
|
|
|
|
assert(f(0x4266, 0xf0) == 0x4266000000000000000000000000000000000000000000000000000000000001);
|
|
|
|
|
|
|
|
assert(f(0x4266, 0x4266) == 0);
|
|
|
|
// Fails because the above is true.
|
|
|
|
assert(f(0x4266, 0x4266) == 1);
|
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2020-09-04 14:55:45 +00:00
|
|
|
// ----
|
2021-03-31 15:11:54 +00:00
|
|
|
// Warning 6328: (217-249): CHC: Assertion violation happens here.
|
|
|
|
// Warning 6328: (330-364): CHC: Assertion violation happens here.
|
|
|
|
// Warning 6328: (504-597): CHC: Assertion violation happens here.
|
|
|
|
// Warning 6328: (674-704): CHC: Assertion violation happens here.
|