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 / bench / inference_cost / tasks / task17 / reference.c
| 1 | uint32_t sum_digits_u32(uint32_t n) { |
| 2 | uint32_t s = 0; |
| 3 | while (n) { s += n % 10; n /= 10; } |
| 4 | return s; |
| 5 | } |