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
omega-mv / tools / exp445 / arms / examples / count_digits / program.osc
| 1 | fn 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 | } |