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 / tests / compiler / neg / slice_alias_cells_twice.osc
| 1 | // expect: SLICE_ALIAS object=c line=9 |
| 2 | // transition: slice passed twice |
| 3 | fn two(a: cells, b: cells) -> u64 { |
| 4 | a[0] = 1; |
| 5 | b[0] = b[0] + 7; |
| 6 | return a[0]; |
| 7 | } |
| 8 | fn alias(c: cells) -> u64 { |
| 9 | return two(c, c); |
| 10 | } |