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.omegese
| 1 | fn count_digits n ulong to uchar |
| 2 | k = uchar 1 |
| 3 | while ge n 10 bound 20 |
| 4 | n = div n 10 |
| 5 | k = add k 1 |
| 6 | end |
| 7 | ret k |
| 8 | end |