mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
27 lines
348 B
Solidity
27 lines
348 B
Solidity
abstract contract D {
|
|
function d() external virtual;
|
|
}
|
|
|
|
contract C {
|
|
uint x;
|
|
uint y;
|
|
D d;
|
|
|
|
function inc() public {
|
|
if (y == 1)
|
|
x = 1;
|
|
if (x == 0)
|
|
y = 1;
|
|
}
|
|
|
|
function f() public {
|
|
uint oldX = x;
|
|
d.d();
|
|
assert(oldX == x);
|
|
}
|
|
}
|
|
// ====
|
|
// SMTEngine: all
|
|
// ----
|
|
// Warning 6328: (223-240): CHC: Assertion violation happens here.
|