mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
226 B
Solidity
13 lines
226 B
Solidity
|
pragma experimental SMTChecker;
|
||
|
contract C {
|
||
|
function f(bool b) public pure {
|
||
|
uint x;
|
||
|
if (b) ++(x);
|
||
|
else x += 1;
|
||
|
assert(x == 1);
|
||
|
assert(!b);
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning 6328: (140-150): Assertion violation happens here
|