interplane.Get Omega
Read in your language

omega-harness

Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories

Brought by drakestapleton

branch main Branches Tags History

omega-harness / examples / err30_contract.om

12 lines · 239 bytes Raw Blame History
1note err30_contract: a contract clause may not call a function, use floats or host words; result needs a value postcondition
2om2
3fn g x uint to uint
4ret x
5end
6fn f x uint to uint
7requires lt g x 10
8ret x
9end
10fn main to int
11ret int f 1
12end