#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_port;
  int /*<<< orphan*/ sin_addr;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ socklen_t;
typedef int /*<<< orphan*/ server_addr;
typedef int /*<<< orphan*/ client_addr;
typedef int /*<<< orphan*/ buff;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ SOCK_DGRAM;
int /*<<< orphan*/ atoi(char *);
scalar_t__ bind(int, struct sockaddr *, int);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ htons(int /*<<< orphan*/);
char *inet_ntop(int /*<<< orphan*/, int /*<<< orphan*/ *, char *, int);
scalar_t__ inet_pton(int /*<<< orphan*/, char *, struct sockaddr *);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int ntohs(int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char *, int);
int recvfrom(int, char *, int, int /*<<< orphan*/, struct sockaddr *,
             int /*<<< orphan*/ *);
int sendto(int, char *, int, int /*<<< orphan*/, struct sockaddr *,
           int /*<<< orphan*/);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int main(int argc, char **argv) {
  struct sockaddr_in server_addr, client_addr;
  socklen_t len;
  int sockfd = -1;
  char buff[128] = {0};
  char cli_buff[128] = {0};
  memset(&server_addr, 0, sizeof(server_addr));
  memset(&client_addr, 0, sizeof(client_addr));
  if (argc != 3) {
    fputs("Usage: udpserver 192.168.1.x 37128\n", stdout);
    return -1;
  }
  server_addr.sin_family = AF_INET;
  server_addr.sin_port = htons(atoi(argv[2]));
  if (inet_pton(AF_INET, argv[1], (struct sockaddr *)&server_addr.sin_addr) <
      0) {
    perror("inet_pton");
    return -1;
  }
  if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) {
    perror("socket");
    return -1;
  }
  if (bind(sockfd, (struct sockaddr *)&server_addr, sizeof(server_addr)) < 0) {
    perror("bind");
    return -1;
  }
  while (1) {
    fputs("Now wait....\n", stdout);
    if (recvfrom(sockfd, buff, 128, 0, (struct sockaddr *)&client_addr, &len) ==
        -1) {
      perror("recvfrom");
      return -1;
    }
    fputs("recv msg from:\n", stdout);
    printf("%s, %d\n", inet_ntop(AF_INET, &client_addr.sin_addr, cli_buff, 128),
           ntohs(client_addr.sin_port));
    fputs(buff, stdout);
    if (sendto(sockfd, buff, sizeof(buff), 0, (struct sockaddr *)&client_addr,
               len) == -1) {
      perror("sendto");
      return -1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xffffffff,-0x38(%rbp)
lea    -0xc0(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1070 <memset@plt>
lea    -0x140(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1070 <memset@plt>
lea    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
cmpl   $0x3,-0x8(%rbp)
je     1261 <main+0x91>
mov    0x2d89(%rip),%rax
mov    (%rax),%esi
lea    0xdb0(%rip),%rdi
call   1060 <fputs@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1441 <main+0x271>
mov    0x2d80(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10e0 <atoi@plt>
mov    %eax,%edi
call   1040 <htons@plt>
mov    %eax,-0x20(%rbp)
mov    0x2d5d(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    -0x20(%rbp),%rdx
add    $0x4,%rdx
call   1090 <inet_pton@plt>
cmp    $0x0,%rax
jge    12c4 <main+0xf4>
lea    0xd71(%rip),%rdi
call   10d0 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1441 <main+0x271>
mov    0x2d1d(%rip),%rax
mov    (%rax),%edi
mov    0x2d0c(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10f0 <socket@plt>
mov    %eax,-0x38(%rbp)
cmp    $0xffffffff,%eax
jne    1301 <main+0x131>
lea    0xd3e(%rip),%rdi
call   10d0 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1441 <main+0x271>
mov    -0x38(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0xc,%edx
call   10c0 <bind@plt>
cmp    $0x0,%rax
jge    1334 <main+0x164>
lea    0xd12(%rip),%rdi
call   10d0 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1441 <main+0x271>
jmp    1339 <main+0x169>
mov    0x2c90(%rip),%rax
mov    (%rax),%esi
lea    0xcf1(%rip),%rdi
call   1060 <fputs@plt>
mov    -0x38(%rbp),%edi
lea    -0xc0(%rbp),%rsi
lea    -0x30(%rbp),%r8
mov    $0x80,%edx
xor    %ecx,%ecx
lea    -0x34(%rbp),%r9
call   10a0 <recvfrom@plt>
cmp    $0xffffffff,%eax
jne    138d <main+0x1bd>
lea    0xccc(%rip),%rdi
call   10d0 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1441 <main+0x271>
mov    0x2c3c(%rip),%rax
mov    (%rax),%esi
lea    0xcb4(%rip),%rdi
call   1060 <fputs@plt>
mov    0x2c3f(%rip),%rax
mov    (%rax),%edi
lea    -0x30(%rbp),%rsi
add    $0x4,%rsi
lea    -0x140(%rbp),%rdx
mov    $0x80,%ecx
call   1030 <inet_ntop@plt>
mov    %rax,-0x148(%rbp)
mov    -0x30(%rbp),%edi
call   10b0 <ntohs@plt>
mov    -0x148(%rbp),%rsi
mov    %eax,%edx
lea    0xc7e(%rip),%rdi
call   1050 <printf@plt>
lea    -0xc0(%rbp),%rdi
mov    0x2bda(%rip),%rax
mov    (%rax),%esi
call   1060 <fputs@plt>
mov    -0x38(%rbp),%edi
lea    -0xc0(%rbp),%rsi
lea    -0x30(%rbp),%r8
mov    -0x34(%rbp),%r9d
mov    $0x80,%edx
xor    %ecx,%ecx
call   1080 <sendto@plt>
cmp    $0xffffffff,%eax
jne    143c <main+0x26c>
lea    0xc3e(%rip),%rdi
call   10d0 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1441 <main+0x271>
jmp    1339 <main+0x169>
mov    -0x4(%rbp),%eax
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
xorps  %xmm0,%xmm0
movaps %xmm0,0x120(%rsp)
movaps %xmm0,0x110(%rsp)
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
lea    0x10(%rsp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
lea    0x20(%rsp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
cmp    $0x3,%ebp
je     12ad <main+0xdd>
mov    0x2d48(%rip),%rax
mov    (%rax),%esi
lea    0xd6f(%rip),%rdi
call   1060 <fputs@plt>
mov    $0xffffffff,%eax
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2d34(%rip),%rbp
mov    0x0(%rbp),%eax
mov    %eax,0x18(%rsp)
mov    0x10(%rbx),%rdi
call   10e0 <atoi@plt>
mov    %eax,%edi
call   1040 <htons@plt>
mov    %eax,0x10(%rsp)
mov    0x0(%rbp),%edi
mov    0x8(%rbx),%rsi
lea    0x14(%rsp),%rdx
call   1090 <inet_pton@plt>
test   %rax,%rax
jns    12f1 <main+0x121>
lea    0xd38(%rip),%rdi
jmp    13fd <main+0x22d>
mov    0x0(%rbp),%edi
mov    0x2ce5(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10f0 <socket@plt>
cmp    $0xffffffff,%eax
jne    1315 <main+0x145>
lea    0xd1e(%rip),%rdi
jmp    13fd <main+0x22d>
mov    %eax,%ebx
lea    0x10(%rsp),%rsi
mov    %eax,%edi
mov    $0xc,%edx
call   10c0 <bind@plt>
test   %rax,%rax
jns    1339 <main+0x169>
lea    0xd01(%rip),%rdi
jmp    13fd <main+0x22d>
mov    0x2c90(%rip),%r15
lea    0xb0(%rsp),%r12
lea    0x20(%rsp),%r13
nopl   (%rax)
mov    (%r15),%esi
lea    0xce0(%rip),%rdi
call   1060 <fputs@plt>
mov    %ebx,%edi
mov    %r12,%rsi
mov    $0x80,%edx
xor    %ecx,%ecx
mov    %r13,%r8
lea    0xc(%rsp),%r9
call   10a0 <recvfrom@plt>
cmp    $0xffffffff,%eax
je     13f6 <main+0x226>
mov    (%r15),%esi
lea    0xcca(%rip),%rdi
call   1060 <fputs@plt>
mov    0x0(%rbp),%edi
lea    0x24(%rsp),%rsi
lea    0x30(%rsp),%rdx
mov    $0x80,%ecx
call   1030 <inet_ntop@plt>
mov    %rax,%r14
mov    0x20(%rsp),%edi
call   10b0 <ntohs@plt>
lea    0xcab(%rip),%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1050 <printf@plt>
mov    (%r15),%esi
mov    %r12,%rdi
call   1060 <fputs@plt>
mov    0xc(%rsp),%r9d
mov    %ebx,%edi
mov    %r12,%rsi
mov    $0x80,%edx
xor    %ecx,%ecx
mov    %r13,%r8
call   1080 <sendto@plt>
cmp    $0xffffffff,%eax
jne    1350 <main+0x180>
lea    0xc75(%rip),%rdi
jmp    13fd <main+0x22d>
lea    0xc4b(%rip),%rdi
call   10d0 <perror@plt>
jmp    1296 <main+0xc6>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@.str = [36 x i8] c"Usage: udpserver 192.168.1.x 37128\0A\00"
@stdout = global i32 0
@AF_INET = global i32 0
@.str.1 = [10 x i8] c"inet_pton\00"
@SOCK_DGRAM = global i32 0
@.str.2 = [7 x i8] c"socket\00"
@.str.3 = [5 x i8] c"bind\00"
@.str.4 = [14 x i8] c"Now wait....\0A\00"
@.str.5 = [9 x i8] c"recvfrom\00"
@.str.6 = [16 x i8] c"recv msg from:\0A\00"
@.str.7 = [8 x i8] c"%s, %d\0A\00"
@.str.8 = [7 x i8] c"sendto\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.sockaddr_in
%7 = alloca %struct.sockaddr_in
%8 = alloca i32
%9 = alloca i32
%10 = alloca [128 x i8]
%11 = alloca [128 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 -1, i32* %9
%12 = bitcast [128 x i8]* %10 to i8*
%13 = bitcast [128 x i8]* %11 to i8*
%14 = call i32 @memset(%struct.sockaddr_in* %6, i32 0, i32 12)
%15 = call i32 @memset(%struct.sockaddr_in* %7, i32 0, i32 12)
%16 = load i32, i32* %4
%17 = icmp ne i32 %16, 3
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = load i32, i32* @stdout
%20 = call i32 @fputs(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 %19)
store i32 -1, i32* %3
br label %88
21: ; preds = %2
%22 = load i32, i32* @AF_INET
%23 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 2
store i32 %22, i32* %23
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 2
%26 = load i8*, i8** %25
%27 = call i32 @atoi(i8* %26)
%28 = call i32 @htons(i32 %27)
%29 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 0
store i32 %28, i32* %29
%30 = load i32, i32* @AF_INET
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 1
%33 = load i8*, i8** %32
%34 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 1
%35 = bitcast i32* %34 to %struct.sockaddr*
%36 = call i64 @inet_pton(i32 %30, i8* %33, %struct.sockaddr* %35)
%37 = icmp slt i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %21
%39 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %3
br label %88
40: ; preds = %21
%41 = load i32, i32* @AF_INET
%42 = load i32, i32* @SOCK_DGRAM
%43 = call i32 @socket(i32 %41, i32 %42, i32 0)
store i32 %43, i32* %9
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %47
45: ; preds = %40
%46 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %3
br label %88
47: ; preds = %40
%48 = load i32, i32* %9
%49 = bitcast %struct.sockaddr_in* %6 to %struct.sockaddr*
%50 = call i64 @bind(i32 %48, %struct.sockaddr* %49, i32 12)
%51 = icmp slt i64 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %47
%53 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %3
br label %88
54: ; preds = %47
br label %55
55: ; preds = %54, %87
%56 = load i32, i32* @stdout
%57 = call i32 @fputs(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %56)
%58 = load i32, i32* %9
%59 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%60 = bitcast %struct.sockaddr_in* %7 to %struct.sockaddr*
%61 = call i32 @recvfrom(i32 %58, i8* %59, i32 128, i32 0, %struct.sockaddr* %60, i32* %8)
%62 = icmp eq i32 %61, -1
br i1 %62, label %63, label %65
63: ; preds = %55
%64 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
store i32 -1, i32* %3
br label %88
65: ; preds = %55
%66 = load i32, i32* @stdout
%67 = call i32 @fputs(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 %66)
%68 = load i32, i32* @AF_INET
%69 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 1
%70 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%71 = call i8* @inet_ntop(i32 %68, i32* %69, i8* %70, i32 128)
%72 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 0
%73 = load i32, i32* %72
%74 = call i32 @ntohs(i32 %73)
%75 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* %71, i32 %74)
%76 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%77 = load i32, i32* @stdout
%78 = call i32 @fputs(i8* %76, i32 %77)
%79 = load i32, i32* %9
%80 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%81 = bitcast %struct.sockaddr_in* %7 to %struct.sockaddr*
%82 = load i32, i32* %8
%83 = call i32 @sendto(i32 %79, i8* %80, i32 128, i32 0, %struct.sockaddr* %81, i32 %82)
%84 = icmp eq i32 %83, -1
br i1 %84, label %85, label %87
85: ; preds = %65
%86 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
store i32 -1, i32* %3
br label %88
87: ; preds = %65
br label %55
88: ; preds = %85, %63, %52, %45, %38, %18
%89 = load i32, i32* %3
ret i32 %89
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@.str = [36 x i8] c"Usage: udpserver 192.168.1.x 37128\0A\00"
@stdout = global i32 0
@AF_INET = global i32 0
@.str.1 = [10 x i8] c"inet_pton\00"
@SOCK_DGRAM = global i32 0
@.str.2 = [7 x i8] c"socket\00"
@.str.3 = [5 x i8] c"bind\00"
@.str.4 = [14 x i8] c"Now wait....\0A\00"
@.str.5 = [9 x i8] c"recvfrom\00"
@.str.6 = [16 x i8] c"recv msg from:\0A\00"
@.str.7 = [8 x i8] c"%s, %d\0A\00"
@.str.8 = [7 x i8] c"sendto\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.sockaddr_in
%4 = alloca %struct.sockaddr_in
%5 = alloca i32
%6 = alloca [128 x i8]
%7 = alloca [128 x i8]
%8 = bitcast %struct.sockaddr_in* %3 to i8*
%9 = bitcast %struct.sockaddr_in* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%12 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%13 = call i32 @memset(%struct.sockaddr_in* %3, i32 0, i32 12)
%14 = call i32 @memset(%struct.sockaddr_in* %4, i32 0, i32 12)
%15 = icmp eq i32 %0, 3
br i1 %15, label %19, label %16
16: ; preds = %2
%17 = load i32, i32* @stdout
%18 = call i32 @fputs(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 %17)
br label %75
19: ; preds = %2
%20 = load i32, i32* @AF_INET
%21 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %20, i32* %21
%22 = getelementptr inbounds i8*, i8** %1, i64 2
%23 = load i8*, i8** %22
%24 = call i32 @atoi(i8* %23)
%25 = call i32 @htons(i32 %24)
%26 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0
store i32 %25, i32* %26
%27 = load i32, i32* @AF_INET
%28 = getelementptr inbounds i8*, i8** %1, i64 1
%29 = load i8*, i8** %28
%30 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1
%31 = bitcast i32* %30 to %struct.sockaddr*
%32 = call i64 @inet_pton(i32 %27, i8* %29, %struct.sockaddr* %31)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %19
%35 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %75
36: ; preds = %19
%37 = load i32, i32* @AF_INET
%38 = load i32, i32* @SOCK_DGRAM
%39 = call i32 @socket(i32 %37, i32 %38, i32 0)
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %43
41: ; preds = %36
%42 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %75
43: ; preds = %36
%44 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%45 = call i64 @bind(i32 %39, %struct.sockaddr* %44, i32 12)
%46 = icmp slt i64 %45, 0
br i1 %46, label %51, label %47
47: ; preds = %43
%48 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%49 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1
%50 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0
br label %53
51: ; preds = %43
%52 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %75
53: ; preds = %47, %60
%54 = load i32, i32* @stdout
%55 = call i32 @fputs(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %54)
%56 = call i32 @recvfrom(i32 %39, i8* %11, i32 128, i32 0, %struct.sockaddr* %48, i32* %5)
%57 = icmp eq i32 %56, -1
br i1 %57, label %58, label %60
58: ; preds = %53
%59 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %75
60: ; preds = %53
%61 = load i32, i32* @stdout
%62 = call i32 @fputs(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 %61)
%63 = load i32, i32* @AF_INET
%64 = call i8* @inet_ntop(i32 %63, i32* %49, i8* %12, i32 128)
%65 = load i32, i32* %50
%66 = call i32 @ntohs(i32 %65)
%67 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* %64, i32 %66)
%68 = load i32, i32* @stdout
%69 = call i32 @fputs(i8* %11, i32 %68)
%70 = load i32, i32* %5
%71 = call i32 @sendto(i32 %39, i8* %11, i32 128, i32 0, %struct.sockaddr* %48, i32 %70)
%72 = icmp eq i32 %71, -1
br i1 %72, label %73, label %53
73: ; preds = %60
%74 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
br label %75
75: ; preds = %73, %58, %51, %41, %34, %16
ret i32 -1
}