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 / tests / longnames / long_alias.om

9 lines · 455 bytes Raw Blame History
1note long_alias: names that share their first 8 bytes are different names. counter_a, counter_b and the
2note 8-byte counter_ hold 20, 1 and 100, so the result is 20 + 1 + 100 - 100 = 21. A compiler that kept
3note only the first 8 bytes would make them one name holding 100 and exit 200 (the mutants of seed/omc/gate-longnames.sh).
4fn main to int
5counter_a = int 20
6counter_b = int 1
7counter_ = int 100
8ret sub add add counter_a counter_b counter_ 100
9end