solidity/test/libsolidity/smtCheckerTests/function_selector/selector_3.sol
2021-01-12 14:00:07 +01:00

15 lines
400 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\nTransaction trace:\nC.constructor()\nState: x = 0, y = 0\nC.f()