2020-09-11 19:49:04 +00:00
|
|
|
contract C {
|
|
|
|
function f(bool b, uint a) pure public {
|
|
|
|
require(a <= 256);
|
|
|
|
if (b)
|
|
|
|
revert();
|
|
|
|
uint c = a + 1;
|
|
|
|
if (b)
|
|
|
|
c--;
|
|
|
|
else
|
|
|
|
c++;
|
|
|
|
assert(c == a);
|
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2020-09-11 19:49:04 +00:00
|
|
|
// ----
|
2023-02-09 16:07:13 +00:00
|
|
|
// Warning 6328: (150-164): CHC: Assertion violation happens here.
|
|
|
|
// Info 1391: CHC: 3 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.
|
2021-03-31 15:11:54 +00:00
|
|
|
// Warning 6838: (122-123): BMC: Condition is always false.
|