solidity/test/libsolidity/smtCheckerTests/external_calls/external_reentrancy_2.sol

19 lines
431 B
Solidity
Raw Normal View History

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
// ----
2022-01-12 13:46:30 +00:00
// Warning 1218: (117-131): CHC: Error trying to invoke SMT solver.
// Warning 6328: (117-131): CHC: Assertion violation might happen here.
// Warning 4661: (117-131): BMC: Assertion violation happens here.