aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/041-batches/costs/sum0.aup
blob: 27e11bca999c557e1b846858ad95483c2630b361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
state out = 0
input go = message {
  n: u32
}
on go {
  let total = 0
  for i in 0 .. go.n * 20 {
    let f = i + 1
    total = total + 1
    let z = f
  }
  out = total
}