summary refs log tree commit diff
path: root/tests/pracownia4/40_manyvars_rec.xi
blob: 3aacd1a335d1066f747740120a03516f3766652f (plain) (blame)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
f(values:int[]):int
{
    r0:int = values[0]
    r1:int = values[1]
    r2:int = values[2]
    r3:int = values[3]
    r4:int = values[4]
    r5:int = values[5]
    r6:int = values[6]
    r7:int = values[7]
    r8:int = values[8]
    r9:int = values[9]
    r10:int = values[10]
    r11:int = values[11]
    r12:int = values[12]
    r13:int = values[13]
    r14:int = values[14]
    r15:int = values[15]
    r16:int = values[16]
    r17:int = values[17]
    r18:int = values[18]
    r19:int = values[19]
    r20:int = values[20]
    r21:int = values[21]
    r22:int = values[22]
    r23:int = values[23]
    r24:int = values[24]
    r25:int = values[25]
    r26:int = values[26]
    r27:int = values[27]
    r28:int = values[28]
    r29:int = values[29]
    r30:int = values[30]
    r31:int = values[31]
    r32:int = values[32]
    r33:int = values[33]
    r34:int = values[34]
    r35:int = values[35]
    r36:int = values[36]
    r37:int = values[37]
    r38:int = values[38]
    r39:int = values[39]
    return r0 + r1 + r2 + r3 + r4 + r5 + r6 + r7 + r8 + r9 + r10 + r11 + r12 + r13 + r14 + r15 + r16 + r17 + r18 + r19 + r20 + r21 + r22 + r23 + r24 + r25 + r26 + r27 + r28 + r29 + r30 + r31 + r32 + r33 + r34 + r35 + r36 + r37 + r38 + r39
}
g(values:int[]):int
{
    r0:int = values[0]
    r1:int = values[1]
    r2:int = values[2]
    r3:int = values[3]
    r4:int = values[4]
    r5:int = values[5]
    r6:int = values[6]
    r7:int = values[7]
    r8:int = values[8]
    r9:int = values[9]
    r10:int = values[10]
    r11:int = values[11]
    r12:int = values[12]
    r13:int = values[13]
    r14:int = values[14]
    r15:int = values[15]
    r16:int = values[16]
    r17:int = values[17]
    r18:int = values[18]
    r19:int = values[19]
    r20:int = values[20]
    r21:int = values[21]
    r22:int = values[22]
    r23:int = values[23]
    r24:int = values[24]
    r25:int = values[25]
    r26:int = values[26]
    r27:int = values[27]
    r28:int = values[28]
    r29:int = values[29]
    r30:int = values[30]
    r31:int = values[31]
    r32:int = values[32]
    r33:int = values[33]
    r34:int = values[34]
    r35:int = values[35]
    r36:int = values[36]
    r37:int = values[37]
    r38:int = values[38]
    r39:int = values[39]
    r_f:int = f(values)
    return r_f + r0 + r1 + r2 + r3 + r4 + r5 + r6 + r7 + r8 + r9 + r10 + r11 + r12 + r13 + r14 + r15 + r16 + r17 + r18 + r19 + r20 + r21 + r22 + r23 + r24 + r25 + r26 + r27 + r28 + r29 + r30 + r31 + r32 + r33 + r34 + r35 + r36 + r37 + r38 + r39
}
prepare_values(n:int):int[]
{
    result:int[] = {}
    i:int = 0
    while (i < n) {
        result = result + {i*10}
        i = i + 1
    }
    return result
}

main():int
{
    values:int[] = prepare_values(40)
    return g(values)
}

//@PRACOWNIA
//@out Exit code: 15600