2021-09-16 17:18:26 +00:00
|
|
|
interface I {
|
|
|
|
function f() external;
|
|
|
|
}
|
|
|
|
|
|
|
|
contract C {
|
|
|
|
function g(I _i) public payable {
|
|
|
|
uint x = address(this).balance;
|
|
|
|
_i.f();
|
|
|
|
assert(x == address(this).balance); // should fail
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2021-10-12 09:12:18 +00:00
|
|
|
// SMTIgnoreCex: yes
|
2021-09-16 17:18:26 +00:00
|
|
|
// SMTIgnoreOS: macos
|
|
|
|
// ----
|
2022-11-23 15:51:06 +00:00
|
|
|
// Warning 6328: (135-169): CHC: Assertion violation happens here.\nCounterexample:\n\n_i = 0\nx = 5892\n\nTransaction trace:\nC.constructor()\nC.g(0){ msg.value: 11 }\n _i.f() -- untrusted external call, synthesized as:\n C.g(0){ msg.value: 32278 } -- reentrant call\n _i.f() -- untrusted external call
|