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 / tri_kind / program.omegese

17 lines · 230 bytes Raw Blame History
1fn tri_kind a ushort b ushort c ushort to uchar
2x = uint a
3y = uint b
4z = uint c
5if or or le add x y z le add x z y le add y z x
6ret 0
7else
8if and eq a b eq b c
9ret 1
10else
11if or or eq a b eq b c eq a c
12ret 2
13end
14end
15end
16ret 3
17end