aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/branches_merge_variables_1.sol
blob: f93e32e41271eed0f7ead570cba34adad5c5ba67 (plain) (blame)
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);
    }
}