interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / ng / tests / ir / x-fib.oir

24 lines · 408 bytes Raw Blame History
1omegair 1
2fn @f0 flags 0 %1:u64 -> u64
3block ^0
4%2 = const u64 2
5%3 = lt bool %1 %2
6cbr %0 %3 ^1 ^2
7block ^1 %4:tok
8retv %4 %1
9block ^2 %5:tok
10%6 = const u64 1
11%7 = sub u64 %1 %6
12%8 %9 = call u64 %5 @f0 %7
13%10 = sub u64 %1 %2
14%11 %12 = call u64 %8 @f0 %10
15%13 = add u64 %9 %12
16retv %11 %13
17end
18export @f1 flags 0 -> i32
19block ^0
20%1 = const u64 25
21%2 %3 = call u64 %0 @f0 %1
22%4 = conv i32 0 %3
23retv %2 %4
24end