solidity/test/libsolidity/smtCheckerTests/types/mapping_equal_keys_2.sol

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 4661: (119-133): Assertion violation happens here