#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 tcphdr {
  int check;
  int window;
  int fin;
  int syn;
  int rst;
  int psh;
  int ack;
  int urg;
  int /*<<< orphan*/ dest;
  int /*<<< orphan*/ source;
};
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;
};
struct iphdr {
  int ihl;
  int check;
  int version;
  int ttl;
  int /*<<< orphan*/ tot_len;
  int /*<<< orphan*/ daddr;
  int /*<<< orphan*/ saddr;
};
struct in_addr {
  int dummy;
};
typedef int /*<<< orphan*/ recv_packet;
typedef int /*<<< orphan*/ bypass_addr;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ IPPROTO_TCP;
int /*<<< orphan*/ PF_INET;
int /*<<< orphan*/ SOCK_DGRAM;
int checksum2(unsigned short *, int);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ inet_addr(char *);
char *inet_ntoa(struct in_addr);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int ntohs(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ recvRaw(int, char *, int);
int /*<<< orphan*/ sendto(int, void *, int, int /*<<< orphan*/,
                          struct sockaddr *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int socketRaw(int /*<<< orphan*/, int);
int tcp_checksum(struct iphdr *, struct tcphdr *);
int main(int argc, char **argv) {
  char recv_packet[1024 + 40];
  struct iphdr *ip_header = (struct iphdr *)recv_packet;
  struct tcphdr *tcp_header = 0;
  printf("\nStart Deflector\n\n");
  printf("Create Raw Socket(Receive)\n");
  int recv_socket = socketRaw(IPPROTO_TCP, 27000 + 4);
  printf("Create UDP Socket(Send)\n");
  int send_socket = socket(PF_INET, SOCK_DGRAM, 0);
  struct sockaddr_in bypass_addr;
  memset(&bypass_addr, 0, sizeof(bypass_addr));
  bypass_addr.sin_family = AF_INET;
  bypass_addr.sin_port = htons(27000 + 5);
  bypass_addr.sin_addr.s_addr = inet_addr("155.98.39.83");
  printf("Enter Main Loop\n");
  while (1) {
    recvRaw(recv_socket, recv_packet, sizeof(recv_packet));
    tcp_header = (struct tcphdr *)(recv_packet + ip_header->ihl * 4);
    if (ntohs(tcp_header->dest) == 27000 + 4) {
      tcp_header = (struct tcphdr *)(recv_packet + ip_header->ihl * 4);
      tcp_header->check = 0;
      tcp_header->check = tcp_checksum(ip_header, tcp_header);
      ip_header->check = 0;
      ip_header->check =
          checksum2((unsigned short *)ip_header, sizeof(struct iphdr));
      printf("\nReceive Packet\n");
      printf("----------------------------------------\n");
      printf("[ 패킷을 받았습니다. ]\n");
      printf("발신자 IP : %s\n",
             inet_ntoa(*(struct in_addr *)&ip_header->saddr));
      printf("발신자 Port : %5u\n", ntohs(tcp_header->source));
      printf("수신자 IP : %s\n",
             inet_ntoa(*(struct in_addr *)&ip_header->daddr));
      printf("수신자 Port : %5u\n", ntohs(tcp_header->dest));
      printf("IP packet size : %d\n", ntohs(ip_header->tot_len));
      printf("IP check : %d\n", ip_header->check);
      printf("IP Version : %d\n", ip_header->version);
      printf("Time To Live : %d\n", ip_header->ttl);
      printf("TCP check : %d\n", tcp_header->check);
      printf("Window Size : %d\n", tcp_header->window);
      printf("Flags : ");
      if (tcp_header->fin == 1)
        printf("[FIN]\n");
      if (tcp_header->syn == 1)
        printf("[SYN]\n");
      if (tcp_header->rst == 1)
        printf("[RST]\n");
      if (tcp_header->psh == 1)
        printf("[PSH]\n");
      if (tcp_header->ack == 1)
        printf("[ACK]\n");
      if (tcp_header->urg == 1)
        printf("[URG]\n");
      printf("-----------------------------------------\n");
      printf("Send UDP Packet\n");
      sendto(send_socket, (void *)&recv_packet, sizeof(recv_packet) + 1, 0,
             (struct sockaddr *)&bypass_addr, sizeof(bypass_addr));
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x470,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x440(%rbp),%rax
mov    %rax,-0x448(%rbp)
movq   $0x0,-0x450(%rbp)
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2dcb(%rip),%rax
mov    (%rax),%edi
mov    $0x697c,%esi
call   1030 <socketRaw@plt>
mov    %eax,-0x454(%rbp)
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2d8c(%rip),%rax
mov    (%rax),%edi
mov    0x2d93(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10e0 <socket@plt>
mov    %eax,-0x458(%rbp)
lea    -0x468(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
mov    0x2d7a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x460(%rbp)
mov    $0x697d,%edi
call   1050 <htons@plt>
mov    %eax,-0x464(%rbp)
lea    0xdbb(%rip),%rdi
call   10a0 <inet_addr@plt>
mov    %eax,-0x468(%rbp)
lea    0xdb6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x454(%rbp),%edi
lea    -0x440(%rbp),%rsi
mov    $0x428,%edx
call   10b0 <recvRaw@plt>
lea    -0x440(%rbp),%rax
mov    -0x448(%rbp),%rcx
mov    (%rcx),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x450(%rbp)
mov    -0x450(%rbp),%rax
mov    0x20(%rax),%edi
call   10c0 <ntohs@plt>
cmp    $0x697c,%eax
jne    15b5 <main+0x3f5>
lea    -0x440(%rbp),%rax
mov    -0x448(%rbp),%rcx
mov    (%rcx),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x450(%rbp)
mov    -0x450(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x448(%rbp),%rdi
mov    -0x450(%rbp),%rsi
call   10d0 <tcp_checksum@plt>
mov    %eax,%ecx
mov    -0x450(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x448(%rbp),%rax
movl   $0x0,0x4(%rax)
mov    -0x448(%rbp),%rdi
mov    $0x1c,%esi
call   1090 <checksum2@plt>
mov    %eax,%ecx
mov    -0x448(%rbp),%rax
mov    %ecx,0x4(%rax)
lea    0xcf2(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe05(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xce7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x448(%rbp),%rax
mov    0x18(%rax),%edi
call   1040 <inet_ntoa@plt>
mov    %rax,%rsi
lea    0xce7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x450(%rbp),%rax
mov    0x24(%rax),%edi
call   10c0 <ntohs@plt>
mov    %eax,%esi
lea    0xcdb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x448(%rbp),%rax
mov    0x14(%rax),%edi
call   1040 <inet_ntoa@plt>
mov    %rax,%rsi
lea    0xcd1(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x450(%rbp),%rax
mov    0x20(%rax),%edi
call   10c0 <ntohs@plt>
mov    %eax,%esi
lea    0xcc5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x448(%rbp),%rax
mov    0x10(%rax),%edi
call   10c0 <ntohs@plt>
mov    %eax,%esi
lea    0xcbc(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x448(%rbp),%rax
mov    0x4(%rax),%esi
lea    0xcb9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x448(%rbp),%rax
mov    0x8(%rax),%esi
lea    0xcb0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x448(%rbp),%rax
mov    0xc(%rax),%esi
lea    0xca9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x450(%rbp),%rax
mov    (%rax),%esi
lea    0xca5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x450(%rbp),%rax
mov    0x4(%rax),%esi
lea    0xc9d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xca1(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x450(%rbp),%rax
cmpl   $0x1,0x8(%rax)
jne    14d8 <main+0x318>
lea    0xc8b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x450(%rbp),%rax
cmpl   $0x1,0xc(%rax)
jne    14f7 <main+0x337>
lea    0xc73(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x450(%rbp),%rax
cmpl   $0x1,0x10(%rax)
jne    1516 <main+0x356>
lea    0xc5b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x450(%rbp),%rax
cmpl   $0x1,0x14(%rax)
jne    1535 <main+0x375>
lea    0xc43(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x450(%rbp),%rax
cmpl   $0x1,0x18(%rax)
jne    1554 <main+0x394>
lea    0xc2b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x450(%rbp),%rax
cmpl   $0x1,0x1c(%rax)
jne    1573 <main+0x3b3>
lea    0xc13(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xc0c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xc29(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x458(%rbp),%edi
lea    -0x440(%rbp),%rsi
lea    -0x468(%rbp),%r8
mov    $0x429,%edx
xor    %ecx,%ecx
mov    $0xc,%r9d
call   1080 <sendto@plt>
jmp    12a6 <main+0xe6>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x438,%rsp
lea    0xeea(%rip),%rdi
call   1030 <puts@plt>
lea    0xef0(%rip),%rdi
call   1030 <puts@plt>
mov    0x2de0(%rip),%rax
mov    (%rax),%edi
mov    $0x697c,%esi
call   1040 <socketRaw@plt>
mov    %eax,%ebx
lea    0xeea(%rip),%rdi
call   1030 <puts@plt>
mov    0x2da7(%rip),%rax
mov    (%rax),%edi
mov    0x2dae(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10f0 <socket@plt>
mov    %eax,%r15d
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
mov    0x2d9c(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x8(%rsp)
mov    $0x697d,%edi
call   1060 <htons@plt>
mov    %eax,0x4(%rsp)
lea    0xd99(%rip),%rdi
call   10b0 <inet_addr@plt>
mov    %eax,(%rsp)
lea    0xea1(%rip),%rdi
call   1030 <puts@plt>
lea    0x10(%rsp),%rbp
lea    0xef9(%rip),%r12
jmp    12bf <main+0xef>
nopl   0x0(%rax)
lea    0xebf(%rip),%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %r15d,%edi
mov    %rbp,%rsi
mov    $0x429,%edx
xor    %ecx,%ecx
mov    %rsp,%r8
mov    $0xc,%r9d
call   1090 <sendto@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
mov    $0x428,%edx
call   10c0 <recvRaw@plt>
movslq 0x10(%rsp),%rax
mov    0x30(%rsp,%rax,4),%edi
call   10d0 <ntohs@plt>
cmp    $0x697c,%eax
jne    12bf <main+0xef>
movslq 0x10(%rsp),%r14
lea    (%rsp,%r14,4),%r13
add    $0x10,%r13
movl   $0x0,0x10(%rsp,%r14,4)
mov    %rbp,%rdi
mov    %r13,%rsi
call   10e0 <tcp_checksum@plt>
mov    %eax,0x10(%rsp,%r14,4)
movl   $0x0,0x14(%rsp)
mov    %rbp,%rdi
mov    $0x1c,%esi
call   10a0 <checksum2@plt>
mov    %eax,0x14(%rsp)
lea    0xdfe(%rip),%rdi
call   1030 <puts@plt>
lea    0xe22(%rip),%rdi
call   1030 <puts@plt>
lea    0xdf6(%rip),%rdi
call   1030 <puts@plt>
mov    0x28(%rsp),%edi
call   1050 <inet_ntoa@plt>
lea    0xcb7(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x34(%rsp,%r14,4),%edi
call   10d0 <ntohs@plt>
lea    0xcaf(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x24(%rsp),%edi
call   1050 <inet_ntoa@plt>
lea    0xcac(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x30(%rsp,%r14,4),%edi
call   10d0 <ntohs@plt>
lea    0xca4(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x20(%rsp),%edi
call   10d0 <ntohs@plt>
lea    0xca1(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x14(%rsp),%esi
lea    0xca2(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x18(%rsp),%esi
lea    0xc9f(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x1c(%rsp),%esi
lea    0xc9e(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x10(%rsp,%r14,4),%esi
lea    0xc9e(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x14(%rsp,%r14,4),%esi
lea    0xc9b(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xc9f(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
cmpl   $0x1,0x18(%rsp,%r14,4)
jne    1445 <main+0x275>
lea    0xd6e(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x1,0xc(%r13)
je     1470 <main+0x2a0>
cmpl   $0x1,0x10(%r13)
je     1483 <main+0x2b3>
cmpl   $0x1,0x14(%r13)
je     1496 <main+0x2c6>
cmpl   $0x1,0x18(%r13)
je     14a9 <main+0x2d9>
cmpl   $0x1,0x1c(%r13)
jne    1290 <main+0xc0>
jmp    14c0 <main+0x2f0>
xchg   %ax,%ax
lea    0xd31(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x1,0x10(%r13)
jne    1453 <main+0x283>
lea    0xd18(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x1,0x14(%r13)
jne    145a <main+0x28a>
lea    0xcff(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x1,0x18(%r13)
jne    1461 <main+0x291>
lea    0xce6(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x1,0x1c(%r13)
jne    1290 <main+0xc0>
lea    0xcc9(%rip),%rdi
call   1030 <puts@plt>
jmp    1290 <main+0xc0>

LLVM IR (-O0):
%struct.iphdr = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.tcphdr = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.in_addr = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [19 x i8] c"\0AStart Deflector\0A\0A\00"
@.str.1 = [28 x i8] c"Create Raw Socket(Receive)\0A\00"
@IPPROTO_TCP = global i32 0
@.str.2 = [25 x i8] c"Create UDP Socket(Send)\0A\00"
@PF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@AF_INET = global i32 0
@.str.3 = [13 x i8] c"155.98.39.83\00"
@.str.4 = [17 x i8] c"Enter Main Loop\0A\00"
@.str.5 = [17 x i8] c"\0AReceive Packet\0A\00"
@.str.6 = [42 x i8] c"----------------------------------------\0A\00"
@.str.7 = [32 x i8] c"[ \ED\8C\A8\ED\82\B7\EC\9D\84 \EB\B0\9B\EC\95\98\EC\8A\B5\EB\8B\88\EB\8B\A4. ]\0A\00"
@.str.8 = [19 x i8] c"\EB\B0\9C\EC\8B\A0\EC\9E\90 IP : %s\0A\00"
@.str.9 = [22 x i8] c"\EB\B0\9C\EC\8B\A0\EC\9E\90 Port : %5u\0A\00"
@.str.10 = [19 x i8] c"\EC\88\98\EC\8B\A0\EC\9E\90 IP : %s\0A\00"
@.str.11 = [22 x i8] c"\EC\88\98\EC\8B\A0\EC\9E\90 Port : %5u\0A\00"
@.str.12 = [21 x i8] c"IP packet size : %d\0A\00"
@.str.13 = [15 x i8] c"IP check : %d\0A\00"
@.str.14 = [17 x i8] c"IP Version : %d\0A\00"
@.str.15 = [19 x i8] c"Time To Live : %d\0A\00"
@.str.16 = [16 x i8] c"TCP check : %d\0A\00"
@.str.17 = [18 x i8] c"Window Size : %d\0A\00"
@.str.18 = [9 x i8] c"Flags : \00"
@.str.19 = [7 x i8] c"[FIN]\0A\00"
@.str.20 = [7 x i8] c"[SYN]\0A\00"
@.str.21 = [7 x i8] c"[RST]\0A\00"
@.str.22 = [7 x i8] c"[PSH]\0A\00"
@.str.23 = [7 x i8] c"[ACK]\0A\00"
@.str.24 = [7 x i8] c"[URG]\0A\00"
@.str.25 = [43 x i8] c"-----------------------------------------\0A\00"
@.str.26 = [17 x i8] c"Send UDP Packet\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [1064 x i8]
%7 = alloca %struct.iphdr*
%8 = alloca %struct.tcphdr*
%9 = alloca i32
%10 = alloca i32
%11 = alloca %struct.sockaddr_in
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = getelementptr inbounds [1064 x i8], [1064 x i8]* %6, i64 0, i64 0
%13 = bitcast i8* %12 to %struct.iphdr*
store %struct.iphdr* %13, %struct.iphdr** %7
store %struct.tcphdr* null, %struct.tcphdr** %8
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%16 = load i32, i32* @IPPROTO_TCP
%17 = call i32 @socketRaw(i32 %16, i32 27004)
store i32 %17, i32* %9
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%19 = load i32, i32* @PF_INET
%20 = load i32, i32* @SOCK_DGRAM
%21 = call i32 @socket(i32 %19, i32 %20, i32 0)
store i32 %21, i32* %10
%22 = call i32 @memset(%struct.sockaddr_in* %11, i32 0, i32 12)
%23 = load i32, i32* @AF_INET
%24 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 2
store i32 %23, i32* %24
%25 = call i32 @htons(i32 27005)
%26 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 1
store i32 %25, i32* %26
%27 = call i32 @inet_addr(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%28 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 0
%29 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %28, i32 0, i32 0
store i32 %27, i32* %29
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
br label %31
31: ; preds = %2, %172
%32 = load i32, i32* %9
%33 = getelementptr inbounds [1064 x i8], [1064 x i8]* %6, i64 0, i64 0
%34 = call i32 @recvRaw(i32 %32, i8* %33, i32 1064)
%35 = getelementptr inbounds [1064 x i8], [1064 x i8]* %6, i64 0, i64 0
%36 = load %struct.iphdr*, %struct.iphdr** %7
%37 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %36, i32 0, i32 0
%38 = load i32, i32* %37
%39 = mul nsw i32 %38, 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, i8* %35, i64 %40
%42 = bitcast i8* %41 to %struct.tcphdr*
store %struct.tcphdr* %42, %struct.tcphdr** %8
%43 = load %struct.tcphdr*, %struct.tcphdr** %8
%44 = getelementptr inbounds %struct.tcphdr, %struct.tcphdr* %43, i32 0, i32 8
%45 = load i32, i32* %44
%46 = call i32 @ntohs(i32 %45)
%47 = icmp eq i32 %46, 27004
br i1 %47, label %48, label %172
48: ; preds = %31
%49 = getelementptr inbounds [1064 x i8], [1064 x i8]* %6, i64 0, i64 0
%50 = load %struct.iphdr*, %struct.iphdr** %7
%51 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %50, i32 0, i32 0
%52 = load i32, i32* %51
%53 = mul nsw i32 %52, 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, i8* %49, i64 %54
%56 = bitcast i8* %55 to %struct.tcphdr*
store %struct.tcphdr* %56, %struct.tcphdr** %8
%57 = load %struct.tcphdr*, %struct.tcphdr** %8
%58 = getelementptr inbounds %struct.tcphdr, %struct.tcphdr* %57, i32 0, i32 0
store i32 0, i32* %58
%59 = load %struct.iphdr*, %struct.iphdr** %7
%60 = load %struct.tcphdr*, %struct.tcphdr** %8
%61 = call i32 @tcp_checksum(%struct.iphdr* %59, %struct.tcphdr* %60)
%62 = load %struct.tcphdr*, %struct.tcphdr** %8
%63 = getelementptr inbounds %struct.tcphdr, %struct.tcphdr* %62, i32 0, i32 0
store i32 %61, i32* %63
%64 = load %struct.iphdr*, %struct.iphdr** %7
%65 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %64, i32 0, i32 1
store i32 0, i32* %65
%66 = load %struct.iphdr*, %struct.iphdr** %7
%67 = bitcast %struct.iphdr* %66 to i16*
%68 = call i32 @checksum2(i16* %67, i32 28)
%69 = load %struct.iphdr*, %struct.iphdr** %7
%70 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %69, i32 0, i32 1
store i32 %68, i32* %70
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0))
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
%74 = load %struct.iphdr*, %struct.iphdr** %7
%75 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %74, i32 0, i32 6
%76 = bitcast i32* %75 to %struct.in_addr*
%77 = getelementptr inbounds %struct.in_addr, %struct.in_addr* %76, i32 0, i32 0
%78 = load i32, i32* %77
%79 = call i8* @inet_ntoa(i32 %78)
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i8* %79)
%81 = load %struct.tcphdr*, %struct.tcphdr** %8
%82 = getelementptr inbounds %struct.tcphdr, %struct.tcphdr* %81, i32 0, i32 9
%83 = load i32, i32* %82
%84 = call i32 @ntohs(i32 %83)
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i32 %84)
%86 = load %struct.iphdr*, %struct.iphdr** %7
%87 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %86, i32 0, i32 5
%88 = bitcast i32* %87 to %struct.in_addr*
%89 = getelementptr inbounds %struct.in_addr, %struct.in_addr* %88, i32 0, i32 0
%90 = load i32, i32* %89
%91 = call i8* @inet_ntoa(i32 %90)
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), i8* %91)
%93 = load %struct.tcphdr*, %struct.tcphdr** %8
%94 = getelementptr inbounds %struct.tcphdr, %struct.tcphdr* %93, i32 0, i32 8
%95 = load i32, i32* %94
%96 = call i32 @ntohs(i32 %95)
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %96)
%98 = load %struct.iphdr*, %struct.iphdr** %7
%99 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %98, i32 0, i32 4
%100 = load i32, i32* %99
%101 = call i32 @ntohs(i32 %100)
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), i32 %101)
%103 = load %struct.iphdr*, %struct.iphdr** %7
%104 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %103, i32 0, i32 1
%105 = load i32, i32* %104
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i32 %105)
%107 = load %struct.iphdr*, %struct.iphdr** %7
%108 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %107, i32 0, i32 2
%109 = load i32, i32* %108
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0), i32 %109)
%111 = load %struct.iphdr*, %struct.iphdr** %7
%112 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %111, i32 0, i32 3
%113 = load i32, i32* %112
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0), i32 %113)
%115 = load %struct.tcphdr*, %struct.tcphdr** %8
%116 = getelementptr inbounds %struct.tcphdr, %struct.tcphdr* %115, i32 0, i32 0
%117 = load i32, i32* %116
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 %117)
%119 = load %struct.tcphdr*, %struct.tcphdr** %8
%120 = getelementptr inbounds %struct.tcphdr, %struct.tcphdr* %119, i32 0, i32 1
%121 = load i32, i32* %120
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), i32 %121)
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0))
%124 = load %struct.tcphdr*, %struct.tcphdr** %8
%125 = getelementptr inbounds %struct.tcphdr, %struct.tcphdr* %124, i32 0, i32 2
%126 = load i32, i32* %125
%127 = icmp eq i32 %126, 1
br i1 %127, label %128, label %130
128: ; preds = %48
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0))
br label %130
130: ; preds = %128, %48
%131 = load %struct.tcphdr*, %struct.tcphdr** %8
%132 = getelementptr inbounds %struct.tcphdr, %struct.tcphdr* %131, i32 0, i32 3
%133 = load i32, i32* %132
%134 = icmp eq i32 %133, 1
br i1 %134, label %135, label %137
135: ; preds = %130
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
br label %137
137: ; preds = %135, %130
%138 = load %struct.tcphdr*, %struct.tcphdr** %8
%139 = getelementptr inbounds %struct.tcphdr, %struct.tcphdr* %138, i32 0, i32 4
%140 = load i32, i32* %139
%141 = icmp eq i32 %140, 1
br i1 %141, label %142, label %144
142: ; preds = %137
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
br label %144
144: ; preds = %142, %137
%145 = load %struct.tcphdr*, %struct.tcphdr** %8
%146 = getelementptr inbounds %struct.tcphdr, %struct.tcphdr* %145, i32 0, i32 5
%147 = load i32, i32* %146
%148 = icmp eq i32 %147, 1
br i1 %148, label %149, label %151
149: ; preds = %144
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0))
br label %151
151: ; preds = %149, %144
%152 = load %struct.tcphdr*, %struct.tcphdr** %8
%153 = getelementptr inbounds %struct.tcphdr, %struct.tcphdr* %152, i32 0, i32 6
%154 = load i32, i32* %153
%155 = icmp eq i32 %154, 1
br i1 %155, label %156, label %158
156: ; preds = %151
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0))
br label %158
158: ; preds = %156, %151
%159 = load %struct.tcphdr*, %struct.tcphdr** %8
%160 = getelementptr inbounds %struct.tcphdr, %struct.tcphdr* %159, i32 0, i32 7
%161 = load i32, i32* %160
%162 = icmp eq i32 %161, 1
br i1 %162, label %163, label %165
163: ; preds = %158
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.24, i64 0, i64 0))
br label %165
165: ; preds = %163, %158
%166 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.25, i64 0, i64 0))
%167 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.26, i64 0, i64 0))
%168 = load i32, i32* %10
%169 = bitcast [1064 x i8]* %6 to i8*
%170 = bitcast %struct.sockaddr_in* %11 to %struct.sockaddr*
%171 = call i32 @sendto(i32 %168, i8* %169, i32 1065, i32 0, %struct.sockaddr* %170, i32 12)
br label %172
172: ; preds = %165, %31
br label %31
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.iphdr = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.tcphdr = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.sockaddr = type { i32 }
@IPPROTO_TCP = global i32 0
@PF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@AF_INET = global i32 0
@.str.3 = [13 x i8] c"155.98.39.83\00"
@.str.8 = [19 x i8] c"\EB\B0\9C\EC\8B\A0\EC\9E\90 IP : %s\0A\00"
@.str.9 = [22 x i8] c"\EB\B0\9C\EC\8B\A0\EC\9E\90 Port : %5u\0A\00"
@.str.10 = [19 x i8] c"\EC\88\98\EC\8B\A0\EC\9E\90 IP : %s\0A\00"
@.str.11 = [22 x i8] c"\EC\88\98\EC\8B\A0\EC\9E\90 Port : %5u\0A\00"
@.str.12 = [21 x i8] c"IP packet size : %d\0A\00"
@.str.13 = [15 x i8] c"IP check : %d\0A\00"
@.str.14 = [17 x i8] c"IP Version : %d\0A\00"
@.str.15 = [19 x i8] c"Time To Live : %d\0A\00"
@.str.16 = [16 x i8] c"TCP check : %d\0A\00"
@.str.17 = [18 x i8] c"Window Size : %d\0A\00"
@.str.18 = [9 x i8] c"Flags : \00"
@str = [18 x i8] c"\0AStart Deflector\0A\00"
@str.27 = [27 x i8] c"Create Raw Socket(Receive)\00"
@str.28 = [24 x i8] c"Create UDP Socket(Send)\00"
@str.29 = [16 x i8] c"Enter Main Loop\00"
@str.30 = [16 x i8] c"\0AReceive Packet\00"
@str.31 = [41 x i8] c"----------------------------------------\00"
@str.32 = [31 x i8] c"[ \ED\8C\A8\ED\82\B7\EC\9D\84 \EB\B0\9B\EC\95\98\EC\8A\B5\EB\8B\88\EB\8B\A4. ]\00"
@str.33 = [42 x i8] c"-----------------------------------------\00"
@str.34 = [16 x i8] c"Send UDP Packet\00"
@str.35 = [6 x i8] c"[URG]\00"
@str.36 = [6 x i8] c"[ACK]\00"
@str.37 = [6 x i8] c"[PSH]\00"
@str.38 = [6 x i8] c"[RST]\00"
@str.39 = [6 x i8] c"[SYN]\00"
@str.40 = [6 x i8] c"[FIN]\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [1064 x i8]
%4 = alloca %struct.sockaddr_in
%5 = getelementptr inbounds [1064 x i8], [1064 x i8]* %3, i64 0, i64 0
%6 = bitcast [1064 x i8]* %3 to %struct.iphdr*
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.27, i64 0, i64 0))
%9 = load i32, i32* @IPPROTO_TCP
%10 = tail call i32 @socketRaw(i32 %9, i32 27004)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.28, i64 0, i64 0))
%12 = load i32, i32* @PF_INET
%13 = load i32, i32* @SOCK_DGRAM
%14 = tail call i32 @socket(i32 %12, i32 %13, i32 0)
%15 = bitcast %struct.sockaddr_in* %4 to i8*
%16 = call i32 @memset(%struct.sockaddr_in* %4, i32 0, i32 12)
%17 = load i32, i32* @AF_INET
%18 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 2
store i32 %17, i32* %18
%19 = call i32 @htons(i32 27005)
%20 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1
store i32 %19, i32* %20
%21 = call i32 @inet_addr(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%22 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0, i32 0
store i32 %21, i32* %22
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.29, i64 0, i64 0))
%24 = bitcast [1064 x i8]* %3 to i32*
%25 = getelementptr inbounds [1064 x i8], [1064 x i8]* %3, i64 0, i64 4
%26 = bitcast i8* %25 to i32*
%27 = bitcast [1064 x i8]* %3 to i16*
%28 = getelementptr inbounds [1064 x i8], [1064 x i8]* %3, i64 0, i64 24
%29 = bitcast i8* %28 to i32*
%30 = getelementptr inbounds [1064 x i8], [1064 x i8]* %3, i64 0, i64 20
%31 = bitcast i8* %30 to i32*
%32 = getelementptr inbounds [1064 x i8], [1064 x i8]* %3, i64 0, i64 16
%33 = bitcast i8* %32 to i32*
%34 = getelementptr inbounds [1064 x i8], [1064 x i8]* %3, i64 0, i64 8
%35 = bitcast i8* %34 to i32*
%36 = getelementptr inbounds [1064 x i8], [1064 x i8]* %3, i64 0, i64 12
%37 = bitcast i8* %36 to i32*
%38 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
br label %39
39: ; preds = %139, %2
%40 = call i32 @recvRaw(i32 %10, i8* %5, i32 1064)
%41 = load i32, i32* %24
%42 = shl nsw i32 %41, 2
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [1064 x i8], [1064 x i8]* %3, i64 0, i64 %43
%45 = getelementptr inbounds i8, i8* %44, i64 32
%46 = bitcast i8* %45 to i32*
%47 = load i32, i32* %46
%48 = call i32 @ntohs(i32 %47)
%49 = icmp eq i32 %48, 27004
br i1 %49, label %50, label %139
50: ; preds = %39
%51 = load i32, i32* %24
%52 = shl nsw i32 %51, 2
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1064 x i8], [1064 x i8]* %3, i64 0, i64 %53
%55 = bitcast i8* %54 to %struct.tcphdr*
%56 = bitcast i8* %54 to i32*
store i32 0, i32* %56
%57 = call i32 @tcp_checksum(%struct.iphdr* %6, %struct.tcphdr* %55)
store i32 %57, i32* %56
store i32 0, i32* %26
%58 = call i32 @checksum2(i16* %27, i32 28)
store i32 %58, i32* %26
%59 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.30, i64 0, i64 0))
%60 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.31, i64 0, i64 0))
%61 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.32, i64 0, i64 0))
%62 = load i32, i32* %29
%63 = call i8* @inet_ntoa(i32 %62)
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i8* %63)
%65 = getelementptr inbounds i8, i8* %54, i64 36
%66 = bitcast i8* %65 to i32*
%67 = load i32, i32* %66
%68 = call i32 @ntohs(i32 %67)
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i32 %68)
%70 = load i32, i32* %31
%71 = call i8* @inet_ntoa(i32 %70)
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), i8* %71)
%73 = getelementptr inbounds i8, i8* %54, i64 32
%74 = bitcast i8* %73 to i32*
%75 = load i32, i32* %74
%76 = call i32 @ntohs(i32 %75)
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %76)
%78 = load i32, i32* %33
%79 = call i32 @ntohs(i32 %78)
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), i32 %79)
%81 = load i32, i32* %26
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i32 %81)
%83 = load i32, i32* %35
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0), i32 %83)
%85 = load i32, i32* %37
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0), i32 %85)
%87 = load i32, i32* %56
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 %87)
%89 = getelementptr inbounds i8, i8* %54, i64 4
%90 = bitcast i8* %89 to i32*
%91 = load i32, i32* %90
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), i32 %91)
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0))
%94 = getelementptr inbounds i8, i8* %54, i64 8
%95 = bitcast i8* %94 to i32*
%96 = load i32, i32* %95
%97 = icmp eq i32 %96, 1
br i1 %97, label %98, label %100
98: ; preds = %50
%99 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.40, i64 0, i64 0))
br label %100
100: ; preds = %98, %50
%101 = getelementptr inbounds i8, i8* %54, i64 12
%102 = bitcast i8* %101 to i32*
%103 = load i32, i32* %102
%104 = icmp eq i32 %103, 1
br i1 %104, label %105, label %107
105: ; preds = %100
%106 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.39, i64 0, i64 0))
br label %107
107: ; preds = %105, %100
%108 = getelementptr inbounds i8, i8* %54, i64 16
%109 = bitcast i8* %108 to i32*
%110 = load i32, i32* %109
%111 = icmp eq i32 %110, 1
br i1 %111, label %112, label %114
112: ; preds = %107
%113 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.38, i64 0, i64 0))
br label %114
114: ; preds = %112, %107
%115 = getelementptr inbounds i8, i8* %54, i64 20
%116 = bitcast i8* %115 to i32*
%117 = load i32, i32* %116
%118 = icmp eq i32 %117, 1
br i1 %118, label %119, label %121
119: ; preds = %114
%120 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.37, i64 0, i64 0))
br label %121
121: ; preds = %119, %114
%122 = getelementptr inbounds i8, i8* %54, i64 24
%123 = bitcast i8* %122 to i32*
%124 = load i32, i32* %123
%125 = icmp eq i32 %124, 1
br i1 %125, label %126, label %128
126: ; preds = %121
%127 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.36, i64 0, i64 0))
br label %128
128: ; preds = %126, %121
%129 = getelementptr inbounds i8, i8* %54, i64 28
%130 = bitcast i8* %129 to i32*
%131 = load i32, i32* %130
%132 = icmp eq i32 %131, 1
br i1 %132, label %133, label %135
133: ; preds = %128
%134 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.35, i64 0, i64 0))
br label %135
135: ; preds = %133, %128
%136 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.33, i64 0, i64 0))
%137 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.34, i64 0, i64 0))
%138 = call i32 @sendto(i32 %14, i8* %5, i32 1065, i32 0, %struct.sockaddr* %38, i32 12)
br label %139
139: ; preds = %135, %39
br label %39
}