solidity/test/libsolidity/smtCheckerTests/operators/compound_shr_1.sol
2022-04-01 23:41:18 -05:00

13 lines
219 B
Solidity

contract C {
function f(bool b) public pure {
uint v = 1;
if (b)
v >>= 2;
assert(v > 0);
}
}
// ====
// SMTEngine: all
// ----
// Warning 6328: (84-97='assert(v > 0)'): CHC: Assertion violation happens here.