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

/* Variables and functions */
int /*<<< orphan*/ AF_UNSPEC;
int /*<<< orphan*/ 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*/ exit(int);
int /*<<< orphan*/ freeaddrinfo(struct addrinfo *);
char *gai_strerror(int);
int getaddrinfo(int /*<<< orphan*/ *, char *, struct addrinfo *,
                struct addrinfo **);
scalar_t__ listen(int, int);
int /*<<< orphan*/ memset(struct addrinfo *, char, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/, int *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, scalar_t__);
int /*<<< orphan*/ sprintf(char *, char *, int);
int StartTimeServer(int portNumber) {
  int sfd, sysRet, j;
  char stringPort[8];
  struct addrinfo hints, *aiList, *aiPtr = NULL;
  sprintf(stringPort, "%d", portNumber);
  memset(&hints, '\0', sizeof(hints));
  hints.ai_family = AF_UNSPEC;
  hints.ai_socktype = SOCK_STREAM;
  hints.ai_protocol = 0;
  hints.ai_flags = AI_PASSIVE;
  sysRet = getaddrinfo(NULL, stringPort, &hints, &aiList);
  if (sysRet != 0) {
    printf("error getting network address (%s)\n", gai_strerror(sysRet));
    exit(-1);
  }
  aiPtr = aiList;
  while (aiPtr != 0) {
    sfd = socket(aiPtr->ai_family, aiPtr->ai_socktype, aiPtr->ai_protocol);
    if (sfd >= 0) {
      j = 1;
      sysRet = setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, &j, sizeof(j));
      if (sysRet < 0)
        perror("cannot set socket options");
      if (bind(sfd, aiPtr->ai_addr, aiPtr->ai_addrlen) < 0) {
        perror("bind failed ");
        close(sfd);
        exit(-1);
      }
      if (listen(sfd, 5) < 0) {
        close(sfd);
        perror("listen failed ");
        exit(-1);
      } else
        break;
    }
    aiPtr = aiPtr->ai_next;
  }
  freeaddrinfo(aiList);
  if (aiPtr == NULL) {
    printf("could not set up a socket server\n");
    exit(-1);
  }
  return (sfd);
}


