2021-08-30 16:21:22 +00:00
|
|
|
contract C {
|
|
|
|
function g(address payable i) public {
|
|
|
|
require(address(this).balance == 100);
|
|
|
|
i.call{value: 0}("");
|
|
|
|
assert(address(this).balance == 100); // should hold
|
|
|
|
assert(address(this).balance == 20); // should fail
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
|
|
|
// ----
|
|
|
|
// Warning 9302: (96-116): Return value of low-level calls not used.
|
|
|
|
// Warning 6328: (120-156): CHC: Assertion violation might happen here.
|
2021-09-16 17:18:26 +00:00
|
|
|
// Warning 6328: (175-210): CHC: Assertion violation happens here.\nCounterexample:\n\ni = 0x0\n\nTransaction trace:\nC.constructor()\nC.g(0x0)\n i.call{value: 0}("") -- untrusted external call
|
2021-08-30 16:21:22 +00:00
|
|
|
// Warning 4661: (120-156): BMC: Assertion violation happens here.
|