mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
458 B
Solidity
19 lines
458 B
Solidity
pragma experimental SMTChecker;
|
|
|
|
contract C
|
|
{
|
|
function f(uint[2] memory a, uint[2] memory b, uint[2] memory c) public pure {
|
|
require(c[0] == 42);
|
|
require(a[0] == 2);
|
|
b[0] = 1;
|
|
// Should fail since b == c is possible.
|
|
assert(c[0] == 42);
|
|
// Should fail since b == a is possible.
|
|
assert(a[0] == 2);
|
|
assert(b[0] == 1);
|
|
}
|
|
}
|
|
// ----
|
|
// Warning: (228-246): Assertion violation happens here
|
|
// Warning: (293-310): Assertion violation happens here
|