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 / n-deepok.oir
| 1 | omegair 1 |
| 2 | fn @f0 flags 0 %1:u64 -> u64 |
| 3 | block ^0 |
| 4 | %2 = const u64 0 |
| 5 | %3 = eq bool %1 %2 |
| 6 | cbr %0 %3 ^1 ^2 |
| 7 | block ^1 %4:tok |
| 8 | retv %4 %2 |
| 9 | block ^2 %5:tok |
| 10 | %6 = const u64 1 |
| 11 | %7 = sub u64 %1 %6 |
| 12 | %8 %9 = call u64 %5 @f0 %7 |
| 13 | retv %8 %9 |
| 14 | end |
| 15 | export @f1 flags 0 -> i32 |
| 16 | block ^0 |
| 17 | %1 = const u64 65534 |
| 18 | %2 %3 = call u64 %0 @f0 %1 |
| 19 | %4 = const i32 0 |
| 20 | retv %2 %4 |
| 21 | end |