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 / ng / tests / ir / x-statnul.oir
| 1 | omegair 1 |
| 2 | type %t32 = array u8 1 |
| 3 | type %t33 = ref view host %t32 |
| 4 | type %t34 = array u8 128 |
| 5 | type %t35 = ref edit host %t34 |
| 6 | global @g0 %t32 zero |
| 7 | global @g1 %t34 zero |
| 8 | export @f0 flags 0 -> i32 |
| 9 | block ^0 |
| 10 | %1 = gaddr %t33 @g0 |
| 11 | %2 = gaddr %t35 @g1 |
| 12 | %3 = const u64 0 |
| 13 | %4 = const u64 128 |
| 14 | %5 = chk.slice 3 %0 %1 %3 %3 |
| 15 | %6 = chk.slice 3 %5 %2 %3 %4 |
| 16 | %7 %8 = host i64 140 %6 %1 %3 %3 %2 %3 %4 |
| 17 | %9 = conv i32 0 %8 |
| 18 | retv %7 %9 |
| 19 | end |