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/bench/inference_cost/tasks/task05/reference.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 / bench / inference_cost / tasks / task05 / reference.om` 23 lines ยท 275 bytes Raw Blame History 1 fn isqrt_u32 x uint to uint 2 if eq x 0 3 ret 0 4 end 5 lx = ulong x 6 lo = ulong 1 7 hi = ulong x 8 if gt hi 65536 9 hi = ulong 65536 10 end 11 ans = ulong 1 12 while le lo hi 13 mid = div (add lo hi) 2 14 sq = mul mid mid 15 if le sq lx 16 ans = mid 17 lo = add mid 1 18 else 19 hi = sub mid 1 20 end 21 end 22 ret uint ans 23 end