#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 {
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ echoserver;
typedef int /*<<< orphan*/ echoclient;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ Die(char *);
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ IPPROTO_UDP;
int /*<<< orphan*/ PF_INET;
int /*<<< orphan*/ SOCK_DGRAM;
int /*<<< orphan*/ atoi(char *);
scalar_t__ bind(int, struct sockaddr *, unsigned int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ htonl(int /*<<< orphan*/);
int /*<<< orphan*/ htons(int /*<<< orphan*/);
char *inet_ntoa(TYPE_1__);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int recvfrom(int, char *, int, int /*<<< orphan*/, struct sockaddr *,
             unsigned int *);
int sendto(int, char *, int, int /*<<< orphan*/, struct sockaddr *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  int sock;
  int i;
  struct sockaddr_in echoserver;
  struct sockaddr_in echoclient;
  char buffer[255];
  unsigned int echolen, clientlen, serverlen;
  int received = 0;
  if (argc != 2) {
    fprintf(stderr, "USAGE: %s <port>\n", argv[0]);
    exit(1);
  }
  if ((sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
    Die("Failed to create socket");
  }
  memset(&echoserver, 0, sizeof(echoserver));
  echoserver.sin_family = AF_INET;
  echoserver.sin_addr.s_addr = htonl(INADDR_ANY);
  echoserver.sin_port = htons(atoi(argv[1]));
  serverlen = sizeof(echoserver);
  if (bind(sock, (struct sockaddr *)&echoserver, serverlen) < 0) {
    Die("Failed to bind server socket");
  }
  while (1) {
    clientlen = sizeof(echoclient);
    if ((received = recvfrom(sock, buffer, 255, 0,
                             (struct sockaddr *)&echoclient, &clientlen)) < 0) {
      Die("Failed to receive message");
    }
    fprintf(stderr, "Client connected: %s\n", inet_ntoa(echoclient.sin_addr));
    fprintf(stderr, "Received data: ");
    for (i = 0; i < received; i++) {
      fprintf(stderr, "%02x ", (unsigned char)buffer[i]);
    }
    fprintf(stderr, "\n");
    if (sendto(sock, buffer, received, 0, (struct sockaddr *)&echoclient,
               sizeof(echoclient)) != received) {
      Die("Mismatch in number of echo'd bytes");
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x150(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     1215 <main+0x55>
mov    0x2dd4(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xdfc(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x2da4(%rip),%rax
mov    (%rax),%edi
mov    0x2db3(%rip),%rax
mov    (%rax),%esi
mov    0x2d82(%rip),%rax
mov    (%rax),%edx
call   10e0 <socket@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jge    124d <main+0x8d>
lea    0xdca(%rip),%rdi
call   10a0 <Die@plt>
lea    -0x28(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1060 <memset@plt>
mov    0x2d84(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    0x2d70(%rip),%rax
mov    (%rax),%edi
call   1050 <htonl@plt>
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10c0 <atoi@plt>
mov    %eax,%edi
call   1040 <htons@plt>
mov    %eax,-0x24(%rbp)
movl   $0xc,-0x14c(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x28(%rbp),%rsi
mov    -0x14c(%rbp),%edx
call   10b0 <bind@plt>
cmp    $0x0,%rax
jge    12c3 <main+0x103>
lea    0xd6c(%rip),%rdi
call   10a0 <Die@plt>
jmp    12c8 <main+0x108>
movl   $0xc,-0x148(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x140(%rbp),%rsi
lea    -0x38(%rbp),%r8
mov    $0xff,%edx
xor    %ecx,%ecx
lea    -0x148(%rbp),%r9
call   1090 <recvfrom@plt>
mov    %eax,-0x150(%rbp)
cmp    $0x0,%eax
jge    130e <main+0x14e>
lea    0xd3e(%rip),%rdi
call   10a0 <Die@plt>
mov    0x2cb3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x154(%rbp)
mov    -0x38(%rbp),%edi
call   1030 <inet_ntoa@plt>
mov    -0x154(%rbp),%edi
mov    %rax,%rdx
lea    0xd2c(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2c85(%rip),%rax
mov    (%rax),%edi
lea    0xd2b(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x150(%rbp),%eax
jge    139a <main+0x1da>
mov    0x2c58(%rip),%rax
mov    (%rax),%edi
movslq -0x18(%rbp),%rax
movzbl -0x140(%rbp,%rax,1),%edx
ff
lea    0xd02(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    135a <main+0x19a>
mov    0x2c27(%rip),%rax
mov    (%rax),%edi
lea    0xc66(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x14(%rbp),%edi
lea    -0x140(%rbp),%rsi
mov    -0x150(%rbp),%edx
lea    -0x38(%rbp),%r8
xor    %ecx,%ecx
mov    $0xc,%r9d
call   1070 <sendto@plt>
cmp    -0x150(%rbp),%eax
je     13ea <main+0x22a>
lea    0xca8(%rip),%rdi
call   10a0 <Die@plt>
jmp    12c8 <main+0x108>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
mov    %rsi,%r14
cmp    $0x2,%edi
jne    137f <main+0x1bf>
mov    0x2ddc(%rip),%rax
mov    (%rax),%edi
mov    0x2deb(%rip),%rax
mov    (%rax),%esi
mov    0x2dba(%rip),%rax
mov    (%rax),%edx
call   10e0 <socket@plt>
mov    %eax,%r15d
test   %eax,%eax
jns    1210 <main+0x50>
lea    0xe07(%rip),%rdi
call   10a0 <Die@plt>
lea    0x10(%rsp),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1060 <memset@plt>
mov    0x2dbd(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x18(%rsp)
mov    0x2da8(%rip),%rax
mov    (%rax),%edi
call   1050 <htonl@plt>
mov    %eax,0x10(%rsp)
mov    0x8(%r14),%rdi
call   10c0 <atoi@plt>
mov    %eax,%edi
call   1040 <htons@plt>
mov    %eax,0x14(%rsp)
mov    %r15d,%edi
mov    %rbp,%rsi
mov    $0xc,%edx
call   10b0 <bind@plt>
test   %rax,%rax
jns    1278 <main+0xb8>
lea    0xdb7(%rip),%rdi
call   10a0 <Die@plt>
lea    0x30(%rsp),%rbp
lea    0x20(%rsp),%rbx
mov    0x2d3f(%rip),%r14
lea    0xdf7(%rip),%r12
mov    %r15d,0x8(%rsp)
cs nopw 0x0(%rax,%rax,1)
nop
movl   $0xc,0xc(%rsp)
mov    %r15d,%edi
mov    %rbp,%rsi
mov    $0xff,%edx
xor    %ecx,%ecx
mov    %rbx,%r8
lea    0xc(%rsp),%r9
call   1090 <recvfrom@plt>
mov    %eax,%r13d
test   %eax,%eax
jns    12d5 <main+0x115>
lea    0xd77(%rip),%rdi
call   10a0 <Die@plt>
mov    (%r14),%ebp
mov    0x20(%rsp),%edi
call   1030 <inet_ntoa@plt>
mov    %ebp,%edi
lea    0xd77(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%r14),%edi
lea    0xd79(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
test   %r13d,%r13d
jle    132c <main+0x16c>
mov    %r13d,%ebp
xor    %r15d,%r15d
mov    (%r14),%edi
movzbl 0x30(%rsp,%r15,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
add    $0x1,%r15
cmp    %r15,%rbp
jne    1310 <main+0x150>
mov    (%r14),%edi
lea    0xcda(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x8(%rsp),%r15d
mov    %r15d,%edi
lea    0x30(%rsp),%rbp
mov    %rbp,%rsi
mov    %r13d,%edx
xor    %ecx,%ecx
lea    0x20(%rsp),%rbx
mov    %rbx,%r8
mov    $0xc,%r9d
call   1070 <sendto@plt>
cmp    %r13d,%eax
je     12a0 <main+0xe0>
lea    0xd18(%rip),%rdi
call   10a0 <Die@plt>
jmp    12a0 <main+0xe0>
mov    0x2c42(%rip),%rax
mov    (%rax),%edi
mov    (%r14),%rdx
lea    0xc6e(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@stderr = global i32 0
@.str = [18 x i8] c"USAGE: %s <port>\0A\00"
@PF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@IPPROTO_UDP = global i32 0
@.str.1 = [24 x i8] c"Failed to create socket\00"
@AF_INET = global i32 0
@INADDR_ANY = global i32 0
@.str.2 = [29 x i8] c"Failed to bind server socket\00"
@.str.3 = [26 x i8] c"Failed to receive message\00"
@.str.4 = [22 x i8] c"Client connected: %s\0A\00"
@.str.5 = [16 x i8] c"Received data: \00"
@.str.6 = [6 x i8] c"%02x \00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [35 x i8] c"Mismatch in number of echo'd bytes\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 %struct.sockaddr_in
%9 = alloca %struct.sockaddr_in
%10 = alloca [255 x i8]
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %14
%15 = load i32, i32* %4
%16 = icmp ne i32 %15, 2
br i1 %16, label %17, label %24
17: ; preds = %2
%18 = load i32, i32* @stderr
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %21)
%23 = call i32 @exit(i32 1)
unreachable
24: ; preds = %2
%25 = load i32, i32* @PF_INET
%26 = load i32, i32* @SOCK_DGRAM
%27 = load i32, i32* @IPPROTO_UDP
%28 = call i32 @socket(i32 %25, i32 %26, i32 %27)
store i32 %28, i32* %6
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %24
%31 = call i32 @Die(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
br label %32
32: ; preds = %30, %24
%33 = call i32 @memset(%struct.sockaddr_in* %8, i32 0, i32 12)
%34 = load i32, i32* @AF_INET
%35 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %8, i32 0, i32 2
store i32 %34, i32* %35
%36 = load i32, i32* @INADDR_ANY
%37 = call i32 @htonl(i32 %36)
%38 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %8, i32 0, i32 0
%39 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %38, i32 0, i32 0
store i32 %37, i32* %39
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 1
%42 = load i8*, i8** %41
%43 = call i32 @atoi(i8* %42)
%44 = call i32 @htons(i32 %43)
%45 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %8, i32 0, i32 1
store i32 %44, i32* %45
store i32 12, i32* %13
%46 = load i32, i32* %6
%47 = bitcast %struct.sockaddr_in* %8 to %struct.sockaddr*
%48 = load i32, i32* %13
%49 = call i64 @bind(i32 %46, %struct.sockaddr* %47, i32 %48)
%50 = icmp slt i64 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %32
%52 = call i32 @Die(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
br label %53
53: ; preds = %51, %32
br label %54
54: ; preds = %53, %98
store i32 12, i32* %12
%55 = load i32, i32* %6
%56 = getelementptr inbounds [255 x i8], [255 x i8]* %10, i64 0, i64 0
%57 = bitcast %struct.sockaddr_in* %9 to %struct.sockaddr*
%58 = call i32 @recvfrom(i32 %55, i8* %56, i32 255, i32 0, %struct.sockaddr* %57, i32* %12)
store i32 %58, i32* %14
%59 = icmp slt i32 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %54
%61 = call i32 @Die(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
br label %62
62: ; preds = %60, %54
%63 = load i32, i32* @stderr
%64 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 0
%65 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %64, i32 0, i32 0
%66 = load i32, i32* %65
%67 = call i8* @inet_ntoa(i32 %66)
%68 = call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i8* %67)
%69 = load i32, i32* @stderr
%70 = call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %7
br label %71
71: ; preds = %83, %62
%72 = load i32, i32* %7
%73 = load i32, i32* %14
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %86
75: ; preds = %71
%76 = load i32, i32* @stderr
%77 = load i32, i32* %7
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [255 x i8], [255 x i8]* %10, i64 0, i64 %78
%80 = load i8, i8* %79
%81 = zext i8 %80 to i32
%82 = call i32 (i32, i8*, ...) @fprintf(i32 %76, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %81)
br label %83
83: ; preds = %75
%84 = load i32, i32* %7
%85 = add nsw i32 %84, 1
store i32 %85, i32* %7
br label %71
86: ; preds = %71
%87 = load i32, i32* @stderr
%88 = call i32 (i32, i8*, ...) @fprintf(i32 %87, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%89 = load i32, i32* %6
%90 = getelementptr inbounds [255 x i8], [255 x i8]* %10, i64 0, i64 0
%91 = load i32, i32* %14
%92 = bitcast %struct.sockaddr_in* %9 to %struct.sockaddr*
%93 = call i32 @sendto(i32 %89, i8* %90, i32 %91, i32 0, %struct.sockaddr* %92, i32 12)
%94 = load i32, i32* %14
%95 = icmp ne i32 %93, %94
br i1 %95, label %96, label %98
96: ; preds = %86
%97 = call i32 @Die(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0))
br label %98
98: ; preds = %96, %86
br label %54
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@stderr = global i32 0
@.str = [18 x i8] c"USAGE: %s <port>\0A\00"
@PF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@IPPROTO_UDP = global i32 0
@.str.1 = [24 x i8] c"Failed to create socket\00"
@AF_INET = global i32 0
@INADDR_ANY = global i32 0
@.str.2 = [29 x i8] c"Failed to bind server socket\00"
@.str.3 = [26 x i8] c"Failed to receive message\00"
@.str.4 = [22 x i8] c"Client connected: %s\0A\00"
@.str.5 = [16 x i8] c"Received data: \00"
@.str.6 = [6 x i8] c"%02x \00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [35 x i8] c"Mismatch in number of echo'd bytes\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.sockaddr_in
%4 = alloca %struct.sockaddr_in
%5 = alloca [255 x i8]
%6 = alloca i32
%7 = bitcast %struct.sockaddr_in* %3 to i8*
%8 = bitcast %struct.sockaddr_in* %4 to i8*
%9 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%10 = bitcast i32* %6 to i8*
%11 = icmp eq i32 %0, 2
br i1 %11, label %17, label %12
12: ; preds = %2
%13 = load i32, i32* @stderr
%14 = load i8*, i8** %1
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = tail call i32 @exit(i32 1)
unreachable
17: ; preds = %2
%18 = load i32, i32* @PF_INET
%19 = load i32, i32* @SOCK_DGRAM
%20 = load i32, i32* @IPPROTO_UDP
%21 = tail call i32 @socket(i32 %18, i32 %19, i32 %20)
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %17
%24 = tail call i32 @Die(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
br label %25
25: ; preds = %23, %17
%26 = call i32 @memset(%struct.sockaddr_in* %3, i32 0, i32 12)
%27 = load i32, i32* @AF_INET
%28 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %27, i32* %28
%29 = load i32, i32* @INADDR_ANY
%30 = call i32 @htonl(i32 %29)
%31 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0, i32 0
store i32 %30, i32* %31
%32 = getelementptr inbounds i8*, i8** %1, i64 1
%33 = load i8*, i8** %32
%34 = call i32 @atoi(i8* %33)
%35 = call i32 @htons(i32 %34)
%36 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1
store i32 %35, i32* %36
%37 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%38 = call i64 @bind(i32 %21, %struct.sockaddr* %37, i32 12)
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %25
%41 = call i32 @Die(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
br label %42
42: ; preds = %40, %25
%43 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%44 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0, i32 0
br label %45
45: ; preds = %76, %42
store i32 12, i32* %6
%46 = call i32 @recvfrom(i32 %21, i8* %9, i32 255, i32 0, %struct.sockaddr* %43, i32* %6)
%47 = icmp slt i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = call i32 @Die(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
br label %50
50: ; preds = %48, %45
%51 = load i32, i32* @stderr
%52 = load i32, i32* %44
%53 = call i8* @inet_ntoa(i32 %52)
%54 = call i32 (i32, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i8* %53)
%55 = load i32, i32* @stderr
%56 = call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%57 = icmp sgt i32 %46, 0
br i1 %57, label %58, label %69
58: ; preds = %50
%59 = zext i32 %46 to i64
br label %60
60: ; preds = %58, %60
%61 = phi i64 [ 0, %58 ], [ %67, %60 ]
%62 = load i32, i32* @stderr
%63 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 %61
%64 = load i8, i8* %63
%65 = zext i8 %64 to i32
%66 = call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %65)
%67 = add nuw nsw i64 %61, 1
%68 = icmp eq i64 %67, %59
br i1 %68, label %69, label %60
69: ; preds = %60, %50
%70 = load i32, i32* @stderr
%71 = call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%72 = call i32 @sendto(i32 %21, i8* %9, i32 %46, i32 0, %struct.sockaddr* %43, i32 12)
%73 = icmp eq i32 %72, %46
br i1 %73, label %76, label %74
74: ; preds = %69
%75 = call i32 @Die(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0))
br label %76
76: ; preds = %74, %69
br label %45
}