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_invariant.om

12 lines · 241 bytes Raw Blame History
1note contract_invariant: a false loop invariant traps 10, exit 110, at the top of the failing pass
2om2
3text before "before\n"
4fn main to int
5k = write 1 before 0 len before
6i = uint 0
7while lt i 10
8invariant lt i 5
9i = add i 1
10end
11ret 0
12end