#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 sockaddr_in {
  int /*<<< orphan*/ sin_addr;
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int socklen_t;
typedef int /*<<< orphan*/ caddr;
typedef int /*<<< orphan*/ buf;
typedef int /*<<< orphan*/ addr;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ PF_INET;
int /*<<< orphan*/ SOCK_DGRAM;
int bind(int, struct sockaddr *, int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, int, char *,
                           char *);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ inet_aton(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
int recvfrom(int, char *, int, int /*<<< orphan*/, struct sockaddr *, int *);
int /*<<< orphan*/ sendto(int, char *, int, int /*<<< orphan*/,
                          struct sockaddr *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
char *strerror(int /*<<< orphan*/);
int main(void) {
  int fd;
  int ret;
  char buf[1024];
  socklen_t len;
  struct sockaddr_in addr = {};
  struct sockaddr_in caddr = {};
  if ((fd = socket(PF_INET, SOCK_DGRAM, 0)) == -1)
    do {
      fprintf(stderr, "[%s][%d]:%s %s\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/drsin/linuxCoreLearn/refs/heads/"
              "master/apue/day13/updsvr.c",
              28, "socket", strerror(errno));
      exit(EXIT_FAILURE);
    } while (0);
  addr.sin_family = AF_INET;
  addr.sin_port = htons(9999);
  inet_aton("192.168.0.200", &addr.sin_addr);
  if (bind(fd, (struct sockaddr *)&addr, sizeof(addr)) == -1)
    do {
      fprintf(stderr, "[%s][%d]:%s %s\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/drsin/linuxCoreLearn/refs/heads/"
              "master/apue/day13/updsvr.c",
              34, "bind", strerror(errno));
      exit(EXIT_FAILURE);
    } while (0);
  printf("bind!\n");
  len = sizeof(caddr);
  while (1) {
    if ((ret = recvfrom(fd, buf, sizeof(buf), 0, (struct sockaddr *)&caddr,
                        &len)) == -1)
      do {
        fprintf(stderr, "[%s][%d]:%s %s\n",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/drsin/linuxCoreLearn/refs/"
                "heads/master/apue/day13/updsvr.c",
                40, "recvfrom", strerror(errno));
        exit(EXIT_FAILURE);
      } while (0);
    else if (ret > 0) {
      printf("%s", buf);
      sendto(fd, buf, ret, 0, (struct sockaddr *)&caddr, len);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x440,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
lea    -0x430(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
mov    0x2dd1(%rip),%rax
mov    (%rax),%edi
mov    0x2de8(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10d0 <socket@plt>
mov    %eax,-0x8(%rbp)
cmp    $0xffffffff,%eax
jne    1265 <main+0xb5>
jmp    1212 <main+0x62>
mov    0x2db7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x434(%rbp)
mov    0x2da0(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0x434(%rbp),%edi
mov    %rax,%r9
lea    0xdc1(%rip),%rsi
lea    0xdca(%rip),%rdx
mov    $0x1c,%ecx
lea    0xe53(%rip),%r8
call   1070 <fprintf@plt>
mov    0x2d5a(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
mov    0x2d7c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x418(%rbp)
mov    $0x270f,%edi
call   1030 <htons@plt>
mov    %eax,-0x41c(%rbp)
lea    -0x420(%rbp),%rsi
lea    0xe1a(%rip),%rdi
call   1080 <inet_aton@plt>
mov    -0x8(%rbp),%edi
lea    -0x420(%rbp),%rsi
mov    $0xc,%edx
call   10a0 <bind@plt>
cmp    $0xffffffff,%eax
jne    130c <main+0x15c>
jmp    12b9 <main+0x109>
mov    0x2d10(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x438(%rbp)
mov    0x2cf9(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0x438(%rbp),%edi
mov    %rax,%r9
lea    0xd1a(%rip),%rsi
lea    0xd23(%rip),%rdx
mov    $0x22,%ecx
lea    0xdc1(%rip),%r8
call   1070 <fprintf@plt>
mov    0x2cb3(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
lea    0xdac(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xc,-0x414(%rbp)
mov    -0x8(%rbp),%edi
lea    -0x410(%rbp),%rsi
lea    -0x430(%rbp),%r8
mov    $0x400,%edx
xor    %ecx,%ecx
lea    -0x414(%rbp),%r9
call   1090 <recvfrom@plt>
mov    %eax,-0xc(%rbp)
cmp    $0xffffffff,%eax
jne    13ac <main+0x1fc>
jmp    1359 <main+0x1a9>
mov    0x2c70(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x43c(%rbp)
mov    0x2c59(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0x43c(%rbp),%edi
mov    %rax,%r9
lea    0xc7a(%rip),%rsi
lea    0xc83(%rip),%rdx
mov    $0x28,%ecx
lea    0xd2d(%rip),%r8
call   1070 <fprintf@plt>
mov    0x2c13(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
cmpl   $0x0,-0xc(%rbp)
jle    13ed <main+0x23d>
lea    -0x410(%rbp),%rsi
lea    0xd0b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%edi
lea    -0x410(%rbp),%rsi
mov    -0xc(%rbp),%edx
lea    -0x430(%rbp),%r8
mov    -0x414(%rbp),%r9d
xor    %ecx,%ecx
call   1060 <sendto@plt>
jmp    13f2 <main+0x242>
jmp    1324 <main+0x174>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x438,%rsp
movl   $0x0,0x20(%rsp)
movl   $0x0,0x18(%rsp)
movq   $0x0,0x10(%rsp)
mov    0x2ddf(%rip),%rax
mov    (%rax),%edi
mov    0x2df6(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10d0 <socket@plt>
cmp    $0xffffffff,%eax
jne    1230 <main+0x80>
mov    0x2dd1(%rip),%rax
mov    (%rax),%ebx
mov    0x2dc0(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xdea(%rip),%rsi
lea    0xdf3(%rip),%rdx
lea    0xe81(%rip),%r8
mov    %ebx,%edi
mov    $0x1c,%ecx
jmp    1316 <main+0x166>
mov    %eax,%r13d
mov    0x2dae(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x28(%rsp)
mov    $0x270f,%edi
call   1040 <htons@plt>
mov    %eax,0x24(%rsp)
lea    0xe57(%rip),%rdi
lea    0x20(%rsp),%rbx
mov    %rbx,%rsi
call   1080 <inet_aton@plt>
mov    %r13d,%edi
mov    %rbx,%rsi
mov    $0xc,%edx
call   10a0 <bind@plt>
cmp    $0xffffffff,%eax
jne    12ac <main+0xfc>
mov    0x2d52(%rip),%rax
mov    (%rax),%ebx
mov    0x2d41(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xd6b(%rip),%rsi
lea    0xd74(%rip),%rdx
lea    0xe17(%rip),%r8
mov    %ebx,%edi
mov    $0x22,%ecx
jmp    1316 <main+0x166>
lea    0xe18(%rip),%rdi
call   1030 <puts@plt>
movl   $0xc,0xc(%rsp)
lea    0x30(%rsp),%rsi
lea    0x10(%rsp),%r8
lea    0xc(%rsp),%r9
mov    %r13d,%edi
mov    $0x400,%edx
xor    %ecx,%ecx
call   1090 <recvfrom@plt>
cmp    $0xffffffff,%eax
jne    132c <main+0x17c>
mov    0x2ce6(%rip),%rax
mov    (%rax),%ebx
mov    0x2cd5(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xcff(%rip),%rsi
lea    0xd08(%rip),%rdx
lea    0xdb0(%rip),%r8
mov    %ebx,%edi
mov    $0x28,%ecx
mov    %rax,%r9
call   1070 <fprintf@plt>
mov    0x2c93(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
mov    %eax,%ebp
lea    0xd93(%rip),%r14
lea    0x30(%rsp),%rbx
lea    0x10(%rsp),%r15
lea    0xc(%rsp),%r12
jmp    1373 <main+0x1c3>
cs nopw 0x0(%rax,%rax,1)
mov    %r13d,%edi
mov    %rbx,%rsi
mov    $0x400,%edx
xor    %ecx,%ecx
mov    %r15,%r8
mov    %r12,%r9
call   1090 <recvfrom@plt>
mov    %eax,%ebp
cmp    $0xffffffff,%eax
je     12e3 <main+0x133>
test   %ebp,%ebp
jle    1350 <main+0x1a0>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%r9d
mov    %r13d,%edi
mov    %rbx,%rsi
mov    %ebp,%edx
xor    %ecx,%ecx
mov    %r15,%r8
call   1060 <sendto@plt>
jmp    1350 <main+0x1a0>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@PF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@stderr = global i32 0
@.str = [16 x i8] c"[%s][%d]:%s %s\0A\00"
@.str.1 = [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/drsin/linuxCoreLearn/refs/heads/master/apue/day13/updsvr.c\00"
@.str.2 = [7 x i8] c"socket\00"
@errno = global i32 0
@EXIT_FAILURE = global i32 0
@AF_INET = global i32 0
@.str.3 = [14 x i8] c"192.168.0.200\00"
@.str.4 = [5 x i8] c"bind\00"
@.str.5 = [7 x i8] c"bind!\0A\00"
@.str.6 = [9 x i8] c"recvfrom\00"
@.str.7 = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [1024 x i8]
%5 = alloca i32
%6 = alloca %struct.sockaddr_in
%7 = alloca %struct.sockaddr_in
store i32 0, i32* %1
%8 = bitcast %struct.sockaddr_in* %6 to i8*
%9 = bitcast %struct.sockaddr_in* %7 to i8*
%10 = load i32, i32* @PF_INET
%11 = load i32, i32* @SOCK_DGRAM
%12 = call i32 @socket(i32 %10, i32 %11, i32 0)
store i32 %12, i32* %2
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %23
14: ; preds = %0
br label %15
15: ; preds = %14
%16 = load i32, i32* @stderr
%17 = load i32, i32* @errno
%18 = call i8* @strerror(i32 %17)
%19 = call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.1, i64 0, i64 0), i32 28, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %18)
%20 = load i32, i32* @EXIT_FAILURE
%21 = call i32 @exit(i32 %20)
unreachable
22: ; No predecessors!
br label %23
23: ; preds = %22, %0
%24 = load i32, i32* @AF_INET
%25 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 2
store i32 %24, i32* %25
%26 = call i32 @htons(i32 9999)
%27 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 1
store i32 %26, i32* %27
%28 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 0
%29 = call i32 @inet_aton(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32* %28)
%30 = load i32, i32* %2
%31 = bitcast %struct.sockaddr_in* %6 to %struct.sockaddr*
%32 = call i32 @bind(i32 %30, %struct.sockaddr* %31, i32 12)
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %43
34: ; preds = %23
br label %35
35: ; preds = %34
%36 = load i32, i32* @stderr
%37 = load i32, i32* @errno
%38 = call i8* @strerror(i32 %37)
%39 = call i32 @fprintf(i32 %36, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.1, i64 0, i64 0), i32 34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %38)
%40 = load i32, i32* @EXIT_FAILURE
%41 = call i32 @exit(i32 %40)
unreachable
42: ; No predecessors!
br label %43
43: ; preds = %42, %23
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
store i32 12, i32* %5
br label %45
45: ; preds = %43, %73
%46 = load i32, i32* %2
%47 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%48 = bitcast %struct.sockaddr_in* %7 to %struct.sockaddr*
%49 = call i32 @recvfrom(i32 %46, i8* %47, i32 1024, i32 0, %struct.sockaddr* %48, i32* %5)
store i32 %49, i32* %3
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %60
51: ; preds = %45
br label %52
52: ; preds = %51
%53 = load i32, i32* @stderr
%54 = load i32, i32* @errno
%55 = call i8* @strerror(i32 %54)
%56 = call i32 @fprintf(i32 %53, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.1, i64 0, i64 0), i32 40, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8* %55)
%57 = load i32, i32* @EXIT_FAILURE
%58 = call i32 @exit(i32 %57)
unreachable
59: ; No predecessors!
br label %73
60: ; preds = %45
%61 = load i32, i32* %3
%62 = icmp sgt i32 %61, 0
br i1 %62, label %63, label %72
63: ; preds = %60
%64 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %64)
%66 = load i32, i32* %2
%67 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%68 = load i32, i32* %3
%69 = bitcast %struct.sockaddr_in* %7 to %struct.sockaddr*
%70 = load i32, i32* %5
%71 = call i32 @sendto(i32 %66, i8* %67, i32 %68, i32 0, %struct.sockaddr* %69, i32 %70)
br label %72
72: ; preds = %63, %60
br label %73
73: ; preds = %72, %59
br label %45
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@PF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@stderr = global i32 0
@.str = [16 x i8] c"[%s][%d]:%s %s\0A\00"
@.str.1 = [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/drsin/linuxCoreLearn/refs/heads/master/apue/day13/updsvr.c\00"
@.str.2 = [7 x i8] c"socket\00"
@errno = global i32 0
@EXIT_FAILURE = global i32 0
@AF_INET = global i32 0
@.str.3 = [14 x i8] c"192.168.0.200\00"
@.str.4 = [5 x i8] c"bind\00"
@.str.6 = [9 x i8] c"recvfrom\00"
@.str.7 = [3 x i8] c"%s\00"
@str = [6 x i8] c"bind!\00"
define i32 @main() {
%1 = alloca [1024 x i8]
%2 = alloca i32
%3 = alloca %struct.sockaddr_in
%4 = alloca %struct.sockaddr_in
%5 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%6 = bitcast i32* %2 to i8*
%7 = bitcast %struct.sockaddr_in* %3 to i8*
%8 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0
store i32 0, i32* %8
%9 = bitcast %struct.sockaddr_in* %4 to i8*
%10 = load i32, i32* @PF_INET
%11 = load i32, i32* @SOCK_DGRAM
%12 = tail call i32 @socket(i32 %10, i32 %11, i32 0)
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %21
14: ; preds = %0
%15 = load i32, i32* @stderr
%16 = load i32, i32* @errno
%17 = tail call i8* @strerror(i32 %16)
%18 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.1, i64 0, i64 0), i32 28, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %17)
%19 = load i32, i32* @EXIT_FAILURE
%20 = tail call i32 @exit(i32 %19)
unreachable
21: ; preds = %0
%22 = load i32, i32* @AF_INET
%23 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %22, i32* %23
%24 = tail call i32 @htons(i32 9999)
%25 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1
store i32 %24, i32* %25
%26 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0
%27 = call i32 @inet_aton(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32* %26)
%28 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%29 = call i32 @bind(i32 %12, %struct.sockaddr* %28, i32 12)
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %38
31: ; preds = %21
%32 = load i32, i32* @stderr
%33 = load i32, i32* @errno
%34 = call i8* @strerror(i32 %33)
%35 = call i32 @fprintf(i32 %32, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.1, i64 0, i64 0), i32 34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %34)
%36 = load i32, i32* @EXIT_FAILURE
%37 = call i32 @exit(i32 %36)
unreachable
38: ; preds = %21
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
store i32 12, i32* %2
%40 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%41 = call i32 @recvfrom(i32 %12, i8* %5, i32 1024, i32 0, %struct.sockaddr* %40, i32* %2)
%42 = icmp eq i32 %41, -1
br i1 %42, label %43, label %50
43: ; preds = %57, %38
%44 = load i32, i32* @stderr
%45 = load i32, i32* @errno
%46 = call i8* @strerror(i32 %45)
%47 = call i32 @fprintf(i32 %44, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.1, i64 0, i64 0), i32 40, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8* %46)
%48 = load i32, i32* @EXIT_FAILURE
%49 = call i32 @exit(i32 %48)
unreachable
50: ; preds = %38, %57
%51 = phi i32 [ %58, %57 ], [ %41, %38 ]
%52 = icmp sgt i32 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %50
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %5)
%55 = load i32, i32* %2
%56 = call i32 @sendto(i32 %12, i8* %5, i32 %51, i32 0, %struct.sockaddr* %40, i32 %55)
br label %57
57: ; preds = %50, %53
%58 = call i32 @recvfrom(i32 %12, i8* %5, i32 1024, i32 0, %struct.sockaddr* %40, i32* %2)
%59 = icmp eq i32 %58, -1
br i1 %59, label %43, label %50
}