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

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ SOCK_DGRAM;
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_REUSEADDR;
int atoi(char *);
scalar_t__ bind(int, struct sockaddr *, int);
int /*<<< orphan*/ bzero(char *, int);
int /*<<< orphan*/ error(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
struct hostent *gethostbyaddr(char const *, int, int /*<<< orphan*/);
int /*<<< orphan*/ htonl(int /*<<< orphan*/);
int /*<<< orphan*/ htons(unsigned short);
char *inet_ntoa(TYPE_1__);
char *malloc(int);
int recvfrom(int, char *, int, int /*<<< orphan*/, struct sockaddr *, int *);
int sendto(int, char *, int, int /*<<< orphan*/, struct sockaddr *, int);
int /*<<< orphan*/ setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/,
                              void const *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  int sockfd;
  int portno;
  int clientlen;
  struct sockaddr_in serveraddr;
  struct sockaddr_in clientaddr;
  struct hostent *hostp;
  char *buf;
  char *hostaddrp;
  int optval;
  int n;
  if (argc != 2) {
    fprintf(stderr, "usage: %s <port>\n", argv[0]);
    exit(1);
  }
  portno = atoi(argv[1]);
  sockfd = socket(AF_INET, SOCK_DGRAM, 0);
  if (sockfd < 0)
    error("ERROR opening socket");
  optval = 1;
  setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (const void *)&optval,
             sizeof(int));
  bzero((char *)&serveraddr, sizeof(serveraddr));
  serveraddr.sin_family = AF_INET;
  serveraddr.sin_addr.s_addr = htonl(INADDR_ANY);
  serveraddr.sin_port = htons((unsigned short)portno);
  if (bind(sockfd, (struct sockaddr *)&serveraddr, sizeof(serveraddr)) < 0)
    error("ERROR on binding");
  clientlen = sizeof(clientaddr);
  while (1) {
    buf = malloc(1024);
    n = recvfrom(sockfd, buf, 1024, 0, (struct sockaddr *)&clientaddr,
                 &clientlen);
    if (n < 0)
      error("ERROR in recvfrom");
    hostp = gethostbyaddr((const char *)&clientaddr.sin_addr.s_addr,
                          sizeof(clientaddr.sin_addr.s_addr), AF_INET);
    if (hostp == NULL)
      error("ERROR on gethostbyaddr");
    hostaddrp = inet_ntoa(clientaddr.sin_addr);
    if (hostaddrp == NULL)
      error("ERROR on inet_ntoa\n");
    n = sendto(sockfd, buf, n, 0, (struct sockaddr *)&clientaddr, clientlen);
    if (n < 0)
      error("ERROR in sendto");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     1236 <main+0x46>
mov    0x2da9(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xdd9(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10e0 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    0x2d93(%rip),%rax
mov    (%rax),%edi
mov    0x2d7a(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1110 <socket@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1278 <main+0x88>
lea    0xd9f(%rip),%rdi
call   10c0 <error@plt>
movl   $0x1,-0x54(%rbp)
mov    -0x14(%rbp),%edi
mov    0x2d5f(%rip),%rax
mov    (%rax),%esi
mov    0x2d26(%rip),%rax
mov    (%rax),%edx
lea    -0x54(%rbp),%rcx
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
lea    -0x28(%rbp),%rdi
mov    $0xc,%esi
call   10d0 <bzero@plt>
mov    0x2d28(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    0x2d14(%rip),%rax
mov    (%rax),%edi
call   1060 <htonl@plt>
mov    %eax,-0x28(%rbp)
mov    -0x18(%rbp),%eax
movzwl %ax,%edi
call   1050 <htons@plt>
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x28(%rbp),%rsi
mov    $0xc,%edx
call   10b0 <bind@plt>
cmp    $0x0,%rax
jge    1303 <main+0x113>
lea    0xd29(%rip),%rdi
call   10c0 <error@plt>
movl   $0xc,-0x1c(%rbp)
mov    $0x400,%edi
call   1090 <malloc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x48(%rbp),%rsi
lea    -0x38(%rbp),%r8
mov    $0x400,%edx
xor    %ecx,%ecx
lea    -0x1c(%rbp),%r9
call   10a0 <recvfrom@plt>
mov    %eax,-0x58(%rbp)
cmpl   $0x0,-0x58(%rbp)
jge    134c <main+0x15c>
lea    0xcf1(%rip),%rdi
call   10c0 <error@plt>
lea    -0x38(%rbp),%rdi
mov    0x2c89(%rip),%rax
mov    (%rax),%edx
mov    $0x4,%esi
call   10f0 <gethostbyaddr@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
jne    137e <main+0x18e>
lea    0xcd1(%rip),%rdi
call   10c0 <error@plt>
mov    -0x38(%rbp),%edi
call   1040 <inet_ntoa@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
jne    13a1 <main+0x1b1>
lea    0xcc5(%rip),%rdi
call   10c0 <error@plt>
mov    -0x14(%rbp),%edi
mov    -0x48(%rbp),%rsi
mov    -0x58(%rbp),%edx
lea    -0x38(%rbp),%r8
mov    -0x1c(%rbp),%r9d
xor    %ecx,%ecx
call   1070 <sendto@plt>
mov    %eax,-0x58(%rbp)
cmpl   $0x0,-0x58(%rbp)
jge    13d3 <main+0x1e3>
lea    0xca7(%rip),%rdi
call   10c0 <error@plt>
jmp    130a <main+0x11a>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
cmp    $0x2,%edi
jne    1381 <main+0x191>
mov    0x8(%rsi),%rdi
call   10e0 <atoi@plt>
mov    %eax,%r14d
mov    0x2dc6(%rip),%r15
mov    (%r15),%edi
mov    0x2dac(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1110 <socket@plt>
mov    %eax,%ebp
test   %eax,%eax
jns    123f <main+0x4f>
lea    0xdd8(%rip),%rdi
call   10c0 <error@plt>
movl   $0x1,0x4(%rsp)
mov    0x2d9a(%rip),%rax
mov    (%rax),%esi
mov    0x2d61(%rip),%rax
mov    (%rax),%edx
lea    0x4(%rsp),%rcx
mov    %ebp,%edi
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xc,%esi
call   10d0 <bzero@plt>
mov    (%r15),%eax
mov    %eax,0x10(%rsp)
mov    0x2d4d(%rip),%rax
mov    (%rax),%edi
call   1060 <htonl@plt>
mov    %eax,0x8(%rsp)
movzwl %r14w,%edi
call   1050 <htons@plt>
mov    %eax,0xc(%rsp)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0xc,%edx
call   10b0 <bind@plt>
test   %rax,%rax
jns    12c3 <main+0xd3>
lea    0xd69(%rip),%rdi
call   10c0 <error@plt>
movl   $0xc,(%rsp)
lea    0x18(%rsp),%rbx
mov    %rsp,%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x400,%edi
call   1090 <malloc@plt>
mov    %rax,%r12
mov    %ebp,%edi
mov    %rax,%rsi
mov    $0x400,%edx
xor    %ecx,%ecx
mov    %rbx,%r8
mov    %r14,%r9
call   10a0 <recvfrom@plt>
mov    %eax,%r13d
test   %eax,%eax
jns    1317 <main+0x127>
lea    0xd26(%rip),%rdi
call   10c0 <error@plt>
mov    (%r15),%edx
mov    %rbx,%rdi
mov    $0x4,%esi
call   10f0 <gethostbyaddr@plt>
test   %rax,%rax
jne    1338 <main+0x148>
lea    0xd17(%rip),%rdi
call   10c0 <error@plt>
mov    0x18(%rsp),%edi
call   1040 <inet_ntoa@plt>
test   %rax,%rax
jne    1352 <main+0x162>
lea    0xd14(%rip),%rdi
call   10c0 <error@plt>
mov    (%rsp),%r9d
mov    %ebp,%edi
mov    %r12,%rsi
mov    %r13d,%edx
xor    %ecx,%ecx
mov    %rbx,%r8
call   1070 <sendto@plt>
test   %eax,%eax
jns    12e0 <main+0xf0>
lea    0xcfe(%rip),%rdi
call   10c0 <error@plt>
jmp    12e0 <main+0xf0>
mov    0x2c38(%rip),%rax
mov    (%rax),%edi
mov    (%rsi),%rdx
lea    0xc6c(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i32 }
%struct.sockaddr = type { i32 }
@stderr = global i32 0
@.str = [18 x i8] c"usage: %s <port>\0A\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@.str.1 = [21 x i8] c"ERROR opening socket\00"
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@INADDR_ANY = global i32 0
@.str.2 = [17 x i8] c"ERROR on binding\00"
@.str.3 = [18 x i8] c"ERROR in recvfrom\00"
@.str.4 = [23 x i8] c"ERROR on gethostbyaddr\00"
@.str.5 = [20 x i8] c"ERROR on inet_ntoa\0A\00"
@.str.6 = [16 x i8] c"ERROR in sendto\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 i32
%9 = alloca %struct.sockaddr_in
%10 = alloca %struct.sockaddr_in
%11 = alloca %struct.hostent*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i32
%15 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%16 = load i32, i32* %4
%17 = icmp ne i32 %16, 2
br i1 %17, label %18, label %25
18: ; preds = %2
%19 = load i32, i32* @stderr
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 0
%22 = load i8*, i8** %21
%23 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %22)
%24 = call i32 @exit(i32 1)
unreachable
25: ; preds = %2
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
%29 = call i32 @atoi(i8* %28)
store i32 %29, i32* %7
%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 = load i32, i32* %6
%34 = icmp slt i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %25
%36 = call i32 @error(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
br label %37
37: ; preds = %35, %25
store i32 1, i32* %14
%38 = load i32, i32* %6
%39 = load i32, i32* @SOL_SOCKET
%40 = load i32, i32* @SO_REUSEADDR
%41 = bitcast i32* %14 to i8*
%42 = call i32 @setsockopt(i32 %38, i32 %39, i32 %40, i8* %41, i32 4)
%43 = bitcast %struct.sockaddr_in* %9 to i8*
%44 = call i32 @bzero(i8* %43, i32 12)
%45 = load i32, i32* @AF_INET
%46 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 2
store i32 %45, i32* %46
%47 = load i32, i32* @INADDR_ANY
%48 = call i32 @htonl(i32 %47)
%49 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 0
%50 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %49, i32 0, i32 0
store i32 %48, i32* %50
%51 = load i32, i32* %7
%52 = trunc i32 %51 to i16
%53 = call i32 @htons(i16 zeroext %52)
%54 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 1
store i32 %53, i32* %54
%55 = load i32, i32* %6
%56 = bitcast %struct.sockaddr_in* %9 to %struct.sockaddr*
%57 = call i64 @bind(i32 %55, %struct.sockaddr* %56, i32 12)
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %37
%60 = call i32 @error(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
br label %61
61: ; preds = %59, %37
store i32 12, i32* %8
br label %62
62: ; preds = %61, %102
%63 = call i8* @malloc(i32 1024)
store i8* %63, i8** %12
%64 = load i32, i32* %6
%65 = load i8*, i8** %12
%66 = bitcast %struct.sockaddr_in* %10 to %struct.sockaddr*
%67 = call i32 @recvfrom(i32 %64, i8* %65, i32 1024, i32 0, %struct.sockaddr* %66, i32* %8)
store i32 %67, i32* %15
%68 = load i32, i32* %15
%69 = icmp slt i32 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %62
%71 = call i32 @error(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
br label %72
72: ; preds = %70, %62
%73 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 0
%74 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %73, i32 0, i32 0
%75 = bitcast i32* %74 to i8*
%76 = load i32, i32* @AF_INET
%77 = call %struct.hostent* @gethostbyaddr(i8* %75, i32 4, i32 %76)
store %struct.hostent* %77, %struct.hostent** %11
%78 = load %struct.hostent*, %struct.hostent** %11
%79 = icmp eq %struct.hostent* %78, null
br i1 %79, label %80, label %82
80: ; preds = %72
%81 = call i32 @error(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
br label %82
82: ; preds = %80, %72
%83 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %10, i32 0, i32 0
%84 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %83, i32 0, i32 0
%85 = load i32, i32* %84
%86 = call i8* @inet_ntoa(i32 %85)
store i8* %86, i8** %13
%87 = load i8*, i8** %13
%88 = icmp eq i8* %87, null
br i1 %88, label %89, label %91
89: ; preds = %82
%90 = call i32 @error(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
br label %91
91: ; preds = %89, %82
%92 = load i32, i32* %6
%93 = load i8*, i8** %12
%94 = load i32, i32* %15
%95 = bitcast %struct.sockaddr_in* %10 to %struct.sockaddr*
%96 = load i32, i32* %8
%97 = call i32 @sendto(i32 %92, i8* %93, i32 %94, i32 0, %struct.sockaddr* %95, i32 %96)
store i32 %97, i32* %15
%98 = load i32, i32* %15
%99 = icmp slt i32 %98, 0
br i1 %99, label %100, label %102
100: ; preds = %91
%101 = call i32 @error(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
br label %102
102: ; preds = %100, %91
br label %62
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
%struct.hostent = type { i32 }
@stderr = global i32 0
@.str = [18 x i8] c"usage: %s <port>\0A\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@.str.1 = [21 x i8] c"ERROR opening socket\00"
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@INADDR_ANY = global i32 0
@.str.2 = [17 x i8] c"ERROR on binding\00"
@.str.3 = [18 x i8] c"ERROR in recvfrom\00"
@.str.4 = [23 x i8] c"ERROR on gethostbyaddr\00"
@.str.5 = [20 x i8] c"ERROR on inet_ntoa\0A\00"
@.str.6 = [16 x i8] c"ERROR in sendto\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca %struct.sockaddr_in
%5 = alloca %struct.sockaddr_in
%6 = alloca i32
%7 = bitcast i32* %3 to i8*
%8 = bitcast %struct.sockaddr_in* %4 to i8*
%9 = bitcast %struct.sockaddr_in* %5 to i8*
%10 = bitcast i32* %6 to i8*
%11 = icmp eq i32 %0, 2
br i1 %11, label %17, label %12
12: ; preds = %2
%13 = load i32, i32* @stderr
%14 = load i8*, i8** %1
%15 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = tail call i32 @exit(i32 1)
unreachable
17: ; preds = %2
%18 = getelementptr inbounds i8*, i8** %1, i64 1
%19 = load i8*, i8** %18
%20 = tail call i32 @atoi(i8* %19)
%21 = load i32, i32* @AF_INET
%22 = load i32, i32* @SOCK_DGRAM
%23 = tail call i32 @socket(i32 %21, i32 %22, i32 0)
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %17
%26 = tail call i32 @error(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
br label %27
27: ; preds = %25, %17
store i32 1, i32* %6
%28 = load i32, i32* @SOL_SOCKET
%29 = load i32, i32* @SO_REUSEADDR
%30 = call i32 @setsockopt(i32 %23, i32 %28, i32 %29, i8* %10, i32 4)
%31 = call i32 @bzero(i8* %8, i32 12)
%32 = load i32, i32* @AF_INET
%33 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 2
store i32 %32, i32* %33
%34 = load i32, i32* @INADDR_ANY
%35 = call i32 @htonl(i32 %34)
%36 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0, i32 0
store i32 %35, i32* %36
%37 = trunc i32 %20 to i16
%38 = call i32 @htons(i16 zeroext %37)
%39 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1
store i32 %38, i32* %39
%40 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%41 = call i64 @bind(i32 %23, %struct.sockaddr* %40, i32 12)
%42 = icmp slt i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %27
%44 = call i32 @error(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
br label %45
45: ; preds = %43, %27
store i32 12, i32* %3
%46 = bitcast %struct.sockaddr_in* %5 to %struct.sockaddr*
%47 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 0, i32 0
br label %48
48: ; preds = %72, %45
%49 = call dereferenceable_or_null(1024) i8* @malloc(i32 1024)
%50 = call i32 @recvfrom(i32 %23, i8* %49, i32 1024, i32 0, %struct.sockaddr* %46, i32* %3)
%51 = icmp slt i32 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %48
%53 = call i32 @error(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
br label %54
54: ; preds = %52, %48
%55 = load i32, i32* @AF_INET
%56 = call %struct.hostent* @gethostbyaddr(i8* %9, i32 4, i32 %55)
%57 = icmp eq %struct.hostent* %56, null
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = call i32 @error(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
br label %60
60: ; preds = %58, %54
%61 = load i32, i32* %47
%62 = call i8* @inet_ntoa(i32 %61)
%63 = icmp eq i8* %62, null
br i1 %63, label %64, label %66
64: ; preds = %60
%65 = call i32 @error(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
br label %66
66: ; preds = %64, %60
%67 = load i32, i32* %3
%68 = call i32 @sendto(i32 %23, i8* %49, i32 %50, i32 0, %struct.sockaddr* %46, i32 %67)
%69 = icmp slt i32 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %66
%71 = call i32 @error(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
br label %72
72: ; preds = %70, %66
br label %48
}