#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 */
struct addrinfo {
  int ai_flags;
  int /*<<< orphan*/ ai_addrlen;
  int /*<<< orphan*/ *ai_addr;
  int /*<<< orphan*/ ai_protocol;
  int /*<<< orphan*/ ai_socktype;
  int /*<<< orphan*/ ai_family;
  struct addrinfo *ai_next;
  int /*<<< orphan*/ *ai_canonname;
};
typedef int /*<<< orphan*/ optval;

/* Variables and functions */
int /*<<< orphan*/ AF_UNSPEC;
int AI_NUMERICSERV;
int AI_PASSIVE;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_REUSEADDR;
scalar_t__ bind(int, int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ freeaddrinfo(struct addrinfo *);
scalar_t__ getaddrinfo(int /*<<< orphan*/ *, char *, struct addrinfo *,
                       struct addrinfo **);
int listen(int, int);
int /*<<< orphan*/ logMessage(char *, ...);
int /*<<< orphan*/ memset(struct addrinfo *, int /*<<< orphan*/, int);
int setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/, int *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ strerror(int /*<<< orphan*/);
int configurar_servidor(void) {
  struct addrinfo hints;
  struct addrinfo *result, *rp;
  int lfd, cfd, optval;
  memset(&hints, 0, sizeof(struct addrinfo));
  hints.ai_canonname = NULL;
  hints.ai_addr = NULL;
  hints.ai_next = NULL;
  hints.ai_socktype = SOCK_STREAM;
  hints.ai_family = AF_UNSPEC;
  hints.ai_flags = AI_PASSIVE | AI_NUMERICSERV;
  if (getaddrinfo(NULL, "50002", &hints, &result) != 0) {
    logMessage("Fail getting address info (%s)", strerror(errno));
    exit(3);
  }
  optval = 1;
  for (rp = result; rp != NULL; rp = rp->ai_next) {
    lfd = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol);
    if (lfd == -1)
      continue;
    if (setsockopt(lfd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)) ==
        -1) {
      logMessage("Fallo al configurar las opciones del socket (%s)",
                 strerror(errno));
      return -1;
    }
    if (bind(lfd, rp->ai_addr, rp->ai_addrlen) == 0)
      break;
    close(lfd);
  }
  if (rp == NULL) {
    logMessage("No se pudo enlazar a ningun socket (%s)", strerror(errno));
    return -1;
  }
  if (listen(lfd, 50) == -1) {
    logMessage("Fallo escuchando (%s)", strerror(errno));
    return -1;
  }
  return lfd;
  logMessage("Se configuro el servidor exitosamente");
  freeaddrinfo(result);
}


