mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
23 lines
490 B
Solidity
23 lines
490 B
Solidity
interface D { function e() external; }
|
|
|
|
contract C {
|
|
bool locked = true;
|
|
|
|
function call(address target) public {
|
|
locked = false;
|
|
D(target).e();
|
|
locked = true;
|
|
}
|
|
|
|
function broken() public view {
|
|
assert(locked);
|
|
}
|
|
}
|
|
// ====
|
|
// SMTEngine: all
|
|
// SMTIgnoreOS: macos
|
|
// ----
|
|
// Warning 1218: (206-220): CHC: Error trying to invoke SMT solver.
|
|
// Warning 6328: (206-220): CHC: Assertion violation might happen here.
|
|
// Warning 4661: (206-220): BMC: Assertion violation happens here.
|