aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/019_ways_to_merge_variables.sol
blob: 03ae7216df410c6f9f7e71b06c741a6ffdbccb13 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                       
pragma experimental SMTChecker;
contract C {
    function f(uint x) public pure {
        uint a = 3;
        if (x > 10) {
            a = 5;
        }
        assert(a == 3);
    }
}
// ----
// Warning: (161-175): Assertion violation happens here