2018-11-09 17:50:06 +00:00
|
|
|
pragma experimental SMTChecker;
|
|
|
|
|
|
|
|
contract C
|
|
|
|
{
|
|
|
|
function f(uint x) public pure {
|
|
|
|
require(x < 100);
|
|
|
|
for(uint i = 0; i < 10; ++i) {
|
|
|
|
// Overflows due to resetting x.
|
|
|
|
x = x + 1;
|
|
|
|
}
|
2019-08-20 13:03:45 +00:00
|
|
|
// Assertion is safe but current solver version cannot solve it.
|
|
|
|
// Keep test for next solver release.
|
2018-11-09 17:50:06 +00:00
|
|
|
assert(x > 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-10-19 17:11:59 +00:00
|
|
|
// Warning 4984: (176-181): CHC: Overflow (resulting value larger than 2**256 - 1) might happen here.
|
2020-10-27 08:24:32 +00:00
|
|
|
// Warning 6328: (296-309): CHC: Assertion violation might happen here.
|
2020-09-25 17:09:06 +00:00
|
|
|
// Warning 2661: (176-181): BMC: Overflow (resulting value larger than 2**256 - 1) happens here.
|
2020-10-27 08:24:32 +00:00
|
|
|
// Warning 4661: (296-309): BMC: Assertion violation happens here.
|