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 / o-bce0.oir
| 1 | omegair 1 |
| 2 | type %t32 = array i64 4 |
| 3 | type %t33 = ref edit host %t32 |
| 4 | global @g0 %t32 zero |
| 5 | export @f0 flags 0 -> i32 |
| 6 | block ^0 |
| 7 | %1 = gaddr %t33 @g0 |
| 8 | %2 = const u64 0 |
| 9 | br ^1 %0 %2 |
| 10 | block ^1 %3:tok %4:u64 |
| 11 | %5 = const u64 4 |
| 12 | %6 = lt bool %4 %5 |
| 13 | cbr %3 %6 ^2 ^3 |
| 14 | block ^2 %7:tok |
| 15 | %8 = const u64 1 |
| 16 | %9 = chk.bounds 3 %7 %1 %4 %8 |
| 17 | %10 = conv i64 0 %4 |
| 18 | %11 = store %9 %1 %4 %10 |
| 19 | %12 = add u64 %4 %8 |
| 20 | br ^1 %11 %12 |
| 21 | block ^3 %13:tok |
| 22 | %14 = const u64 3 |
| 23 | %15 = const u64 1 |
| 24 | %16 = chk.bounds 3 %13 %1 %14 %15 |
| 25 | %17 = load i64 %16 %1 %14 |
| 26 | %18 = conv i32 0 %17 |
| 27 | retv %16 %18 |
| 28 | end |