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 / for_guard.om

12 lines · 227 bytes Raw Blame History
1note a for with a number count is unguarded; any other count traps 4 after 1000000 passes
2fn main to int
3s = ulong 0
4for i ulong 2000000
5s = add s 1
6end
7k = ulong 1000001
8for j ulong k
9s = add s 1
10end
11ret int sub s 3000001
12end