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

23 lines
372 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
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);
}
}
// ----
2020-09-09 14:12:55 +00:00
// Warning 6328: (189-203): Assertion violation happens here.
// Warning 2661: (146-149): Overflow (resulting value larger than 2**256 - 1) happens here.