aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/041-batches/costs/ops12.aup
blob: cca989e5828d78a1a48c31221d21b03ba7cc2ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
state out = 0
input go = message {
  n: u32
}
on go {
  let total = 0
  for i in 0 .. go.n * 20 {
    let a = i + 1
    let b = a + 2
    let c = b + 3
    let d = c + 4
    let e = d + 5
    let f = e + 6
    let g = f + 7
    let h = g + 8
    let k = h + 9
    let m = k + 10
    let p = m + 11
    let q = p + 12
    total = max(total, q)
  }
  out = total
}