mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
24 lines
611 B
Solidity
24 lines
611 B
Solidity
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);
|
|
}
|
|
}
|
|
// ----
|
|
// Warning 4984: (146-149): CHC: Overflow (resulting value larger than 2**256 - 1) might happen here.
|
|
// Warning 6328: (189-203): CHC: Assertion violation happens here.\nCounterexample:\nx = 10, d = 0\n\n\n\nTransaction trace:\nconstructor()\nState: x = 0, d = 0\ninc()\nState: x = 1, d = 0\nf()
|
|
// Warning 2661: (146-149): BMC: Overflow (resulting value larger than 2**256 - 1) happens here.
|