summaryrefslogtreecommitdiff
path: root/output/ex39.vapor
blob: 3ee23eae9d92d2978441843b480e4877cdf13c36 (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
func Main()
  t.2 = 0
  t.5 = 2
  t.6 = t.2
  t.4 = MulS(t.5 t.6)
  t.3 = t.4
  t.8 = t.3
  t.9 = t.2
  t.7 = Add(t.8 t.9)
  t.3 = t.7
  t.11 = t.3
  t.12 = 1
  t.10 = Sub(t.11 t.12)
  t.3 = t.10
  t.13 = t.2
  PrintIntS(t.13)
  t.14 = t.3
  PrintIntS(t.14)
  ret

func AllocArray(size)
  bytes = MulS(size 4)
  bytes = Add(bytes 4)
  v = HeapAllocZ(bytes)
  [v] = size
  ret v