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 / tools / exp445 / arms / examples / count_digits / program.omegese

8 lines · 107 bytes Raw Blame History
1fn count_digits n ulong to uchar
2k = uchar 1
3while ge n 10 bound 20
4n = div n 10
5k = add k 1
6end
7ret k
8end