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.rs
| 1 | fn collatz_steps_u32(n: u32) -> u32 { |
| 2 | let mut c = n as u64; |
| 3 | let mut s = 0u32; |
| 4 | while c > 1 { c = if c & 1 == 1 { 3 * c + 1 } else { c / 2 }; s += 1; } |
| 5 | s |
| 6 | } |