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 / a-host.oir
| 1 | omegair 1 |
| 2 | type %t32 = array u8 6 |
| 3 | type %t33 = ref view host %t32 |
| 4 | global @g0 %t32 data 68656c6c6f0a |
| 5 | fn @f0 flags 0 -> void |
| 6 | block ^0 |
| 7 | %1 = host void 199 %0 |
| 8 | ret %1 |
| 9 | end |
| 10 | export @f1 flags 0 -> i32 |
| 11 | block ^0 |
| 12 | %1 = gaddr %t33 @g0 |
| 13 | %2 = const u64 0 |
| 14 | %3 = const u64 6 |
| 15 | %4 = chk.slice 3 %0 %1 %2 %3 |
| 16 | %5 = const i32 1 |
| 17 | %6 %7 = host i64 54 %4 %5 %1 %2 %3 |
| 18 | %8 = call void %6 @f0 |
| 19 | %9 = const i32 0 |
| 20 | retv %8 %9 |
| 21 | end |