solidity/test/libsolidity/smtCheckerTests/control_flow/function_call_inside_branch.sol
2021-04-08 21:03:39 +02:00

18 lines
238 B
Solidity

contract C
{
function f() public pure {
if (true) {
address a = g();
assert(a == address(0));
}
}
function g() public pure returns (address) {
address a;
a = address(0);
return a;
}
}
// ====
// SMTEngine: all
// ----