char *ndb_util_msgcode2print(int msgCode) {
  if (msgCode == 0)
    return "ok";
  else if (msgCode == (-1))
    return "something is not ok";
  else if (msgCode == (-2))
    return "memory allocation failed";
  else if (msgCode == (-3))
    return "file could not be opened";
  else if (msgCode == (-4))
    return "didn't get the expected archive chunk magic";
  else if (msgCode == (-5))
    return "error reading from file";
  else if (msgCode == (-6))
    return "error writing to file";
  else if (msgCode == (-7))
    return "unexpected NULL pointer";
  else if (msgCode == (-8))
    return "unexpected end of file";
  else if (msgCode == (-9))
    return "memory pointer not found in pointer list";
  else if (msgCode == (-10))
    return "tried to use an already freed memory pointer";
  else if (msgCode == (-11))
    return "memory bounds of pointer exceeded";
  else if (msgCode == (-12))
    return "should not happen - internal error";
  else if (msgCode == (-13))
    return "library zlib returned an error";
  else if (msgCode == (-14))
    return "could not create directory";
  else if (msgCode == (-15))
    return "could not find element";
  else if (msgCode == (-16))
    return "getting or setting file extra data failed";
  else if (msgCode == (-17))
    return "archive file has a different version";
  else if (msgCode == (-18))
    return "packed data block(s) corrupted";
  else if (msgCode == (-19))
    return "data file size exceeds size limit";
  else if (msgCode == (-20))
    return "data file and main file have different idents";
  else if (msgCode == (-21))
    return "creating symbolic link failed";
  else if (msgCode == (-22))
    return "filename already exists in chapter";
  else if (msgCode == (-23))
    return "archiv file uses another compression method";
  else if (msgCode == (-24))
    return "calculated CRC value differs from saved CRC";
  else if (msgCode == (-25))
    return "file size exceeds 2 GB limit of NDB";
  else
    return "[unknown]";
}


