#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int errno;
const char *GetErrnoString() {
  switch (errno) {
  case 0:
    return "Nothing stored in errno";
  case 1:
    return "Operation not permitted";
  case 2:
    return "No such file or directory";
  case 3:
    return "No such process";
  case 4:
    return "Interrupted system call";
  case 5:
    return "I/O error";
  case 6:
    return "No such device or address";
  case 7:
    return "Argument list too long";
  case 8:
    return "Exec format error";
  case 9:
    return "Bad file number";
  case 10:
    return "No child processes";
  case 11:
    return "Try again";
  case 12:
    return "Out of memory";
  case 13:
    return "Permission denied";
  case 14:
    return "Bad address";
  case 15:
    return "Block device required";
  case 16:
    return "Device or resource busy";
  case 17:
    return "File exists";
  case 18:
    return "Cross-device link";
  case 19:
    return "No such device";
  case 20:
    return "Not a directory";
  case 21:
    return "Is a directory";
  case 22:
    return "Invalid argument";
  case 23:
    return "File table overflow";
  case 24:
    return "Too many open files";
  case 25:
    return "Not a typewriter";
  case 26:
    return "Text file busy";
  case 27:
    return "File too large";
  case 28:
    return "No space left on device";
  case 29:
    return "Illegal seek";
  case 30:
    return "Read-only file system";
  case 31:
    return "Too many links";
  case 32:
    return "Broken pipe";
  case 33:
    return "Math argument out of domain of func";
  case 34:
    return "Math result not representable";
  default:
    break;
  }
  return "Unknown";
}


