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

15 lines
280 B
Solidity
Raw Normal View History

// Variable is not merged, if it is only read.
contract C {
function f(uint x) public pure {
uint a = 3;
if (x > 10) {
assert(a == 3);
} else {
assert(a == 3);
}
assert(a == 3);
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all