x86 assembly (clang, -O0):
<StartTimeServer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
movq   $0x0,-0x50(%rbp)
lea    -0x18(%rbp),%rdi
mov    -0x4(%rbp),%edx
lea    0xe0f(%rip),%rsi
call   10b0 <sprintf@plt>
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1060 <memset@plt>
mov    0x2dcb(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    0x2daf(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
mov    0x2db3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
lea    -0x18(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
lea    -0x40(%rbp),%rdx
lea    -0x48(%rbp),%rcx
call   10d0 <getaddrinfo@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1277 <StartTimeServer+0xa7>
mov    -0xc(%rbp),%edi
call   1050 <gai_strerror@plt>
mov    %rax,%rsi
lea    0xd9d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
mov    -0x48(%rbp),%rax
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
je     137e <StartTimeServer+0x1ae>
mov    -0x50(%rbp),%rax
mov    0x1c(%rax),%edi
mov    -0x50(%rbp),%rax
mov    0x18(%rax),%esi
mov    -0x50(%rbp),%rax
mov    0x10(%rax),%rdx
call   10f0 <socket@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     136e <StartTimeServer+0x19e>
movl   $0x1,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2d25(%rip),%rax
mov    (%rax),%esi
mov    0x2cf4(%rip),%rax
mov    (%rax),%edx
lea    -0x10(%rbp),%rcx
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jge    12f6 <StartTimeServer+0x126>
lea    0xd36(%rip),%rdi
call   10a0 <perror@plt>
mov    -0x8(%rbp),%edi
mov    -0x50(%rbp),%rax
mov    0xc(%rax),%esi
mov    -0x50(%rbp),%rax
mov    0x8(%rax),%edx
call   1090 <bind@plt>
cmp    $0x0,%rax
jge    1334 <StartTimeServer+0x164>
lea    0xd24(%rip),%rdi
call   10a0 <perror@plt>
mov    -0x8(%rbp),%edi
call   1070 <close@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
mov    -0x8(%rbp),%edi
mov    $0x5,%esi
call   1080 <listen@plt>
cmp    $0x0,%rax
jge    1369 <StartTimeServer+0x199>
mov    -0x8(%rbp),%edi
call   1070 <close@plt>
lea    0xcf4(%rip),%rdi
call   10a0 <perror@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
jmp    137e <StartTimeServer+0x1ae>
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x50(%rbp)
jmp    127f <StartTimeServer+0xaf>
mov    -0x48(%rbp),%rdi
call   10e0 <freeaddrinfo@plt>
cmpq   $0x0,-0x50(%rbp)
jne    13aa <StartTimeServer+0x1da>
lea    0xcc4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
mov    -0x8(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<StartTimeServer>:
push   %rbp
push   %r14
push   %rbx
sub    $0x40,%rsp
mov    %edi,%edx
lea    0xe0f(%rip),%rsi
lea    0x38(%rsp),%r14
mov    %r14,%rdi
call   10c0 <sprintf@plt>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1070 <memset@plt>
mov    0x2dbf(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x2c(%rsp)
mov    0x2da2(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x28(%rsp)
movq   $0x0,0x20(%rsp)
mov    0x2da4(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x30(%rsp)
mov    %rsp,%rcx
xor    %edi,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   10e0 <getaddrinfo@plt>
test   %eax,%eax
jne    1321 <StartTimeServer+0x141>
mov    (%rsp),%rbx
test   %rbx,%rbx
je     1343 <StartTimeServer+0x163>
nopw   0x0(%rax,%rax,1)
mov    0x1c(%rbx),%edi
mov    0x18(%rbx),%esi
mov    0x10(%rbx),%rdx
call   1100 <socket@plt>
test   %eax,%eax
jns    12aa <StartTimeServer+0xca>
mov    (%rbx),%rbx
test   %rbx,%rbx
jne    1270 <StartTimeServer+0x90>
mov    (%rsp),%rdi
call   10f0 <freeaddrinfo@plt>
lea    0xdc2(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>
mov    %eax,%ebp
movl   $0x1,0xc(%rsp)
mov    0x2d2d(%rip),%rax
mov    (%rax),%esi
mov    0x2cfc(%rip),%rax
mov    (%rax),%edx
lea    0xc(%rsp),%rcx
mov    %ebp,%edi
mov    $0x4,%r8d
call   1040 <setsockopt@plt>
test   %eax,%eax
js     1313 <StartTimeServer+0x133>
mov    0x8(%rbx),%edx
mov    0xc(%rbx),%esi
mov    %ebp,%edi
call   10a0 <bind@plt>
test   %rax,%rax
js     134a <StartTimeServer+0x16a>
mov    %ebp,%edi
mov    $0x5,%esi
call   1090 <listen@plt>
test   %rax,%rax
js     1367 <StartTimeServer+0x187>
mov    (%rsp),%rdi
call   10f0 <freeaddrinfo@plt>
mov    %ebp,%eax
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
lea    0xd0d(%rip),%rdi
call   10b0 <perror@plt>
jmp    12dc <StartTimeServer+0xfc>
mov    %eax,%edi
call   1060 <gai_strerror@plt>
lea    0xcd4(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>
xor    %edi,%edi
jmp    128f <StartTimeServer+0xaf>
lea    0xcf0(%rip),%rdi
call   10b0 <perror@plt>
mov    %ebp,%edi
call   1080 <close@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>
mov    %ebp,%edi
call   1080 <close@plt>
lea    0xcd9(%rip),%rdi
call   10b0 <perror@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
%struct.addrinfo = type { %struct.addrinfo*, i32, i32, i64, i32, i32, i32 }
@.str = [3 x i8] c"%d\00"
@AF_UNSPEC = global i32 0
@SOCK_STREAM = global i32 0
@AI_PASSIVE = global i32 0
@.str.1 = [36 x i8] c"error getting network address (%s)\0A\00"
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str.2 = [26 x i8] c"cannot set socket options\00"
@.str.3 = [13 x i8] c"bind failed \00"
@.str.4 = [15 x i8] c"listen failed \00"
@.str.5 = [34 x i8] c"could not set up a socket server\0A\00"
define i32 @StartTimeServer(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [8 x i8]
%7 = alloca %struct.addrinfo
%8 = alloca %struct.addrinfo*
%9 = alloca %struct.addrinfo*
store i32 %0, i32* %2
store %struct.addrinfo* null, %struct.addrinfo** %9
%10 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%11 = load i32, i32* %2
%12 = call i32 @sprintf(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = call i32 @memset(%struct.addrinfo* %7, i8 signext 0, i32 40)
%14 = load i32, i32* @AF_UNSPEC
%15 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %7, i32 0, i32 5
store i32 %14, i32* %15
%16 = load i32, i32* @SOCK_STREAM
%17 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %7, i32 0, i32 4
store i32 %16, i32* %17
%18 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %7, i32 0, i32 3
store i64 0, i64* %18
%19 = load i32, i32* @AI_PASSIVE
%20 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %7, i32 0, i32 6
store i32 %19, i32* %20
%21 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%22 = call i32 @getaddrinfo(i32* null, i8* %21, %struct.addrinfo* %7, %struct.addrinfo** %8)
store i32 %22, i32* %4
%23 = load i32, i32* %4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %1
%26 = load i32, i32* %4
%27 = call i8* @gai_strerror(i32 %26)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i8* %27)
%29 = call i32 @exit(i32 -1)
unreachable
30: ; preds = %1
%31 = load %struct.addrinfo*, %struct.addrinfo** %8
store %struct.addrinfo* %31, %struct.addrinfo** %9
br label %32
32: ; preds = %82, %30
%33 = load %struct.addrinfo*, %struct.addrinfo** %9
%34 = icmp ne %struct.addrinfo* %33, null
br i1 %34, label %35, label %86
35: ; preds = %32
%36 = load %struct.addrinfo*, %struct.addrinfo** %9
%37 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %36, i32 0, i32 5
%38 = load i32, i32* %37
%39 = load %struct.addrinfo*, %struct.addrinfo** %9
%40 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %39, i32 0, i32 4
%41 = load i32, i32* %40
%42 = load %struct.addrinfo*, %struct.addrinfo** %9
%43 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %42, i32 0, i32 3
%44 = load i64, i64* %43
%45 = call i32 @socket(i32 %38, i32 %41, i64 %44)
store i32 %45, i32* %3
%46 = load i32, i32* %3
%47 = icmp sge i32 %46, 0
br i1 %47, label %48, label %82
48: ; preds = %35
store i32 1, i32* %5
%49 = load i32, i32* %3
%50 = load i32, i32* @SOL_SOCKET
%51 = load i32, i32* @SO_REUSEADDR
%52 = call i32 @setsockopt(i32 %49, i32 %50, i32 %51, i32* %5, i32 4)
store i32 %52, i32* %4
%53 = load i32, i32* %4
%54 = icmp slt i32 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %48
%56 = call i32 @perror(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
br label %57
57: ; preds = %55, %48
%58 = load i32, i32* %3
%59 = load %struct.addrinfo*, %struct.addrinfo** %9
%60 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %59, i32 0, i32 2
%61 = load i32, i32* %60
%62 = load %struct.addrinfo*, %struct.addrinfo** %9
%63 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %62, i32 0, i32 1
%64 = load i32, i32* %63
%65 = call i64 @bind(i32 %58, i32 %61, i32 %64)
%66 = icmp slt i64 %65, 0
br i1 %66, label %67, label %72
67: ; preds = %57
%68 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%69 = load i32, i32* %3
%70 = call i32 @close(i32 %69)
%71 = call i32 @exit(i32 -1)
unreachable
72: ; preds = %57
%73 = load i32, i32* %3
%74 = call i64 @listen(i32 %73, i32 5)
%75 = icmp slt i64 %74, 0
br i1 %75, label %76, label %81
76: ; preds = %72
%77 = load i32, i32* %3
%78 = call i32 @close(i32 %77)
%79 = call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%80 = call i32 @exit(i32 -1)
unreachable
81: ; preds = %72
br label %86
82: ; preds = %35
%83 = load %struct.addrinfo*, %struct.addrinfo** %9
%84 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %83, i32 0, i32 0
%85 = load %struct.addrinfo*, %struct.addrinfo** %84
store %struct.addrinfo* %85, %struct.addrinfo** %9
br label %32
86: ; preds = %81, %32
%87 = load %struct.addrinfo*, %struct.addrinfo** %8
%88 = call i32 @freeaddrinfo(%struct.addrinfo* %87)
%89 = load %struct.addrinfo*, %struct.addrinfo** %9
%90 = icmp eq %struct.addrinfo* %89, null
br i1 %90, label %91, label %94
91: ; preds = %86
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%93 = call i32 @exit(i32 -1)
unreachable
94: ; preds = %86
%95 = load i32, i32* %3
ret i32 %95
}

LLVM IR (-O2):
%struct.addrinfo = type { %struct.addrinfo*, i32, i32, i64, i32, i32, i32 }
@.str = [3 x i8] c"%d\00"
@AF_UNSPEC = global i32 0
@SOCK_STREAM = global i32 0
@AI_PASSIVE = global i32 0
@.str.1 = [36 x i8] c"error getting network address (%s)\0A\00"
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str.2 = [26 x i8] c"cannot set socket options\00"
@.str.3 = [13 x i8] c"bind failed \00"
@.str.4 = [15 x i8] c"listen failed \00"
@str = [33 x i8] c"could not set up a socket server\00"
define i32 @StartTimeServer(i32 %0) {
%2 = alloca i32
%3 = alloca [8 x i8]
%4 = alloca %struct.addrinfo
%5 = alloca %struct.addrinfo*
%6 = bitcast i32* %2 to i8*
%7 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 0
%8 = bitcast %struct.addrinfo* %4 to i8*
%9 = bitcast %struct.addrinfo** %5 to i8*
%10 = call i32 @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %0)
%11 = call i32 @memset(%struct.addrinfo* %4, i8 signext 0, i32 40)
%12 = load i32, i32* @AF_UNSPEC
%13 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %4, i64 0, i32 5
store i32 %12, i32* %13
%14 = load i32, i32* @SOCK_STREAM
%15 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %4, i64 0, i32 4
store i32 %14, i32* %15
%16 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %4, i64 0, i32 3
store i64 0, i64* %16
%17 = load i32, i32* @AI_PASSIVE
%18 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %4, i64 0, i32 6
store i32 %17, i32* %18
%19 = call i32 @getaddrinfo(i32* null, i8* %7, %struct.addrinfo* %4, %struct.addrinfo** %5)
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %1
%22 = load %struct.addrinfo*, %struct.addrinfo** %5
%23 = icmp eq %struct.addrinfo* %22, null
br i1 %23, label %69, label %28
24: ; preds = %1
%25 = call i8* @gai_strerror(i32 %19)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i8* %25)
%27 = call i32 @exit(i32 -1)
unreachable
28: ; preds = %21, %63
%29 = phi %struct.addrinfo* [ %65, %63 ], [ %22, %21 ]
%30 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %29, i64 0, i32 5
%31 = load i32, i32* %30
%32 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %29, i64 0, i32 4
%33 = load i32, i32* %32
%34 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %29, i64 0, i32 3
%35 = load i64, i64* %34
%36 = call i32 @socket(i32 %31, i32 %33, i64 %35)
%37 = icmp sgt i32 %36, -1
br i1 %37, label %38, label %63
38: ; preds = %28
store i32 1, i32* %2
%39 = load i32, i32* @SOL_SOCKET
%40 = load i32, i32* @SO_REUSEADDR
%41 = call i32 @setsockopt(i32 %36, i32 %39, i32 %40, i32* %2, i32 4)
%42 = icmp slt i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %38
%44 = call i32 @perror(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
br label %45
45: ; preds = %43, %38
%46 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %29, i64 0, i32 2
%47 = load i32, i32* %46
%48 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %29, i64 0, i32 1
%49 = load i32, i32* %48
%50 = call i64 @bind(i32 %36, i32 %47, i32 %49)
%51 = icmp slt i64 %50, 0
br i1 %51, label %52, label %56
52: ; preds = %45
%53 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%54 = call i32 @close(i32 %36)
%55 = call i32 @exit(i32 -1)
unreachable
56: ; preds = %45
%57 = call i64 @listen(i32 %36, i32 5)
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %74
59: ; preds = %56
%60 = call i32 @close(i32 %36)
%61 = call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%62 = call i32 @exit(i32 -1)
unreachable
63: ; preds = %28
%64 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %29, i64 0, i32 0
%65 = load %struct.addrinfo*, %struct.addrinfo** %64
%66 = icmp eq %struct.addrinfo* %65, null
br i1 %66, label %67, label %28
67: ; preds = %63
%68 = load %struct.addrinfo*, %struct.addrinfo** %5
br label %69
69: ; preds = %67, %21
%70 = phi %struct.addrinfo* [ %68, %67 ], [ null, %21 ]
%71 = call i32 @freeaddrinfo(%struct.addrinfo* %70)
%72 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%73 = call i32 @exit(i32 -1)
unreachable
74: ; preds = %56
%75 = load %struct.addrinfo*, %struct.addrinfo** %5
%76 = call i32 @freeaddrinfo(%struct.addrinfo* %75)
ret i32 %36
}