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 / tools / exp445 / arms / examples / halve_or_dec_steps / program.omegese

12 lines · 145 bytes Raw Blame History
1fn halve_or_dec_steps n uint to uint
2k = uint 0
3while gt n 1 bound 64
4if eq rem n 2 0
5n = div n 2
6else
7n = sub n 1
8end
9k = add k 1
10end
11ret k
12end