#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 /*<<< orphan*/ ai_addrlen;
  int /*<<< orphan*/ ai_addr;
  int /*<<< orphan*/ ai_protocol;
  int /*<<< orphan*/ ai_socktype;
  int /*<<< orphan*/ ai_family;
  int /*<<< orphan*/ ai_flags;
  int /*<<< orphan*/ member_0;
};

/* Variables and functions */
int /*<<< orphan*/ AI_PASSIVE;
int /*<<< orphan*/ F_GETFL;
int /*<<< orphan*/ F_SETFL;
int O_NONBLOCK;
int /*<<< orphan*/ PF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_KEEPALIVE;
int connect(int, int /*<<< orphan*/, int /*<<< orphan*/);
int fcntl(int, int /*<<< orphan*/, int);
int /*<<< orphan*/ freeaddrinfo(struct addrinfo *);
int /*<<< orphan*/ gai_strerror(int);
int getaddrinfo(char const *, char const *, struct addrinfo *,
                struct addrinfo **);
int /*<<< orphan*/ log_stderr(char *, char const *, ...);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char const *, char const *);
int /*<<< orphan*/ setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/,
                              int *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int create_connection(const char *hostname, const char *servname) {
  struct addrinfo hints = {0};
  hints.ai_flags = AI_PASSIVE;
  hints.ai_family = PF_INET;
  hints.ai_socktype = SOCK_STREAM;
  struct addrinfo *res;
  int rc;
  printf("hostname = %s, servname = %s\n", hostname, servname);
  if ((rc = getaddrinfo(hostname, servname, &hints, &res))) {
    log_stderr("getaddrinfo error: %s\n", gai_strerror(rc));
    return -1;
  }
  int socket_fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
  if (socket_fd == -1) {
    freeaddrinfo(res);
    return -1;
  }
  int on = 1;
  setsockopt(socket_fd, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof on);
  rc = connect(socket_fd, res->ai_addr, res->ai_addrlen);
  if (rc == -1) {
    freeaddrinfo(res);
    log_stderr("connect error to %s:%s. Trying again later\n", hostname,
               servname);
    perror("connect:");
    return -1;
  }
  rc = fcntl(socket_fd, F_SETFL, fcntl(socket_fd, F_GETFL, 0) | O_NONBLOCK);
  if (rc == -1) {
    perror("fcntl in connect");
    freeaddrinfo(res);
    return -1;
  }
  printf("connected to %s:%s\n", hostname, servname);
  freeaddrinfo(res);
  return socket_fd;
}


