solidity/test/libsolidity/smtCheckerTests/types/mapping_equal_keys_2.sol
2020-07-23 18:49:03 +02:00

13 lines
237 B
Solidity

pragma experimental SMTChecker;
contract C
{
mapping (uint => uint) map;
function f(uint x, uint y) public view {
assert(x == y);
assert(map[x] == map[y]);
}
}
// ----
// Warning 6328: (119-133): Assertion violation happens here