#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_in {
  int /*<<< orphan*/ sin_addr;
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ socklen_t;
typedef int /*<<< orphan*/ server_addr;
typedef int /*<<< orphan*/ send_buff;
typedef int /*<<< orphan*/ read_buff;
typedef int /*<<< orphan*/ client_addr;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ SOCK_DGRAM;
int atoi(char *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ htons(int);
scalar_t__ inet_pton(int /*<<< orphan*/, char *, int /*<<< orphan*/ *);
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 /*<<< orphan*/ *);
int sendto(int, char *, int, int /*<<< orphan*/, struct sockaddr *, int);
int /*<<< orphan*/ sleep(int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int main(int argc, char **argv) {
  int sockfd = -1;
  char send_buff[128] = "Hello world !\n";
  char read_buff[128] = {0};
  socklen_t len;
  struct sockaddr_in server_addr, client_addr;
  memset(&server_addr, 0, sizeof(server_addr));
  memset(&client_addr, 0, sizeof(client_addr));
  if (argc != 3) {
    fputs("Usage: ./udpclient 192.168.1.1 37128\n", stdout);
    return -1;
  }
  printf("server ip is %s and port is %d\n", argv[1], atoi(argv[2]));
  if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
    perror("socket");
    return -1;
  }
  server_addr.sin_family = AF_INET;
  server_addr.sin_port = htons(atoi(argv[2]));
  if (inet_pton(AF_INET, argv[1], &server_addr.sin_addr) < 0) {
    perror("inet_pton");
    return -1;
  }
  while (1) {
    printf("----->\n");
    if (sendto(sockfd, send_buff, sizeof(send_buff), 0,
               (struct sockaddr *)&server_addr, sizeof(server_addr)) == -1) {
      perror("sendto");
      return -1;
    }
    if (recvfrom(sockfd, read_buff, sizeof(read_buff), 0,
                 (struct sockaddr *)&client_addr, &len) == -1) {
      perror("recvfrom");
      return -1;
    }
    fputs(read_buff, stdout);
    sleep(1);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xffffffff,-0x14(%rbp)
lea    -0xa0(%rbp),%rdi
lea    0xe12(%rip),%rsi
mov    $0x80,%edx
call   1080 <memcpy@plt>
lea    -0x120(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1060 <memset@plt>
lea    -0x130(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1060 <memset@plt>
lea    -0x140(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1060 <memset@plt>
cmpl   $0x3,-0x8(%rbp)
je     125c <main+0x9c>
mov    0x2d8e(%rip),%rax
mov    (%rax),%esi
lea    0xe35(%rip),%rdi
call   1050 <fputs@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f4 <main+0x234>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x148(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10c0 <atoi@plt>
mov    -0x148(%rbp),%rsi
mov    %eax,%edx
lea    0xe1e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2d52(%rip),%rax
mov    (%rax),%edi
mov    0x2d41(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10e0 <socket@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jge    12cc <main+0x10c>
lea    0xe0b(%rip),%rdi
call   10b0 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f4 <main+0x234>
mov    0x2d15(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x128(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10c0 <atoi@plt>
mov    %eax,%edi
call   1030 <htons@plt>
mov    %eax,-0x12c(%rbp)
mov    0x2cec(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    -0x130(%rbp),%rdx
call   1090 <inet_pton@plt>
cmp    $0x0,%rax
jge    1334 <main+0x174>
lea    0xdaa(%rip),%rdi
call   10b0 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f4 <main+0x234>
jmp    1339 <main+0x179>
lea    0xd97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%edi
lea    -0xa0(%rbp),%rsi
lea    -0x130(%rbp),%r8
mov    $0x80,%edx
xor    %ecx,%ecx
mov    $0xc,%r9d
call   1070 <sendto@plt>
cmp    $0xffffffff,%eax
jne    138b <main+0x1cb>
lea    0xd65(%rip),%rdi
call   10b0 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f4 <main+0x234>
mov    -0x14(%rbp),%edi
lea    -0x120(%rbp),%rsi
lea    -0x140(%rbp),%r8
mov    $0x80,%edx
xor    %ecx,%ecx
lea    -0x124(%rbp),%r9
call   10a0 <recvfrom@plt>
cmp    $0xffffffff,%eax
jne    13d0 <main+0x210>
lea    0xd27(%rip),%rdi
call   10b0 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f4 <main+0x234>
lea    -0x120(%rbp),%rdi
mov    0x2bf2(%rip),%rax
mov    (%rax),%esi
call   1050 <fputs@plt>
mov    $0x1,%edi
call   10d0 <sleep@plt>
jmp    1339 <main+0x179>
mov    -0x4(%rbp),%eax
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x128,%rsp
mov    %rsi,%r14
mov    %edi,%ebx
movaps 0xe93(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xe74(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xe55(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xe39(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xe1d(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe01(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xde5(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xdc9(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x110(%rsp)
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
lea    0x10(%rsp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1070 <memset@plt>
cmp    $0x3,%ebx
je     12d0 <main+0x110>
mov    0x2d25(%rip),%rax
mov    (%rax),%esi
lea    0xdcc(%rip),%rdi
call   1060 <fputs@plt>
mov    $0xffffffff,%eax
add    $0x128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x8(%r14),%rbx
mov    0x10(%r14),%rdi
call   10c0 <atoi@plt>
lea    0xdc2(%rip),%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2cf1(%rip),%rbp
mov    0x0(%rbp),%edi
mov    0x2cdf(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10e0 <socket@plt>
test   %eax,%eax
jns    131a <main+0x15a>
lea    0xdb1(%rip),%rdi
jmp    141d <main+0x25d>
mov    %eax,%ebx
mov    0x0(%rbp),%eax
mov    %eax,0x8(%rsp)
mov    0x10(%r14),%rdi
call   10c0 <atoi@plt>
mov    %eax,%edi
call   1040 <htons@plt>
mov    %eax,0x4(%rsp)
mov    0x0(%rbp),%edi
mov    0x8(%r14),%rsi
mov    %rsp,%rdx
call   1090 <inet_pton@plt>
test   %rax,%rax
jns    1357 <main+0x197>
lea    0xd7b(%rip),%rdi
jmp    141d <main+0x25d>
lea    0xd89(%rip),%rdi
call   1030 <puts@plt>
lea    0x20(%rsp),%rsi
mov    %rsp,%r8
mov    %ebx,%edi
mov    $0x80,%edx
xor    %ecx,%ecx
mov    $0xc,%r9d
call   1080 <sendto@plt>
cmp    $0xffffffff,%eax
je     140d <main+0x24d>
lea    0xa0(%rsp),%r14
mov    0x2c39(%rip),%r12
lea    0xd49(%rip),%r13
lea    0x20(%rsp),%rbp
mov    %rsp,%r15
cs nopw 0x0(%rax,%rax,1)
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x80,%edx
xor    %ecx,%ecx
lea    0x10(%rsp),%r8
lea    0xc(%rsp),%r9
call   10a0 <recvfrom@plt>
cmp    $0xffffffff,%eax
je     1416 <main+0x256>
mov    (%r12),%esi
mov    %r14,%rdi
call   1060 <fputs@plt>
mov    $0x1,%edi
call   10d0 <sleep@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
mov    $0x80,%edx
xor    %ecx,%ecx
mov    %r15,%r8
mov    $0xc,%r9d
call   1080 <sendto@plt>
cmp    $0xffffffff,%eax
jne    13b0 <main+0x1f0>
lea    0xcc3(%rip),%rdi
jmp    141d <main+0x25d>
lea    0xcc1(%rip),%rdi
call   10b0 <perror@plt>
jmp    12b9 <main+0xf9>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@__const.main.send_buff = [128 x i8] c"Hello world !\0A\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [38 x i8] c"Usage: ./udpclient 192.168.1.1 37128\0A\00"
@stdout = global i32 0
@.str.1 = [32 x i8] c"server ip is %s and port is %d\0A\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@.str.2 = [7 x i8] c"socket\00"
@.str.3 = [10 x i8] c"inet_pton\00"
@.str.4 = [8 x i8] c"----->\0A\00"
@.str.5 = [7 x i8] c"sendto\00"
@.str.6 = [9 x i8] c"recvfrom\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [128 x i8]
%8 = alloca [128 x i8]
%9 = alloca i32
%10 = alloca %struct.sockaddr_in
%11 = alloca %struct.sockaddr_in
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 -1, i32* %6
%12 = bitcast [128 x i8]* %7 to i8*
%13 = bitcast [128 x i8]* %8 to i8*
%14 = call i32 @memset(%struct.sockaddr_in* %10, i32 0, i32 12)
%15 = call i32 @memset(%struct.sockaddr_in* %11, i32 0, i32 12)
%16 = load i32, i32* %4
%17 = icmp ne i32 %16, 3
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = load i32, i32* @stdout
%20 = call i32 @fputs(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %19)
store i32 -1, i32* %3
br label %77
21: ; preds = %2
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 2
%27 = load i8*, i8** %26
%28 = call i32 @atoi(i8* %27)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* %24, i32 %28)
%30 = load i32, i32* @AF_INET
%31 = load i32, i32* @SOCK_DGRAM
%32 = call i32 @socket(i32 %30, i32 %31, i32 0)
store i32 %32, i32* %6
%33 = icmp slt i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %21
%35 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %3
br label %77
36: ; preds = %21
%37 = load i32, i32* @AF_INET
%38 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 2
store i32 %37, i32* %38
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 2
%41 = load i8*, i8** %40
%42 = call i32 @atoi(i8* %41)
%43 = call i32 @htons(i32 %42)
%44 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 1
store i32 %43, i32* %44
%45 = load i32, i32* @AF_INET
%46 = load i8**, i8*** %5
%47 = getelementptr inbounds i8*, i8** %46, i64 1
%48 = load i8*, i8** %47
%49 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 0
%50 = call i64 @inet_pton(i32 %45, i8* %48, i32* %49)
%51 = icmp slt i64 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %36
%53 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %3
br label %77
54: ; preds = %36
br label %55
55: ; preds = %54, %72
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%57 = load i32, i32* %6
%58 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%59 = bitcast %struct.sockaddr_in* %10 to %struct.sockaddr*
%60 = call i32 @sendto(i32 %57, i8* %58, i32 128, i32 0, %struct.sockaddr* %59, i32 12)
%61 = icmp eq i32 %60, -1
br i1 %61, label %62, label %64
62: ; preds = %55
%63 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
store i32 -1, i32* %3
br label %77
64: ; preds = %55
%65 = load i32, i32* %6
%66 = getelementptr inbounds [128 x i8], [128 x i8]* %8, i64 0, i64 0
%67 = bitcast %struct.sockaddr_in* %11 to %struct.sockaddr*
%68 = call i32 @recvfrom(i32 %65, i8* %66, i32 128, i32 0, %struct.sockaddr* %67, i32* %9)
%69 = icmp eq i32 %68, -1
br i1 %69, label %70, label %72
70: ; preds = %64
%71 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
store i32 -1, i32* %3
br label %77
72: ; preds = %64
%73 = getelementptr inbounds [128 x i8], [128 x i8]* %8, i64 0, i64 0
%74 = load i32, i32* @stdout
%75 = call i32 @fputs(i8* %73, i32 %74)
%76 = call i32 @sleep(i32 1)
br label %55
77: ; preds = %70, %62, %52, %34, %18
%78 = load i32, i32* %3
ret i32 %78
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@__const.main.send_buff = [128 x i8] c"Hello world !\0A\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [38 x i8] c"Usage: ./udpclient 192.168.1.1 37128\0A\00"
@stdout = global i32 0
@.str.1 = [32 x i8] c"server ip is %s and port is %d\0A\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@.str.2 = [7 x i8] c"socket\00"
@.str.3 = [10 x i8] c"inet_pton\00"
@.str.5 = [7 x i8] c"sendto\00"
@.str.6 = [9 x i8] c"recvfrom\00"
@str = [7 x i8] c"----->\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [128 x i8]
%4 = alloca [128 x i8]
%5 = alloca i32
%6 = alloca %struct.sockaddr_in
%7 = alloca %struct.sockaddr_in
%8 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%10 = bitcast i32* %5 to i8*
%11 = bitcast %struct.sockaddr_in* %6 to i8*
%12 = bitcast %struct.sockaddr_in* %7 to i8*
%13 = call i32 @memset(%struct.sockaddr_in* %6, i32 0, i32 12)
%14 = call i32 @memset(%struct.sockaddr_in* %7, i32 0, i32 12)
%15 = icmp eq i32 %0, 3
br i1 %15, label %19, label %16
16: ; preds = %2
%17 = load i32, i32* @stdout
%18 = call i32 @fputs(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %17)
br label %67
19: ; preds = %2
%20 = getelementptr inbounds i8*, i8** %1, i64 1
%21 = load i8*, i8** %20
%22 = getelementptr inbounds i8*, i8** %1, i64 2
%23 = load i8*, i8** %22
%24 = call i32 @atoi(i8* %23)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* %21, i32 %24)
%26 = load i32, i32* @AF_INET
%27 = load i32, i32* @SOCK_DGRAM
%28 = call i32 @socket(i32 %26, i32 %27, i32 0)
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %19
%31 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %67
32: ; preds = %19
%33 = load i32, i32* @AF_INET
%34 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i64 0, i32 2
store i32 %33, i32* %34
%35 = load i8*, i8** %22
%36 = call i32 @atoi(i8* %35)
%37 = call i32 @htons(i32 %36)
%38 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i64 0, i32 1
store i32 %37, i32* %38
%39 = load i32, i32* @AF_INET
%40 = load i8*, i8** %20
%41 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i64 0, i32 0
%42 = call i64 @inet_pton(i32 %39, i8* %40, i32* %41)
%43 = icmp slt i64 %42, 0
br i1 %43, label %51, label %44
44: ; preds = %32
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%46 = bitcast %struct.sockaddr_in* %6 to %struct.sockaddr*
%47 = call i32 @sendto(i32 %28, i8* %8, i32 128, i32 0, %struct.sockaddr* %46, i32 12)
%48 = icmp eq i32 %47, -1
br i1 %48, label %53, label %49
49: ; preds = %44
%50 = bitcast %struct.sockaddr_in* %7 to %struct.sockaddr*
br label %55
51: ; preds = %32
%52 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %67
53: ; preds = %60, %44
%54 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %67
55: ; preds = %49, %60
%56 = call i32 @recvfrom(i32 %28, i8* %9, i32 128, i32 0, %struct.sockaddr* %50, i32* %5)
%57 = icmp eq i32 %56, -1
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
br label %67
60: ; preds = %55
%61 = load i32, i32* @stdout
%62 = call i32 @fputs(i8* %9, i32 %61)
%63 = call i32 @sleep(i32 1)
%64 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%65 = call i32 @sendto(i32 %28, i8* %8, i32 128, i32 0, %struct.sockaddr* %46, i32 12)
%66 = icmp eq i32 %65, -1
br i1 %66, label %53, label %55
67: ; preds = %58, %53, %51, %30, %16
ret i32 -1
}