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