interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / bench / inference_cost / tasks / task06 / reference.rs

6 lines · 170 bytes Raw Blame History
1fn 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}