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 / task06 / reference.c
| 1 | uint32_t collatz_steps_u32(uint32_t n) { |
| 2 | uint64_t c = n; |
| 3 | uint32_t s = 0; |
| 4 | while (c > 1) { c = (c & 1u) ? 3 * c + 1 : c / 2; s++; } |
| 5 | return s; |
| 6 | } |