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 / prompt

3 lines · 280 bytes Raw Blame History
1Write a function count_above that takes five signed 32-bit numbers a, b, c, d and t and returns how
2many of a, b, c and d are greater than t, as an unsigned 8-bit number. Put a, b, c and d in an array
3of four and count with a helper function that reads the array. It never traps.