aboutsummaryrefslogtreecommitdiffhomepage
path: root/src-cslul/fuzz/input/testcase.slul
blob: bc1845c2d9703b495441a5637d3f5d86b9982fae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

\slul 0.0.0
\name fuzz

type S = struct {
    int x
    struct {
        [3,4]byte arr
    } y
}

data [3]byte stuff = [3,2,1]

func f(int x, int y) -> int
{
    int i = 123
    {
        int j = 234
        return i+j
    }
}

func SlulApp.main() -> int
{
    int i = 123
    ref int ip
    switch stuff[124-i] {
    case 123, 345:
        return 0
    case 456:
        var int x = 16
        while x != 1 { x /= 2 }
        return 1
    default:
        other()
        return f(i, 234)
    }
    return 3
}