x86 assembly (clang, -O0):
<ndb_util_msgcode2print>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1121 <ndb_util_msgcode2print+0x21>
lea    0xef9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xffffffff,-0xc(%rbp)
jne    113b <ndb_util_msgcode2print+0x3b>
lea    0xece(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xfffffffe,-0xc(%rbp)
jne    1155 <ndb_util_msgcode2print+0x55>
lea    0xec8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xfffffffd,-0xc(%rbp)
jne    116f <ndb_util_msgcode2print+0x6f>
lea    0xec7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xfffffffc,-0xc(%rbp)
jne    1189 <ndb_util_msgcode2print+0x89>
lea    0xec6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xfffffffb,-0xc(%rbp)
jne    11a3 <ndb_util_msgcode2print+0xa3>
lea    0xed8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xfffffffa,-0xc(%rbp)
jne    11bd <ndb_util_msgcode2print+0xbd>
lea    0xed6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xfffffff9,-0xc(%rbp)
jne    11d7 <ndb_util_msgcode2print+0xd7>
lea    0xed2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xfffffff8,-0xc(%rbp)
jne    11f1 <ndb_util_msgcode2print+0xf1>
lea    0xed0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xfffffff7,-0xc(%rbp)
jne    120b <ndb_util_msgcode2print+0x10b>
lea    0xecd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xfffffff6,-0xc(%rbp)
jne    1225 <ndb_util_msgcode2print+0x125>
lea    0xedc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xfffffff5,-0xc(%rbp)
jne    123f <ndb_util_msgcode2print+0x13f>
lea    0xeef(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xfffffff4,-0xc(%rbp)
jne    1259 <ndb_util_msgcode2print+0x159>
lea    0xef7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xfffffff3,-0xc(%rbp)
jne    1273 <ndb_util_msgcode2print+0x173>
lea    0xf00(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xfffffff2,-0xc(%rbp)
jne    128d <ndb_util_msgcode2print+0x18d>
lea    0xf05(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xfffffff1,-0xc(%rbp)
jne    12a7 <ndb_util_msgcode2print+0x1a7>
lea    0xf06(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xfffffff0,-0xc(%rbp)
jne    12c1 <ndb_util_msgcode2print+0x1c1>
lea    0xf03(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xffffffef,-0xc(%rbp)
jne    12db <ndb_util_msgcode2print+0x1db>
lea    0xf13(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xffffffee,-0xc(%rbp)
jne    12f5 <ndb_util_msgcode2print+0x1f5>
lea    0xf1e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xffffffed,-0xc(%rbp)
jne    130f <ndb_util_msgcode2print+0x20f>
lea    0xf23(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xffffffec,-0xc(%rbp)
jne    1329 <ndb_util_msgcode2print+0x229>
lea    0xf2b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xffffffeb,-0xc(%rbp)
jne    1343 <ndb_util_msgcode2print+0x243>
lea    0xf3f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xffffffea,-0xc(%rbp)
jne    135d <ndb_util_msgcode2print+0x25d>
lea    0xf43(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xffffffe9,-0xc(%rbp)
jne    1377 <ndb_util_msgcode2print+0x277>
lea    0xf4c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xffffffe8,-0xc(%rbp)
jne    1391 <ndb_util_msgcode2print+0x291>
lea    0xf5e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
cmpl   $0xffffffe7,-0xc(%rbp)
jne    13ab <ndb_util_msgcode2print+0x2ab>
lea    0xf70(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13b6 <ndb_util_msgcode2print+0x2b6>
lea    0xf84(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ndb_util_msgcode2print>:
add    $0x19,%edi
cmp    $0x19,%edi
ja     111a <ndb_util_msgcode2print+0x1a>
movslq %edi,%rax
lea    0x122e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
ret
lea    0x1215(%rip),%rax
ret

LLVM IR (-O0):
@.str = [3 x i8] c"ok\00"
@.str.1 = [20 x i8] c"something is not ok\00"
@.str.2 = [25 x i8] c"memory allocation failed\00"
@.str.3 = [25 x i8] c"file could not be opened\00"
@.str.4 = [44 x i8] c"didn't get the expected archive chunk magic\00"
@.str.5 = [24 x i8] c"error reading from file\00"
@.str.6 = [22 x i8] c"error writing to file\00"
@.str.7 = [24 x i8] c"unexpected NULL pointer\00"
@.str.8 = [23 x i8] c"unexpected end of file\00"
@.str.9 = [41 x i8] c"memory pointer not found in pointer list\00"
@.str.10 = [45 x i8] c"tried to use an already freed memory pointer\00"
@.str.11 = [34 x i8] c"memory bounds of pointer exceeded\00"
@.str.12 = [35 x i8] c"should not happen - internal error\00"
@.str.13 = [31 x i8] c"library zlib returned an error\00"
@.str.14 = [27 x i8] c"could not create directory\00"
@.str.15 = [23 x i8] c"could not find element\00"
@.str.16 = [42 x i8] c"getting or setting file extra data failed\00"
@.str.17 = [37 x i8] c"archive file has a different version\00"
@.str.18 = [31 x i8] c"packed data block(s) corrupted\00"
@.str.19 = [34 x i8] c"data file size exceeds size limit\00"
@.str.20 = [46 x i8] c"data file and main file have different idents\00"
@.str.21 = [30 x i8] c"creating symbolic link failed\00"
@.str.22 = [35 x i8] c"filename already exists in chapter\00"
@.str.23 = [44 x i8] c"archiv file uses another compression method\00"
@.str.24 = [44 x i8] c"calculated CRC value differs from saved CRC\00"
@.str.25 = [36 x i8] c"file size exceeds 2 GB limit of NDB\00"
@.str.26 = [10 x i8] c"[unknown]\00"
define i8* @ndb_util_msgcode2print(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %2
br label %108
7: ; preds = %1
%8 = load i32, i32* %3
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %11
10: ; preds = %7
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %108
11: ; preds = %7
%12 = load i32, i32* %3
%13 = icmp eq i32 %12, -2
br i1 %13, label %14, label %15
14: ; preds = %11
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %108
15: ; preds = %11
%16 = load i32, i32* %3
%17 = icmp eq i32 %16, -3
br i1 %17, label %18, label %19
18: ; preds = %15
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %108
19: ; preds = %15
%20 = load i32, i32* %3
%21 = icmp eq i32 %20, -4
br i1 %21, label %22, label %23
22: ; preds = %19
store i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %108
23: ; preds = %19
%24 = load i32, i32* %3
%25 = icmp eq i32 %24, -5
br i1 %25, label %26, label %27
26: ; preds = %23
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %108
27: ; preds = %23
%28 = load i32, i32* %3
%29 = icmp eq i32 %28, -6
br i1 %29, label %30, label %31
30: ; preds = %27
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %108
31: ; preds = %27
%32 = load i32, i32* %3
%33 = icmp eq i32 %32, -7
br i1 %33, label %34, label %35
34: ; preds = %31
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %108
35: ; preds = %31
%36 = load i32, i32* %3
%37 = icmp eq i32 %36, -8
br i1 %37, label %38, label %39
38: ; preds = %35
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %108
39: ; preds = %35
%40 = load i32, i32* %3
%41 = icmp eq i32 %40, -9
br i1 %41, label %42, label %43
42: ; preds = %39
store i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %108
43: ; preds = %39
%44 = load i32, i32* %3
%45 = icmp eq i32 %44, -10
br i1 %45, label %46, label %47
46: ; preds = %43
store i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %108
47: ; preds = %43
%48 = load i32, i32* %3
%49 = icmp eq i32 %48, -11
br i1 %49, label %50, label %51
50: ; preds = %47
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %108
51: ; preds = %47
%52 = load i32, i32* %3
%53 = icmp eq i32 %52, -12
br i1 %53, label %54, label %55
54: ; preds = %51
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %108
55: ; preds = %51
%56 = load i32, i32* %3
%57 = icmp eq i32 %56, -13
br i1 %57, label %58, label %59
58: ; preds = %55
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %108
59: ; preds = %55
%60 = load i32, i32* %3
%61 = icmp eq i32 %60, -14
br i1 %61, label %62, label %63
62: ; preds = %59
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %108
63: ; preds = %59
%64 = load i32, i32* %3
%65 = icmp eq i32 %64, -15
br i1 %65, label %66, label %67
66: ; preds = %63
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %108
67: ; preds = %63
%68 = load i32, i32* %3
%69 = icmp eq i32 %68, -16
br i1 %69, label %70, label %71
70: ; preds = %67
store i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %108
71: ; preds = %67
%72 = load i32, i32* %3
%73 = icmp eq i32 %72, -17
br i1 %73, label %74, label %75
74: ; preds = %71
store i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %108
75: ; preds = %71
%76 = load i32, i32* %3
%77 = icmp eq i32 %76, -18
br i1 %77, label %78, label %79
78: ; preds = %75
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %108
79: ; preds = %75
%80 = load i32, i32* %3
%81 = icmp eq i32 %80, -19
br i1 %81, label %82, label %83
82: ; preds = %79
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %108
83: ; preds = %79
%84 = load i32, i32* %3
%85 = icmp eq i32 %84, -20
br i1 %85, label %86, label %87
86: ; preds = %83
store i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %108
87: ; preds = %83
%88 = load i32, i32* %3
%89 = icmp eq i32 %88, -21
br i1 %89, label %90, label %91
90: ; preds = %87
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %108
91: ; preds = %87
%92 = load i32, i32* %3
%93 = icmp eq i32 %92, -22
br i1 %93, label %94, label %95
94: ; preds = %91
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %108
95: ; preds = %91
%96 = load i32, i32* %3
%97 = icmp eq i32 %96, -23
br i1 %97, label %98, label %99
98: ; preds = %95
store i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %108
99: ; preds = %95
%100 = load i32, i32* %3
%101 = icmp eq i32 %100, -24
br i1 %101, label %102, label %103
102: ; preds = %99
store i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %108
103: ; preds = %99
%104 = load i32, i32* %3
%105 = icmp eq i32 %104, -25
br i1 %105, label %106, label %107
106: ; preds = %103
store i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %108
107: ; preds = %103
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %108
108: ; preds = %107, %106, %102, %98, %94, %90, %86, %82, %78, %74, %70, %66, %62, %58, %54, %50, %46, %42, %38, %34, %30, %26, %22, %18, %14, %10, %6
%109 = load i8*, i8** %2
ret i8* %109
}

LLVM IR (-O2):
@.str = [3 x i8] c"ok\00"
@.str.1 = [20 x i8] c"something is not ok\00"
@.str.2 = [25 x i8] c"memory allocation failed\00"
@.str.3 = [25 x i8] c"file could not be opened\00"
@.str.4 = [44 x i8] c"didn't get the expected archive chunk magic\00"
@.str.5 = [24 x i8] c"error reading from file\00"
@.str.6 = [22 x i8] c"error writing to file\00"
@.str.7 = [24 x i8] c"unexpected NULL pointer\00"
@.str.8 = [23 x i8] c"unexpected end of file\00"
@.str.9 = [41 x i8] c"memory pointer not found in pointer list\00"
@.str.10 = [45 x i8] c"tried to use an already freed memory pointer\00"
@.str.11 = [34 x i8] c"memory bounds of pointer exceeded\00"
@.str.12 = [35 x i8] c"should not happen - internal error\00"
@.str.13 = [31 x i8] c"library zlib returned an error\00"
@.str.14 = [27 x i8] c"could not create directory\00"
@.str.15 = [23 x i8] c"could not find element\00"
@.str.16 = [42 x i8] c"getting or setting file extra data failed\00"
@.str.17 = [37 x i8] c"archive file has a different version\00"
@.str.18 = [31 x i8] c"packed data block(s) corrupted\00"
@.str.19 = [34 x i8] c"data file size exceeds size limit\00"
@.str.20 = [46 x i8] c"data file and main file have different idents\00"
@.str.21 = [30 x i8] c"creating symbolic link failed\00"
@.str.22 = [35 x i8] c"filename already exists in chapter\00"
@.str.23 = [44 x i8] c"archiv file uses another compression method\00"
@.str.24 = [44 x i8] c"calculated CRC value differs from saved CRC\00"
@.str.25 = [36 x i8] c"file size exceeds 2 GB limit of NDB\00"
@.str.26 = [10 x i8] c"[unknown]\00"
@reltable.ndb_util_msgcode2print = [26 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([36 x i8]* @.str.25 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([44 x i8]* @.str.24 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([44 x i8]* @.str.23 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @.str.22 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([30 x i8]* @.str.21 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([46 x i8]* @.str.20 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @.str.19 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([31 x i8]* @.str.18 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([37 x i8]* @.str.17 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.16 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @.str.15 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([27 x i8]* @.str.14 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([31 x i8]* @.str.13 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @.str.12 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @.str.11 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([45 x i8]* @.str.10 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([41 x i8]* @.str.9 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @.str.8 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.7 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.6 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.5 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([44 x i8]* @.str.4 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @.str.3 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @.str.2 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.1 to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str to i64), i64 ptrtoint ([26 x i32]* @reltable.ndb_util_msgcode2print to i64)) to i32)]
define i8* @ndb_util_msgcode2print(i32 %0) {
%2 = add i32 %0, 25
%3 = icmp ult i32 %2, 26
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 ([26 x i32]* @reltable.ndb_util_msgcode2print to i8*), i64 %6)
br label %8
8: ; preds = %1, %4
%9 = phi i8* [ %7, %4 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.26, i64 0, i64 0), %1 ]
ret i8* %9
}