#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_ll {
  int /*<<< orphan*/ sll_ifindex;
  int /*<<< orphan*/ sll_protocol;
  int /*<<< orphan*/ sll_family;
};
struct sockaddr {
  int dummy;
};
struct ifreq {
  int /*<<< orphan*/ ifr_ifindex;
  int /*<<< orphan*/ ifr_name;
};
typedef int /*<<< orphan*/ saddr;

/* Variables and functions */
int /*<<< orphan*/ AF_PACKET;
int /*<<< orphan*/ ETH_P_ALL;
int /*<<< orphan*/ IFNAMSIZ;
int /*<<< orphan*/ PF_PACKET;
int /*<<< orphan*/ SIOCGIFINDEX;
int /*<<< orphan*/ SOCK_RAW;
scalar_t__ bind(int, struct sockaddr *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ htons(int /*<<< orphan*/);
int ioctl(int, int /*<<< orphan*/, struct ifreq *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ print_hex(char *, int);
int /*<<< orphan*/ printf(char *, ...);
int recvfrom(int, char *, int, int /*<<< orphan*/, int /*<<< orphan*/ *,
             int /*<<< orphan*/ *);
scalar_t__ sendto(int, char *, int, int /*<<< orphan*/, int /*<<< orphan*/ *,
                  int /*<<< orphan*/);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ strncpy(int /*<<< orphan*/, char *, int /*<<< orphan*/);
int main(int argc, char **argv) {
  int sock, n;
  char buffer[2048];
  char sendbuf[2048];
  struct ifreq ethreq;
  struct sockaddr_ll saddr;
  int packet_num = 1;
  int i;
  for (i = 0; i < 2048; i++) {
    buffer[i] = 0;
    sendbuf[i] = 0;
  }
  if ((sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL))) < 0) {
    perror("socket");
    exit(1);
  }
  strncpy(ethreq.ifr_name, "nf0", IFNAMSIZ);
  if (ioctl(sock, SIOCGIFINDEX, &ethreq) == -1) {
    perror("ioctl");
    close(sock);
    exit(1);
  }
  saddr.sll_family = AF_PACKET;
  saddr.sll_protocol = htons(ETH_P_ALL);
  saddr.sll_ifindex = ethreq.ifr_ifindex;
  if (bind(sock, (struct sockaddr *)(&(saddr)), sizeof(saddr)) < 0) {
    perror("Bind");
    close(sock);
    exit(1);
  }
  sendbuf[0] = 0xfe;
  sendbuf[1] = 0xca;
  sendbuf[2] = 0xae;
  sendbuf[7] = 0x03;
  sendbuf[32] = 0x0a;
  sendbuf[33] = 0x0b;
  sendbuf[34] = 0x0c;
  sendbuf[35] = 0x0d;
  sendbuf[36] = 0x1a;
  sendbuf[37] = 0x1b;
  sendbuf[38] = 0x1c;
  sendbuf[39] = 0x1d;
  if (sendto(sock, sendbuf, 100, 0, NULL, 0) <= 0)
    printf("Error send\n");
  ;
  while (1) {
    n = recvfrom(sock, buffer, 2048, 0, NULL, NULL);
    printf("Packet%d -----------------------------------------------------\n",
           packet_num);
    print_hex(buffer, n);
    packet_num++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1050,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x103c(%rbp)
movl   $0x0,-0x1040(%rbp)
cmpl   $0x800,-0x1040(%rbp)
jge    122f <main+0x6f>
movslq -0x1040(%rbp),%rax
movb   $0x0,-0x820(%rbp,%rax,1)
movslq -0x1040(%rbp),%rax
movb   $0x0,-0x1020(%rbp,%rax,1)
mov    -0x1040(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1040(%rbp)
jmp    11ed <main+0x2d>
mov    0x2dba(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1048(%rbp)
mov    0x2d9b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1044(%rbp)
mov    0x2d7c(%rip),%rax
mov    (%rax),%edi
call   1040 <htons@plt>
mov    -0x1048(%rbp),%edi
mov    -0x1044(%rbp),%esi
mov    %eax,%edx
call   10e0 <socket@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jge    1290 <main+0xd0>
lea    0xd7f(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x1024(%rbp),%edi
mov    0x2d23(%rip),%rax
mov    (%rax),%edx
lea    0xd61(%rip),%rsi
call   1030 <strncpy@plt>
mov    -0x14(%rbp),%edi
mov    0x2cfb(%rip),%rax
mov    (%rax),%esi
lea    -0x1028(%rbp),%rdx
call   1060 <ioctl@plt>
cmp    $0xffffffff,%eax
jne    12ea <main+0x12a>
lea    0xd38(%rip),%rdi
call   10c0 <perror@plt>
mov    -0x14(%rbp),%edi
call   1080 <close@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x2cd7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1030(%rbp)
mov    0x2cd0(%rip),%rax
mov    (%rax),%edi
call   1040 <htons@plt>
mov    %eax,-0x1034(%rbp)
mov    -0x1028(%rbp),%eax
mov    %eax,-0x1038(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x1038(%rbp),%rsi
mov    $0xc,%edx
call   10b0 <bind@plt>
cmp    $0x0,%rax
jge    1355 <main+0x195>
lea    0xcd3(%rip),%rdi
call   10c0 <perror@plt>
mov    -0x14(%rbp),%edi
call   1080 <close@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
movb   $0xfe,-0x1020(%rbp)
movb   $0xca,-0x101f(%rbp)
movb   $0xae,-0x101e(%rbp)
movb   $0x3,-0x1019(%rbp)
movb   $0xa,-0x1000(%rbp)
movb   $0xb,-0xfff(%rbp)
movb   $0xc,-0xffe(%rbp)
movb   $0xd,-0xffd(%rbp)
movb   $0x1a,-0xffc(%rbp)
movb   $0x1b,-0xffb(%rbp)
movb   $0x1c,-0xffa(%rbp)
movb   $0x1d,-0xff9(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x1020(%rbp),%rsi
mov    $0x64,%edx
xor    %r9d,%r9d
xor    %eax,%eax
mov    %eax,%r8d
mov    %r9d,%ecx
call   1070 <sendto@plt>
cmp    $0x0,%rax
jg     13e0 <main+0x220>
lea    0xc3d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13e5 <main+0x225>
mov    -0x14(%rbp),%edi
lea    -0x820(%rbp),%rsi
mov    $0x800,%edx
xor    %ecx,%ecx
xor    %eax,%eax
mov    %eax,%r9d
mov    %r9,%r8
call   10a0 <recvfrom@plt>
mov    %eax,-0x18(%rbp)
mov    -0x103c(%rbp),%esi
lea    0xc0f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x820(%rbp),%rdi
mov    -0x18(%rbp),%esi
call   1090 <print_hex@plt>
mov    -0x103c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x104c(%rbp)
mov    %eax,-0x103c(%rbp)
jmp    13e5 <main+0x225>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x1020,%rsp
lea    0x820(%rsp),%rdi
mov    $0x800,%edx
xor    %esi,%esi
call   1070 <memset@plt>
lea    0x20(%rsp),%rdi
mov    $0x800,%edx
xor    %esi,%esi
call   1070 <memset@plt>
mov    0x2dd5(%rip),%rax
mov    (%rax),%ebx
mov    0x2dbc(%rip),%rax
mov    (%rax),%ebp
mov    0x2da3(%rip),%r15
mov    (%r15),%edi
call   1050 <htons@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    %eax,%edx
call   1100 <socket@plt>
test   %eax,%eax
js     1355 <main+0x175>
mov    %eax,%r14d
mov    0x2d6e(%rip),%rax
mov    (%rax),%edx
lea    0xdac(%rip),%rsi
call   1030 <strncpy@plt>
mov    0x2d49(%rip),%rax
mov    (%rax),%esi
lea    0x18(%rsp),%rdx
mov    %r14d,%edi
call   1080 <ioctl@plt>
cmp    $0xffffffff,%eax
je     136b <main+0x18b>
mov    0x2d42(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x10(%rsp)
mov    (%r15),%edi
call   1050 <htons@plt>
mov    %eax,0xc(%rsp)
mov    0x18(%rsp),%eax
mov    %eax,0x8(%rsp)
lea    0x8(%rsp),%rsi
mov    %r14d,%edi
mov    $0xc,%edx
call   10d0 <bind@plt>
test   %rax,%rax
js     1374 <main+0x194>
movw   $0xcafe,0x20(%rsp)
movb   $0xae,0x22(%rsp)
movb   $0x3,0x27(%rsp)
movabs $0x1d1c1b1a0d0c0b0a,%rax
1b 1c 1d
mov    %rax,0x40(%rsp)
lea    0x20(%rsp),%rsi
mov    %r14d,%edi
mov    $0x64,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1090 <sendto@plt>
test   %rax,%rax
jg     1306 <main+0x126>
lea    0xd55(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%ebp
lea    0x820(%rsp),%r12
lea    0xcfc(%rip),%r15
nopw   0x0(%rax,%rax,1)
mov    %r14d,%edi
mov    %r12,%rsi
mov    $0x800,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   10c0 <recvfrom@plt>
mov    %eax,%ebx
mov    %r15,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
mov    %ebx,%esi
call   10b0 <print_hex@plt>
add    $0x1,%ebp
jmp    1320 <main+0x140>
lea    0xca4(%rip),%rdi
call   10e0 <perror@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
lea    0xc99(%rip),%rdi
jmp    137b <main+0x19b>
lea    0xc96(%rip),%rdi
call   10e0 <perror@plt>
mov    %r14d,%edi
call   10a0 <close@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>

LLVM IR (-O0):
%struct.ifreq = type { i32, i32 }
%struct.sockaddr_ll = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@PF_PACKET = global i32 0
@SOCK_RAW = global i32 0
@ETH_P_ALL = global i32 0
@.str = [7 x i8] c"socket\00"
@.str.1 = [4 x i8] c"nf0\00"
@IFNAMSIZ = global i32 0
@SIOCGIFINDEX = global i32 0
@.str.2 = [6 x i8] c"ioctl\00"
@AF_PACKET = global i32 0
@.str.3 = [5 x i8] c"Bind\00"
@.str.4 = [12 x i8] c"Error send\0A\00"
@.str.5 = [64 x i8] c"Packet%d -----------------------------------------------------\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 [2048 x i8]
%9 = alloca [2048 x i8]
%10 = alloca %struct.ifreq
%11 = alloca %struct.sockaddr_ll
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %12
store i32 0, i32* %13
br label %14
14: ; preds = %24, %2
%15 = load i32, i32* %13
%16 = icmp slt i32 %15, 2048
br i1 %16, label %17, label %27
17: ; preds = %14
%18 = load i32, i32* %13
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [2048 x i8], [2048 x i8]* %8, i64 0, i64 %19
store i8 0, i8* %20
%21 = load i32, i32* %13
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [2048 x i8], [2048 x i8]* %9, i64 0, i64 %22
store i8 0, i8* %23
br label %24
24: ; preds = %17
%25 = load i32, i32* %13
%26 = add nsw i32 %25, 1
store i32 %26, i32* %13
br label %14
27: ; preds = %14
%28 = load i32, i32* @PF_PACKET
%29 = load i32, i32* @SOCK_RAW
%30 = load i32, i32* @ETH_P_ALL
%31 = call i32 @htons(i32 %30)
%32 = call i32 @socket(i32 %28, i32 %29, i32 %31)
store i32 %32, i32* %6
%33 = icmp slt i32 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %27
%35 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%36 = call i32 @exit(i32 1)
unreachable
37: ; preds = %27
%38 = getelementptr inbounds %struct.ifreq, %struct.ifreq* %10, i32 0, i32 1
%39 = load i32, i32* %38
%40 = load i32, i32* @IFNAMSIZ
%41 = call i32 @strncpy(i32 %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %40)
%42 = load i32, i32* %6
%43 = load i32, i32* @SIOCGIFINDEX
%44 = call i32 @ioctl(i32 %42, i32 %43, %struct.ifreq* %10)
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %51
46: ; preds = %37
%47 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%48 = load i32, i32* %6
%49 = call i32 @close(i32 %48)
%50 = call i32 @exit(i32 1)
unreachable
51: ; preds = %37
%52 = load i32, i32* @AF_PACKET
%53 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %11, i32 0, i32 2
store i32 %52, i32* %53
%54 = load i32, i32* @ETH_P_ALL
%55 = call i32 @htons(i32 %54)
%56 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %11, i32 0, i32 1
store i32 %55, i32* %56
%57 = getelementptr inbounds %struct.ifreq, %struct.ifreq* %10, i32 0, i32 0
%58 = load i32, i32* %57
%59 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %11, i32 0, i32 0
store i32 %58, i32* %59
%60 = load i32, i32* %6
%61 = bitcast %struct.sockaddr_ll* %11 to %struct.sockaddr*
%62 = call i64 @bind(i32 %60, %struct.sockaddr* %61, i32 12)
%63 = icmp slt i64 %62, 0
br i1 %63, label %64, label %69
64: ; preds = %51
%65 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%66 = load i32, i32* %6
%67 = call i32 @close(i32 %66)
%68 = call i32 @exit(i32 1)
unreachable
69: ; preds = %51
%70 = getelementptr inbounds [2048 x i8], [2048 x i8]* %9, i64 0, i64 0
store i8 -2, i8* %70
%71 = getelementptr inbounds [2048 x i8], [2048 x i8]* %9, i64 0, i64 1
store i8 -54, i8* %71
%72 = getelementptr inbounds [2048 x i8], [2048 x i8]* %9, i64 0, i64 2
store i8 -82, i8* %72
%73 = getelementptr inbounds [2048 x i8], [2048 x i8]* %9, i64 0, i64 7
store i8 3, i8* %73
%74 = getelementptr inbounds [2048 x i8], [2048 x i8]* %9, i64 0, i64 32
store i8 10, i8* %74
%75 = getelementptr inbounds [2048 x i8], [2048 x i8]* %9, i64 0, i64 33
store i8 11, i8* %75
%76 = getelementptr inbounds [2048 x i8], [2048 x i8]* %9, i64 0, i64 34
store i8 12, i8* %76
%77 = getelementptr inbounds [2048 x i8], [2048 x i8]* %9, i64 0, i64 35
store i8 13, i8* %77
%78 = getelementptr inbounds [2048 x i8], [2048 x i8]* %9, i64 0, i64 36
store i8 26, i8* %78
%79 = getelementptr inbounds [2048 x i8], [2048 x i8]* %9, i64 0, i64 37
store i8 27, i8* %79
%80 = getelementptr inbounds [2048 x i8], [2048 x i8]* %9, i64 0, i64 38
store i8 28, i8* %80
%81 = getelementptr inbounds [2048 x i8], [2048 x i8]* %9, i64 0, i64 39
store i8 29, i8* %81
%82 = load i32, i32* %6
%83 = getelementptr inbounds [2048 x i8], [2048 x i8]* %9, i64 0, i64 0
%84 = call i64 @sendto(i32 %82, i8* %83, i32 100, i32 0, i32* null, i32 0)
%85 = icmp sle i64 %84, 0
br i1 %85, label %86, label %88
86: ; preds = %69
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
br label %88
88: ; preds = %86, %69
br label %89
89: ; preds = %88, %89
%90 = load i32, i32* %6
%91 = getelementptr inbounds [2048 x i8], [2048 x i8]* %8, i64 0, i64 0
%92 = call i32 @recvfrom(i32 %90, i8* %91, i32 2048, i32 0, i32* null, i32* null)
store i32 %92, i32* %7
%93 = load i32, i32* %12
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0), i32 %93)
%95 = getelementptr inbounds [2048 x i8], [2048 x i8]* %8, i64 0, i64 0
%96 = load i32, i32* %7
%97 = call i32 @print_hex(i8* %95, i32 %96)
%98 = load i32, i32* %12
%99 = add nsw i32 %98, 1
store i32 %99, i32* %12
br label %89
}

LLVM IR (-O2):
%struct.ifreq = type { i32, i32 }
%struct.sockaddr_ll = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@PF_PACKET = global i32 0
@SOCK_RAW = global i32 0
@ETH_P_ALL = global i32 0
@.str = [7 x i8] c"socket\00"
@.str.1 = [4 x i8] c"nf0\00"
@IFNAMSIZ = global i32 0
@SIOCGIFINDEX = global i32 0
@.str.2 = [6 x i8] c"ioctl\00"
@AF_PACKET = global i32 0
@.str.3 = [5 x i8] c"Bind\00"
@.str.5 = [64 x i8] c"Packet%d -----------------------------------------------------\0A\00"
@str = [11 x i8] c"Error send\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [2048 x i8]
%4 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 0
%5 = alloca [2048 x i8]
%6 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 0
%7 = alloca %struct.ifreq
%8 = alloca %struct.sockaddr_ll
%9 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 0
%11 = bitcast %struct.ifreq* %7 to i8*
%12 = bitcast %struct.sockaddr_ll* %8 to i8*
%13 = load i32, i32* @PF_PACKET
%14 = load i32, i32* @SOCK_RAW
%15 = load i32, i32* @ETH_P_ALL
%16 = tail call i32 @htons(i32 %15)
%17 = tail call i32 @socket(i32 %13, i32 %14, i32 %16)
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %2
%20 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%21 = tail call i32 @exit(i32 1)
unreachable
22: ; preds = %2
%23 = load i32, i32* @IFNAMSIZ
%24 = tail call i32 @strncpy(i32 undef, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %23)
%25 = load i32, i32* @SIOCGIFINDEX
%26 = call i32 @ioctl(i32 %17, i32 %25, %struct.ifreq* %7)
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %32
28: ; preds = %22
%29 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%30 = call i32 @close(i32 %17)
%31 = call i32 @exit(i32 1)
unreachable
32: ; preds = %22
%33 = load i32, i32* @AF_PACKET
%34 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %8, i64 0, i32 2
store i32 %33, i32* %34
%35 = load i32, i32* @ETH_P_ALL
%36 = call i32 @htons(i32 %35)
%37 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %8, i64 0, i32 1
store i32 %36, i32* %37
%38 = getelementptr inbounds %struct.ifreq, %struct.ifreq* %7, i64 0, i32 0
%39 = load i32, i32* %38
%40 = getelementptr inbounds %struct.sockaddr_ll, %struct.sockaddr_ll* %8, i64 0, i32 0
store i32 %39, i32* %40
%41 = bitcast %struct.sockaddr_ll* %8 to %struct.sockaddr*
%42 = call i64 @bind(i32 %17, %struct.sockaddr* %41, i32 12)
%43 = icmp slt i64 %42, 0
br i1 %43, label %44, label %48
44: ; preds = %32
%45 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%46 = call i32 @close(i32 %17)
%47 = call i32 @exit(i32 1)
unreachable
48: ; preds = %32
store i8 -2, i8* %10
%49 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 1
store i8 -54, i8* %49
%50 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 2
store i8 -82, i8* %50
%51 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 7
store i8 3, i8* %51
%52 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 32
store i8 10, i8* %52
%53 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 33
store i8 11, i8* %53
%54 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 34
store i8 12, i8* %54
%55 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 35
store i8 13, i8* %55
%56 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 36
store i8 26, i8* %56
%57 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 37
store i8 27, i8* %57
%58 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 38
store i8 28, i8* %58
%59 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 39
store i8 29, i8* %59
%60 = call i64 @sendto(i32 %17, i8* %10, i32 100, i32 0, i32* null, i32 0)
%61 = icmp slt i64 %60, 1
br i1 %61, label %62, label %64
62: ; preds = %48
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
br label %64
64: ; preds = %62, %48
br label %65
65: ; preds = %64, %65
%66 = phi i32 [ %70, %65 ], [ 1, %64 ]
%67 = call i32 @recvfrom(i32 %17, i8* %9, i32 2048, i32 0, i32* null, i32* null)
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0), i32 %66)
%69 = call i32 @print_hex(i8* %9, i32 %67)
%70 = add nuw nsw i32 %66, 1
br label %65
}