interplane.Get Omega
Read in your language

aienos.com

Source of www.aienos.com, served from my own hardware

Brought by drakestapleton

branch main Branches Tags History

aienos.com / om / omega-reference / vendor / examples / contract_requires.om

12 lines · 241 bytes Raw Blame History
1note contract_requires: a false precondition traps 9, exit 109, before the body runs
2om2
3text before "before\n"
4fn half x uint to uint
5requires eq rem x 2 0
6ret div x 2
7end
8fn main to int
9k = write 1 before 0 len before
10h = half 7
11ret 0
12end