aboutsummaryrefslogtreecommitdiff
path: root/examples/sum-first-integers.urm
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sum-first-integers.urm')
-rw-r--r--examples/sum-first-integers.urm12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/sum-first-integers.urm b/examples/sum-first-integers.urm
new file mode 100644
index 0000000..363dbdd
--- /dev/null
+++ b/examples/sum-first-integers.urm
@@ -0,0 +1,12 @@
1COPY 2 1
2ZERO 3
3JUMP 2 3 12
4ZERO 4
5JUMP 3 4 9
6SUCC 1
7SUCC 4
8ZERO 5
9JUMP 5 5 4
10SUCC 3
11ZERO 6
12JUMP 6 6 2