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 ====
|
|
|
|
pragma experimental SMTChecker;
|
|
|
|
import "base";
|
|
|
|
contract Der is Base {
|
|
|
|
function g(uint y) public {
|
|
|
|
x += f();
|
|
|
|
assert(y > x);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-10-19 17:11:59 +00:00
|
|
|
// Warning 4984: (der:101-109): CHC: Overflow (resulting value larger than 2**256 - 1) might happen here.
|
2021-01-06 15:34:16 +00:00
|
|
|
// Warning 6328: (der:113-126): CHC: Assertion violation happens here.\nCounterexample:\nx = 3, a = 7\ny = 0\n\nTransaction trace:\nDer.constructor()\nState: x = 0, a = 0\nDer.g(0)\n Base.f() -- internal call
|
2020-12-10 15:51:10 +00:00
|
|
|
// Warning 4984: (base:100-103): CHC: Overflow (resulting value larger than 2**256 - 1) might happen here.
|
2020-09-25 17:09:06 +00:00
|
|
|
// Warning 2661: (base:100-103): BMC: Overflow (resulting value larger than 2**256 - 1) happens here.
|
|
|
|
// Warning 2661: (der:101-109): BMC: Overflow (resulting value larger than 2**256 - 1) happens here.
|
|
|
|
// Warning 2661: (base:100-103): BMC: Overflow (resulting value larger than 2**256 - 1) happens here.
|