Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/ng/front/cases/for_latch_i64.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / ng / front / cases / for_latch_i64.om` 12 lines ยท 327 bytes Raw Blame History 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