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.osc

9 lines · 169 bytes Raw Blame History
1fn count_digits(n: u64) -> u8 {
2 let mut x: u64 = n;
3 let mut k: u8 = 1;
4 while x >= 10 bound 20 {
5 x = x / 10;
6 k = k + 1;
7 }
8 return k;
9}