solidity/test/libsolidity/smtCheckerTests/types/array_branch_1d.sol

15 lines
299 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C
{
function f(bool b, uint[] memory c) public {
c[0] = 0;
if (b)
c[0] = 1;
assert(c[0] > 0);
}
}
// ----
// Warning 2018: (47-148): Function state mutability can be restricted to pure
2020-07-13 18:48:00 +00:00
// Warning 6328: (128-144): Assertion violation happens here