solidity/test/libsolidity/smtCheckerTests/function_selector/selector_3.sol
2021-01-04 10:03:16 +01:00

15 lines
404 B
Solidity

pragma experimental SMTChecker;
contract C {
int public x;
int public y;
function f() public pure {
assert(this.x.selector != this.y.selector);
assert(this.x.selector == this.y.selector);
}
}
// ----
// Warning 6328: (175-217): CHC: Assertion violation happens here.\nCounterexample:\nx = 0, y = 0\n\n\n\nTransaction trace:\nC.constructor()\nState: x = 0, y = 0\nC.f()