2020-12-18 18:10:32 +00:00
|
|
|
interface D { function e() external; }
|
|
|
|
|
|
|
|
contract C {
|
|
|
|
bool locked = true;
|
|
|
|
|
|
|
|
function call(address target) public {
|
|
|
|
assert(locked);
|
|
|
|
locked = false;
|
|
|
|
D(target).e();
|
|
|
|
locked = true;
|
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2020-12-18 18:10:32 +00:00
|
|
|
// ----
|
2021-09-16 17:18:26 +00:00
|
|
|
// Warning 6328: (117-131): CHC: Assertion violation happens here.\nCounterexample:\nlocked = false\ntarget = 0x0\n\nTransaction trace:\nC.constructor()\nState: locked = true\nC.call(0x0)\n D(target).e() -- untrusted external call, synthesized as:\n C.call(0x0) -- reentrant call
|