#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*/ stSockAddr;
typedef int /*<<< orphan*/ mensaje;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ IPPROTO_TCP;
int /*<<< orphan*/ PF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ close(int);
int connect(int, struct sockaddr *, int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ htons(int);
scalar_t__ inet_ntoa(int /*<<< orphan*/);
int 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 /*<<< orphan*/ read(int, char *, int);
int send(int, char *, int, int /*<<< orphan*/);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ strcpy(char *, char *);
int main(int argc, char *argv[]) {
  struct sockaddr_in stSockAddr;
  int sockLen;
  int Res;
  int SocketFD;
  int recibido;
  char buffer[19];
  char mensaje[80];
  int totalBytesRcvd;
  int bytesRcvd;
  char *archivo;
  if (argc < 3) {
    perror("USO:./clientFiles <archivo a enviar> <direccionIP del servidor>");
    exit(EXIT_FAILURE);
  }
  archivo = argv[1];
  SocketFD = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
  if (SocketFD == -1) {
    perror("cannot create socket");
    exit(EXIT_FAILURE);
  }
  memset(&stSockAddr, 0, sizeof stSockAddr);
  stSockAddr.sin_family = AF_INET;
  stSockAddr.sin_port = htons(1100);
  Res = inet_pton(AF_INET, argv[2], &stSockAddr.sin_addr);
  sockLen = sizeof(stSockAddr);
  if (0 > Res) {
    perror("error: El primer paránmetro no es una familia de direcciónes");
    close(SocketFD);
    exit(EXIT_FAILURE);
  } else if (Res == 0) {
    perror(
        "char string (El segundo parmetro no contiene una dirección IP válida");
    close(SocketFD);
    exit(EXIT_FAILURE);
  }
  if (connect(SocketFD, (struct sockaddr *)&stSockAddr, sizeof stSockAddr) ==
      -1) {
    perror("Error a la hora de conectarse con el cliente");
    close(SocketFD);
    exit(EXIT_FAILURE);
  }
  printf("Se ha conectado con el servidor:%s\n",
         (char *)inet_ntoa(stSockAddr.sin_addr));
  printf("envia al servidor");
  strcpy(buffer, "hola soy el cliente");
  if (send(SocketFD, buffer, 19, 0) == -1)
    perror("Error al enviar el arvhivo:");
  printf("enviado");
  read(SocketFD, mensaje, sizeof(mensaje));
  printf("\nConfirmación recibida:\n%s\n", mensaje);
  close(SocketFD);
  printf("fin");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    120d <main+0x3d>
lea    0xe06(%rip),%rdi
call   10c0 <perror@plt>
mov    0x2dba(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0xb0(%rbp)
mov    0x2da5(%rip),%rax
mov    (%rax),%edi
mov    0x2da4(%rip),%rax
mov    (%rax),%esi
mov    0x2dab(%rip),%rax
mov    (%rax),%edx
call   10f0 <socket@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0xffffffff,-0x2c(%rbp)
jne    1263 <main+0x93>
lea    0xdf0(%rip),%rdi
call   10c0 <perror@plt>
mov    0x2d64(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
lea    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
mov    0x2d6e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    $0x44c,%edi
call   1050 <htons@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2d55(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
lea    -0x20(%rbp),%rdx
call   10b0 <inet_pton@plt>
mov    %eax,-0x28(%rbp)
movl   $0xc,-0x24(%rbp)
xor    %eax,%eax
cmp    -0x28(%rbp),%eax
jle    12dd <main+0x10d>
lea    0xd93(%rip),%rdi
call   10c0 <perror@plt>
mov    -0x2c(%rbp),%edi
call   1090 <close@plt>
mov    0x2cea(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
cmpl   $0x0,-0x28(%rbp)
jne    1309 <main+0x139>
lea    0xda6(%rip),%rdi
call   10c0 <perror@plt>
mov    -0x2c(%rbp),%edi
call   1090 <close@plt>
mov    0x2cbe(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
jmp    130e <main+0x13e>
mov    -0x2c(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0xc,%edx
call   10e0 <connect@plt>
cmp    $0xffffffff,%eax
jne    134a <main+0x17a>
lea    0xdac(%rip),%rdi
call   10c0 <perror@plt>
mov    -0x2c(%rbp),%edi
call   1090 <close@plt>
mov    0x2c7d(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
mov    -0x20(%rbp),%edi
call   1040 <inet_ntoa@plt>
mov    %rax,%rsi
lea    0xdac(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xdc2(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x50(%rbp),%rdi
lea    0xdc2(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x2c(%rbp),%edi
lea    -0x50(%rbp),%rsi
mov    $0x13,%edx
xor    %ecx,%ecx
call   1060 <send@plt>
cmp    $0xffffffff,%eax
jne    13a9 <main+0x1d9>
lea    0xdae(%rip),%rdi
call   10c0 <perror@plt>
lea    0xdbe(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x2c(%rbp),%edi
lea    -0xa0(%rbp),%rsi
mov    $0x50,%edx
call   10a0 <read@plt>
lea    -0xa0(%rbp),%rsi
lea    0xd9d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x2c(%rbp),%edi
call   1090 <close@plt>
lea    0xda4(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x88,%rsp
cmp    $0x2,%edi
jle    132c <main+0x15c>
mov    %rsi,%r14
mov    0x2dd8(%rip),%rax
mov    (%rax),%edi
mov    0x2dd7(%rip),%rax
mov    (%rax),%esi
mov    0x2dde(%rip),%rax
mov    (%rax),%edx
call   10f0 <socket@plt>
cmp    $0xffffffff,%eax
je     1335 <main+0x165>
mov    %eax,%ebp
mov    %rsp,%r15
mov    %r15,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
mov    0x2dbb(%rip),%rbx
mov    (%rbx),%eax
mov    %eax,0x8(%rsp)
mov    $0x44c,%edi
call   1050 <htons@plt>
mov    %eax,0x4(%rsp)
mov    (%rbx),%edi
mov    0x10(%r14),%rsi
mov    %r15,%rdx
call   10b0 <inet_pton@plt>
test   %eax,%eax
js     1343 <main+0x173>
je     134c <main+0x17c>
mov    %rsp,%rsi
mov    %ebp,%edi
mov    $0xc,%edx
call   10e0 <connect@plt>
cmp    $0xffffffff,%eax
je     1355 <main+0x185>
mov    (%rsp),%edi
call   1040 <inet_ntoa@plt>
lea    0xe84(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xe97(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xe9b(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x13,%edx
xor    %ecx,%ecx
call   1060 <send@plt>
cmp    $0xffffffff,%eax
je     131e <main+0x14e>
lea    0xea1(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x30(%rsp),%rbx
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x50,%edx
call   10a0 <read@plt>
lea    0xe87(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %ebp,%edi
call   1090 <close@plt>
lea    0xe8c(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe2d(%rip),%rdi
call   10c0 <perror@plt>
jmp    12c6 <main+0xf6>
lea    0xccd(%rip),%rdi
jmp    133c <main+0x16c>
lea    0xd04(%rip),%rdi
call   10c0 <perror@plt>
jmp    1368 <main+0x198>
lea    0xd0b(%rip),%rdi
jmp    135c <main+0x18c>
lea    0xd41(%rip),%rdi
jmp    135c <main+0x18c>
lea    0xd7f(%rip),%rdi
call   10c0 <perror@plt>
mov    %ebp,%edi
call   1090 <close@plt>
mov    0x2c51(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@.str = [64 x i8] c"USO:./clientFiles <archivo a enviar> <direccionIP del servidor>\00"
@EXIT_FAILURE = global i32 0
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@IPPROTO_TCP = global i32 0
@.str.1 = [21 x i8] c"cannot create socket\00"
@AF_INET = global i32 0
@.str.2 = [63 x i8] c"error: El primer par\C3\A1nmetro no es una familia de direcci\C3\B3nes\00"
@.str.3 = [71 x i8] c"char string (El segundo parmetro no contiene una direcci\C3\B3n IP v\C3\A1lida\00"
@.str.4 = [45 x i8] c"Error a la hora de conectarse con el cliente\00"
@.str.5 = [36 x i8] c"Se ha conectado con el servidor:%s\0A\00"
@.str.6 = [18 x i8] c"envia al servidor\00"
@.str.7 = [20 x i8] c"hola soy el cliente\00"
@.str.8 = [28 x i8] c"Error al enviar el arvhivo:\00"
@.str.9 = [8 x i8] c"enviado\00"
@.str.10 = [29 x i8] c"\0AConfirmaci\C3\B3n recibida:\0A%s\0A\00"
@.str.11 = [4 x i8] c"fin\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.sockaddr_in
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [19 x i8]
%12 = alloca [80 x i8]
%13 = alloca i32
%14 = alloca i32
%15 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 3
br i1 %17, label %18, label %22
18: ; preds = %2
%19 = call i32 @perror(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0))
%20 = load i32, i32* @EXIT_FAILURE
%21 = call i32 @exit(i32 %20)
unreachable
22: ; preds = %2
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 1
%25 = load i8*, i8** %24
store i8* %25, i8** %15
%26 = load i32, i32* @PF_INET
%27 = load i32, i32* @SOCK_STREAM
%28 = load i32, i32* @IPPROTO_TCP
%29 = call i32 @socket(i32 %26, i32 %27, i32 %28)
store i32 %29, i32* %9
%30 = load i32, i32* %9
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %36
32: ; preds = %22
%33 = call i32 @perror(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%34 = load i32, i32* @EXIT_FAILURE
%35 = call i32 @exit(i32 %34)
unreachable
36: ; preds = %22
%37 = call i32 @memset(%struct.sockaddr_in* %6, i32 0, i32 12)
%38 = load i32, i32* @AF_INET
%39 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 2
store i32 %38, i32* %39
%40 = call i32 @htons(i32 1100)
%41 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 1
store i32 %40, i32* %41
%42 = load i32, i32* @AF_INET
%43 = load i8**, i8*** %5
%44 = getelementptr inbounds i8*, i8** %43, i64 2
%45 = load i8*, i8** %44
%46 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 0
%47 = call i32 @inet_pton(i32 %42, i8* %45, i32* %46)
store i32 %47, i32* %8
store i32 12, i32* %7
%48 = load i32, i32* %8
%49 = icmp sgt i32 0, %48
br i1 %49, label %50, label %56
50: ; preds = %36
%51 = call i32 @perror(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0))
%52 = load i32, i32* %9
%53 = call i32 @close(i32 %52)
%54 = load i32, i32* @EXIT_FAILURE
%55 = call i32 @exit(i32 %54)
unreachable
56: ; preds = %36
%57 = load i32, i32* %8
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %65
59: ; preds = %56
%60 = call i32 @perror(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.3, i64 0, i64 0))
%61 = load i32, i32* %9
%62 = call i32 @close(i32 %61)
%63 = load i32, i32* @EXIT_FAILURE
%64 = call i32 @exit(i32 %63)
unreachable
65: ; preds = %56
br label %66
66: ; preds = %65
%67 = load i32, i32* %9
%68 = bitcast %struct.sockaddr_in* %6 to %struct.sockaddr*
%69 = call i32 @connect(i32 %67, %struct.sockaddr* %68, i32 12)
%70 = icmp eq i32 %69, -1
br i1 %70, label %71, label %77
71: ; preds = %66
%72 = call i32 @perror(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%73 = load i32, i32* %9
%74 = call i32 @close(i32 %73)
%75 = load i32, i32* @EXIT_FAILURE
%76 = call i32 @exit(i32 %75)
unreachable
77: ; preds = %66
%78 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 0
%79 = load i32, i32* %78
%80 = call i64 @inet_ntoa(i32 %79)
%81 = inttoptr i64 %80 to i8*
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i8* %81)
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%84 = getelementptr inbounds [19 x i8], [19 x i8]* %11, i64 0, i64 0
%85 = call i32 @strcpy(i8* %84, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%86 = load i32, i32* %9
%87 = getelementptr inbounds [19 x i8], [19 x i8]* %11, i64 0, i64 0
%88 = call i32 @send(i32 %86, i8* %87, i32 19, i32 0)
%89 = icmp eq i32 %88, -1
br i1 %89, label %90, label %92
90: ; preds = %77
%91 = call i32 @perror(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
br label %92
92: ; preds = %90, %77
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%94 = load i32, i32* %9
%95 = getelementptr inbounds [80 x i8], [80 x i8]* %12, i64 0, i64 0
%96 = call i32 @read(i32 %94, i8* %95, i32 80)
%97 = getelementptr inbounds [80 x i8], [80 x i8]* %12, i64 0, i64 0
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i8* %97)
%99 = load i32, i32* %9
%100 = call i32 @close(i32 %99)
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@.str = [64 x i8] c"USO:./clientFiles <archivo a enviar> <direccionIP del servidor>\00"
@EXIT_FAILURE = global i32 0
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@IPPROTO_TCP = global i32 0
@.str.1 = [21 x i8] c"cannot create socket\00"
@AF_INET = global i32 0
@.str.2 = [63 x i8] c"error: El primer par\C3\A1nmetro no es una familia de direcci\C3\B3nes\00"
@.str.3 = [71 x i8] c"char string (El segundo parmetro no contiene una direcci\C3\B3n IP v\C3\A1lida\00"
@.str.4 = [45 x i8] c"Error a la hora de conectarse con el cliente\00"
@.str.5 = [36 x i8] c"Se ha conectado con el servidor:%s\0A\00"
@.str.6 = [18 x i8] c"envia al servidor\00"
@.str.7 = [20 x i8] c"hola soy el cliente\00"
@.str.8 = [28 x i8] c"Error al enviar el arvhivo:\00"
@.str.9 = [8 x i8] c"enviado\00"
@.str.10 = [29 x i8] c"\0AConfirmaci\C3\B3n recibida:\0A%s\0A\00"
@.str.11 = [4 x i8] c"fin\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.sockaddr_in
%4 = alloca [19 x i8]
%5 = alloca [80 x i8]
%6 = bitcast %struct.sockaddr_in* %3 to i8*
%7 = getelementptr inbounds [19 x i8], [19 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [80 x i8], [80 x i8]* %5, i64 0, i64 0
%9 = icmp slt i32 %0, 3
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = tail call i32 @perror(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* @EXIT_FAILURE
%13 = tail call i32 @exit(i32 %12)
unreachable
14: ; preds = %2
%15 = load i32, i32* @PF_INET
%16 = load i32, i32* @SOCK_STREAM
%17 = load i32, i32* @IPPROTO_TCP
%18 = tail call i32 @socket(i32 %15, i32 %16, i32 %17)
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %24
20: ; preds = %14
%21 = tail call i32 @perror(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%22 = load i32, i32* @EXIT_FAILURE
%23 = tail call i32 @exit(i32 %22)
unreachable
24: ; preds = %14
%25 = call i32 @memset(%struct.sockaddr_in* %3, i32 0, i32 12)
%26 = load i32, i32* @AF_INET
%27 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %26, i32* %27
%28 = call i32 @htons(i32 1100)
%29 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1
store i32 %28, i32* %29
%30 = load i32, i32* @AF_INET
%31 = getelementptr inbounds i8*, i8** %1, i64 2
%32 = load i8*, i8** %31
%33 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0
%34 = call i32 @inet_pton(i32 %30, i8* %32, i32* %33)
%35 = icmp slt i32 %34, 0
br i1 %35, label %36, label %41
36: ; preds = %24
%37 = call i32 @perror(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0))
%38 = call i32 @close(i32 %18)
%39 = load i32, i32* @EXIT_FAILURE
%40 = call i32 @exit(i32 %39)
unreachable
41: ; preds = %24
%42 = icmp eq i32 %34, 0
br i1 %42, label %43, label %48
43: ; preds = %41
%44 = call i32 @perror(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.3, i64 0, i64 0))
%45 = call i32 @close(i32 %18)
%46 = load i32, i32* @EXIT_FAILURE
%47 = call i32 @exit(i32 %46)
unreachable
48: ; preds = %41
%49 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%50 = call i32 @connect(i32 %18, %struct.sockaddr* %49, i32 12)
%51 = icmp eq i32 %50, -1
br i1 %51, label %52, label %57
52: ; preds = %48
%53 = call i32 @perror(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%54 = call i32 @close(i32 %18)
%55 = load i32, i32* @EXIT_FAILURE
%56 = call i32 @exit(i32 %55)
unreachable
57: ; preds = %48
%58 = load i32, i32* %33
%59 = call i64 @inet_ntoa(i32 %58)
%60 = inttoptr i64 %59 to i8*
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i8* %60)
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%63 = call i32 @strcpy(i8* %7, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%64 = call i32 @send(i32 %18, i8* %7, i32 19, i32 0)
%65 = icmp eq i32 %64, -1
br i1 %65, label %66, label %68
66: ; preds = %57
%67 = call i32 @perror(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
br label %68
68: ; preds = %66, %57
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%70 = call i32 @read(i32 %18, i8* %8, i32 80)
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i8* %8)
%72 = call i32 @close(i32 %18)
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}