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

19 lines · 254 bytes Raw Blame History
1fn above v view int 4 t int to uchar
2k = uchar 0
3for i uint 4
4if gt get v i t
5k = add k 1
6end
7end
8ret k
9end
10fn count_above a int b int c int d int t int to uchar
11v = new int 4 0
12put v 0 a
13put v 1 b
14put v 2 c
15put v 3 d
16k = above view v t
17free v
18ret k
19end