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 / tests / one_layer / generalization / corpus / specs / digsum.spec
| 1 | desc sum of the decimal digits of an unsigned 32-bit value (0 for 0) |
| 2 | pre true |
| 3 | post and le res 90 eq rem res 9 rem n 9 |
| 4 | example 1234 -> 10 |
| 5 | limit decimal digits only; adds the digits, it does not multiply them |