aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/045-proof-compiler/units/append.aup
diff options
context:
space:
mode:
Diffstat (limited to 'research/experiments/045-proof-compiler/units/append.aup')
-rw-r--r--research/experiments/045-proof-compiler/units/append.aup7
1 files changed, 7 insertions, 0 deletions
diff --git a/research/experiments/045-proof-compiler/units/append.aup b/research/experiments/045-proof-compiler/units/append.aup
new file mode 100644
index 0000000..def7fa5
--- /dev/null
+++ b/research/experiments/045-proof-compiler/units/append.aup
@@ -0,0 +1,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
+}