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 / task09 / reference.c
| 1 | uint32_t factorial_u32(uint32_t n) { |
| 2 | if (n >= 34) return 0; |
| 3 | uint32_t r = 1; |
| 4 | for (uint32_t i = 2; i <= n; i++) r *= i; |
| 5 | return r; |
| 6 | } |