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

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ IPPROTO_UDP;
int /*<<< orphan*/ SOCK_DGRAM;
int bind(int, struct sockaddr *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ die(char *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ htonl(int /*<<< orphan*/);
int /*<<< orphan*/ htons(int);
char *inet_ntoa(TYPE_1__);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int ntohs(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int recvfrom(int, char *, int, int /*<<< orphan*/, struct sockaddr *, size_t *);
int sendto(int, char *, int, int /*<<< orphan*/, struct sockaddr *, size_t);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
char *strchr(char *, char);
int main(void) {
  struct sockaddr_in si_me, si_other;
  char buf[512 + 1];
  char *s;
  int sockHandle, recv_len;
  size_t slen = sizeof si_other;
  printf("%s built on %s at %s\n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/LossyHorizon/BeagleBoneCodeSamples/refs/"
         "heads/master/01-echoServer.c",
         "Mar 16 2022", "22:21:11");
  memset(buf, 0, sizeof buf);
  if ((sockHandle = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) {
    die("socket");
  }
  memset((char *)&si_me, 0, sizeof(si_me));
  si_me.sin_family = AF_INET;
  si_me.sin_port = htons(8888);
  si_me.sin_addr.s_addr = htonl(INADDR_ANY);
  if (bind(sockHandle, (struct sockaddr *)&si_me, sizeof(si_me)) == -1) {
    die("bind");
  }
  while (1) {
    printf("Waiting for data...");
    fflush(stdout);
    if ((recv_len = recvfrom(sockHandle, buf, 512 - 1, 0,
                             (struct sockaddr *)&si_other, &slen)) == -1) {
      die("recvfrom()");
    }
    buf[recv_len] = '\0';
    s = strchr(buf, '\n');
    if (s)
      *s = '\0';
    printf("Received packet from %s:%d\n", inet_ntoa(si_other.sin_addr),
           ntohs(si_other.sin_port));
    printf("Data: [%s]\n", buf);
    if (sendto(sockHandle, buf, recv_len, 0, (struct sockaddr *)&si_other,
               slen) == -1) {
      die("sendto()");
    }
  }
  close(sockHandle);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x250,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0xc,-0x248(%rbp)
lea    0xe0c(%rip),%rdi
lea    0xe1b(%rip),%rsi
lea    0xeb3(%rip),%rdx
lea    0xeb8(%rip),%rcx
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x230(%rbp),%rdi
xor    %esi,%esi
mov    $0x201,%edx
call   1080 <memset@plt>
mov    0x2dbe(%rip),%rax
mov    (%rax),%edi
mov    0x2da5(%rip),%rax
mov    (%rax),%esi
mov    0x2d7c(%rip),%rax
mov    (%rax),%edx
call   10f0 <socket@plt>
mov    %eax,-0x23c(%rbp)
cmp    $0xffffffff,%eax
jne    125e <main+0x8e>
lea    0xe71(%rip),%rdi
call   10e0 <die@plt>
lea    -0x10(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
mov    0x2d73(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    $0x22b8,%edi
call   1040 <htons@plt>
mov    %eax,-0x10(%rbp)
mov    0x2d52(%rip),%rax
mov    (%rax),%edi
call   1070 <htonl@plt>
mov    %eax,-0xc(%rbp)
mov    -0x23c(%rbp),%edi
lea    -0x10(%rbp),%rsi
mov    $0xc,%edx
call   10d0 <bind@plt>
cmp    $0xffffffff,%eax
jne    12c1 <main+0xf1>
lea    0xe15(%rip),%rdi
call   10e0 <die@plt>
jmp    12c6 <main+0xf6>
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2ced(%rip),%rax
mov    (%rax),%edi
call   10a0 <fflush@plt>
mov    -0x23c(%rbp),%edi
lea    -0x230(%rbp),%rsi
lea    -0x20(%rbp),%r8
mov    $0x1ff,%edx
xor    %ecx,%ecx
lea    -0x248(%rbp),%r9
call   10b0 <recvfrom@plt>
mov    %eax,-0x240(%rbp)
cmp    $0xffffffff,%eax
jne    1321 <main+0x151>
lea    0xdce(%rip),%rdi
call   10e0 <die@plt>
movslq -0x240(%rbp),%rax
movb   $0x0,-0x230(%rbp,%rax,1)
lea    -0x230(%rbp),%rdi
mov    $0xa,%esi
call   1050 <strchr@plt>
mov    %rax,-0x238(%rbp)
cmpq   $0x0,-0x238(%rbp)
je     1360 <main+0x190>
mov    -0x238(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x1c(%rbp),%edi
call   1030 <inet_ntoa@plt>
mov    %rax,-0x250(%rbp)
mov    -0x20(%rbp),%edi
call   10c0 <ntohs@plt>
mov    -0x250(%rbp),%rsi
mov    %eax,%edx
lea    0xd6e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x230(%rbp),%rsi
lea    0xd75(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x23c(%rbp),%edi
lea    -0x230(%rbp),%rsi
mov    -0x240(%rbp),%edx
lea    -0x20(%rbp),%r8
mov    -0x248(%rbp),%r9
xor    %ecx,%ecx
call   1090 <sendto@plt>
cmp    $0xffffffff,%eax
jne    13dd <main+0x20d>
lea    0xd45(%rip),%rdi
call   10e0 <die@plt>
jmp    12c6 <main+0xf6>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x238,%rsp
movq   $0xc,0x8(%rsp)
lea    0xe0f(%rip),%rdi
lea    0xe1e(%rip),%rsi
lea    0xeb6(%rip),%rdx
lea    0xebb(%rip),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x30(%rsp),%rdi
xor    %esi,%esi
mov    $0x201,%edx
call   1080 <memset@plt>
mov    0x2dc3(%rip),%r14
mov    (%r14),%edi
mov    0x2da9(%rip),%rax
mov    (%rax),%esi
mov    0x2d80(%rip),%rax
mov    (%rax),%edx
call   10f0 <socket@plt>
mov    %eax,%ebp
cmp    $0xffffffff,%eax
jne    1252 <main+0x82>
lea    0xe7d(%rip),%rdi
call   10e0 <die@plt>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
mov    (%r14),%eax
mov    %eax,0x18(%rsp)
mov    $0x22b8,%edi
call   1040 <htons@plt>
mov    %eax,0x10(%rsp)
mov    0x2d5e(%rip),%rax
mov    (%rax),%edi
call   1070 <htonl@plt>
mov    %eax,0x14(%rsp)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0xc,%edx
call   10d0 <bind@plt>
cmp    $0xffffffff,%eax
jne    12ad <main+0xdd>
lea    0xe29(%rip),%rdi
call   10e0 <die@plt>
lea    0x30(%rsp),%rbx
lea    0x20(%rsp),%r15
lea    0xe53(%rip),%r14
xchg   %ax,%ax
lea    0xe0f(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2cf3(%rip),%rax
mov    (%rax),%edi
call   10a0 <fflush@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x1ff,%edx
xor    %ecx,%ecx
mov    %r15,%r8
lea    0x8(%rsp),%r9
call   10b0 <recvfrom@plt>
mov    %eax,%r12d
cmp    $0xffffffff,%eax
jne    1309 <main+0x139>
lea    0xde6(%rip),%rdi
call   10e0 <die@plt>
movslq %r12d,%rax
movb   $0x0,0x30(%rsp,%rax,1)
mov    %rbx,%rdi
mov    $0xa,%esi
call   1050 <strchr@plt>
test   %rax,%rax
je     1326 <main+0x156>
movb   $0x0,(%rax)
mov    0x24(%rsp),%edi
call   1030 <inet_ntoa@plt>
mov    %rax,%r13
mov    0x20(%rsp),%edi
call   10c0 <ntohs@plt>
lea    0xdb3(%rip),%rdi
mov    %r13,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%rsp),%r9
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r12d,%edx
xor    %ecx,%ecx
mov    %r15,%r8
call   1090 <sendto@plt>
cmp    $0xffffffff,%eax
jne    12c0 <main+0xf0>
lea    0xd9b(%rip),%rdi
call   10e0 <die@plt>
jmp    12c0 <main+0xf0>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [22 x i8] c"%s built on %s at %s\0A\00"
@.str.1 = [159 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/LossyHorizon/BeagleBoneCodeSamples/refs/heads/master/01-echoServer.c\00"
@.str.2 = [12 x i8] c"Mar 16 2022\00"
@.str.3 = [9 x i8] c"22:21:11\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@IPPROTO_UDP = global i32 0
@.str.4 = [7 x i8] c"socket\00"
@INADDR_ANY = global i32 0
@.str.5 = [5 x i8] c"bind\00"
@.str.6 = [20 x i8] c"Waiting for data...\00"
@stdout = global i32 0
@.str.7 = [11 x i8] c"recvfrom()\00"
@.str.8 = [28 x i8] c"Received packet from %s:%d\0A\00"
@.str.9 = [12 x i8] c"Data: [%s]\0A\00"
@.str.10 = [9 x i8] c"sendto()\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.sockaddr_in
%3 = alloca %struct.sockaddr_in
%4 = alloca [513 x i8]
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i64
store i32 0, i32* %1
store i64 12, i64* %8
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%10 = getelementptr inbounds [513 x i8], [513 x i8]* %4, i64 0, i64 0
%11 = call i32 @memset(i8* %10, i32 0, i32 513)
%12 = load i32, i32* @AF_INET
%13 = load i32, i32* @SOCK_DGRAM
%14 = load i32, i32* @IPPROTO_UDP
%15 = call i32 @socket(i32 %12, i32 %13, i32 %14)
store i32 %15, i32* %6
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %19
17: ; preds = %0
%18 = call i32 @die(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %19
19: ; preds = %17, %0
%20 = bitcast %struct.sockaddr_in* %2 to i8*
%21 = call i32 @memset(i8* %20, i32 0, i32 12)
%22 = load i32, i32* @AF_INET
%23 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i32 0, i32 2
store i32 %22, i32* %23
%24 = call i32 @htons(i32 8888)
%25 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i32 0, i32 0
store i32 %24, i32* %25
%26 = load i32, i32* @INADDR_ANY
%27 = call i32 @htonl(i32 %26)
%28 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i32 0, i32 1
%29 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %28, i32 0, i32 0
store i32 %27, i32* %29
%30 = load i32, i32* %6
%31 = bitcast %struct.sockaddr_in* %2 to %struct.sockaddr*
%32 = call i32 @bind(i32 %30, %struct.sockaddr* %31, i32 12)
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %36
34: ; preds = %19
%35 = call i32 @die(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %36
36: ; preds = %34, %19
br label %37
37: ; preds = %36, %78
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%39 = load i32, i32* @stdout
%40 = call i32 @fflush(i32 %39)
%41 = load i32, i32* %6
%42 = getelementptr inbounds [513 x i8], [513 x i8]* %4, i64 0, i64 0
%43 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%44 = call i32 @recvfrom(i32 %41, i8* %42, i32 511, i32 0, %struct.sockaddr* %43, i64* %8)
store i32 %44, i32* %7
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %48
46: ; preds = %37
%47 = call i32 @die(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
br label %48
48: ; preds = %46, %37
%49 = load i32, i32* %7
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [513 x i8], [513 x i8]* %4, i64 0, i64 %50
store i8 0, i8* %51
%52 = getelementptr inbounds [513 x i8], [513 x i8]* %4, i64 0, i64 0
%53 = call i8* @strchr(i8* %52, i8 signext 10)
store i8* %53, i8** %5
%54 = load i8*, i8** %5
%55 = icmp ne i8* %54, null
br i1 %55, label %56, label %58
56: ; preds = %48
%57 = load i8*, i8** %5
store i8 0, i8* %57
br label %58
58: ; preds = %56, %48
%59 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i32 0, i32 1
%60 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %59, i32 0, i32 0
%61 = load i32, i32* %60
%62 = call i8* @inet_ntoa(i32 %61)
%63 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i32 0, i32 0
%64 = load i32, i32* %63
%65 = call i32 @ntohs(i32 %64)
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i8* %62, i32 %65)
%67 = getelementptr inbounds [513 x i8], [513 x i8]* %4, i64 0, i64 0
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i8* %67)
%69 = load i32, i32* %6
%70 = getelementptr inbounds [513 x i8], [513 x i8]* %4, i64 0, i64 0
%71 = load i32, i32* %7
%72 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%73 = load i64, i64* %8
%74 = call i32 @sendto(i32 %69, i8* %70, i32 %71, i32 0, %struct.sockaddr* %72, i64 %73)
%75 = icmp eq i32 %74, -1
br i1 %75, label %76, label %78
76: ; preds = %58
%77 = call i32 @die(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
br label %78
78: ; preds = %76, %58
br label %37
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [22 x i8] c"%s built on %s at %s\0A\00"
@.str.1 = [159 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/LossyHorizon/BeagleBoneCodeSamples/refs/heads/master/01-echoServer.c\00"
@.str.2 = [12 x i8] c"Mar 16 2022\00"
@.str.3 = [9 x i8] c"22:21:11\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@IPPROTO_UDP = global i32 0
@.str.4 = [7 x i8] c"socket\00"
@INADDR_ANY = global i32 0
@.str.5 = [5 x i8] c"bind\00"
@.str.6 = [20 x i8] c"Waiting for data...\00"
@stdout = global i32 0
@.str.7 = [11 x i8] c"recvfrom()\00"
@.str.8 = [28 x i8] c"Received packet from %s:%d\0A\00"
@.str.9 = [12 x i8] c"Data: [%s]\0A\00"
@.str.10 = [9 x i8] c"sendto()\00"
define i32 @main() {
%1 = alloca %struct.sockaddr_in
%2 = alloca %struct.sockaddr_in
%3 = alloca [513 x i8]
%4 = alloca i64
%5 = bitcast %struct.sockaddr_in* %1 to i8*
%6 = bitcast %struct.sockaddr_in* %2 to i8*
%7 = getelementptr inbounds [513 x i8], [513 x i8]* %3, i64 0, i64 0
%8 = bitcast i64* %4 to i8*
store i64 12, i64* %4
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @memset(i8* %7, i32 0, i32 513)
%11 = load i32, i32* @AF_INET
%12 = load i32, i32* @SOCK_DGRAM
%13 = load i32, i32* @IPPROTO_UDP
%14 = call i32 @socket(i32 %11, i32 %12, i32 %13)
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %18
16: ; preds = %0
%17 = call i32 @die(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %18
18: ; preds = %16, %0
%19 = call i32 @memset(i8* %5, i32 0, i32 12)
%20 = load i32, i32* @AF_INET
%21 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 2
store i32 %20, i32* %21
%22 = call i32 @htons(i32 8888)
%23 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 0
store i32 %22, i32* %23
%24 = load i32, i32* @INADDR_ANY
%25 = call i32 @htonl(i32 %24)
%26 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 1, i32 0
store i32 %25, i32* %26
%27 = bitcast %struct.sockaddr_in* %1 to %struct.sockaddr*
%28 = call i32 @bind(i32 %14, %struct.sockaddr* %27, i32 12)
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %32
30: ; preds = %18
%31 = call i32 @die(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %32
32: ; preds = %30, %18
%33 = bitcast %struct.sockaddr_in* %2 to %struct.sockaddr*
%34 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i64 0, i32 1, i32 0
%35 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i64 0, i32 0
br label %36
36: ; preds = %62, %32
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%38 = load i32, i32* @stdout
%39 = call i32 @fflush(i32 %38)
%40 = call i32 @recvfrom(i32 %14, i8* %7, i32 511, i32 0, %struct.sockaddr* %33, i64* %4)
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %44
42: ; preds = %36
%43 = call i32 @die(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
br label %44
44: ; preds = %42, %36
%45 = sext i32 %40 to i64
%46 = getelementptr inbounds [513 x i8], [513 x i8]* %3, i64 0, i64 %45
store i8 0, i8* %46
%47 = call i8* @strchr(i8* %7, i8 signext 10)
%48 = icmp eq i8* %47, null
br i1 %48, label %50, label %49
49: ; preds = %44
store i8 0, i8* %47
br label %50
50: ; preds = %49, %44
%51 = load i32, i32* %34
%52 = call i8* @inet_ntoa(i32 %51)
%53 = load i32, i32* %35
%54 = call i32 @ntohs(i32 %53)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i8* %52, i32 %54)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i8* %7)
%57 = load i64, i64* %4
%58 = call i32 @sendto(i32 %14, i8* %7, i32 %40, i32 0, %struct.sockaddr* %33, i64 %57)
%59 = icmp eq i32 %58, -1
br i1 %59, label %60, label %62
60: ; preds = %50
%61 = call i32 @die(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
br label %62
62: ; preds = %60, %50
br label %36
}