char *ss7_event2str(int event) {
  switch (event) {
  case 1:
    return "SS7_EVENT_UP";
  case 2:
    return "SS7_EVENT_DOWN";
  case 3:
    return "MTP2_LINK_UP";
  case 4:
    return "MTP2_LINK_DOWN";
  case 5:
    return "ISUP_EVENT_IAM";
  case 6:
    return "ISUP_EVENT_ACM";
  case 7:
    return "ISUP_EVENT_ANM";
  case 8:
    return "ISUP_EVENT_REL";
  case 9:
    return "ISUP_EVENT_RLC";
  case 10:
    return "ISUP_EVENT_GRS";
  case 11:
    return "ISUP_EVENT_GRA";
  case 12:
    return "ISUP_EVENT_CON";
  case 13:
    return "ISUP_EVENT_COT";
  case 14:
    return "ISUP_EVENT_CCR";
  case 15:
    return "ISUP_EVENT_BLO";
  case 16:
    return "ISUP_EVENT_UBL";
  case 17:
    return "ISUP_EVENT_BLA";
  case 18:
    return "ISUP_EVENT_UBA";
  case 19:
    return "ISUP_EVENT_CGB";
  case 20:
    return "ISUP_EVENT_CGU";
  case 21:
    return "ISUP_EVENT_RSC";
  case 22:
    return "ISUP_EVENT_CPG";
  case 23:
    return "ISUP_EVENT_UCIC";
  case 24:
    return "ISUP_EVENT_LPA";
  case 25:
    return "ISUP_EVENT_CQM";
  case 26:
    return "ISUP_EVENT_FAR";
  case 27:
    return "ISUP_EVENT_FAA";
  case 28:
    return "ISUP_EVENT_CVT";
  case 29:
    return "ISUP_EVENT_CVR";
  case 30:
    return "ISUP_EVENT_SUS";
  case 31:
    return "ISUP_EVENT_RES";
  case 32:
    return "ISUP_EVENT_CGBA";
  case 33:
    return "ISUP_EVENT_CGUA";
  case 34:
    return "ISUP_EVENT_SAM";
  case 35:
    return "ISUP_EVENT_DIGITTIMEOUT";
  default:
    return "Unknown Event";
  }
}


