aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/009_branches_merge_variables.sol
blob: f93e32e41271eed0f7ead570cba34adad5c5ba67 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                    
pragma experimental SMTChecker;
// Branch does not touch variable a
contract C {
    function f(uint x) public pure {
        uint a = 3;
        if (x > 10) {
        }
        assert(a == 3);
    }
}