mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
434 B
Solidity
16 lines
434 B
Solidity
pragma experimental SMTChecker;
|
|
|
|
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);
|
|
}
|
|
}
|
|
// ----
|