diff options
Diffstat (limited to 'examples/sum-first-odd-integers.urm')
-rw-r--r-- | examples/sum-first-odd-integers.urm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/sum-first-odd-integers.urm b/examples/sum-first-odd-integers.urm new file mode 100644 index 0000000..e476a5a --- /dev/null +++ b/examples/sum-first-odd-integers.urm | |||
@@ -0,0 +1,21 @@ | |||
1 | ZERO 2 | ||
2 | SUCC 2 | ||
3 | ZERO 3 | ||
4 | JUMP 2 1 10 | ||
5 | ZERO 4 | ||
6 | JUMP 2 4 10 | ||
7 | JUMP 1 4 20 | ||
8 | SUCC 4 | ||
9 | ZERO 6 | ||
10 | JUMP 6 6 5 | ||
11 | ZERO 5 | ||
12 | JUMP 2 5 16 | ||
13 | SUCC 3 | ||
14 | SUCC 5 | ||
15 | ZERO 7 | ||
16 | JUMP 7 7 11 | ||
17 | SUCC 2 | ||
18 | SUCC 2 | ||
19 | ZERO 8 | ||
20 | JUMP 8 8 3 | ||
21 | COPY 1 3 | ||