aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/041-batches/costs/nest.aup
blob: 3eb0af7f02a36cde6399cc6e68b279f95baa020d (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 {
    for j in 0 .. go.n {
      let s = 0
      for k in 0 .. go.n {
        s = s + (k + 1) * 2 + j - j + 1
      }
      total = total + s
    }
  }
  out = total
}