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 / n-s10623.oir

97 lines · 2075 bytes Raw Blame History
1omegair 1
2type %t32 = array i64 16
3type %t33 = ref edit host %t32
4type %t34 = array i64 8
5type %t35 = ref edit host %t34
6type %t36 = array u8 8
7type %t37 = ref edit host %t36
8global @g0 %t32 zero
9global @g1 %t36 zero
10fn @f0 flags 0 %1:i64 -> void
11block ^0
12%2 = gaddr %t37 @g1
13%3 = const i64 0
14%4 = shr i64 %1 %3
15%5 = conv u8 0 %4
16%6 = const u64 0
17%7 = const u64 1
18%8 = chk.bounds 3 %0 %2 %6 %7
19%9 = store %8 %2 %6 %5
20%10 = const i64 8
21%11 = shr i64 %1 %10
22%12 = conv u8 0 %11
23%13 = const u64 1
24%14 = const u64 1
25%15 = chk.bounds 3 %9 %2 %13 %14
26%16 = store %15 %2 %13 %12
27%17 = const i64 16
28%18 = shr i64 %1 %17
29%19 = conv u8 0 %18
30%20 = const u64 2
31%21 = const u64 1
32%22 = chk.bounds 3 %16 %2 %20 %21
33%23 = store %22 %2 %20 %19
34%24 = const i64 24
35%25 = shr i64 %1 %24
36%26 = conv u8 0 %25
37%27 = const u64 3
38%28 = const u64 1
39%29 = chk.bounds 3 %23 %2 %27 %28
40%30 = store %29 %2 %27 %26
41%31 = const i64 32
42%32 = shr i64 %1 %31
43%33 = conv u8 0 %32
44%34 = const u64 4
45%35 = const u64 1
46%36 = chk.bounds 3 %30 %2 %34 %35
47%37 = store %36 %2 %34 %33
48%38 = const i64 40
49%39 = shr i64 %1 %38
50%40 = conv u8 0 %39
51%41 = const u64 5
52%42 = const u64 1
53%43 = chk.bounds 3 %37 %2 %41 %42
54%44 = store %43 %2 %41 %40
55%45 = const i64 48
56%46 = shr i64 %1 %45
57%47 = conv u8 0 %46
58%48 = const u64 6
59%49 = const u64 1
60%50 = chk.bounds 3 %44 %2 %48 %49
61%51 = store %50 %2 %48 %47
62%52 = const i64 56
63%53 = shr i64 %1 %52
64%54 = conv u8 0 %53
65%55 = const u64 7
66%56 = const u64 1
67%57 = chk.bounds 3 %51 %2 %55 %56
68%58 = store %57 %2 %55 %54
69%59 = const u64 0
70%60 = const u64 8
71%61 = chk.slice 3 %58 %2 %59 %60
72%62 = const i32 1
73%63 %64 = host i64 54 %61 %62 %2 %59 %60
74ret %63
75end
76export @f1 flags 0 -> i32
77block ^0
78%1 = const i64 -100
79%2 = conv u64 0 %1
80%3 = chk.conv i32 5 %0 %2
81%4 = conv i32 0 %2
82%5 = const i64 0
83%6 = const i64 31
84%7 = mul i64 %5 %6
85%8 = add i64 %7 %1
86%9 = conv i64 0 %2
87%10 = mul i64 %8 %6
88%11 = add i64 %10 %9
89%12 = conv i64 0 %4
90%13 = mul i64 %11 %6
91%14 = add i64 %13 %12
92%15 = call void %3 @f0 %14
93%16 = const i64 63
94%17 = and i64 %14 %16
95%18 = conv i32 0 %17
96retv %15 %18
97end