#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 dummy;
};
struct sockaddr {
  int dummy;
};
struct addrinfo {
  int /*<<< orphan*/ ai_addrlen;
  int /*<<< orphan*/ ai_addr;
  int /*<<< orphan*/ ai_protocol;
  int /*<<< orphan*/ ai_socktype;
  int /*<<< orphan*/ ai_family;
};

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ SOCK_DGRAM;
int bind(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ exit(int);
int getaddrinfo(int /*<<< orphan*/ *, char *, struct addrinfo *,
                struct addrinfo **);
int /*<<< orphan*/ memset(struct addrinfo *, int /*<<< orphan*/, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int recvfrom(int, char *, int, int /*<<< orphan*/, struct sockaddr *, int *);
int sendto(int, char *, int, int /*<<< orphan*/, struct sockaddr *, int);
int /*<<< orphan*/ snprintf(char *, int, char *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int strlen(char *);
int main(int argc, char *argv[]) {
  struct addrinfo hint, *result;
  struct sockaddr_in client_addr;
  int res, sfd, client_addr_len;
  char buf[10];
  memset(&hint, 0, sizeof(struct addrinfo));
  hint.ai_family = AF_INET;
  hint.ai_socktype = SOCK_DGRAM;
  res = getaddrinfo(NULL, "8080", &hint, &result);
  if (res == -1) {
    perror("getaddrinfo error!\n");
    exit(1);
  }
  sfd = socket(result->ai_family, result->ai_socktype, result->ai_protocol);
  if (sfd == -1) {
    perror("socket error!\n");
    exit(1);
  }
  res = bind(sfd, result->ai_addr, result->ai_addrlen);
  if (res == -1) {
    perror("bind error!\n");
    exit(1);
  }
  while (1) {
    printf("waiting for client ...\n");
    res = recvfrom(sfd, buf, 10, 0, (struct sockaddr *)&client_addr,
                   &client_addr_len);
    if (res == -1) {
      perror("recvfrom error\n");
      exit(1);
    }
    printf("revceived data : %s\n", buf);
    snprintf(buf, 10, "hello client! Total reveive : %d.", res);
    res = sendto(sfd, buf, strlen(buf), 0, (struct sockaddr *)&client_addr,
                 client_addr_len);
    if (res != strlen(buf)) {
      perror("sendto error\n");
      exit(1);
    }
    printf("send data < %s > to client\n\n", buf);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x28(%rbp),%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1060 <memset@plt>
mov    0x2e0b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    0x2df7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xe07(%rip),%rsi
lea    -0x28(%rbp),%rdx
lea    -0x30(%rbp),%rcx
call   10c0 <getaddrinfo@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0xffffffff,-0x3c(%rbp)
jne    1229 <main+0x79>
lea    0xdeb(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%edi
mov    -0x30(%rbp),%rax
mov    0xc(%rax),%esi
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%edx
call   10d0 <socket@plt>
mov    %eax,-0x40(%rbp)
cmpl   $0xffffffff,-0x40(%rbp)
jne    1266 <main+0xb6>
lea    0xdc2(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    -0x40(%rbp),%edi
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%esi
mov    -0x30(%rbp),%rax
mov    (%rax),%edx
call   1090 <bind@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0xffffffff,-0x3c(%rbp)
jne    129e <main+0xee>
lea    0xd99(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
jmp    12a3 <main+0xf3>
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x40(%rbp),%edi
lea    -0x4e(%rbp),%rsi
lea    -0x38(%rbp),%r8
mov    $0xa,%edx
xor    %ecx,%ecx
lea    -0x44(%rbp),%r9
call   1080 <recvfrom@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0xffffffff,-0x3c(%rbp)
jne    12ef <main+0x13f>
lea    0xd6d(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
lea    -0x4e(%rbp),%rsi
lea    0xd63(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x4e(%rbp),%rdi
mov    -0x3c(%rbp),%ecx
mov    $0xa,%esi
lea    0xd5e(%rip),%rdx
call   1050 <snprintf@plt>
mov    -0x40(%rbp),%eax
mov    %eax,-0x64(%rbp)
lea    -0x4e(%rbp),%rax
mov    %rax,-0x60(%rbp)
lea    -0x4e(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x64(%rbp),%edi
mov    -0x60(%rbp),%rsi
mov    %eax,%edx
lea    -0x38(%rbp),%r8
mov    -0x44(%rbp),%r9d
xor    %ecx,%ecx
call   1070 <sendto@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x54(%rbp)
lea    -0x4e(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x54(%rbp),%eax
cmp    %ecx,%eax
je     137d <main+0x1cd>
lea    0xd26(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
lea    -0x4e(%rbp),%rsi
lea    0xd1a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12a3 <main+0xf3>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
lea    0x30(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1070 <memset@plt>
mov    0x2dff(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x40(%rsp)
mov    0x2dea(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x3c(%rsp)
lea    0xdfd(%rip),%rsi
lea    0x18(%rsp),%rcx
xor    %edi,%edi
mov    %rbx,%rdx
call   10d0 <getaddrinfo@plt>
cmp    $0xffffffff,%eax
jne    1223 <main+0x63>
lea    0xde7(%rip),%rdi
jmp    1366 <main+0x1a6>
mov    0x18(%rsp),%rax
mov    0x10(%rax),%edi
mov    0x8(%rax),%edx
mov    0xc(%rax),%esi
call   10e0 <socket@plt>
cmp    $0xffffffff,%eax
jne    1247 <main+0x87>
lea    0xdd7(%rip),%rdi
jmp    1366 <main+0x1a6>
mov    %eax,%r14d
mov    0x18(%rsp),%rax
mov    (%rax),%edx
mov    0x4(%rax),%esi
mov    %r14d,%edi
call   10a0 <bind@plt>
cmp    $0xffffffff,%eax
jne    126d <main+0xad>
lea    0xdc0(%rip),%rdi
jmp    1366 <main+0x1a6>
lea    0xe33(%rip),%rdi
call   1030 <puts@plt>
lea    0x26(%rsp),%rsi
lea    0x10(%rsp),%r8
lea    0xc(%rsp),%r9
mov    %r14d,%edi
mov    $0xa,%edx
xor    %ecx,%ecx
call   1090 <recvfrom@plt>
cmp    $0xffffffff,%eax
je     1356 <main+0x196>
mov    %eax,%r13d
lea    0x26(%rsp),%rbx
lea    0x10(%rsp),%r12
lea    0xc(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0xd7e(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
lea    0xd7a(%rip),%rdx
mov    %r13d,%ecx
call   1060 <snprintf@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    0xc(%rsp),%r9d
mov    %r14d,%edi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %ecx,%ecx
mov    %r12,%r8
call   1080 <sendto@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1040 <strlen@plt>
cmp    %eax,%ebp
jne    135f <main+0x19f>
lea    0xd6e(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd7a(%rip),%rdi
call   1030 <puts@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0xa,%edx
xor    %ecx,%ecx
mov    %r12,%r8
mov    %r15,%r9
call   1090 <recvfrom@plt>
mov    %eax,%r13d
cmp    $0xffffffff,%eax
jne    12c0 <main+0x100>
lea    0xcd8(%rip),%rdi
jmp    1366 <main+0x1a6>
lea    0xd16(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
%struct.addrinfo = type { i32, i32, i32, i32, i32 }
%struct.sockaddr_in = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@.str = [5 x i8] c"8080\00"
@.str.1 = [20 x i8] c"getaddrinfo error!\0A\00"
@.str.2 = [15 x i8] c"socket error!\0A\00"
@.str.3 = [13 x i8] c"bind error!\0A\00"
@.str.4 = [24 x i8] c"waiting for client ...\0A\00"
@.str.5 = [16 x i8] c"recvfrom error\0A\00"
@.str.6 = [21 x i8] c"revceived data : %s\0A\00"
@.str.7 = [34 x i8] c"hello client! Total reveive : %d.\00"
@.str.8 = [14 x i8] c"sendto error\0A\00"
@.str.9 = [29 x i8] c"send data < %s > to client\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.addrinfo
%7 = alloca %struct.addrinfo*
%8 = alloca %struct.sockaddr_in
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca [10 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = call i32 @memset(%struct.addrinfo* %6, i32 0, i32 20)
%14 = load i32, i32* @AF_INET
%15 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %6, i32 0, i32 4
store i32 %14, i32* %15
%16 = load i32, i32* @SOCK_DGRAM
%17 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %6, i32 0, i32 3
store i32 %16, i32* %17
%18 = call i32 @getaddrinfo(i32* null, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), %struct.addrinfo* %6, %struct.addrinfo** %7)
store i32 %18, i32* %9
%19 = load i32, i32* %9
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %24
21: ; preds = %2
%22 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%23 = call i32 @exit(i32 1)
unreachable
24: ; preds = %2
%25 = load %struct.addrinfo*, %struct.addrinfo** %7
%26 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %25, i32 0, i32 4
%27 = load i32, i32* %26
%28 = load %struct.addrinfo*, %struct.addrinfo** %7
%29 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %28, i32 0, i32 3
%30 = load i32, i32* %29
%31 = load %struct.addrinfo*, %struct.addrinfo** %7
%32 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %31, i32 0, i32 2
%33 = load i32, i32* %32
%34 = call i32 @socket(i32 %27, i32 %30, i32 %33)
store i32 %34, i32* %10
%35 = load i32, i32* %10
%36 = icmp eq i32 %35, -1
br i1 %36, label %37, label %40
37: ; preds = %24
%38 = call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%39 = call i32 @exit(i32 1)
unreachable
40: ; preds = %24
%41 = load i32, i32* %10
%42 = load %struct.addrinfo*, %struct.addrinfo** %7
%43 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %42, i32 0, i32 1
%44 = load i32, i32* %43
%45 = load %struct.addrinfo*, %struct.addrinfo** %7
%46 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %45, i32 0, i32 0
%47 = load i32, i32* %46
%48 = call i32 @bind(i32 %41, i32 %44, i32 %47)
store i32 %48, i32* %9
%49 = load i32, i32* %9
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %54
51: ; preds = %40
%52 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%53 = call i32 @exit(i32 1)
unreachable
54: ; preds = %40
br label %55
55: ; preds = %54, %86
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%57 = load i32, i32* %10
%58 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%59 = bitcast %struct.sockaddr_in* %8 to %struct.sockaddr*
%60 = call i32 @recvfrom(i32 %57, i8* %58, i32 10, i32 0, %struct.sockaddr* %59, i32* %11)
store i32 %60, i32* %9
%61 = load i32, i32* %9
%62 = icmp eq i32 %61, -1
br i1 %62, label %63, label %66
63: ; preds = %55
%64 = call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%65 = call i32 @exit(i32 1)
unreachable
66: ; preds = %55
%67 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i8* %67)
%69 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%70 = load i32, i32* %9
%71 = call i32 @snprintf(i8* %69, i32 10, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), i32 %70)
%72 = load i32, i32* %10
%73 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%74 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%75 = call i32 @strlen(i8* %74)
%76 = bitcast %struct.sockaddr_in* %8 to %struct.sockaddr*
%77 = load i32, i32* %11
%78 = call i32 @sendto(i32 %72, i8* %73, i32 %75, i32 0, %struct.sockaddr* %76, i32 %77)
store i32 %78, i32* %9
%79 = load i32, i32* %9
%80 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%81 = call i32 @strlen(i8* %80)
%82 = icmp ne i32 %79, %81
br i1 %82, label %83, label %86
83: ; preds = %66
%84 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%85 = call i32 @exit(i32 1)
unreachable
86: ; preds = %66
%87 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i8* %87)
br label %55
}

LLVM IR (-O2):
%struct.addrinfo = type { i32, i32, i32, i32, i32 }
%struct.sockaddr_in = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@.str = [5 x i8] c"8080\00"
@.str.1 = [20 x i8] c"getaddrinfo error!\0A\00"
@.str.2 = [15 x i8] c"socket error!\0A\00"
@.str.3 = [13 x i8] c"bind error!\0A\00"
@.str.5 = [16 x i8] c"recvfrom error\0A\00"
@.str.6 = [21 x i8] c"revceived data : %s\0A\00"
@.str.7 = [34 x i8] c"hello client! Total reveive : %d.\00"
@.str.8 = [14 x i8] c"sendto error\0A\00"
@.str.9 = [29 x i8] c"send data < %s > to client\0A\0A\00"
@str = [23 x i8] c"waiting for client ...\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca %struct.addrinfo
%4 = alloca %struct.addrinfo*
%5 = alloca %struct.sockaddr_in
%6 = alloca i32
%7 = alloca [10 x i8]
%8 = bitcast %struct.addrinfo* %3 to i8*
%9 = bitcast %struct.addrinfo** %4 to i8*
%10 = bitcast %struct.sockaddr_in* %5 to i8*
%11 = bitcast i32* %6 to i8*
%12 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%13 = call i32 @memset(%struct.addrinfo* %3, i32 0, i32 20)
%14 = load i32, i32* @AF_INET
%15 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %3, i64 0, i32 4
store i32 %14, i32* %15
%16 = load i32, i32* @SOCK_DGRAM
%17 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %3, i64 0, i32 3
store i32 %16, i32* %17
%18 = call i32 @getaddrinfo(i32* null, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), %struct.addrinfo* %3, %struct.addrinfo** %4)
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %23
20: ; preds = %2
%21 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%22 = call i32 @exit(i32 1)
unreachable
23: ; preds = %2
%24 = load %struct.addrinfo*, %struct.addrinfo** %4
%25 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %24, i64 0, i32 4
%26 = load i32, i32* %25
%27 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %24, i64 0, i32 3
%28 = load i32, i32* %27
%29 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %24, i64 0, i32 2
%30 = load i32, i32* %29
%31 = call i32 @socket(i32 %26, i32 %28, i32 %30)
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %36
33: ; preds = %23
%34 = call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%35 = call i32 @exit(i32 1)
unreachable
36: ; preds = %23
%37 = load %struct.addrinfo*, %struct.addrinfo** %4
%38 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %37, i64 0, i32 1
%39 = load i32, i32* %38
%40 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %37, i64 0, i32 0
%41 = load i32, i32* %40
%42 = call i32 @bind(i32 %31, i32 %39, i32 %41)
%43 = icmp eq i32 %42, -1
br i1 %43, label %49, label %44
44: ; preds = %36
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%46 = bitcast %struct.sockaddr_in* %5 to %struct.sockaddr*
%47 = call i32 @recvfrom(i32 %31, i8* %12, i32 10, i32 0, %struct.sockaddr* %46, i32* %6)
%48 = icmp eq i32 %47, -1
br i1 %48, label %52, label %55
49: ; preds = %36
%50 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%51 = call i32 @exit(i32 1)
unreachable
52: ; preds = %67, %44
%53 = call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%54 = call i32 @exit(i32 1)
unreachable
55: ; preds = %44, %67
%56 = phi i32 [ %70, %67 ], [ %47, %44 ]
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i8* %12)
%58 = call i32 @snprintf(i8* %12, i32 10, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), i32 %56)
%59 = call i32 @strlen(i8* %12)
%60 = load i32, i32* %6
%61 = call i32 @sendto(i32 %31, i8* %12, i32 %59, i32 0, %struct.sockaddr* %46, i32 %60)
%62 = call i32 @strlen(i8* %12)
%63 = icmp eq i32 %61, %62
br i1 %63, label %67, label %64
64: ; preds = %55
%65 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%66 = call i32 @exit(i32 1)
unreachable
67: ; preds = %55
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i8* %12)
%69 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%70 = call i32 @recvfrom(i32 %31, i8* %12, i32 10, i32 0, %struct.sockaddr* %46, i32* %6)
%71 = icmp eq i32 %70, -1
br i1 %71, label %52, label %55
}