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 / tests / ir / x-divmin.om

9 lines · 164 bytes Raw Blame History
1note x-divmin: signed minimum div -1 traps 1
2fn f a long b long to long
3ret div a b
4end
5fn main to int
6m = sub long -9223372036854775807 1
7r = f m -1
8ret int r
9end