omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / seed / omc / cflow / pl-frpress.om
| 1 | note for test at the latch with K above 4095 and no register free at the latch (14 names in the body): the |
| 2 | note latch falls back to B head; 5000 passes, s = sum of i + 14 (exit 0); error 12 or a wrong pass count fails |
| 3 | om2 |
| 4 | fn main to int |
| 5 | s = ulong 0 |
| 6 | for i ulong 5000 |
| 7 | a1 = add i 1 |
| 8 | a2 = add a1 1 |
| 9 | a3 = add a2 1 |
| 10 | a4 = add a3 1 |
| 11 | a5 = add a4 1 |
| 12 | a6 = add a5 1 |
| 13 | a7 = add a6 1 |
| 14 | a8 = add a7 1 |
| 15 | a9 = add a8 1 |
| 16 | a10 = add a9 1 |
| 17 | a11 = add a10 1 |
| 18 | a12 = add a11 1 |
| 19 | a13 = add a12 1 |
| 20 | a14 = add a13 1 |
| 21 | s = add s a14 |
| 22 | end |
| 23 | ret int sub s 12567500 |
| 24 | end |