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