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 / seed / omc / contracts / ok.om

14 lines · 177 bytes Raw Blame History
1om2
2fn step x uint to uint
3requires lt x 10
4ensures eq result add x 1
5ret add x 1
6end
7fn main to int
8i = uint 0
9while lt i 3
10invariant le i 3
11i = step i
12end
13ret int sub i 3
14end