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