x86 assembly (clang, -O0):
<GetErrnoString>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ed5(%rip),%rax
mov    (%rax),%eax
mov    %rax,-0x10(%rbp)
sub    $0x22,%rax
ja     135f <GetErrnoString+0x25f>
mov    -0x10(%rbp),%rax
lea    0xeda(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf56(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf5e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf66(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf70(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf70(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf78(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf72(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf7c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf83(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf85(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf85(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf88(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf82(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf80(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf82(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf7e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf84(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf8c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf88(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf8a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf89(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf89(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf88(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf89(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf8d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf91(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf92(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf91(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf90(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf98(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf95(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf9b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf9a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xf96(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
lea    0xfaa(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136f <GetErrnoString+0x26f>
jmp    1364 <GetErrnoString+0x264>
lea    0xfb3(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetErrnoString>:
mov    0x2ed9(%rip),%rax
movslq (%rax),%rax
cmp    $0x22,%rax
ja     111f <GetErrnoString+0x1f>
lea    0x1185(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
ret
lea    0x116c(%rip),%rax
ret

LLVM IR (-O0):
@errno = global i32 0
@.str = [24 x i8] c"Nothing stored in errno\00"
@.str.1 = [24 x i8] c"Operation not permitted\00"
@.str.2 = [26 x i8] c"No such file or directory\00"
@.str.3 = [16 x i8] c"No such process\00"
@.str.4 = [24 x i8] c"Interrupted system call\00"
@.str.5 = [10 x i8] c"I/O error\00"
@.str.6 = [26 x i8] c"No such device or address\00"
@.str.7 = [23 x i8] c"Argument list too long\00"
@.str.8 = [18 x i8] c"Exec format error\00"
@.str.9 = [16 x i8] c"Bad file number\00"
@.str.10 = [19 x i8] c"No child processes\00"
@.str.11 = [10 x i8] c"Try again\00"
@.str.12 = [14 x i8] c"Out of memory\00"
@.str.13 = [18 x i8] c"Permission denied\00"
@.str.14 = [12 x i8] c"Bad address\00"
@.str.15 = [22 x i8] c"Block device required\00"
@.str.16 = [24 x i8] c"Device or resource busy\00"
@.str.17 = [12 x i8] c"File exists\00"
@.str.18 = [18 x i8] c"Cross-device link\00"
@.str.19 = [15 x i8] c"No such device\00"
@.str.20 = [16 x i8] c"Not a directory\00"
@.str.21 = [15 x i8] c"Is a directory\00"
@.str.22 = [17 x i8] c"Invalid argument\00"
@.str.23 = [20 x i8] c"File table overflow\00"
@.str.24 = [20 x i8] c"Too many open files\00"
@.str.25 = [17 x i8] c"Not a typewriter\00"
@.str.26 = [15 x i8] c"Text file busy\00"
@.str.27 = [15 x i8] c"File too large\00"
@.str.28 = [24 x i8] c"No space left on device\00"
@.str.29 = [13 x i8] c"Illegal seek\00"
@.str.30 = [22 x i8] c"Read-only file system\00"
@.str.31 = [15 x i8] c"Too many links\00"
@.str.32 = [12 x i8] c"Broken pipe\00"
@.str.33 = [36 x i8] c"Math argument out of domain of func\00"
@.str.34 = [30 x i8] c"Math result not representable\00"
@.str.35 = [8 x i8] c"Unknown\00"
define i8* @GetErrnoString() {
%1 = alloca i8*
%2 = load i32, i32* @errno
switch i32 %2, label %38 [
i32 0, label %3
i32 1, label %4
i32 2, label %5
i32 3, label %6
i32 4, label %7
i32 5, label %8
i32 6, label %9
i32 7, label %10
i32 8, label %11
i32 9, label %12
i32 10, label %13
i32 11, label %14
i32 12, label %15
i32 13, label %16
i32 14, label %17
i32 15, label %18
i32 16, label %19
i32 17, label %20
i32 18, label %21
i32 19, label %22
i32 20, label %23
i32 21, label %24
i32 22, label %25
i32 23, label %26
i32 24, label %27
i32 25, label %28
i32 26, label %29
i32 27, label %30
i32 28, label %31
i32 29, label %32
i32 30, label %33
i32 31, label %34
i32 32, label %35
i32 33, label %36
i32 34, label %37
]
3: ; preds = %0
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8** %1
br label %40
4: ; preds = %0
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8** %1
br label %40
5: ; preds = %0
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8** %1
br label %40
6: ; preds = %0
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8** %1
br label %40
7: ; preds = %0
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i8** %1
br label %40
8: ; preds = %0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8** %1
br label %40
9: ; preds = %0
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8** %1
br label %40
10: ; preds = %0
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i8** %1
br label %40
11: ; preds = %0
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i8** %1
br label %40
12: ; preds = %0
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i8** %1
br label %40
13: ; preds = %0
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), i8** %1
br label %40
14: ; preds = %0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8** %1
br label %40
15: ; preds = %0
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i8** %1
br label %40
16: ; preds = %0
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i8** %1
br label %40
17: ; preds = %0
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0), i8** %1
br label %40
18: ; preds = %0
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0), i8** %1
br label %40
19: ; preds = %0
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0), i8** %1
br label %40
20: ; preds = %0
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i8** %1
br label %40
21: ; preds = %0
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i8** %1
br label %40
22: ; preds = %0
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.19, i64 0, i64 0), i8** %1
br label %40
23: ; preds = %0
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8** %1
br label %40
24: ; preds = %0
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i8** %1
br label %40
25: ; preds = %0
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.22, i64 0, i64 0), i8** %1
br label %40
26: ; preds = %0
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.23, i64 0, i64 0), i8** %1
br label %40
27: ; preds = %0
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.24, i64 0, i64 0), i8** %1
br label %40
28: ; preds = %0
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.25, i64 0, i64 0), i8** %1
br label %40
29: ; preds = %0
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.26, i64 0, i64 0), i8** %1
br label %40
30: ; preds = %0
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.27, i64 0, i64 0), i8** %1
br label %40
31: ; preds = %0
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.28, i64 0, i64 0), i8** %1
br label %40
32: ; preds = %0
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.29, i64 0, i64 0), i8** %1
br label %40
33: ; preds = %0
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.30, i64 0, i64 0), i8** %1
br label %40
34: ; preds = %0
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.31, i64 0, i64 0), i8** %1
br label %40
35: ; preds = %0
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.32, i64 0, i64 0), i8** %1
br label %40
36: ; preds = %0
store i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.33, i64 0, i64 0), i8** %1
br label %40
37: ; preds = %0
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.34, i64 0, i64 0), i8** %1
br label %40
38: ; preds = %0
br label %39
39: ; preds = %38
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.35, i64 0, i64 0), i8** %1
br label %40
40: ; preds = %39, %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, %4, %3
%41 = load i8*, i8** %1
ret i8* %41
}

LLVM IR (-O2):
@errno = global i32 0
@.str = [24 x i8] c"Nothing stored in errno\00"
@.str.1 = [24 x i8] c"Operation not permitted\00"
@.str.2 = [26 x i8] c"No such file or directory\00"
@.str.3 = [16 x i8] c"No such process\00"
@.str.4 = [24 x i8] c"Interrupted system call\00"
@.str.5 = [10 x i8] c"I/O error\00"
@.str.6 = [26 x i8] c"No such device or address\00"
@.str.7 = [23 x i8] c"Argument list too long\00"
@.str.8 = [18 x i8] c"Exec format error\00"
@.str.9 = [16 x i8] c"Bad file number\00"
@.str.10 = [19 x i8] c"No child processes\00"
@.str.11 = [10 x i8] c"Try again\00"
@.str.12 = [14 x i8] c"Out of memory\00"
@.str.13 = [18 x i8] c"Permission denied\00"
@.str.14 = [12 x i8] c"Bad address\00"
@.str.15 = [22 x i8] c"Block device required\00"
@.str.16 = [24 x i8] c"Device or resource busy\00"
@.str.17 = [12 x i8] c"File exists\00"
@.str.18 = [18 x i8] c"Cross-device link\00"
@.str.19 = [15 x i8] c"No such device\00"
@.str.20 = [16 x i8] c"Not a directory\00"
@.str.21 = [15 x i8] c"Is a directory\00"
@.str.22 = [17 x i8] c"Invalid argument\00"
@.str.23 = [20 x i8] c"File table overflow\00"
@.str.24 = [20 x i8] c"Too many open files\00"
@.str.25 = [17 x i8] c"Not a typewriter\00"
@.str.26 = [15 x i8] c"Text file busy\00"
@.str.27 = [15 x i8] c"File too large\00"
@.str.28 = [24 x i8] c"No space left on device\00"
@.str.29 = [13 x i8] c"Illegal seek\00"
@.str.30 = [22 x i8] c"Read-only file system\00"
@.str.31 = [15 x i8] c"Too many links\00"
@.str.32 = [12 x i8] c"Broken pipe\00"
@.str.33 = [36 x i8] c"Math argument out of domain of func\00"
@.str.34 = [30 x i8] c"Math result not representable\00"
@.str.35 = [8 x i8] c"Unknown\00"
@reltable.GetErrnoString = [35 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.1 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([26 x i8]* @.str.2 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.3 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.4 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.5 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([26 x i8]* @.str.6 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @.str.7 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.8 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.9 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @.str.10 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.11 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.12 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.13 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.14 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.15 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.16 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.17 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.18 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.19 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.20 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.21 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.22 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.23 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.24 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.25 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.26 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.27 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.28 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.29 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.30 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.31 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.32 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([36 x i8]* @.str.33 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([30 x i8]* @.str.34 to i64), i64 ptrtoint ([35 x i32]* @reltable.GetErrnoString to i64)) to i32)]
define i8* @GetErrnoString() {
%1 = load i32, i32* @errno
%2 = icmp ult i32 %1, 35
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = sext i32 %1 to i64
%5 = shl i64 %4, 2
%6 = call i8* @llvm.load.relative.i64(i8* bitcast ([35 x i32]* @reltable.GetErrnoString to i8*), i64 %5)
br label %7
7: ; preds = %0, %3
%8 = phi i8* [ %6, %3 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.35, i64 0, i64 0), %0 ]
ret i8* %8
}