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/task14/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 / task14 / reference.om` 13 lines ยท 175 bytes Raw Blame History 1 fn power_mod_u32 a uint b uint to uint 2 res = uint 1 3 cur = a 4 exp = b 5 while gt exp 0 6 if eq (and exp 1) 1 7 res = mul res cur 8 end 9 cur = mul cur cur 10 exp = shr exp 1 11 end 12 ret res 13 end