#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 timeval {
  int tv_sec;
  scalar_t__ tv_usec;
};
struct sockaddr_un {
  int /*<<< orphan*/ sun_path;
  void *sun_family;
};
struct sockaddr {
  int dummy;
};

/* Variables and functions */
void *AF_UNIX;
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ SOCK_DGRAM;
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_RCVTIMEO;
int /*<<< orphan*/ bind(int, struct sockaddr *, int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ memset(struct sockaddr_un *, int /*<<< orphan*/, int);
int recvfrom(int, char *, int, int /*<<< orphan*/, int /*<<< orphan*/ *,
             int /*<<< orphan*/ *);
int /*<<< orphan*/ remove(char *);
int /*<<< orphan*/ sendto(int, char *, int, int /*<<< orphan*/,
                          struct sockaddr *, int);
int /*<<< orphan*/ setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/,
                              char *, int);
int socket(void *, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strncpy(int /*<<< orphan*/, char *, int);
int main(int argc, char *argv[]) {
  struct sockaddr_un addr_read, addr_write, addr_write_src;
  int wfd, rfd;
  char resp[600];
  const char *msg = "hello";
  rfd = socket(AF_UNIX, SOCK_DGRAM, 0);
  remove("client-socket");
  memset(&addr_read, 0, sizeof(struct sockaddr_un));
  addr_read.sun_family = AF_UNIX;
  strncpy(addr_read.sun_path, "client-socket", sizeof(addr_read.sun_path) - 1);
  bind(rfd, (struct sockaddr *)&addr_read, sizeof(struct sockaddr_un));
  wfd = socket(AF_UNIX, SOCK_DGRAM, 0);
  memset(&addr_write, 0, sizeof(struct sockaddr_un));
  addr_write.sun_family = AF_UNIX;
  strncpy(addr_write.sun_path, "server-socket",
          sizeof(addr_write.sun_path) - 1);
  char keypress[5];
  keypress[0] = 0;
  keypress[1] = 0;
  keypress[2] = 105;
  keypress[3] = 0;
  keypress[4] = 0;
  sendto(wfd, keypress, 5, 0, (struct sockaddr *)&addr_write,
         sizeof(struct sockaddr_un));
  struct timeval tv;
  tv.tv_sec = 2;
  tv.tv_usec = 0;
  setsockopt(rfd, SOL_SOCKET, SO_RCVTIMEO, (char *)&tv, sizeof(struct timeval));
  while (1) {
    int size = recvfrom(rfd, resp, 600, 0, NULL, NULL);
    if (size == -1) {
      fprintf(stderr, "Timed-out, resending\n");
      sendto(wfd, keypress, 5, 0, (struct sockaddr *)&addr_write,
             sizeof(struct sockaddr_un));
    }
    int count = 0;
    while (count < size) {
      fprintf(stderr, "size: %i, data: (%i, %i) -> %c\n", size, resp[count + 0],
              resp[count + 1], resp[count + 3]);
      count += 10;
    }
  }
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2d0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe50(%rip),%rax
mov    %rax,-0x2a8(%rbp)
mov    0x2e22(%rip),%rax
mov    (%rax),%rdi
mov    0x2e10(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10b0 <socket@plt>
mov    %eax,-0x48(%rbp)
lea    0xe2b(%rip),%rdi
call   1040 <remove@plt>
lea    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1060 <memset@plt>
mov    0x2de9(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%edi
lea    0xdfe(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncpy@plt>
mov    -0x48(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0x10,%edx
call   10a0 <bind@plt>
mov    0x2db6(%rip),%rax
mov    (%rax),%rdi
mov    0x2da4(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10b0 <socket@plt>
mov    %eax,-0x44(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1060 <memset@plt>
mov    0x2d89(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%edi
lea    0xdac(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncpy@plt>
movb   $0x0,-0x2ad(%rbp)
movb   $0x0,-0x2ac(%rbp)
movb   $0x69,-0x2ab(%rbp)
movb   $0x0,-0x2aa(%rbp)
movb   $0x0,-0x2a9(%rbp)
mov    -0x44(%rbp),%edi
lea    -0x2ad(%rbp),%rsi
lea    -0x30(%rbp),%r8
mov    $0x5,%edx
xor    %ecx,%ecx
mov    $0x10,%r9d
call   1070 <sendto@plt>
movl   $0x2,-0x2c0(%rbp)
movq   $0x0,-0x2b8(%rbp)
mov    -0x48(%rbp),%edi
mov    0x2d14(%rip),%rax
mov    (%rax),%esi
mov    0x2ceb(%rip),%rax
mov    (%rax),%edx
lea    -0x2c0(%rbp),%rcx
mov    $0x10,%r8d
call   1050 <setsockopt@plt>
mov    -0x48(%rbp),%edi
lea    -0x2a0(%rbp),%rsi
mov    $0x258,%edx
xor    %ecx,%ecx
xor    %eax,%eax
mov    %eax,%r9d
mov    %r9,%r8
call   1090 <recvfrom@plt>
mov    %eax,-0x2c4(%rbp)
cmpl   $0xffffffff,-0x2c4(%rbp)
jne    1359 <main+0x1c9>
mov    0x2c97(%rip),%rax
mov    (%rax),%edi
lea    0xcf0(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x44(%rbp),%edi
lea    -0x2ad(%rbp),%rsi
lea    -0x30(%rbp),%r8
mov    $0x5,%edx
xor    %ecx,%ecx
mov    $0x10,%r9d
call   1070 <sendto@plt>
movl   $0x0,-0x2c8(%rbp)
mov    -0x2c8(%rbp),%eax
cmp    -0x2c4(%rbp),%eax
jge    13e1 <main+0x251>
mov    0x2c44(%rip),%rax
mov    (%rax),%edi
mov    -0x2c4(%rbp),%edx
mov    -0x2c8(%rbp),%eax
add    $0x0,%eax
cltq
movsbl -0x2a0(%rbp,%rax,1),%ecx
ff
mov    -0x2c8(%rbp),%eax
add    $0x1,%eax
cltq
movsbl -0x2a0(%rbp,%rax,1),%r8d
ff ff
mov    -0x2c8(%rbp),%eax
add    $0x3,%eax
cltq
movsbl -0x2a0(%rbp,%rax,1),%r9d
ff ff
lea    0xc72(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x2c8(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x2c8(%rbp)
jmp    1363 <main+0x1d3>
jmp    12f1 <main+0x161>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x298,%rsp
mov    0x2e38(%rip),%r15
mov    (%r15),%rdi
mov    0x2e26(%rip),%r12
mov    (%r12),%esi
xor    %edx,%edx
call   10b0 <socket@plt>
mov    %eax,%ebx
lea    0xe3a(%rip),%rbp
mov    %rbp,%rdi
call   1040 <remove@plt>
lea    0x30(%rsp),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1060 <memset@plt>
mov    (%r15),%rax
mov    %rax,0x38(%rsp)
mov    0x30(%rsp),%edi
mov    %rbp,%rsi
mov    $0x3,%edx
call   1030 <strncpy@plt>
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x10,%edx
call   10a0 <bind@plt>
mov    (%r15),%rdi
mov    (%r12),%esi
xor    %edx,%edx
call   10b0 <socket@plt>
mov    %eax,%ebp
lea    0x10(%rsp),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1060 <memset@plt>
mov    (%r15),%rax
mov    %rax,0x18(%rsp)
mov    0x10(%rsp),%edi
lea    0xdcd(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncpy@plt>
movl   $0x690000,0x7(%rsp)
movb   $0x0,0xb(%rsp)
lea    0x7(%rsp),%rsi
mov    %ebp,0xc(%rsp)
mov    %ebp,%edi
mov    $0x5,%edx
xor    %ecx,%ecx
mov    %r14,%r8
mov    $0x10,%r9d
call   1070 <sendto@plt>
movl   $0x2,0x20(%rsp)
movq   $0x0,0x28(%rsp)
mov    0x2d58(%rip),%rax
mov    (%rax),%esi
mov    0x2d2f(%rip),%rax
mov    (%rax),%edx
lea    0x20(%rsp),%rcx
mov    %ebx,%edi
mov    $0x10,%r8d
call   1050 <setsockopt@plt>
lea    0x40(%rsp),%rbp
mov    0x2d07(%rip),%r13
lea    0xd72(%rip),%r14
jmp    1302 <main+0x172>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x0(%r13),%edi
lea    0xd41(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0xc(%rsp),%edi
lea    0x7(%rsp),%rsi
mov    $0x5,%edx
xor    %ecx,%ecx
lea    0x10(%rsp),%r8
mov    $0x10,%r9d
call   1070 <sendto@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
mov    $0x258,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1090 <recvfrom@plt>
cmp    $0xffffffff,%eax
je     12d0 <main+0x140>
mov    %eax,%r15d
test   %eax,%eax
jle    1302 <main+0x172>
xor    %r12d,%r12d
nopl   0x0(%rax,%rax,1)
mov    0x0(%r13),%edi
movsbl 0x40(%rsp,%r12,1),%ecx
movsbl 0x41(%rsp,%r12,1),%r8d
movsbl 0x43(%rsp,%r12,1),%r9d
mov    %r14,%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
add    $0xa,%r12
cmp    %r12d,%r15d
jg     1330 <main+0x1a0>
jmp    1302 <main+0x172>

LLVM IR (-O0):
%struct.sockaddr_un = type { i32, i8* }
%struct.timeval = type { i32, i64 }
%struct.sockaddr = type { i32 }
@.str = [6 x i8] c"hello\00"
@AF_UNIX = global i8* null
@SOCK_DGRAM = global i32 0
@.str.1 = [14 x i8] c"client-socket\00"
@.str.2 = [14 x i8] c"server-socket\00"
@SOL_SOCKET = global i32 0
@SO_RCVTIMEO = global i32 0
@stderr = global i32 0
@.str.3 = [22 x i8] c"Timed-out, resending\0A\00"
@.str.4 = [32 x i8] c"size: %i, data: (%i, %i) -> %c\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.sockaddr_un
%7 = alloca %struct.sockaddr_un
%8 = alloca %struct.sockaddr_un
%9 = alloca i32
%10 = alloca i32
%11 = alloca [600 x i8]
%12 = alloca i8*
%13 = alloca [5 x i8]
%14 = alloca %struct.timeval
%15 = alloca i32
%16 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %12
%17 = load i8*, i8** @AF_UNIX
%18 = load i32, i32* @SOCK_DGRAM
%19 = call i32 @socket(i8* %17, i32 %18, i32 0)
store i32 %19, i32* %10
%20 = call i32 @remove(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%21 = call i32 @memset(%struct.sockaddr_un* %6, i32 0, i32 16)
%22 = load i8*, i8** @AF_UNIX
%23 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %6, i32 0, i32 1
store i8* %22, i8** %23
%24 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %6, i32 0, i32 0
%25 = load i32, i32* %24
%26 = call i32 @strncpy(i32 %25, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 3)
%27 = load i32, i32* %10
%28 = bitcast %struct.sockaddr_un* %6 to %struct.sockaddr*
%29 = call i32 @bind(i32 %27, %struct.sockaddr* %28, i32 16)
%30 = load i8*, i8** @AF_UNIX
%31 = load i32, i32* @SOCK_DGRAM
%32 = call i32 @socket(i8* %30, i32 %31, i32 0)
store i32 %32, i32* %9
%33 = call i32 @memset(%struct.sockaddr_un* %7, i32 0, i32 16)
%34 = load i8*, i8** @AF_UNIX
%35 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %7, i32 0, i32 1
store i8* %34, i8** %35
%36 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %7, i32 0, i32 0
%37 = load i32, i32* %36
%38 = call i32 @strncpy(i32 %37, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 3)
%39 = getelementptr inbounds [5 x i8], [5 x i8]* %13, i64 0, i64 0
store i8 0, i8* %39
%40 = getelementptr inbounds [5 x i8], [5 x i8]* %13, i64 0, i64 1
store i8 0, i8* %40
%41 = getelementptr inbounds [5 x i8], [5 x i8]* %13, i64 0, i64 2
store i8 105, i8* %41
%42 = getelementptr inbounds [5 x i8], [5 x i8]* %13, i64 0, i64 3
store i8 0, i8* %42
%43 = getelementptr inbounds [5 x i8], [5 x i8]* %13, i64 0, i64 4
store i8 0, i8* %43
%44 = load i32, i32* %9
%45 = getelementptr inbounds [5 x i8], [5 x i8]* %13, i64 0, i64 0
%46 = bitcast %struct.sockaddr_un* %7 to %struct.sockaddr*
%47 = call i32 @sendto(i32 %44, i8* %45, i32 5, i32 0, %struct.sockaddr* %46, i32 16)
%48 = getelementptr inbounds %struct.timeval, %struct.timeval* %14, i32 0, i32 0
store i32 2, i32* %48
%49 = getelementptr inbounds %struct.timeval, %struct.timeval* %14, i32 0, i32 1
store i64 0, i64* %49
%50 = load i32, i32* %10
%51 = load i32, i32* @SOL_SOCKET
%52 = load i32, i32* @SO_RCVTIMEO
%53 = bitcast %struct.timeval* %14 to i8*
%54 = call i32 @setsockopt(i32 %50, i32 %51, i32 %52, i8* %53, i32 16)
br label %55
55: ; preds = %2, %97
%56 = load i32, i32* %10
%57 = getelementptr inbounds [600 x i8], [600 x i8]* %11, i64 0, i64 0
%58 = call i32 @recvfrom(i32 %56, i8* %57, i32 600, i32 0, i32* null, i32* null)
store i32 %58, i32* %15
%59 = load i32, i32* %15
%60 = icmp eq i32 %59, -1
br i1 %60, label %61, label %68
61: ; preds = %55
%62 = load i32, i32* @stderr
%63 = call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%64 = load i32, i32* %9
%65 = getelementptr inbounds [5 x i8], [5 x i8]* %13, i64 0, i64 0
%66 = bitcast %struct.sockaddr_un* %7 to %struct.sockaddr*
%67 = call i32 @sendto(i32 %64, i8* %65, i32 5, i32 0, %struct.sockaddr* %66, i32 16)
br label %68
68: ; preds = %61, %55
store i32 0, i32* %16
br label %69
69: ; preds = %73, %68
%70 = load i32, i32* %16
%71 = load i32, i32* %15
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %97
73: ; preds = %69
%74 = load i32, i32* @stderr
%75 = load i32, i32* %15
%76 = load i32, i32* %16
%77 = add nsw i32 %76, 0
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [600 x i8], [600 x i8]* %11, i64 0, i64 %78
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = load i32, i32* %16
%83 = add nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [600 x i8], [600 x i8]* %11, i64 0, i64 %84
%86 = load i8, i8* %85
%87 = sext i8 %86 to i32
%88 = load i32, i32* %16
%89 = add nsw i32 %88, 3
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [600 x i8], [600 x i8]* %11, i64 0, i64 %90
%92 = load i8, i8* %91
%93 = sext i8 %92 to i32
%94 = call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %75, i32 %81, i32 %87, i32 %93)
%95 = load i32, i32* %16
%96 = add nsw i32 %95, 10
store i32 %96, i32* %16
br label %69
97: ; preds = %69
br label %55
}

LLVM IR (-O2):
%struct.sockaddr_un = type { i32, i8* }
%struct.timeval = type { i32, i64 }
%struct.sockaddr = type { i32 }
@AF_UNIX = global i8* null
@SOCK_DGRAM = global i32 0
@.str.1 = [14 x i8] c"client-socket\00"
@.str.2 = [14 x i8] c"server-socket\00"
@SOL_SOCKET = global i32 0
@SO_RCVTIMEO = global i32 0
@stderr = global i32 0
@.str.3 = [22 x i8] c"Timed-out, resending\0A\00"
@.str.4 = [32 x i8] c"size: %i, data: (%i, %i) -> %c\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca %struct.sockaddr_un
%4 = alloca %struct.sockaddr_un
%5 = alloca [600 x i8]
%6 = alloca [5 x i8]
%7 = alloca %struct.timeval
%8 = bitcast %struct.sockaddr_un* %3 to i8*
%9 = bitcast %struct.sockaddr_un* %4 to i8*
%10 = getelementptr inbounds [600 x i8], [600 x i8]* %5, i64 0, i64 0
%11 = load i8*, i8** @AF_UNIX
%12 = load i32, i32* @SOCK_DGRAM
%13 = tail call i32 @socket(i8* %11, i32 %12, i32 0)
%14 = tail call i32 @remove(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 @memset(%struct.sockaddr_un* %3, i32 0, i32 16)
%16 = load i8*, i8** @AF_UNIX
%17 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %3, i64 0, i32 1
store i8* %16, i8** %17
%18 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %3, i64 0, i32 0
%19 = load i32, i32* %18
%20 = call i32 @strncpy(i32 %19, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 3)
%21 = bitcast %struct.sockaddr_un* %3 to %struct.sockaddr*
%22 = call i32 @bind(i32 %13, %struct.sockaddr* %21, i32 16)
%23 = load i8*, i8** @AF_UNIX
%24 = load i32, i32* @SOCK_DGRAM
%25 = call i32 @socket(i8* %23, i32 %24, i32 0)
%26 = call i32 @memset(%struct.sockaddr_un* %4, i32 0, i32 16)
%27 = load i8*, i8** @AF_UNIX
%28 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %4, i64 0, i32 1
store i8* %27, i8** %28
%29 = getelementptr inbounds %struct.sockaddr_un, %struct.sockaddr_un* %4, i64 0, i32 0
%30 = load i32, i32* %29
%31 = call i32 @strncpy(i32 %30, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 3)
%32 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
store i8 0, i8* %32
%33 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 1
store i8 0, i8* %33
%34 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 2
store i8 105, i8* %34
%35 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 3
store i8 0, i8* %35
%36 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 4
store i8 0, i8* %36
%37 = bitcast %struct.sockaddr_un* %4 to %struct.sockaddr*
%38 = call i32 @sendto(i32 %25, i8* %32, i32 5, i32 0, %struct.sockaddr* %37, i32 16)
%39 = bitcast %struct.timeval* %7 to i8*
%40 = getelementptr inbounds %struct.timeval, %struct.timeval* %7, i64 0, i32 0
store i32 2, i32* %40
%41 = getelementptr inbounds %struct.timeval, %struct.timeval* %7, i64 0, i32 1
store i64 0, i64* %41
%42 = load i32, i32* @SOL_SOCKET
%43 = load i32, i32* @SO_RCVTIMEO
%44 = call i32 @setsockopt(i32 %13, i32 %42, i32 %43, i8* %39, i32 16)
br label %45
45: ; preds = %52, %2
%46 = call i32 @recvfrom(i32 %13, i8* %10, i32 600, i32 0, i32* null, i32* null)
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %53
48: ; preds = %45
%49 = load i32, i32* @stderr
%50 = call i32 (i32, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%51 = call i32 @sendto(i32 %25, i8* %32, i32 5, i32 0, %struct.sockaddr* %37, i32 16)
br label %52
52: ; preds = %55, %48, %53
br label %45
53: ; preds = %45
%54 = icmp sgt i32 %46, 0
br i1 %54, label %55, label %52
55: ; preds = %53, %55
%56 = phi i64 [ %70, %55 ], [ 0, %53 ]
%57 = load i32, i32* @stderr
%58 = getelementptr inbounds [600 x i8], [600 x i8]* %5, i64 0, i64 %56
%59 = load i8, i8* %58
%60 = sext i8 %59 to i32
%61 = or i64 %56, 1
%62 = getelementptr inbounds [600 x i8], [600 x i8]* %5, i64 0, i64 %61
%63 = load i8, i8* %62
%64 = sext i8 %63 to i32
%65 = add nuw nsw i64 %56, 3
%66 = getelementptr inbounds [600 x i8], [600 x i8]* %5, i64 0, i64 %65
%67 = load i8, i8* %66
%68 = sext i8 %67 to i32
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %46, i32 %60, i32 %64, i32 %68)
%70 = add nuw i64 %56, 10
%71 = trunc i64 %70 to i32
%72 = icmp sgt i32 %46, %71
br i1 %72, label %55, label %52
}