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 / task13 / reference.om

12 lines · 139 bytes Raw Blame History
1fn ctz_u32 x uint to uint
2if eq x 0
3ret 32
4end
5count = uint 0
6v = x
7while eq (and v 1) 0
8count = add count 1
9v = shr v 1
10end
11ret count
12end