diff options
Diffstat (limited to 'research/experiments/041-batches/costs/sum0.aup')
| -rw-r--r-- | research/experiments/041-batches/costs/sum0.aup | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/research/experiments/041-batches/costs/sum0.aup b/research/experiments/041-batches/costs/sum0.aup new file mode 100644 index 0000000..27e11bc --- /dev/null +++ b/research/experiments/041-batches/costs/sum0.aup @@ -0,0 +1,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 +} |
