aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/041-batches/costs/ops.aup
blob: cd49f85ec57b6e5ee8f45ec25de50ac60766ab86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
    total = max(total, f)
  }
  out = total
}