x86 assembly (clang, -O0):
<create_connection>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
lea    -0x38(%rbp),%rdi
xor    %esi,%esi
mov    $0x1c,%edx
call   1080 <memset@plt>
mov    0x2e09(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    0x2dcd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    0x2dd1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xdfd(%rip),%rdi
call   1060 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x38(%rbp),%rdx
lea    -0x40(%rbp),%rcx
call   10b0 <getaddrinfo@plt>
mov    %eax,-0x44(%rbp)
cmp    $0x0,%eax
je     124e <create_connection+0x9e>
mov    -0x44(%rbp),%edi
call   1070 <gai_strerror@plt>
movslq %eax,%rsi
lea    0xde3(%rip),%rdi
mov    $0x0,%al
call   1030 <log_stderr@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    139a <create_connection+0x1ea>
mov    -0x40(%rbp),%rax
mov    0x10(%rax),%edi
mov    -0x40(%rbp),%rax
mov    0xc(%rax),%esi
mov    -0x40(%rbp),%rax
mov    0x8(%rax),%edx
call   10d0 <socket@plt>
mov    %eax,-0x48(%rbp)
cmpl   $0xffffffff,-0x48(%rbp)
jne    128a <create_connection+0xda>
mov    -0x40(%rbp),%rdi
call   10c0 <freeaddrinfo@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    139a <create_connection+0x1ea>
movl   $0x1,-0x4c(%rbp)
mov    -0x48(%rbp),%edi
mov    0x2d4d(%rip),%rax
mov    (%rax),%esi
mov    0x2cfc(%rip),%rax
mov    (%rax),%edx
lea    -0x4c(%rbp),%rcx
mov    $0x4,%r8d
call   1040 <setsockopt@plt>
mov    -0x48(%rbp),%edi
mov    -0x40(%rbp),%rax
mov    0x4(%rax),%esi
mov    -0x40(%rbp),%rax
mov    (%rax),%edx
call   10a0 <connect@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0xffffffff,-0x44(%rbp)
jne    130e <create_connection+0x15e>
mov    -0x40(%rbp),%rdi
call   10c0 <freeaddrinfo@plt>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xd46(%rip),%rdi
mov    $0x0,%al
call   1030 <log_stderr@plt>
lea    0xd64(%rip),%rdi
call   1090 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    139a <create_connection+0x1ea>
mov    -0x48(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    0x2cad(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x50(%rbp)
mov    -0x48(%rbp),%edi
mov    0x2c8e(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1050 <fcntl@plt>
mov    -0x54(%rbp),%edi
mov    -0x50(%rbp),%esi
mov    %eax,%edx
mov    0x2c96(%rip),%rax
or     (%rax),%edx
call   1050 <fcntl@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0xffffffff,-0x44(%rbp)
jne    1377 <create_connection+0x1c7>
lea    0xd0d(%rip),%rdi
call   1090 <perror@plt>
mov    -0x40(%rbp),%rdi
call   10c0 <freeaddrinfo@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    139a <create_connection+0x1ea>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xcf5(%rip),%rdi
call   1060 <printf@plt>
mov    -0x40(%rbp),%rdi
call   10c0 <freeaddrinfo@plt>
mov    -0x48(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<create_connection>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
xorps  %xmm0,%xmm0
movups %xmm0,0x1c(%rsp)
movaps %xmm0,0x10(%rsp)
mov    0x2e1c(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x24(%rsp)
mov    0x2ddf(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x20(%rsp)
mov    0x2de2(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x1c(%rsp)
lea    0xe15(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1060 <printf@plt>
lea    0x10(%rsp),%rdx
mov    %rsp,%rcx
mov    %rbx,%rdi
mov    %r14,%rsi
call   10a0 <getaddrinfo@plt>
test   %eax,%eax
je     122f <create_connection+0x8f>
mov    %eax,%edi
call   1070 <gai_strerror@plt>
movslq %eax,%rsi
lea    0xe00(%rip),%rdi
xor    %eax,%eax
call   1030 <log_stderr@plt>
mov    $0xffffffff,%ebp
jmp    12de <create_connection+0x13e>
mov    (%rsp),%rax
mov    0x10(%rax),%edi
mov    0x8(%rax),%edx
mov    0xc(%rax),%esi
call   10c0 <socket@plt>
cmp    $0xffffffff,%eax
je     1325 <create_connection+0x185>
mov    %eax,%ebp
movl   $0x1,0xc(%rsp)
mov    0x2d8d(%rip),%rax
mov    (%rax),%esi
mov    0x2d3c(%rip),%rax
mov    (%rax),%edx
lea    0xc(%rsp),%rcx
mov    %ebp,%edi
mov    $0x4,%r8d
call   1040 <setsockopt@plt>
mov    (%rsp),%rax
mov    (%rax),%edx
mov    0x4(%rax),%esi
mov    %ebp,%edi
call   1090 <connect@plt>
cmp    $0xffffffff,%eax
je     12eb <create_connection+0x14b>
mov    0x2d34(%rip),%rax
mov    (%rax),%r15d
mov    0x2d1a(%rip),%rax
mov    (%rax),%esi
mov    %ebp,%edi
xor    %edx,%edx
call   1050 <fcntl@plt>
mov    0x2d28(%rip),%rcx
or     (%rcx),%eax
mov    %ebp,%edi
mov    %r15d,%esi
mov    %eax,%edx
call   1050 <fcntl@plt>
cmp    $0xffffffff,%eax
je     1319 <create_connection+0x179>
lea    0xdb1(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1060 <printf@plt>
mov    (%rsp),%rdi
call   10b0 <freeaddrinfo@plt>
mov    %ebp,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    (%rsp),%rdi
call   10b0 <freeaddrinfo@plt>
lea    0xd3a(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <log_stderr@plt>
lea    0xd52(%rip),%rdi
call   1080 <perror@plt>
jmp    1225 <create_connection+0x85>
lea    0xd4a(%rip),%rdi
call   1080 <perror@plt>
mov    (%rsp),%rdi
call   10b0 <freeaddrinfo@plt>
jmp    1225 <create_connection+0x85>

LLVM IR (-O0):
%struct.addrinfo = type { i32, i32, i32, i32, i32, i32, i32 }
@AI_PASSIVE = global i32 0
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [30 x i8] c"hostname = %s, servname = %s\0A\00"
@.str.1 = [23 x i8] c"getaddrinfo error: %s\0A\00"
@SOL_SOCKET = global i32 0
@SO_KEEPALIVE = global i32 0
@.str.2 = [44 x i8] c"connect error to %s:%s. Trying again later\0A\00"
@.str.3 = [9 x i8] c"connect:\00"
@F_SETFL = global i32 0
@F_GETFL = global i32 0
@O_NONBLOCK = global i32 0
@.str.4 = [17 x i8] c"fcntl in connect\00"
@.str.5 = [20 x i8] c"connected to %s:%s\0A\00"
define i32 @create_connection(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca %struct.addrinfo
%7 = alloca %struct.addrinfo*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
%11 = bitcast %struct.addrinfo* %6 to i8*
%12 = load i32, i32* @AI_PASSIVE
%13 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %6, i32 0, i32 5
store i32 %12, i32* %13
%14 = load i32, i32* @PF_INET
%15 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %6, i32 0, i32 4
store i32 %14, i32* %15
%16 = load i32, i32* @SOCK_STREAM
%17 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %6, i32 0, i32 3
store i32 %16, i32* %17
%18 = load i8*, i8** %4
%19 = load i8*, i8** %5
%20 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %18, i8* %19)
%21 = load i8*, i8** %4
%22 = load i8*, i8** %5
%23 = call i32 @getaddrinfo(i8* %21, i8* %22, %struct.addrinfo* %6, %struct.addrinfo** %7)
store i32 %23, i32* %8
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %31
25: ; preds = %2
%26 = load i32, i32* %8
%27 = call i32 @gai_strerror(i32 %26)
%28 = sext i32 %27 to i64
%29 = inttoptr i64 %28 to i8*
%30 = call i32 (i8*, i8*, ...) @log_stderr(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %29)
store i32 -1, i32* %3
br label %91
31: ; preds = %2
%32 = load %struct.addrinfo*, %struct.addrinfo** %7
%33 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %32, i32 0, i32 4
%34 = load i32, i32* %33
%35 = load %struct.addrinfo*, %struct.addrinfo** %7
%36 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %35, i32 0, i32 3
%37 = load i32, i32* %36
%38 = load %struct.addrinfo*, %struct.addrinfo** %7
%39 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %38, i32 0, i32 2
%40 = load i32, i32* %39
%41 = call i32 @socket(i32 %34, i32 %37, i32 %40)
store i32 %41, i32* %9
%42 = load i32, i32* %9
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %47
44: ; preds = %31
%45 = load %struct.addrinfo*, %struct.addrinfo** %7
%46 = call i32 @freeaddrinfo(%struct.addrinfo* %45)
store i32 -1, i32* %3
br label %91
47: ; preds = %31
store i32 1, i32* %10
%48 = load i32, i32* %9
%49 = load i32, i32* @SOL_SOCKET
%50 = load i32, i32* @SO_KEEPALIVE
%51 = call i32 @setsockopt(i32 %48, i32 %49, i32 %50, i32* %10, i32 4)
%52 = load i32, i32* %9
%53 = load %struct.addrinfo*, %struct.addrinfo** %7
%54 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %53, i32 0, i32 1
%55 = load i32, i32* %54
%56 = load %struct.addrinfo*, %struct.addrinfo** %7
%57 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %56, i32 0, i32 0
%58 = load i32, i32* %57
%59 = call i32 @connect(i32 %52, i32 %55, i32 %58)
store i32 %59, i32* %8
%60 = load i32, i32* %8
%61 = icmp eq i32 %60, -1
br i1 %61, label %62, label %69
62: ; preds = %47
%63 = load %struct.addrinfo*, %struct.addrinfo** %7
%64 = call i32 @freeaddrinfo(%struct.addrinfo* %63)
%65 = load i8*, i8** %4
%66 = load i8*, i8** %5
%67 = call i32 (i8*, i8*, ...) @log_stderr(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0), i8* %65, i8* %66)
%68 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %3
br label %91
69: ; preds = %47
%70 = load i32, i32* %9
%71 = load i32, i32* @F_SETFL
%72 = load i32, i32* %9
%73 = load i32, i32* @F_GETFL
%74 = call i32 @fcntl(i32 %72, i32 %73, i32 0)
%75 = load i32, i32* @O_NONBLOCK
%76 = or i32 %74, %75
%77 = call i32 @fcntl(i32 %70, i32 %71, i32 %76)
store i32 %77, i32* %8
%78 = load i32, i32* %8
%79 = icmp eq i32 %78, -1
br i1 %79, label %80, label %84
80: ; preds = %69
%81 = call i32 @perror(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%82 = load %struct.addrinfo*, %struct.addrinfo** %7
%83 = call i32 @freeaddrinfo(%struct.addrinfo* %82)
store i32 -1, i32* %3
br label %91
84: ; preds = %69
%85 = load i8*, i8** %4
%86 = load i8*, i8** %5
%87 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* %85, i8* %86)
%88 = load %struct.addrinfo*, %struct.addrinfo** %7
%89 = call i32 @freeaddrinfo(%struct.addrinfo* %88)
%90 = load i32, i32* %9
store i32 %90, i32* %3
br label %91
91: ; preds = %84, %80, %62, %44, %25
%92 = load i32, i32* %3
ret i32 %92
}

LLVM IR (-O2):
%struct.addrinfo = type { i32, i32, i32, i32, i32, i32, i32 }
@AI_PASSIVE = global i32 0
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [30 x i8] c"hostname = %s, servname = %s\0A\00"
@.str.1 = [23 x i8] c"getaddrinfo error: %s\0A\00"
@SOL_SOCKET = global i32 0
@SO_KEEPALIVE = global i32 0
@.str.2 = [44 x i8] c"connect error to %s:%s. Trying again later\0A\00"
@.str.3 = [9 x i8] c"connect:\00"
@F_SETFL = global i32 0
@F_GETFL = global i32 0
@O_NONBLOCK = global i32 0
@.str.4 = [17 x i8] c"fcntl in connect\00"
@.str.5 = [20 x i8] c"connected to %s:%s\0A\00"
define i32 @create_connection(i8* %0, i8* %1) {
%3 = alloca %struct.addrinfo
%4 = alloca %struct.addrinfo*
%5 = alloca i32
%6 = bitcast %struct.addrinfo* %3 to i8*
%7 = load i32, i32* @AI_PASSIVE
%8 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %3, i64 0, i32 5
store i32 %7, i32* %8
%9 = load i32, i32* @PF_INET
%10 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %3, i64 0, i32 4
store i32 %9, i32* %10
%11 = load i32, i32* @SOCK_STREAM
%12 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %3, i64 0, i32 3
store i32 %11, i32* %12
%13 = bitcast %struct.addrinfo** %4 to i8*
%14 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1)
%15 = call i32 @getaddrinfo(i8* %0, i8* %1, %struct.addrinfo* %3, %struct.addrinfo** %4)
%16 = icmp eq i32 %15, 0
br i1 %16, label %22, label %17
17: ; preds = %2
%18 = call i32 @gai_strerror(i32 %15)
%19 = sext i32 %18 to i64
%20 = inttoptr i64 %19 to i8*
%21 = call i32 (i8*, i8*, ...) @log_stderr(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %20)
br label %70
22: ; preds = %2
%23 = load %struct.addrinfo*, %struct.addrinfo** %4
%24 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %23, i64 0, i32 4
%25 = load i32, i32* %24
%26 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %23, i64 0, i32 3
%27 = load i32, i32* %26
%28 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %23, i64 0, i32 2
%29 = load i32, i32* %28
%30 = call i32 @socket(i32 %25, i32 %27, i32 %29)
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %35
32: ; preds = %22
%33 = load %struct.addrinfo*, %struct.addrinfo** %4
%34 = call i32 @freeaddrinfo(%struct.addrinfo* %33)
br label %70
35: ; preds = %22
%36 = bitcast i32* %5 to i8*
store i32 1, i32* %5
%37 = load i32, i32* @SOL_SOCKET
%38 = load i32, i32* @SO_KEEPALIVE
%39 = call i32 @setsockopt(i32 %30, i32 %37, i32 %38, i32* %5, i32 4)
%40 = load %struct.addrinfo*, %struct.addrinfo** %4
%41 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %40, i64 0, i32 1
%42 = load i32, i32* %41
%43 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %40, i64 0, i32 0
%44 = load i32, i32* %43
%45 = call i32 @connect(i32 %30, i32 %42, i32 %44)
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %52
47: ; preds = %35
%48 = load %struct.addrinfo*, %struct.addrinfo** %4
%49 = call i32 @freeaddrinfo(%struct.addrinfo* %48)
%50 = call i32 (i8*, i8*, ...) @log_stderr(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0), i8* %0, i8* %1)
%51 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %68
52: ; preds = %35
%53 = load i32, i32* @F_SETFL
%54 = load i32, i32* @F_GETFL
%55 = call i32 @fcntl(i32 %30, i32 %54, i32 0)
%56 = load i32, i32* @O_NONBLOCK
%57 = or i32 %56, %55
%58 = call i32 @fcntl(i32 %30, i32 %53, i32 %57)
%59 = icmp eq i32 %58, -1
br i1 %59, label %60, label %64
60: ; preds = %52
%61 = call i32 @perror(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%62 = load %struct.addrinfo*, %struct.addrinfo** %4
%63 = call i32 @freeaddrinfo(%struct.addrinfo* %62)
br label %68
64: ; preds = %52
%65 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* %0, i8* %1)
%66 = load %struct.addrinfo*, %struct.addrinfo** %4
%67 = call i32 @freeaddrinfo(%struct.addrinfo* %66)
br label %68
68: ; preds = %64, %60, %47
%69 = phi i32 [ -1, %47 ], [ -1, %60 ], [ %30, %64 ]
br label %70
70: ; preds = %32, %68, %17
%71 = phi i32 [ -1, %17 ], [ -1, %32 ], [ %69, %68 ]
ret i32 %71
}