#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 EACCES 152
#define EADDRINUSE 151
#define EAFNOSUPPORT 150
#define EAGAIN 149
#define EALREADY 148
#define EBADF 147
#define ECONNREFUSED 146
#define ECONNRESET 145
#define EFAULT 144
#define EINPROGRESS 143
#define EINTR 142
#define EINVAL 141
#define EISCONN 140
#define ENETUNREACH 139
#define ENOENT 138
#define ENOMEM 137
#define ENOTCONN 136
#define ENOTSOCK 135
#define EOPNOTSUPP 134
#define EPERM 133
#define EPIPE 132
#define EPROTONOSUPPORT 131
#define EPROTOTYPE 130
#define ESOCKTNOSUPPORT 129
#define ETIMEDOUT 128
int /*<<< orphan*/ LOG_ERR;
int errno;
int /*<<< orphan*/ syslog(int /*<<< orphan*/, char *);
void report_error() {
  switch (errno) {
  case EACCES:
    syslog(LOG_ERR, "EACCES Write permission denied.");
    break;
  case EPERM:
    syslog(LOG_ERR, "EPERM Invalid credentials.");
    break;
  case EADDRINUSE:
    syslog(LOG_ERR, "EADDRINUSE Local address already in use.");
    break;
  case EAFNOSUPPORT:
    syslog(LOG_ERR, "EAFNOSUPPORT The passed address didn't have the correct "
                    "address family.");
    break;
  case EAGAIN:
    syslog(LOG_ERR, "EAGAIN No more free local ports.");
    break;
  case EALREADY:
    syslog(LOG_ERR, "EALREADY Previous connection in progress.");
    break;
  case EBADF:
    syslog(LOG_ERR, "EBADF Bad file descriptor.");
    break;
  case ECONNREFUSED:
    syslog(LOG_ERR, "ECONNREFUSED No one's listening.");
    break;
  case EFAULT:
    syslog(LOG_ERR, "EFAULT Address is outside of user's address space.");
    break;
  case EINPROGRESS:
    syslog(LOG_ERR, "EINPROGRESS Socket is nonblocking and connection cannot "
                    "be completed immediately.");
    break;
  case EINTR:
    syslog(LOG_ERR, "EINTR System call was interrupted by signal.");
    break;
  case EISCONN:
    syslog(LOG_ERR, "EISCONN The socket is already connected.");
    break;
  case ENETUNREACH:
    syslog(LOG_ERR, "ENETUNREACH Network unreachable.");
    break;
  case ENOTSOCK:
    syslog(LOG_ERR, "ENOTSOCK Filedescriptor is not a socket.");
    break;
  case ETIMEDOUT:
    syslog(LOG_ERR, "ETIMEDOUT Timeout while attemting connection, server may "
                    "be too busy.");
    break;
  case ECONNRESET:
    syslog(LOG_ERR,
           "ECONNRESET Remote connection socket was unexpectedly closes.");
    break;
  case EINVAL:
    syslog(LOG_ERR, "EINVAL Invalid argument passed.");
    break;
  case ENOENT:
    syslog(LOG_ERR, "ENOENT Specified pathname does not exist.");
    break;
  case ENOMEM:
    syslog(LOG_ERR, "ENOMEM Out of memory.");
    break;
  case ENOTCONN:
    syslog(LOG_ERR, "ENOTCONN Socket address needs a target address, but "
                    "socket is not connected.");
    break;
  case EOPNOTSUPP:
    syslog(LOG_ERR,
           "EOPNOTSUPP Stream operation called on non-stream oriented socket.");
    break;
  case EPIPE:
    syslog(LOG_ERR, "EPIPE Remote socket was closed on a stream socket.");
    break;
  case EPROTONOSUPPORT:
    syslog(LOG_ERR, "EPROTONOSUPPORT Protocol not supported.");
    break;
  case EPROTOTYPE:
    syslog(LOG_ERR,
           "EPROTOTYPE Remote socket type does not match local socket type.");
    break;
  case ESOCKTNOSUPPORT:
    syslog(LOG_ERR, "ESOCKTNOSUPPORT Unknown socket type.");
    break;
  default:
    syslog(LOG_ERR, "Unknown problem");
    break;
  }
}


