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 / apps / aienos-site / om / omega-reference / vendor / 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