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 / ng / front / cases / for_latch_i64.om
| 1 | note for_latch_i64: as for_latch_i8 with a long counter: after one pass the body sets k to 2^63 - 1 and the |
| 2 | note latch's add 1 must trap 1 (exit 101), as omc's latch (binop 33 at s_end) does. Bug hunt, ledger L1060. |
| 3 | fn main to int |
| 4 | n = int 0 |
| 5 | for k long 10 bound 5 |
| 6 | n = add n 1 |
| 7 | if eq k 0 |
| 8 | k = 9223372036854775807 |
| 9 | end |
| 10 | end |
| 11 | ret n |
| 12 | end |