x86 assembly (clang, -O0):
<configurar_servidor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
lea    -0x38(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1050 <memset@plt>
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x18(%rbp)
mov    0x2de9(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    0x2ded(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    0x2de9(%rip),%rax
mov    (%rax),%eax
mov    0x2e00(%rip),%rcx
or     (%rcx),%eax
mov    %eax,-0x38(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xdf8(%rip),%rsi
lea    -0x38(%rbp),%rdx
lea    -0x40(%rbp),%rcx
call   10a0 <getaddrinfo@plt>
cmp    $0x0,%rax
je     1247 <configurar_servidor+0xa7>
mov    0x2d92(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    %eax,%esi
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1030 <logMessage@plt>
mov    $0x3,%edi
call   1090 <exit@plt>
movl   $0x1,-0x54(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
je     1323 <configurar_servidor+0x183>
mov    -0x48(%rbp),%rax
mov    0x18(%rax),%edi
mov    -0x48(%rbp),%rax
mov    0x14(%rax),%esi
mov    -0x48(%rbp),%rax
mov    0x10(%rax),%edx
call   10c0 <socket@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0xffffffff,-0x4c(%rbp)
jne    128d <configurar_servidor+0xed>
jmp    1312 <configurar_servidor+0x172>
mov    -0x4c(%rbp),%edi
mov    0x2d49(%rip),%rax
mov    (%rax),%esi
mov    0x2d10(%rip),%rax
mov    (%rax),%edx
lea    -0x54(%rbp),%rcx
mov    $0x4,%r8d
call   1040 <setsockopt@plt>
cmp    $0xffffffff,%eax
jne    12e4 <configurar_servidor+0x144>
mov    0x2cf7(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    %eax,%esi
lea    0xd54(%rip),%rdi
mov    $0x0,%al
call   1030 <logMessage@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    139e <configurar_servidor+0x1fe>
mov    -0x4c(%rbp),%edi
mov    -0x48(%rbp),%rax
mov    0x8(%rax),%rsi
mov    -0x48(%rbp),%rax
mov    0x4(%rax),%edx
call   1080 <bind@plt>
cmp    $0x0,%rax
jne    130a <configurar_servidor+0x16a>
jmp    1323 <configurar_servidor+0x183>
mov    -0x4c(%rbp),%edi
call   1060 <close@plt>
mov    -0x48(%rbp),%rax
mov    0x20(%rax),%rax
mov    %rax,-0x48(%rbp)
jmp    1256 <configurar_servidor+0xb6>
cmpq   $0x0,-0x48(%rbp)
jne    1358 <configurar_servidor+0x1b8>
mov    0x2c83(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    %eax,%esi
lea    0xd11(%rip),%rdi
mov    $0x0,%al
call   1030 <logMessage@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    139e <configurar_servidor+0x1fe>
mov    -0x4c(%rbp),%edi
mov    $0x32,%esi
call   1070 <listen@plt>
cmp    $0xffffffff,%eax
jne    1398 <configurar_servidor+0x1f8>
mov    0x2c43(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    %eax,%esi
lea    0xcf9(%rip),%rdi
mov    $0x0,%al
call   1030 <logMessage@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    139e <configurar_servidor+0x1fe>
mov    -0x4c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<configurar_servidor>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
lea    0x18(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1050 <memset@plt>
movq   $0x0,0x20(%rsp)
xorps  %xmm0,%xmm0
movups %xmm0,0x38(%rsp)
mov    0x2de6(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x2c(%rsp)
mov    0x2de9(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x30(%rsp)
mov    0x2de4(%rip),%rax
mov    0x2dfd(%rip),%rcx
mov    (%rcx),%ecx
or     (%rax),%ecx
mov    %ecx,0x18(%rsp)
lea    0xdf6(%rip),%rsi
lea    0x10(%rsp),%rcx
xor    %edi,%edi
mov    %rbx,%rdx
call   10a0 <getaddrinfo@plt>
test   %rax,%rax
jne    1308 <configurar_servidor+0x168>
movl   $0x1,0xc(%rsp)
mov    0x10(%rsp),%rbx
lea    0xe20(%rip),%r14
test   %rbx,%rbx
je     12d8 <configurar_servidor+0x138>
mov    0x2d9a(%rip),%r12
mov    0x2d63(%rip),%r13
lea    0xc(%rsp),%r15
jmp    1269 <configurar_servidor+0xc9>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x20(%rbx),%rbx
test   %rbx,%rbx
je     12d8 <configurar_servidor+0x138>
mov    0x18(%rbx),%edi
mov    0x10(%rbx),%edx
mov    0x14(%rbx),%esi
call   10c0 <socket@plt>
cmp    $0xffffffff,%eax
je     1260 <configurar_servidor+0xc0>
mov    %eax,%ebp
mov    (%r12),%esi
mov    0x0(%r13),%edx
mov    %eax,%edi
mov    %r15,%rcx
mov    $0x4,%r8d
call   1040 <setsockopt@plt>
cmp    $0xffffffff,%eax
je     12b7 <configurar_servidor+0x117>
mov    0x8(%rbx),%rsi
mov    0x4(%rbx),%edx
mov    %ebp,%edi
call   1080 <bind@plt>
test   %rax,%rax
je     12c0 <configurar_servidor+0x120>
mov    %ebp,%edi
call   1060 <close@plt>
jmp    1260 <configurar_servidor+0xc0>
lea    0xd67(%rip),%r14
jmp    12d8 <configurar_servidor+0x138>
mov    %ebp,%edi
mov    $0x32,%esi
call   1070 <listen@plt>
cmp    $0xffffffff,%eax
jne    12f7 <configurar_servidor+0x157>
lea    0xda6(%rip),%r14
mov    0x2cd9(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1030 <logMessage@plt>
mov    $0xffffffff,%ebp
mov    %ebp,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2ca9(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xce9(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1030 <logMessage@plt>
mov    $0x3,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
%struct.addrinfo = type { i32, i32, i32*, i32, i32, i32, %struct.addrinfo*, i32* }
@SOCK_STREAM = global i32 0
@AF_UNSPEC = global i32 0
@AI_PASSIVE = global i32 0
@AI_NUMERICSERV = global i32 0
@.str = [6 x i8] c"50002\00"
@.str.1 = [31 x i8] c"Fail getting address info (%s)\00"
@errno = global i32 0
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str.2 = [49 x i8] c"Fallo al configurar las opciones del socket (%s)\00"
@.str.3 = [40 x i8] c"No se pudo enlazar a ningun socket (%s)\00"
@.str.4 = [22 x i8] c"Fallo escuchando (%s)\00"
define i32 @configurar_servidor() {
%1 = alloca i32
%2 = alloca %struct.addrinfo
%3 = alloca %struct.addrinfo*
%4 = alloca %struct.addrinfo*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = call i32 @memset(%struct.addrinfo* %2, i32 0, i32 48)
%9 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %2, i32 0, i32 7
store i32* null, i32** %9
%10 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %2, i32 0, i32 2
store i32* null, i32** %10
%11 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %2, i32 0, i32 6
store %struct.addrinfo* null, %struct.addrinfo** %11
%12 = load i32, i32* @SOCK_STREAM
%13 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %2, i32 0, i32 4
store i32 %12, i32* %13
%14 = load i32, i32* @AF_UNSPEC
%15 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %2, i32 0, i32 5
store i32 %14, i32* %15
%16 = load i32, i32* @AI_PASSIVE
%17 = load i32, i32* @AI_NUMERICSERV
%18 = or i32 %16, %17
%19 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %2, i32 0, i32 0
store i32 %18, i32* %19
%20 = call i64 @getaddrinfo(i32* null, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), %struct.addrinfo* %2, %struct.addrinfo** %3)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %27
22: ; preds = %0
%23 = load i32, i32* @errno
%24 = call i32 @strerror(i32 %23)
%25 = call i32 (i8*, ...) @logMessage(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %24)
%26 = call i32 @exit(i32 3)
unreachable
27: ; preds = %0
store i32 1, i32* %7
%28 = load %struct.addrinfo*, %struct.addrinfo** %3
store %struct.addrinfo* %28, %struct.addrinfo** %4
br label %29
29: ; preds = %70, %27
%30 = load %struct.addrinfo*, %struct.addrinfo** %4
%31 = icmp ne %struct.addrinfo* %30, null
br i1 %31, label %32, label %74
32: ; preds = %29
%33 = load %struct.addrinfo*, %struct.addrinfo** %4
%34 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %33, i32 0, i32 5
%35 = load i32, i32* %34
%36 = load %struct.addrinfo*, %struct.addrinfo** %4
%37 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %36, i32 0, i32 4
%38 = load i32, i32* %37
%39 = load %struct.addrinfo*, %struct.addrinfo** %4
%40 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %39, i32 0, i32 3
%41 = load i32, i32* %40
%42 = call i32 @socket(i32 %35, i32 %38, i32 %41)
store i32 %42, i32* %5
%43 = load i32, i32* %5
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %46
45: ; preds = %32
br label %70
46: ; preds = %32
%47 = load i32, i32* %5
%48 = load i32, i32* @SOL_SOCKET
%49 = load i32, i32* @SO_REUSEADDR
%50 = call i32 @setsockopt(i32 %47, i32 %48, i32 %49, i32* %7, i32 4)
%51 = icmp eq i32 %50, -1
br i1 %51, label %52, label %56
52: ; preds = %46
%53 = load i32, i32* @errno
%54 = call i32 @strerror(i32 %53)
%55 = call i32 (i8*, ...) @logMessage(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0), i32 %54)
store i32 -1, i32* %1
br label %91
56: ; preds = %46
%57 = load i32, i32* %5
%58 = load %struct.addrinfo*, %struct.addrinfo** %4
%59 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %58, i32 0, i32 2
%60 = load i32*, i32** %59
%61 = load %struct.addrinfo*, %struct.addrinfo** %4
%62 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %61, i32 0, i32 1
%63 = load i32, i32* %62
%64 = call i64 @bind(i32 %57, i32* %60, i32 %63)
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %56
br label %74
67: ; preds = %56
%68 = load i32, i32* %5
%69 = call i32 @close(i32 %68)
br label %70
70: ; preds = %67, %45
%71 = load %struct.addrinfo*, %struct.addrinfo** %4
%72 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %71, i32 0, i32 6
%73 = load %struct.addrinfo*, %struct.addrinfo** %72
store %struct.addrinfo* %73, %struct.addrinfo** %4
br label %29
74: ; preds = %66, %29
%75 = load %struct.addrinfo*, %struct.addrinfo** %4
%76 = icmp eq %struct.addrinfo* %75, null
br i1 %76, label %77, label %81
77: ; preds = %74
%78 = load i32, i32* @errno
%79 = call i32 @strerror(i32 %78)
%80 = call i32 (i8*, ...) @logMessage(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), i32 %79)
store i32 -1, i32* %1
br label %91
81: ; preds = %74
%82 = load i32, i32* %5
%83 = call i32 @listen(i32 %82, i32 50)
%84 = icmp eq i32 %83, -1
br i1 %84, label %85, label %89
85: ; preds = %81
%86 = load i32, i32* @errno
%87 = call i32 @strerror(i32 %86)
%88 = call i32 (i8*, ...) @logMessage(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i32 %87)
store i32 -1, i32* %1
br label %91
89: ; preds = %81
%90 = load i32, i32* %5
store i32 %90, i32* %1
br label %91
91: ; preds = %89, %85, %77, %52
%92 = load i32, i32* %1
ret i32 %92
}

LLVM IR (-O2):
%struct.addrinfo = type { i32, i32, i32*, i32, i32, i32, %struct.addrinfo*, i32* }
@SOCK_STREAM = global i32 0
@AF_UNSPEC = global i32 0
@AI_PASSIVE = global i32 0
@AI_NUMERICSERV = global i32 0
@.str = [6 x i8] c"50002\00"
@.str.1 = [31 x i8] c"Fail getting address info (%s)\00"
@errno = global i32 0
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str.2 = [49 x i8] c"Fallo al configurar las opciones del socket (%s)\00"
@.str.3 = [40 x i8] c"No se pudo enlazar a ningun socket (%s)\00"
@.str.4 = [22 x i8] c"Fallo escuchando (%s)\00"
define i32 @configurar_servidor() {
%1 = alloca %struct.addrinfo
%2 = alloca %struct.addrinfo*
%3 = alloca i32
%4 = bitcast %struct.addrinfo* %1 to i8*
%5 = bitcast %struct.addrinfo** %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @memset(%struct.addrinfo* %1, i32 0, i32 48)
%8 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %1, i64 0, i32 2
store i32* null, i32** %8
%9 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %1, i64 0, i32 6
%10 = bitcast %struct.addrinfo** %9 to i8*
%11 = load i32, i32* @SOCK_STREAM
%12 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %1, i64 0, i32 4
store i32 %11, i32* %12
%13 = load i32, i32* @AF_UNSPEC
%14 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %1, i64 0, i32 5
store i32 %13, i32* %14
%15 = load i32, i32* @AI_PASSIVE
%16 = load i32, i32* @AI_NUMERICSERV
%17 = or i32 %16, %15
%18 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %1, i64 0, i32 0
store i32 %17, i32* %18
%19 = call i64 @getaddrinfo(i32* null, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), %struct.addrinfo* %1, %struct.addrinfo** %2)
%20 = icmp eq i64 %19, 0
br i1 %20, label %26, label %21
21: ; preds = %0
%22 = load i32, i32* @errno
%23 = call i32 @strerror(i32 %22)
%24 = call i32 (i8*, ...) @logMessage(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %23)
%25 = call i32 @exit(i32 3)
unreachable
26: ; preds = %0
store i32 1, i32* %3
%27 = load %struct.addrinfo*, %struct.addrinfo** %2
%28 = icmp eq %struct.addrinfo* %27, null
br i1 %28, label %60, label %29
29: ; preds = %26, %53
%30 = phi %struct.addrinfo* [ %55, %53 ], [ %27, %26 ]
%31 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %30, i64 0, i32 5
%32 = load i32, i32* %31
%33 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %30, i64 0, i32 4
%34 = load i32, i32* %33
%35 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %30, i64 0, i32 3
%36 = load i32, i32* %35
%37 = call i32 @socket(i32 %32, i32 %34, i32 %36)
%38 = icmp eq i32 %37, -1
br i1 %38, label %53, label %39
39: ; preds = %29
%40 = load i32, i32* @SOL_SOCKET
%41 = load i32, i32* @SO_REUSEADDR
%42 = call i32 @setsockopt(i32 %37, i32 %40, i32 %41, i32* %3, i32 4)
%43 = icmp eq i32 %42, -1
br i1 %43, label %60, label %44
44: ; preds = %39
%45 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %30, i64 0, i32 2
%46 = load i32*, i32** %45
%47 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %30, i64 0, i32 1
%48 = load i32, i32* %47
%49 = call i64 @bind(i32 %37, i32* %46, i32 %48)
%50 = icmp eq i64 %49, 0
br i1 %50, label %57, label %51
51: ; preds = %44
%52 = call i32 @close(i32 %37)
br label %53
53: ; preds = %29, %51
%54 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %30, i64 0, i32 6
%55 = load %struct.addrinfo*, %struct.addrinfo** %54
%56 = icmp eq %struct.addrinfo* %55, null
br i1 %56, label %60, label %29
57: ; preds = %44
%58 = call i32 @listen(i32 %37, i32 50)
%59 = icmp eq i32 %58, -1
br i1 %59, label %60, label %65
60: ; preds = %53, %39, %57, %26
%61 = phi i8* [ getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), %26 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), %57 ], [ getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0), %39 ], [ getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0), %53 ]
%62 = load i32, i32* @errno
%63 = call i32 @strerror(i32 %62)
%64 = call i32 (i8*, ...) @logMessage(i8* %61, i32 %63)
br label %65
65: ; preds = %60, %57
%66 = phi i32 [ %37, %57 ], [ -1, %60 ]
ret i32 %66
}