interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / bench / inference_cost / tasks / task17 / reference.om

9 lines · 111 bytes Raw Blame History
1fn sum_digits_u32 n uint to uint
2s = uint 0
3v = n
4while gt v 0
5s = add s (rem v 10)
6v = div v 10
7end
8ret s
9end