solidity/test/libsolidity/smtCheckerTests/function_selector/selector_3.sol
2021-04-08 21:03:39 +02:00

15 lines
393 B
Solidity

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);
}
}
// ====
// SMTEngine: all
// ----
// Warning 6328: (142-184): CHC: Assertion violation happens here.\nCounterexample:\nx = 0, y = 0\n\nTransaction trace:\nC.constructor()\nState: x = 0, y = 0\nC.f()