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 / opt / x-indexok.oir
| 1 | omegair 1 |
| 2 | type %t32 = array u32 8 |
| 3 | type %t33 = ref edit host %t32 |
| 4 | global @g0 %t32 zero |
| 5 | export @f0 flags 0 -> i32 |
| 6 | block ^0 |
| 7 | %1 = const u64 7 |
| 8 | %2 = gaddr %t33 @g0 |
| 9 | %3 = const u32 42 |
| 10 | %4 = const u64 1 |
| 11 | %5 = chk.bounds 3 %0 %2 %1 %4 |
| 12 | %6 = store %5 %2 %1 %3 |
| 13 | %7 = gaddr %t33 @g0 |
| 14 | %8 = const u64 1 |
| 15 | %9 = chk.bounds 3 %6 %7 %1 %8 |
| 16 | %10 = load u32 %9 %7 %1 |
| 17 | %11 = chk.conv i32 5 %9 %10 |
| 18 | %12 = conv i32 0 %10 |
| 19 | retv %11 %12 |
| 20 | end |