aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/control_flow/branches_merge_variables_2.sol
blob: c00ef787adc0ce35df7fa921585d8d93d15e5d28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
pragma experimental SMTChecker;
// Positive branch touches variable a, but assertion should still hold.
contract C {
    function f(uint x) public pure {
        uint a = 3;
        if (x > 10) {
            a = 3;
        }
        assert(a == 3);
    }
}