2021-08-20 16:47:38 +00:00
|
|
|
contract C {
|
|
|
|
uint c;
|
|
|
|
function f() public payable {
|
|
|
|
require(msg.value > 10);
|
|
|
|
++c;
|
|
|
|
}
|
|
|
|
function inv() public view {
|
2021-08-23 09:30:12 +00:00
|
|
|
assert(address(this).balance >= c * 11); // should hold
|
2021-08-20 16:47:38 +00:00
|
|
|
assert(address(this).balance >= c * 12); // should fail
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2022-05-10 10:43:27 +00:00
|
|
|
// SMTIgnoreCex: yes
|
2021-11-24 10:38:22 +00:00
|
|
|
// SMTIgnoreOS: macos
|
2021-08-20 16:47:38 +00:00
|
|
|
// ----
|
|
|
|
// Warning 4984: (82-85): CHC: Overflow (resulting value larger than 2**256 - 1) might happen here.
|
|
|
|
// Warning 4984: (154-160): CHC: Overflow (resulting value larger than 2**256 - 1) might happen here.
|
|
|
|
// Warning 4984: (212-218): CHC: Overflow (resulting value larger than 2**256 - 1) might happen here.
|
2022-05-03 08:43:19 +00:00
|
|
|
// Warning 6328: (180-219): CHC: Assertion violation happens here.
|
2021-08-20 16:47:38 +00:00
|
|
|
// Warning 2661: (82-85): BMC: Overflow (resulting value larger than 2**256 - 1) happens here.
|
|
|
|
// Warning 2661: (154-160): BMC: Overflow (resulting value larger than 2**256 - 1) happens here.
|
|
|
|
// Warning 2661: (212-218): BMC: Overflow (resulting value larger than 2**256 - 1) happens here.
|