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/a64/tests/ref/lv.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 / a64 / tests / ref / lv.om` 26 lines ยท 572 bytes Raw Blame History 1 note ref/lv.om: omc reference of mkir fixture lv (exit = lv(9) low byte). The fixture keeps v_0 .. v_19 live in 2 note registers across chk.add, chk.mul and chk.bounds; here they sit in a global, the checks being Omega's own. 3 global v ulong 20 4 global g ulong 8 5 6 fn lv n ulong to ulong 7 k = ulong 0 8 while lt k 20 bound 20 9 put v k add mul n add mul k 2 3 add mul k k 1 10 k = add k 1 11 end 12 c = add get v 0 get v 1 13 d = mul get v 2 get v 3 14 e = get g and n 7 15 s = n 16 k = 0 17 while lt k 20 bound 20 18 s = xor mul s 5 get v k 19 k = add k 1 20 end 21 ret s 22 end 23 24 fn main to int 25 ret int and lv 9 255 26 end