solidity/test/libsolidity/smtCheckerTests/external_calls/external_inc.sol
2022-04-01 23:41:18 -05:00

25 lines
527 B
Solidity

abstract contract D {
function d() external virtual;
}
contract C {
uint x;
D d;
function inc() public {
++x;
}
function f() public {
d.d();
assert(x < 10);
}
}
// ====
// SMTEngine: all
// SMTIgnoreCex: yes
// ----
// Warning 4984: (113-116='++x'): CHC: Overflow (resulting value larger than 2**256 - 1) might happen here.
// Warning 6328: (156-170='assert(x < 10)'): CHC: Assertion violation happens here.
// Warning 2661: (113-116='++x'): BMC: Overflow (resulting value larger than 2**256 - 1) happens here.