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/runs/fib31.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 / runs / fib31.om` 27 lines ยท 454 bytes Raw Blame History 1 note fib31: kernels/fib40.om (bench twin: recursive fib(40)) with fib(31), for ngrun in gate-front-ir 2 global out uchar 32 3 fn fib n ulong to ulong 4 if lt n 2 5 ret n 6 end 7 a = fib sub n 1 8 b = fib sub n 2 9 ret add a b 10 end 11 fn putnum v ulong to void 12 put out 31 10 13 p = ulong 31 14 x = v 15 while gt x 9 16 p = sub p 1 17 put out p uchar add rem x 10 48 18 x = div x 10 19 end 20 p = sub p 1 21 put out p uchar add x 48 22 w = write 1 out p sub 32 p 23 end 24 fn main to int 25 putnum fib 31 26 ret 0 27 end