#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  int /*<<< orphan*/ sin_family;
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_port;
};
struct sockaddr {
  int dummy;
};
struct in_addr {
  int dummy;
};
struct hostent {
  char *h_name;
};
typedef int socklen_t;
typedef int /*<<< orphan*/ sin;
typedef int /*<<< orphan*/ from;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ IPPROTO_UDP;
int /*<<< orphan*/ SOCK_DGRAM;
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_RCVBUF;
int atoi(char *);
int bind(int, struct sockaddr *, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
struct hostent *gethostbyaddr(TYPE_1__ *, int, int /*<<< orphan*/);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int recvfrom(int, char *, int, int /*<<< orphan*/, struct sockaddr *, int *);
int /*<<< orphan*/ setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/,
                              int *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  int s, r, port, buf_size = 80000;
  struct sockaddr_in sin, from;
  socklen_t fromlen;
  struct hostent *hp;
  char buf[80000];
  if (argc != 2) {
    printf("Usage : %s port\n", argv[0]);
    exit(1);
  }
  port = atoi(argv[1]);
  if (port < 5000) {
    printf("donnez un numero de port superieur a 5000\n");
    exit(1);
  }
  memset(&sin, 0, sizeof(sin));
  sin.sin_family = AF_INET;
  sin.sin_addr.s_addr = INADDR_ANY;
  sin.sin_port = htons(port);
  s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
  if (s == -1) {
    perror("socket");
    exit(2);
  }
  setsockopt(s, SOL_SOCKET, SO_RCVBUF, &buf_size, sizeof(int));
  r = bind(s, (struct sockaddr *)&sin, sizeof(sin));
  if (r == -1) {
    perror("bind");
    exit(3);
  }
  fromlen = sizeof(from);
  for (;;) {
    r = recvfrom(s, buf, 80000, 0, (struct sockaddr *)&from, &fromlen);
    if (r == -1) {
      perror("recvfrom");
      exit(1);
    }
    buf[r] = 0;
    printf("Message received: %s\n", buf);
    hp = gethostbyaddr(&from.sin_addr, sizeof(struct in_addr), from.sin_family);
    if (hp == NULL) {
      fprintf(stderr, "Erreur gethostbyaddr\n");
      continue;
    } else
      printf("Machine emettrice: %s, %d octets recus\n", hp->h_name, r);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x138d0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x13880,-0x20(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     1209 <main+0x49>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1388,-0x1c(%rbp)
jge    123e <main+0x7e>
lea    0xde4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1060 <memset@plt>
mov    0x2d8b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    0x2d77(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x1c(%rbp),%edi
call   1040 <htons@plt>
mov    %eax,-0x28(%rbp)
mov    0x2d68(%rip),%rax
mov    (%rax),%edi
mov    0x2d4f(%rip),%rax
mov    (%rax),%esi
mov    0x2d1e(%rip),%rax
mov    (%rax),%edx
call   10e0 <socket@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
jne    12b4 <main+0xf4>
lea    0xd97(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x2,%edi
call   10d0 <exit@plt>
mov    -0x14(%rbp),%edi
mov    0x2d2a(%rip),%rax
mov    (%rax),%esi
mov    0x2cf9(%rip),%rax
mov    (%rax),%edx
lea    -0x20(%rbp),%rcx
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
mov    -0x14(%rbp),%edi
lea    -0x30(%rbp),%rsi
mov    $0xc,%edx
call   1090 <bind@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0xffffffff,-0x18(%rbp)
jne    130c <main+0x14c>
lea    0xd46(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x3,%edi
call   10d0 <exit@plt>
movl   $0xc,-0x44(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x138d0(%rbp),%rsi
lea    -0x40(%rbp),%r8
mov    $0x13880,%edx
xor    %ecx,%ecx
lea    -0x44(%rbp),%r9
call   1080 <recvfrom@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0xffffffff,-0x18(%rbp)
jne    1354 <main+0x194>
lea    0xd03(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
movslq -0x18(%rbp),%rax
movb   $0x0,-0x138d0(%rbp,%rax,1)
lea    -0x138d0(%rbp),%rsi
lea    0xce3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x40(%rbp),%rdi
add    $0x4,%rdi
mov    -0x40(%rbp),%edx
mov    $0x4,%esi
call   10c0 <gethostbyaddr@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
jne    13b3 <main+0x1f3>
mov    0x2c18(%rip),%rax
mov    (%rax),%edi
lea    0xcbe(%rip),%rsi
call   1070 <fprintf@plt>
jmp    1313 <main+0x153>
mov    -0x50(%rbp),%rax
mov    (%rax),%rsi
mov    -0x18(%rbp),%edx
lea    0xcb9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1313 <main+0x153>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138b8,%rsp
movl   $0x13880,0xc(%rsp)
cmp    $0x2,%edi
jne    1214 <main+0x44>
mov    0x8(%rsi),%rdi
call   10c0 <atoi@plt>
cmp    $0x1387,%eax
jg     122f <main+0x5f>
lea    0xe75(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    (%rsi),%rsi
lea    0xde2(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    %eax,%ebx
lea    0x10(%rsp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
mov    0x2d97(%rip),%rbp
mov    0x0(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    0x2d81(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x14(%rsp)
mov    %ebx,%edi
call   1050 <htons@plt>
mov    %eax,0x18(%rsp)
mov    0x0(%rbp),%edi
mov    0x2d5e(%rip),%rax
mov    (%rax),%esi
mov    0x2d2d(%rip),%rax
mov    (%rax),%edx
call   10f0 <socket@plt>
cmp    $0xffffffff,%eax
jne    129d <main+0xcd>
lea    0xd83(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x2,%edi
call   10e0 <exit@plt>
mov    %eax,%ebp
mov    0x2d42(%rip),%rax
mov    (%rax),%esi
mov    0x2d11(%rip),%rax
mov    (%rax),%edx
lea    0xc(%rsp),%rcx
mov    %ebp,%edi
mov    $0x4,%r8d
call   1040 <setsockopt@plt>
lea    0x10(%rsp),%rsi
mov    %ebp,%edi
mov    $0xc,%edx
call   10a0 <bind@plt>
cmp    $0xffffffff,%eax
jne    12ef <main+0x11f>
lea    0xd38(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x3,%edi
call   10e0 <exit@plt>
movl   $0xc,0x8(%rsp)
lea    0x30(%rsp),%rsi
lea    0x20(%rsp),%r8
lea    0x8(%rsp),%r9
mov    %ebp,%edi
mov    $0x13880,%edx
xor    %ecx,%ecx
call   1090 <recvfrom@plt>
cmp    $0xffffffff,%eax
jne    132f <main+0x15f>
lea    0xcfd(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    %eax,%r14d
lea    0xced(%rip),%r15
lea    0x30(%rsp),%rbx
lea    0x20(%rsp),%r13
lea    0x8(%rsp),%r12
jmp    1384 <main+0x1b4>
nopw   0x0(%rax,%rax,1)
mov    0x2c61(%rip),%rax
mov    (%rax),%edi
lea    0xcdc(%rip),%rsi
call   1080 <fprintf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x13880,%edx
xor    %ecx,%ecx
mov    %r13,%r8
mov    %r12,%r9
call   1090 <recvfrom@plt>
mov    %eax,%r14d
cmp    $0xffffffff,%eax
je     1319 <main+0x149>
movslq %r14d,%rax
movb   $0x0,0x30(%rsp,%rax,1)
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x20(%rsp),%edx
lea    0x24(%rsp),%rdi
mov    $0x4,%esi
call   10d0 <gethostbyaddr@plt>
test   %rax,%rax
je     1350 <main+0x180>
mov    (%rax),%rsi
lea    0xc97(%rip),%rdi
mov    %r14d,%edx
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1365 <main+0x195>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i8* }
%struct.sockaddr = type { i32 }
@.str = [17 x i8] c"Usage : %s port\0A\00"
@.str.1 = [43 x i8] c"donnez un numero de port superieur a 5000\0A\00"
@AF_INET = global i32 0
@INADDR_ANY = global i32 0
@SOCK_DGRAM = global i32 0
@IPPROTO_UDP = global i32 0
@.str.2 = [7 x i8] c"socket\00"
@SOL_SOCKET = global i32 0
@SO_RCVBUF = global i32 0
@.str.3 = [5 x i8] c"bind\00"
@.str.4 = [9 x i8] c"recvfrom\00"
@.str.5 = [22 x i8] c"Message received: %s\0A\00"
@stderr = global i32 0
@.str.6 = [22 x i8] c"Erreur gethostbyaddr\0A\00"
@.str.7 = [40 x i8] c"Machine emettrice: %s, %d octets recus\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca %struct.sockaddr_in
%11 = alloca %struct.sockaddr_in
%12 = alloca i32
%13 = alloca %struct.hostent*
%14 = alloca [80000 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 80000, i32* %9
%15 = load i32, i32* %4
%16 = icmp ne i32 %15, 2
br i1 %16, label %17, label %23
17: ; preds = %2
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 0
%20 = load i8*, i8** %19
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %20)
%22 = call i32 @exit(i32 1)
unreachable
23: ; preds = %2
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = call i32 @atoi(i8* %26)
store i32 %27, i32* %8
%28 = load i32, i32* %8
%29 = icmp slt i32 %28, 5000
br i1 %29, label %30, label %33
30: ; preds = %23
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
%32 = call i32 @exit(i32 1)
unreachable
33: ; preds = %23
%34 = call i32 @memset(%struct.sockaddr_in* %10, i32 0, i32 12)
%35 = load i32, i32* @AF_INET
%36 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 0
store i32 %35, i32* %36
%37 = load i32, i32* @INADDR_ANY
%38 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 1
%39 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %38, i32 0, i32 0
store i32 %37, i32* %39
%40 = load i32, i32* %8
%41 = call i32 @htons(i32 %40)
%42 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 2
store i32 %41, i32* %42
%43 = load i32, i32* @AF_INET
%44 = load i32, i32* @SOCK_DGRAM
%45 = load i32, i32* @IPPROTO_UDP
%46 = call i32 @socket(i32 %43, i32 %44, i32 %45)
store i32 %46, i32* %6
%47 = load i32, i32* %6
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %52
49: ; preds = %33
%50 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%51 = call i32 @exit(i32 2)
unreachable
52: ; preds = %33
%53 = load i32, i32* %6
%54 = load i32, i32* @SOL_SOCKET
%55 = load i32, i32* @SO_RCVBUF
%56 = call i32 @setsockopt(i32 %53, i32 %54, i32 %55, i32* %9, i32 4)
%57 = load i32, i32* %6
%58 = bitcast %struct.sockaddr_in* %10 to %struct.sockaddr*
%59 = call i32 @bind(i32 %57, %struct.sockaddr* %58, i32 12)
store i32 %59, i32* %7
%60 = load i32, i32* %7
%61 = icmp eq i32 %60, -1
br i1 %61, label %62, label %65
62: ; preds = %52
%63 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%64 = call i32 @exit(i32 3)
unreachable
65: ; preds = %52
store i32 12, i32* %12
br label %66
66: ; preds = %97, %88, %65
%67 = load i32, i32* %6
%68 = getelementptr inbounds [80000 x i8], [80000 x i8]* %14, i64 0, i64 0
%69 = bitcast %struct.sockaddr_in* %11 to %struct.sockaddr*
%70 = call i32 @recvfrom(i32 %67, i8* %68, i32 80000, i32 0, %struct.sockaddr* %69, i32* %12)
store i32 %70, i32* %7
%71 = load i32, i32* %7
%72 = icmp eq i32 %71, -1
br i1 %72, label %73, label %76
73: ; preds = %66
%74 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%75 = call i32 @exit(i32 1)
unreachable
76: ; preds = %66
%77 = load i32, i32* %7
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [80000 x i8], [80000 x i8]* %14, i64 0, i64 %78
store i8 0, i8* %79
%80 = getelementptr inbounds [80000 x i8], [80000 x i8]* %14, i64 0, i64 0
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i8* %80)
%82 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 1
%83 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 0
%84 = load i32, i32* %83
%85 = call %struct.hostent* @gethostbyaddr(%struct.TYPE_2__* %82, i32 4, i32 %84)
store %struct.hostent* %85, %struct.hostent** %13
%86 = load %struct.hostent*, %struct.hostent** %13
%87 = icmp eq %struct.hostent* %86, null
br i1 %87, label %88, label %91
88: ; preds = %76
%89 = load i32, i32* @stderr
%90 = call i32 @fprintf(i32 %89, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
br label %66
91: ; preds = %76
%92 = load %struct.hostent*, %struct.hostent** %13
%93 = getelementptr inbounds %struct.hostent, %struct.hostent* %92, i32 0, i32 0
%94 = load i8*, i8** %93
%95 = load i32, i32* %7
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i8* %94, i32 %95)
br label %97
97: ; preds = %91
br label %66
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
%struct.hostent = type { i8* }
@.str = [17 x i8] c"Usage : %s port\0A\00"
@AF_INET = global i32 0
@INADDR_ANY = global i32 0
@SOCK_DGRAM = global i32 0
@IPPROTO_UDP = global i32 0
@.str.2 = [7 x i8] c"socket\00"
@SOL_SOCKET = global i32 0
@SO_RCVBUF = global i32 0
@.str.3 = [5 x i8] c"bind\00"
@.str.4 = [9 x i8] c"recvfrom\00"
@.str.5 = [22 x i8] c"Message received: %s\0A\00"
@stderr = global i32 0
@.str.6 = [22 x i8] c"Erreur gethostbyaddr\0A\00"
@.str.7 = [40 x i8] c"Machine emettrice: %s, %d octets recus\0A\00"
@str = [42 x i8] c"donnez un numero de port superieur a 5000\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca %struct.sockaddr_in
%5 = alloca %struct.sockaddr_in
%6 = alloca i32
%7 = alloca [80000 x i8]
%8 = bitcast i32* %3 to i8*
store i32 80000, i32* %3
%9 = bitcast %struct.sockaddr_in* %4 to i8*
%10 = bitcast %struct.sockaddr_in* %5 to i8*
%11 = bitcast i32* %6 to i8*
%12 = getelementptr inbounds [80000 x i8], [80000 x i8]* %7, i64 0, i64 0
%13 = icmp eq i32 %0, 2
br i1 %13, label %18, label %14
14: ; preds = %2
%15 = load i8*, i8** %1
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %15)
%17 = tail call i32 @exit(i32 1)
unreachable
18: ; preds = %2
%19 = getelementptr inbounds i8*, i8** %1, i64 1
%20 = load i8*, i8** %19
%21 = tail call i32 @atoi(i8* %20)
%22 = icmp slt i32 %21, 5000
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
%25 = tail call i32 @exit(i32 1)
unreachable
26: ; preds = %18
%27 = call i32 @memset(%struct.sockaddr_in* %4, i32 0, i32 12)
%28 = load i32, i32* @AF_INET
%29 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0
store i32 %28, i32* %29
%30 = load i32, i32* @INADDR_ANY
%31 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1, i32 0
store i32 %30, i32* %31
%32 = call i32 @htons(i32 %21)
%33 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 2
store i32 %32, i32* %33
%34 = load i32, i32* @AF_INET
%35 = load i32, i32* @SOCK_DGRAM
%36 = load i32, i32* @IPPROTO_UDP
%37 = call i32 @socket(i32 %34, i32 %35, i32 %36)
%38 = icmp eq i32 %37, -1
br i1 %38, label %39, label %42
39: ; preds = %26
%40 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%41 = call i32 @exit(i32 2)
unreachable
42: ; preds = %26
%43 = load i32, i32* @SOL_SOCKET
%44 = load i32, i32* @SO_RCVBUF
%45 = call i32 @setsockopt(i32 %37, i32 %43, i32 %44, i32* %3, i32 4)
%46 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%47 = call i32 @bind(i32 %37, %struct.sockaddr* %46, i32 12)
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %52
49: ; preds = %42
%50 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%51 = call i32 @exit(i32 3)
unreachable
52: ; preds = %42
store i32 12, i32* %6
%53 = bitcast %struct.sockaddr_in* %5 to %struct.sockaddr*
%54 = call i32 @recvfrom(i32 %37, i8* %12, i32 80000, i32 0, %struct.sockaddr* %53, i32* %6)
%55 = icmp eq i32 %54, -1
br i1 %55, label %59, label %56
56: ; preds = %52
%57 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 1
%58 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 0
br label %62
59: ; preds = %73, %52
%60 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%61 = call i32 @exit(i32 1)
unreachable
62: ; preds = %56, %73
%63 = phi i32 [ %54, %56 ], [ %74, %73 ]
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [80000 x i8], [80000 x i8]* %7, i64 0, i64 %64
store i8 0, i8* %65
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i8* %12)
%67 = load i32, i32* %58
%68 = call %struct.hostent* @gethostbyaddr(%struct.TYPE_2__* %57, i32 4, i32 %67)
%69 = icmp eq %struct.hostent* %68, null
br i1 %69, label %70, label %76
70: ; preds = %62
%71 = load i32, i32* @stderr
%72 = call i32 @fprintf(i32 %71, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
br label %73
73: ; preds = %70, %76
%74 = call i32 @recvfrom(i32 %37, i8* %12, i32 80000, i32 0, %struct.sockaddr* %53, i32* %6)
%75 = icmp eq i32 %74, -1
br i1 %75, label %59, label %62
76: ; preds = %62
%77 = getelementptr inbounds %struct.hostent, %struct.hostent* %68, i64 0, i32 0
%78 = load i8*, i8** %77
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i8* %78, i32 %63)
br label %73
}