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 / ng / front / cases / for_latch_i64.om

12 lines · 327 bytes Raw Blame History
1note for_latch_i64: as for_latch_i8 with a long counter: after one pass the body sets k to 2^63 - 1 and the
2note latch's add 1 must trap 1 (exit 101), as omc's latch (binop 33 at s_end) does. Bug hunt, ledger L1060.
3fn main to int
4n = int 0
5for k long 10 bound 5
6n = add n 1
7if eq k 0
8k = 9223372036854775807
9end
10end
11ret n
12end