mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
245 B
Solidity
15 lines
245 B
Solidity
|
pragma experimental SMTChecker;
|
||
|
|
||
|
contract C
|
||
|
{
|
||
|
uint[] a;
|
||
|
function g(uint x, uint y) public {
|
||
|
require(x != y);
|
||
|
(, a[y]) = (2, 4);
|
||
|
assert(a[x] == 2);
|
||
|
assert(a[y] == 4);
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (136-153): Assertion violation happens here
|