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 / nested / dev08.omegese

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