aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/functions/functions_storage_var_2.sol
blob: 2f95d8af52333015da7b343f94d4fa90a531a1c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pragma experimental SMTChecker;
contract C
{
    uint a;
    function f(uint x) public {
        uint y;
        a = (y = x);
    }
    function g() public {
        f(1);
        f(42);
        assert(a > 1);
    }
}