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 / tests / compiler / neg / slice_alias_cells_twice.osc

10 lines · 215 bytes Raw Blame History
1// expect: SLICE_ALIAS object=c line=9
2// transition: slice passed twice
3fn two(a: cells, b: cells) -> u64 {
4 a[0] = 1;
5 b[0] = b[0] + 7;
6 return a[0];
7}
8fn alias(c: cells) -> u64 {
9 return two(c, c);
10}