Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/ng/a64/tests/oir/b-fib.oir # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / ng / a64 / tests / oir / b-fib.oir` 70 lines ยท 1400 bytes Raw Blame History 1 omegair 1 2 type %t32 = array u8 32 3 type %t33 = ref edit host %t32 4 global @g0 %t32 zero 5 fn @f0 flags 0 %1:u64 -> u64 6 block ^0 7 %2 = const u64 2 8 %3 = lt bool %1 %2 9 cbr %0 %3 ^1 ^2 10 block ^1 %4:tok 11 retv %4 %1 12 block ^2 %5:tok 13 %6 = const u64 1 14 %7 = sub u64 %1 %6 15 %8 %9 = call u64 %5 @f0 %7 16 %10 = const u64 2 17 %11 = sub u64 %1 %10 18 %12 %13 = call u64 %8 @f0 %11 19 %14 = add u64 %9 %13 20 retv %12 %14 21 end 22 fn @f1 flags 0 %1:u64 -> void 23 block ^0 24 %2 = gaddr %t33 @g0 25 %3 = const u64 31 26 %4 = const u64 1 27 %5 = chk.bounds 3 %0 %2 %3 %4 28 %6 = const u8 10 29 %7 = store %5 %2 %3 %6 30 br ^1 %7 %3 %1 31 block ^1 %8:tok %9:u64 %10:u64 32 %11 = const u64 9 33 %12 = gt bool %10 %11 34 cbr %8 %12 ^2 ^3 35 block ^2 %13:tok 36 %14 = const u64 1 37 %15 = sub u64 %9 %14 38 %16 = const u64 10 39 %17 = chk.divz 2 %13 %16 40 %18 = rem u64 %10 %16 41 %19 = const u64 48 42 %20 = add u64 %18 %19 43 %21 = conv u8 0 %20 44 %22 = chk.bounds 3 %17 %2 %15 %14 45 %23 = store %22 %2 %15 %21 46 %24 = div u64 %10 %16 47 br ^1 %23 %15 %24 48 block ^3 %25:tok 49 %26 = const u64 1 50 %27 = sub u64 %9 %26 51 %28 = const u64 48 52 %29 = add u64 %10 %28 53 %30 = conv u8 0 %29 54 %31 = chk.bounds 3 %25 %2 %27 %26 55 %32 = store %31 %2 %27 %30 56 %33 = const u64 32 57 %34 = sub u64 %33 %27 58 %35 = chk.slice 3 %32 %2 %27 %34 59 %36 = const i32 1 60 %37 %38 = host i64 54 %35 %36 %2 %27 %34 61 ret %37 62 end 63 export @f2 flags 0 -> i32 64 block ^0 65 %1 = const u64 27 66 %2 %3 = call u64 %0 @f0 %1 67 %4 = call void %2 @f1 %3 68 %5 = const i32 0 69 retv %4 %5 70 end