aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/045-proof-compiler/units/append.aup
blob: def7fa5074f23aaa904c7886fcbd6dea5638c230 (plain)
1
2
3
4
5
6
7
state t = 0
input go = message { n: u32 }
on go {
  let xs: list of number
  for i in 0 .. go.n { xs.append(i) }
  t = xs.count
}