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-index.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 = const u64 1 |
| 18 | %12 = add u64 %1 %11 |
| 19 | %13 = gaddr %t33 @g0 |
| 20 | %14 = const u32 42 |
| 21 | %15 = const u64 1 |
| 22 | %16 = chk.bounds 3 %9 %13 %12 %15 |
| 23 | %17 = store %16 %13 %12 %14 |
| 24 | %18 = chk.conv i32 5 %17 %10 |
| 25 | %19 = conv i32 0 %10 |
| 26 | retv %18 %19 |
| 27 | end |