solidity/test/libsolidity/smtCheckerTests/external_calls/external_single_inc.sol

28 lines
369 B
Solidity
Raw Normal View History

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);
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
2021-11-23 17:54:44 +00:00
// SMTIgnoreCex: yes
// ----
2021-11-23 17:54:44 +00:00
// Warning 6328: (223-240): CHC: Assertion violation happens here.