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