x86 assembly (clang, -O0):
<ss7_event2str>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x22,%eax
ja     1360 <ss7_event2str+0x260>
mov    -0x18(%rbp),%rax
lea    0xed9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf55(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf52(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf51(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf4e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf4d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf4c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf4b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf4a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf49(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf48(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf47(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf46(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf45(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf44(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf43(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf42(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf41(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf40(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf3f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf3e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf3d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf3c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf3b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf3b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf3a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf39(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf38(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf37(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf36(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf35(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf34(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf33(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf33(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf33(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf32(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136b <ss7_event2str+0x26b>
lea    0xf3a(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ss7_event2str>:
add    $0xffffffff,%edi
cmp    $0x22,%edi
ja     111a <ss7_event2str+0x1a>
movslq %edi,%rax
lea    0x1112(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
ret
lea    0x10f4(%rip),%rax
ret

LLVM IR (-O0):
@.str = [13 x i8] c"SS7_EVENT_UP\00"
@.str.1 = [15 x i8] c"SS7_EVENT_DOWN\00"
@.str.2 = [13 x i8] c"MTP2_LINK_UP\00"
@.str.3 = [15 x i8] c"MTP2_LINK_DOWN\00"
@.str.4 = [15 x i8] c"ISUP_EVENT_IAM\00"
@.str.5 = [15 x i8] c"ISUP_EVENT_ACM\00"
@.str.6 = [15 x i8] c"ISUP_EVENT_ANM\00"
@.str.7 = [15 x i8] c"ISUP_EVENT_REL\00"
@.str.8 = [15 x i8] c"ISUP_EVENT_RLC\00"
@.str.9 = [15 x i8] c"ISUP_EVENT_GRS\00"
@.str.10 = [15 x i8] c"ISUP_EVENT_GRA\00"
@.str.11 = [15 x i8] c"ISUP_EVENT_CON\00"
@.str.12 = [15 x i8] c"ISUP_EVENT_COT\00"
@.str.13 = [15 x i8] c"ISUP_EVENT_CCR\00"
@.str.14 = [15 x i8] c"ISUP_EVENT_BLO\00"
@.str.15 = [15 x i8] c"ISUP_EVENT_UBL\00"
@.str.16 = [15 x i8] c"ISUP_EVENT_BLA\00"
@.str.17 = [15 x i8] c"ISUP_EVENT_UBA\00"
@.str.18 = [15 x i8] c"ISUP_EVENT_CGB\00"
@.str.19 = [15 x i8] c"ISUP_EVENT_CGU\00"
@.str.20 = [15 x i8] c"ISUP_EVENT_RSC\00"
@.str.21 = [15 x i8] c"ISUP_EVENT_CPG\00"
@.str.22 = [16 x i8] c"ISUP_EVENT_UCIC\00"
@.str.23 = [15 x i8] c"ISUP_EVENT_LPA\00"
@.str.24 = [15 x i8] c"ISUP_EVENT_CQM\00"
@.str.25 = [15 x i8] c"ISUP_EVENT_FAR\00"
@.str.26 = [15 x i8] c"ISUP_EVENT_FAA\00"
@.str.27 = [15 x i8] c"ISUP_EVENT_CVT\00"
@.str.28 = [15 x i8] c"ISUP_EVENT_CVR\00"
@.str.29 = [15 x i8] c"ISUP_EVENT_SUS\00"
@.str.30 = [15 x i8] c"ISUP_EVENT_RES\00"
@.str.31 = [16 x i8] c"ISUP_EVENT_CGBA\00"
@.str.32 = [16 x i8] c"ISUP_EVENT_CGUA\00"
@.str.33 = [15 x i8] c"ISUP_EVENT_SAM\00"
@.str.34 = [24 x i8] c"ISUP_EVENT_DIGITTIMEOUT\00"
@.str.35 = [14 x i8] c"Unknown Event\00"
define i8* @ss7_event2str(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %40 [
i32 1, label %5
i32 2, label %6
i32 3, label %7
i32 4, label %8
i32 5, label %9
i32 6, label %10
i32 7, label %11
i32 8, label %12
i32 9, label %13
i32 10, label %14
i32 11, label %15
i32 12, label %16
i32 13, label %17
i32 14, label %18
i32 15, label %19
i32 16, label %20
i32 17, label %21
i32 18, label %22
i32 19, label %23
i32 20, label %24
i32 21, label %25
i32 22, label %26
i32 23, label %27
i32 24, label %28
i32 25, label %29
i32 26, label %30
i32 27, label %31
i32 28, label %32
i32 29, label %33
i32 30, label %34
i32 31, label %35
i32 32, label %36
i32 33, label %37
i32 34, label %38
i32 35, label %39
]
5: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8** %2
br label %41
6: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %41
7: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %41
8: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %41
9: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %41
10: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %41
11: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %41
12: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %41
13: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %41
14: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %41
15: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %41
16: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %41
17: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %41
18: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %41
19: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %41
20: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %41
21: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %41
22: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %41
23: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %41
24: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %41
25: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %41
26: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %41
27: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %41
28: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %41
29: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %41
30: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %41
31: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %41
32: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %41
33: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.28, i64 0, i64 0), i8** %2
br label %41
34: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.29, i64 0, i64 0), i8** %2
br label %41
35: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.30, i64 0, i64 0), i8** %2
br label %41
36: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.31, i64 0, i64 0), i8** %2
br label %41
37: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.32, i64 0, i64 0), i8** %2
br label %41
38: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.33, i64 0, i64 0), i8** %2
br label %41
39: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.34, i64 0, i64 0), i8** %2
br label %41
40: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.35, i64 0, i64 0), i8** %2
br label %41
41: ; preds = %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%42 = load i8*, i8** %2
ret i8* %42
}

LLVM IR (-O2):
@.str = [13 x i8] c"SS7_EVENT_UP\00"
@.str.1 = [15 x i8] c"SS7_EVENT_DOWN\00"
@.str.2 = [13 x i8] c"MTP2_LINK_UP\00"
@.str.3 = [15 x i8] c"MTP2_LINK_DOWN\00"
@.str.4 = [15 x i8] c"ISUP_EVENT_IAM\00"
@.str.5 = [15 x i8] c"ISUP_EVENT_ACM\00"
@.str.6 = [15 x i8] c"ISUP_EVENT_ANM\00"
@.str.7 = [15 x i8] c"ISUP_EVENT_REL\00"
@.str.8 = [15 x i8] c"ISUP_EVENT_RLC\00"
@.str.9 = [15 x i8] c"ISUP_EVENT_GRS\00"
@.str.10 = [15 x i8] c"ISUP_EVENT_GRA\00"
@.str.11 = [15 x i8] c"ISUP_EVENT_CON\00"
@.str.12 = [15 x i8] c"ISUP_EVENT_COT\00"
@.str.13 = [15 x i8] c"ISUP_EVENT_CCR\00"
@.str.14 = [15 x i8] c"ISUP_EVENT_BLO\00"
@.str.15 = [15 x i8] c"ISUP_EVENT_UBL\00"
@.str.16 = [15 x i8] c"ISUP_EVENT_BLA\00"
@.str.17 = [15 x i8] c"ISUP_EVENT_UBA\00"
@.str.18 = [15 x i8] c"ISUP_EVENT_CGB\00"
@.str.19 = [15 x i8] c"ISUP_EVENT_CGU\00"
@.str.20 = [15 x i8] c"ISUP_EVENT_RSC\00"
@.str.21 = [15 x i8] c"ISUP_EVENT_CPG\00"
@.str.22 = [16 x i8] c"ISUP_EVENT_UCIC\00"
@.str.23 = [15 x i8] c"ISUP_EVENT_LPA\00"
@.str.24 = [15 x i8] c"ISUP_EVENT_CQM\00"
@.str.25 = [15 x i8] c"ISUP_EVENT_FAR\00"
@.str.26 = [15 x i8] c"ISUP_EVENT_FAA\00"
@.str.27 = [15 x i8] c"ISUP_EVENT_CVT\00"
@.str.28 = [15 x i8] c"ISUP_EVENT_CVR\00"
@.str.29 = [15 x i8] c"ISUP_EVENT_SUS\00"
@.str.30 = [15 x i8] c"ISUP_EVENT_RES\00"
@.str.31 = [16 x i8] c"ISUP_EVENT_CGBA\00"
@.str.32 = [16 x i8] c"ISUP_EVENT_CGUA\00"
@.str.33 = [15 x i8] c"ISUP_EVENT_SAM\00"
@.str.34 = [24 x i8] c"ISUP_EVENT_DIGITTIMEOUT\00"
@.str.35 = [14 x i8] c"Unknown Event\00"
@reltable.ss7_event2str = [35 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.1 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.2 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.3 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.4 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.5 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.6 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.7 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.8 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.9 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.10 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.11 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.12 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.13 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.14 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.15 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.16 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.17 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.18 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.19 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.20 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.21 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.22 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.23 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.24 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.25 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.26 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.27 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.28 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.29 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.30 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.31 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.32 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.33 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.34 to i64), i64 ptrtoint ([35 x i32]* @reltable.ss7_event2str to i64)) to i32)]
define i8* @ss7_event2str(i32 %0) {
%2 = add i32 %0, -1
%3 = icmp ult i32 %2, 35
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = sext i32 %2 to i64
%6 = shl i64 %5, 2
%7 = call i8* @llvm.load.relative.i64(i8* bitcast ([35 x i32]* @reltable.ss7_event2str to i8*), i64 %6)
br label %8
8: ; preds = %1, %4
%9 = phi i8* [ %7, %4 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.35, i64 0, i64 0), %1 ]
ret i8* %9
}