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 / si / mcp / data / examples / contract_fail.om

9 lines · 156 bytes Raw Blame History
1om2
2note a false requires stops the program with trap 9 (exit 109)
3fn step x uint to uint
4requires lt x 2
5ret add x 1
6end
7fn main to int
8ret int step 5
9end