mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
289 B
Solidity
15 lines
289 B
Solidity
|
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: (47-148): Function state mutability can be restricted to pure
|
||
|
// Warning: (128-144): Assertion violation happens here
|