solidity/test/libsolidity/smtCheckerTests/control_flow/function_call_inside_branch.sol

18 lines
238 B
Solidity
Raw Normal View History

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;
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
// ----