aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/041-batches/costs/recur.aup
blob: fb5600443bdadb36230c5ed3f6a2a23ed2a48fae (plain)
1
2
3
4
5
6
7
8
9
10
11
state out = 0
input go = message {
  n: u32
}
on go {
  let x = 1
  for i in 0 .. go.n * 1000 {
    x = x * 48271 - floor(x * 48271 / 2147483647) * 2147483647
  }
  out = x
}