x86 assembly (clang, -O0):
<report_error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ec1(%rip),%rax
mov    (%rax),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x8(%rbp)
sub    $0x18,%eax
ja     13d1 <report_error+0x2c1>
mov    -0x8(%rbp),%rax
lea    0xec2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2e82(%rip),%rax
mov    (%rax),%edi
lea    0xf0d(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2e68(%rip),%rax
mov    (%rax),%edi
lea    0xf13(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2e4e(%rip),%rax
mov    (%rax),%edi
lea    0xf14(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2e34(%rip),%rax
mov    (%rax),%edi
lea    0xf23(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2e1a(%rip),%rax
mov    (%rax),%edi
lea    0xf51(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2e00(%rip),%rax
mov    (%rax),%edi
lea    0xf58(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2de6(%rip),%rax
mov    (%rax),%edi
lea    0xf68(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2dcc(%rip),%rax
mov    (%rax),%edi
lea    0xf69(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2db2(%rip),%rax
mov    (%rax),%edi
lea    0xf70(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2d98(%rip),%rax
mov    (%rax),%edi
lea    0xf89(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2d7e(%rip),%rax
mov    (%rax),%edi
lea    0xfc1(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2d64(%rip),%rax
mov    (%rax),%edi
lea    0xfd4(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2d4a(%rip),%rax
mov    (%rax),%edi
lea    0xfe3(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2d30(%rip),%rax
mov    (%rax),%edi
lea    0xfea(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2d16(%rip),%rax
mov    (%rax),%edi
lea    0xff9(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2cfc(%rip),%rax
mov    (%rax),%edi
lea    0x1025(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2ce2(%rip),%rax
mov    (%rax),%edi
lea    0x1048(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2cc8(%rip),%rax
mov    (%rax),%edi
lea    0x104e(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2cae(%rip),%rax
mov    (%rax),%edi
lea    0x105e(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2c94(%rip),%rax
mov    (%rax),%edi
lea    0x105a(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2c7a(%rip),%rax
mov    (%rax),%edi
lea    0x108d(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2c60(%rip),%rax
mov    (%rax),%edi
lea    0x10b5(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2c46(%rip),%rax
mov    (%rax),%edi
lea    0x10ce(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2c2c(%rip),%rax
mov    (%rax),%edi
lea    0x10dc(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2c12(%rip),%rax
mov    (%rax),%edi
lea    0x1102(%rip),%rsi
call   1030 <syslog@plt>
jmp    13e6 <report_error+0x2d6>
mov    0x2bf8(%rip),%rax
mov    (%rax),%edi
lea    0x110d(%rip),%rsi
call   1030 <syslog@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<report_error>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%eax
add    $0xffffff80,%eax
cmp    $0x18,%eax
ja     1133 <report_error+0x23>
cltq
lea    0x1372(%rip),%rcx
movslq (%rcx,%rax,4),%rsi
add    %rcx,%rsi
jmp    113a <report_error+0x2a>
lea    0x1350(%rip),%rsi
mov    0x2e8f(%rip),%rax
mov    (%rax),%edi
jmp    1030 <syslog@plt>

LLVM IR (-O0):
@errno = global i32 0
@LOG_ERR = global i32 0
@.str = [32 x i8] c"EACCES Write permission denied.\00"
@.str.1 = [27 x i8] c"EPERM Invalid credentials.\00"
@.str.2 = [41 x i8] c"EADDRINUSE Local address already in use.\00"
@.str.3 = [72 x i8] c"EAFNOSUPPORT The passed address didn't have the correct address family.\00"
@.str.4 = [33 x i8] c"EAGAIN No more free local ports.\00"
@.str.5 = [42 x i8] c"EALREADY Previous connection in progress.\00"
@.str.6 = [27 x i8] c"EBADF Bad file descriptor.\00"
@.str.7 = [33 x i8] c"ECONNREFUSED No one's listening.\00"
@.str.8 = [51 x i8] c"EFAULT Address is outside of user's address space.\00"
@.str.9 = [82 x i8] c"EINPROGRESS Socket is nonblocking and connection cannot be completed immediately.\00"
@.str.10 = [45 x i8] c"EINTR System call was interrupted by signal.\00"
@.str.11 = [41 x i8] c"EISCONN The socket is already connected.\00"
@.str.12 = [33 x i8] c"ENETUNREACH Network unreachable.\00"
@.str.13 = [41 x i8] c"ENOTSOCK Filedescriptor is not a socket.\00"
@.str.14 = [70 x i8] c"ETIMEDOUT Timeout while attemting connection, server may be too busy.\00"
@.str.15 = [61 x i8] c"ECONNRESET Remote connection socket was unexpectedly closes.\00"
@.str.16 = [32 x i8] c"EINVAL Invalid argument passed.\00"
@.str.17 = [42 x i8] c"ENOENT Specified pathname does not exist.\00"
@.str.18 = [22 x i8] c"ENOMEM Out of memory.\00"
@.str.19 = [77 x i8] c"ENOTCONN Socket address needs a target address, but socket is not connected.\00"
@.str.20 = [66 x i8] c"EOPNOTSUPP Stream operation called on non-stream oriented socket.\00"
@.str.21 = [51 x i8] c"EPIPE Remote socket was closed on a stream socket.\00"
@.str.22 = [40 x i8] c"EPROTONOSUPPORT Protocol not supported.\00"
@.str.23 = [64 x i8] c"EPROTOTYPE Remote socket type does not match local socket type.\00"
@.str.24 = [37 x i8] c"ESOCKTNOSUPPORT Unknown socket type.\00"
@.str.25 = [16 x i8] c"Unknown problem\00"
define void @report_error() {
%1 = load i32, i32* @errno
switch i32 %1, label %77 [
i32 152, label %2
i32 133, label %5
i32 151, label %8
i32 150, label %11
i32 149, label %14
i32 148, label %17
i32 147, label %20
i32 146, label %23
i32 144, label %26
i32 143, label %29
i32 142, label %32
i32 140, label %35
i32 139, label %38
i32 135, label %41
i32 128, label %44
i32 145, label %47
i32 141, label %50
i32 138, label %53
i32 137, label %56
i32 136, label %59
i32 134, label %62
i32 132, label %65
i32 131, label %68
i32 130, label %71
i32 129, label %74
]
2: ; preds = %0
%3 = load i32, i32* @LOG_ERR
%4 = call i32 @syslog(i32 %3, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
br label %80
5: ; preds = %0
%6 = load i32, i32* @LOG_ERR
%7 = call i32 @syslog(i32 %6, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
br label %80
8: ; preds = %0
%9 = load i32, i32* @LOG_ERR
%10 = call i32 @syslog(i32 %9, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
br label %80
11: ; preds = %0
%12 = load i32, i32* @LOG_ERR
%13 = call i32 @syslog(i32 %12, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0))
br label %80
14: ; preds = %0
%15 = load i32, i32* @LOG_ERR
%16 = call i32 @syslog(i32 %15, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
br label %80
17: ; preds = %0
%18 = load i32, i32* @LOG_ERR
%19 = call i32 @syslog(i32 %18, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
br label %80
20: ; preds = %0
%21 = load i32, i32* @LOG_ERR
%22 = call i32 @syslog(i32 %21, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
br label %80
23: ; preds = %0
%24 = load i32, i32* @LOG_ERR
%25 = call i32 @syslog(i32 %24, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
br label %80
26: ; preds = %0
%27 = load i32, i32* @LOG_ERR
%28 = call i32 @syslog(i32 %27, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
br label %80
29: ; preds = %0
%30 = load i32, i32* @LOG_ERR
%31 = call i32 @syslog(i32 %30, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.9, i64 0, i64 0))
br label %80
32: ; preds = %0
%33 = load i32, i32* @LOG_ERR
%34 = call i32 @syslog(i32 %33, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.10, i64 0, i64 0))
br label %80
35: ; preds = %0
%36 = load i32, i32* @LOG_ERR
%37 = call i32 @syslog(i32 %36, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0))
br label %80
38: ; preds = %0
%39 = load i32, i32* @LOG_ERR
%40 = call i32 @syslog(i32 %39, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0))
br label %80
41: ; preds = %0
%42 = load i32, i32* @LOG_ERR
%43 = call i32 @syslog(i32 %42, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.13, i64 0, i64 0))
br label %80
44: ; preds = %0
%45 = load i32, i32* @LOG_ERR
%46 = call i32 @syslog(i32 %45, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.14, i64 0, i64 0))
br label %80
47: ; preds = %0
%48 = load i32, i32* @LOG_ERR
%49 = call i32 @syslog(i32 %48, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.15, i64 0, i64 0))
br label %80
50: ; preds = %0
%51 = load i32, i32* @LOG_ERR
%52 = call i32 @syslog(i32 %51, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.16, i64 0, i64 0))
br label %80
53: ; preds = %0
%54 = load i32, i32* @LOG_ERR
%55 = call i32 @syslog(i32 %54, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.17, i64 0, i64 0))
br label %80
56: ; preds = %0
%57 = load i32, i32* @LOG_ERR
%58 = call i32 @syslog(i32 %57, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.18, i64 0, i64 0))
br label %80
59: ; preds = %0
%60 = load i32, i32* @LOG_ERR
%61 = call i32 @syslog(i32 %60, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.19, i64 0, i64 0))
br label %80
62: ; preds = %0
%63 = load i32, i32* @LOG_ERR
%64 = call i32 @syslog(i32 %63, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.20, i64 0, i64 0))
br label %80
65: ; preds = %0
%66 = load i32, i32* @LOG_ERR
%67 = call i32 @syslog(i32 %66, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.21, i64 0, i64 0))
br label %80
68: ; preds = %0
%69 = load i32, i32* @LOG_ERR
%70 = call i32 @syslog(i32 %69, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.22, i64 0, i64 0))
br label %80
71: ; preds = %0
%72 = load i32, i32* @LOG_ERR
%73 = call i32 @syslog(i32 %72, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.23, i64 0, i64 0))
br label %80
74: ; preds = %0
%75 = load i32, i32* @LOG_ERR
%76 = call i32 @syslog(i32 %75, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.24, i64 0, i64 0))
br label %80
77: ; preds = %0
%78 = load i32, i32* @LOG_ERR
%79 = call i32 @syslog(i32 %78, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.25, i64 0, i64 0))
br label %80
80: ; preds = %77, %74, %71, %68, %65, %62, %59, %56, %53, %50, %47, %44, %41, %38, %35, %32, %29, %26, %23, %20, %17, %14, %11, %8, %5, %2
ret void
}

LLVM IR (-O2):
@errno = global i32 0
@LOG_ERR = global i32 0
@.str = [32 x i8] c"EACCES Write permission denied.\00"
@.str.1 = [27 x i8] c"EPERM Invalid credentials.\00"
@.str.2 = [41 x i8] c"EADDRINUSE Local address already in use.\00"
@.str.3 = [72 x i8] c"EAFNOSUPPORT The passed address didn't have the correct address family.\00"
@.str.4 = [33 x i8] c"EAGAIN No more free local ports.\00"
@.str.5 = [42 x i8] c"EALREADY Previous connection in progress.\00"
@.str.6 = [27 x i8] c"EBADF Bad file descriptor.\00"
@.str.7 = [33 x i8] c"ECONNREFUSED No one's listening.\00"
@.str.8 = [51 x i8] c"EFAULT Address is outside of user's address space.\00"
@.str.9 = [82 x i8] c"EINPROGRESS Socket is nonblocking and connection cannot be completed immediately.\00"
@.str.10 = [45 x i8] c"EINTR System call was interrupted by signal.\00"
@.str.11 = [41 x i8] c"EISCONN The socket is already connected.\00"
@.str.12 = [33 x i8] c"ENETUNREACH Network unreachable.\00"
@.str.13 = [41 x i8] c"ENOTSOCK Filedescriptor is not a socket.\00"
@.str.14 = [70 x i8] c"ETIMEDOUT Timeout while attemting connection, server may be too busy.\00"
@.str.15 = [61 x i8] c"ECONNRESET Remote connection socket was unexpectedly closes.\00"
@.str.16 = [32 x i8] c"EINVAL Invalid argument passed.\00"
@.str.17 = [42 x i8] c"ENOENT Specified pathname does not exist.\00"
@.str.18 = [22 x i8] c"ENOMEM Out of memory.\00"
@.str.19 = [77 x i8] c"ENOTCONN Socket address needs a target address, but socket is not connected.\00"
@.str.20 = [66 x i8] c"EOPNOTSUPP Stream operation called on non-stream oriented socket.\00"
@.str.21 = [51 x i8] c"EPIPE Remote socket was closed on a stream socket.\00"
@.str.22 = [40 x i8] c"EPROTONOSUPPORT Protocol not supported.\00"
@.str.23 = [64 x i8] c"EPROTOTYPE Remote socket type does not match local socket type.\00"
@.str.24 = [37 x i8] c"ESOCKTNOSUPPORT Unknown socket type.\00"
@.str.25 = [16 x i8] c"Unknown problem\00"
@reltable.report_error = [25 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([70 x i8]* @.str.14 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([37 x i8]* @.str.24 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([64 x i8]* @.str.23 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([40 x i8]* @.str.22 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([51 x i8]* @.str.21 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([27 x i8]* @.str.1 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([66 x i8]* @.str.20 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([41 x i8]* @.str.13 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([77 x i8]* @.str.19 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.18 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.17 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.12 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([41 x i8]* @.str.11 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([32 x i8]* @.str.16 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([45 x i8]* @.str.10 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([82 x i8]* @.str.9 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([51 x i8]* @.str.8 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([61 x i8]* @.str.15 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.7 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([27 x i8]* @.str.6 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.5 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.4 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([72 x i8]* @.str.3 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([41 x i8]* @.str.2 to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([32 x i8]* @.str to i64), i64 ptrtoint ([25 x i32]* @reltable.report_error to i64)) to i32)]
define void @report_error() {
%1 = load i32, i32* @errno
%2 = add i32 %1, -128
%3 = icmp ult i32 %2, 25
br i1 %3, label %4, label %8
4: ; preds = %0
%5 = sext i32 %2 to i64
%6 = shl i64 %5, 2
%7 = call i8* @llvm.load.relative.i64(i8* bitcast ([25 x i32]* @reltable.report_error to i8*), i64 %6)
br label %8
8: ; preds = %0, %4
%9 = phi i8* [ %7, %4 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.25, i64 0, i64 0), %0 ]
%10 = load i32, i32* @LOG_ERR
%11 = tail call i32 @syslog(i32 %10, i8* %9)
ret void
}