#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 */
#define E2BIG 161
#define EACCES 160
#define EAGAIN 159
#define EBADF 158
#define EBUSY 157
#define ECHILD 156
#define EDOM 155
#define EEXIST 154
#define EFAULT 153
#define EFBIG 152
#define EINTR 151
#define EINVAL 150
#define EIO 149
#define EISDIR 148
#define EMFILE 147
#define EMLINK 146
#define ENFILE 145
#define ENODEV 144
#define ENOENT 143
#define ENOEXEC 142
#define ENOMEM 141
#define ENOSPC 140
#define ENOTBLK 139
#define ENOTDIR 138
#define ENOTTY 137
#define ENXIO 136
#define EPERM 135
#define EPIPE 134
#define ERANGE 133
#define EROFS 132
#define ESPIPE 131
#define ESRCH 130
#define ETXTBSY 129
#define EXDEV 128
char *strerror(int err) {
  switch (err) {
  case EPERM:
    return "Operation not permitted";
  case ENOENT:
    return "No such file or directory";
  case ESRCH:
    return "No such process";
  case EINTR:
    return "Interrupted system call";
  case EIO:
    return "I/O error";
  case ENXIO:
    return "No such device or address";
  case E2BIG:
    return "Argument list too long";
  case ENOEXEC:
    return "Exec format error";
  case EBADF:
    return "Bad file number";
  case ECHILD:
    return "No child processes";
  case EAGAIN:
    return "Try again";
  case ENOMEM:
    return "Out of memory";
  case EACCES:
    return "Permission denied";
  case EFAULT:
    return "Bad address";
  case ENOTBLK:
    return "Block device required";
  case EBUSY:
    return "Device or resource busy";
  case EEXIST:
    return "File exists";
  case EXDEV:
    return "Cross-device link";
  case ENODEV:
    return "No such device";
  case ENOTDIR:
    return "Not a directory";
  case EISDIR:
    return "Is a directory";
  case EINVAL:
    return "Invalid argument";
  case ENFILE:
    return "File table overflow";
  case EMFILE:
    return "Too many open files";
  case ENOTTY:
    return "Not a typewriter";
  case ETXTBSY:
    return "Text file busy";
  case EFBIG:
    return "File too large";
  case ENOSPC:
    return "No space left on device";
  case ESPIPE:
    return "Illegal seek";
  case EROFS:
    return "Read-only file system";
  case EMLINK:
    return "Too many links";
  case EPIPE:
    return "Broken pipe";
  case EDOM:
    return "Math argument out of domain of func";
  case ERANGE:
    return "Math result not representable";
  }
  return NULL;
}


x86 assembly (clang, -O0):
<strerror>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x21,%eax
ja     1350 <strerror+0x250>
mov    -0x18(%rbp),%rax
lea    0xed9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf51(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf59(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf63(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf63(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf6b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf65(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf6f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf76(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf78(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf78(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf7b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf75(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf73(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf75(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf71(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf77(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf7f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf7b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf7d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf7c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf7c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf7b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf7c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf80(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf84(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf85(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf84(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf83(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf8b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf88(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf8e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf8d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf89(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
lea    0xf9d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1358 <strerror+0x258>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strerror>:
add    $0xffffff80,%edi
cmp    $0x21,%edi
ja     111a <strerror+0x1a>
movslq %edi,%rax
lea    0x116a(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Operation not permitted\00"
@.str.1 = [26 x i8] c"No such file or directory\00"
@.str.2 = [16 x i8] c"No such process\00"
@.str.3 = [24 x i8] c"Interrupted system call\00"
@.str.4 = [10 x i8] c"I/O error\00"
@.str.5 = [26 x i8] c"No such device or address\00"
@.str.6 = [23 x i8] c"Argument list too long\00"
@.str.7 = [18 x i8] c"Exec format error\00"
@.str.8 = [16 x i8] c"Bad file number\00"
@.str.9 = [19 x i8] c"No child processes\00"
@.str.10 = [10 x i8] c"Try again\00"
@.str.11 = [14 x i8] c"Out of memory\00"
@.str.12 = [18 x i8] c"Permission denied\00"
@.str.13 = [12 x i8] c"Bad address\00"
@.str.14 = [22 x i8] c"Block device required\00"
@.str.15 = [24 x i8] c"Device or resource busy\00"
@.str.16 = [12 x i8] c"File exists\00"
@.str.17 = [18 x i8] c"Cross-device link\00"
@.str.18 = [15 x i8] c"No such device\00"
@.str.19 = [16 x i8] c"Not a directory\00"
@.str.20 = [15 x i8] c"Is a directory\00"
@.str.21 = [17 x i8] c"Invalid argument\00"
@.str.22 = [20 x i8] c"File table overflow\00"
@.str.23 = [20 x i8] c"Too many open files\00"
@.str.24 = [17 x i8] c"Not a typewriter\00"
@.str.25 = [15 x i8] c"Text file busy\00"
@.str.26 = [15 x i8] c"File too large\00"
@.str.27 = [24 x i8] c"No space left on device\00"
@.str.28 = [13 x i8] c"Illegal seek\00"
@.str.29 = [22 x i8] c"Read-only file system\00"
@.str.30 = [15 x i8] c"Too many links\00"
@.str.31 = [12 x i8] c"Broken pipe\00"
@.str.32 = [36 x i8] c"Math argument out of domain of func\00"
@.str.33 = [30 x i8] c"Math result not representable\00"
define i8* @strerror(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %39 [
i32 135, label %5
i32 143, label %6
i32 130, label %7
i32 151, label %8
i32 149, label %9
i32 136, label %10
i32 161, label %11
i32 142, label %12
i32 158, label %13
i32 156, label %14
i32 159, label %15
i32 141, label %16
i32 160, label %17
i32 153, label %18
i32 139, label %19
i32 157, label %20
i32 154, label %21
i32 128, label %22
i32 144, label %23
i32 138, label %24
i32 148, label %25
i32 150, label %26
i32 145, label %27
i32 147, label %28
i32 137, label %29
i32 129, label %30
i32 152, label %31
i32 140, label %32
i32 131, label %33
i32 132, label %34
i32 146, label %35
i32 134, label %36
i32 155, label %37
i32 133, label %38
]
5: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8** %2
br label %40
6: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %40
7: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %40
8: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %40
9: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %40
10: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %40
11: ; preds = %1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %40
12: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %40
13: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %40
14: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %40
15: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %40
16: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %40
17: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %40
18: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %40
19: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %40
20: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %40
21: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %40
22: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %40
23: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %40
24: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %40
25: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %40
26: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %40
27: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %40
28: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %40
29: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %40
30: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %40
31: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %40
32: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %40
33: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.28, i64 0, i64 0), i8** %2
br label %40
34: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.29, i64 0, i64 0), i8** %2
br label %40
35: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.30, i64 0, i64 0), i8** %2
br label %40
36: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.31, i64 0, i64 0), i8** %2
br label %40
37: ; preds = %1
store i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.32, i64 0, i64 0), i8** %2
br label %40
38: ; preds = %1
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.33, i64 0, i64 0), i8** %2
br label %40
39: ; preds = %1
store i8* null, i8** %2
br label %40
40: ; preds = %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
%41 = load i8*, i8** %2
ret i8* %41
}

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