solidity/test/libsolidity/smtCheckerTests/operators/compound_shr_1.sol

13 lines
203 B
Solidity
Raw Normal View History

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