mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
404 B
Solidity
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()
|