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