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 / tests / one_layer / omegese / dev / dev08.omegese

15 lines · 188 bytes Raw Blame History
1fn collatz_steps n uint to uint
2x = ulong n
3steps = uint 0
4while ne x 1 bound 1000
5r = rem x 2
6if eq r 0
7x = div x 2
8else
9t = mul x 3
10x = add t 1
11end
12steps = add steps 1
13end
14ret steps
15end