aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/045-proof-compiler/units/mod.aup
diff options
context:
space:
mode:
Diffstat (limited to 'research/experiments/045-proof-compiler/units/mod.aup')
-rw-r--r--research/experiments/045-proof-compiler/units/mod.aup7
1 files changed, 7 insertions, 0 deletions
diff --git a/research/experiments/045-proof-compiler/units/mod.aup b/research/experiments/045-proof-compiler/units/mod.aup
new file mode 100644
index 0000000..dfb0f98
--- /dev/null
+++ b/research/experiments/045-proof-compiler/units/mod.aup
@@ -0,0 +1,7 @@
+state t = 0
+input go = message { n: u32 }
+on go {
+ let s = 0
+ for i in 0 .. go.n { s = s + i % 1000 }
+ t = s
+}