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 / tests / one_layer / generalization / corpus / specs / digsum.spec

5 lines · 207 bytes Raw Blame History
1desc sum of the decimal digits of an unsigned 32-bit value (0 for 0)
2pre true
3post and le res 90 eq rem res 9 rem n 9
4example 1234 -> 10
5limit decimal digits only; adds the digits, it does not multiply them