aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/branches_merge_variables_4.sol
blob: e3a027044460864cafd1116a993b79a60647af16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
pragma experimental SMTChecker;
// 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);
    }
}