solidity/test/libsolidity/smtCheckerTests/operators/compound_assignment_right_shift.sol
2021-04-08 21:03:39 +02:00

12 lines
188 B
Solidity

contract C {
function f(int a, uint b) public view {
a >>= tx.gasprice;
require(a == 16 && b == 2);
a >>= b;
assert(a == 4); // should hold
}
}
// ====
// SMTEngine: all
// ----