2020-09-23 15:55:55 +00:00
|
|
|
==== Source: base ====
|
|
|
|
contract Base {
|
|
|
|
uint x;
|
|
|
|
address a;
|
|
|
|
function f() internal returns (uint) {
|
|
|
|
a = address(this);
|
|
|
|
++x;
|
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
==== Source: der ====
|
|
|
|
import "base";
|
|
|
|
contract Der is Base {
|
|
|
|
function g(uint y) public {
|
2020-12-30 13:35:48 +00:00
|
|
|
require(x < 10); // added to restrict the search space and avoid non-determinsm in Spacer
|
2020-09-23 15:55:55 +00:00
|
|
|
x += f();
|
|
|
|
assert(y > x);
|
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2020-09-23 15:55:55 +00:00
|
|
|
// ----
|
2023-02-09 16:07:13 +00:00
|
|
|
// Warning 6328: (der:173-186): CHC: Assertion violation happens here.
|
|
|
|
// Info 1391: CHC: 2 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.
|