#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_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  TYPE_1__ sin_addr;
  void *sin_port;
  void *sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ clSockAddr;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
void *AF_INET;
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ IPPROTO_TCP;
int /*<<< orphan*/ PF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int accept(int, struct sockaddr *, int *);
int /*<<< orphan*/ atoi(char *);
int bind(int, struct sockaddr *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ getIP(int /*<<< orphan*/, char *);
void *htons(int);
char *inet_ntoa(TYPE_1__);
int /*<<< orphan*/ inet_pton(void *, char *, TYPE_1__ *);
int listen(int, int);
char *malloc(int);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ recibirArchivo(int, int /*<<< orphan*/ *);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  struct sockaddr_in stSockAddr;
  struct sockaddr_in clSockAddr;
  FILE *archivo;
  char *direccIP;
  int SocketServerFD;
  int SocketClientFD;
  int clientLen;
  int serverLen;
  direccIP = malloc(20);
  if (argc < 2) {
    perror("Uso ./ServerFiles <clave de interfaz 0:lo 1:wlan 2:eth0>");
    exit(EXIT_FAILURE);
  }
  getIP(atoi(argv[1]), direccIP);
  if ((SocketServerFD = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) {
    perror("No se puede crear el socket");
    exit(EXIT_FAILURE);
  }
  memset(&stSockAddr, 0, sizeof stSockAddr);
  stSockAddr.sin_family = AF_INET;
  stSockAddr.sin_port = htons(1100);
  stSockAddr.sin_addr.s_addr = INADDR_ANY;
  if (bind(SocketServerFD, (struct sockaddr *)&stSockAddr, sizeof stSockAddr) ==
      -1) {
    perror("Error en bind");
    close(SocketServerFD);
    exit(EXIT_FAILURE);
  }
  inet_pton(AF_INET, direccIP, &stSockAddr.sin_addr);
  printf("Socket atado a la dirección %s\n",
         (char *)inet_ntoa(stSockAddr.sin_addr));
  if (listen(SocketServerFD, 10) == -1) {
    perror("Error listen");
    close(SocketServerFD);
    exit(EXIT_FAILURE);
  }
  while (1) {
    clientLen = sizeof(clSockAddr);
    if ((SocketClientFD = accept(SocketServerFD, (struct sockaddr *)&clSockAddr,
                                 &clientLen)) < 0) {
      perror("Fallo para acpetar la conexión del cliente");
    }
    clSockAddr.sin_family = AF_INET;
    clSockAddr.sin_port = htons(1100);
    printf("Cliente conectado: %s\n", inet_ntoa(clSockAddr.sin_addr));
    recibirArchivo(SocketClientFD, archivo);
  }
  close(SocketClientFD);
  close(SocketServerFD);
  return 0;
}


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)
mov    $0x14,%edi
call   1090 <malloc@plt>
mov    %rax,-0x50(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1248 <main+0x48>
lea    0xdcb(%rip),%rdi
call   10d0 <perror@plt>
mov    0x2d77(%rip),%rax
mov    (%rax),%edi
call   1100 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10f0 <atoi@plt>
mov    %eax,%edi
mov    -0x50(%rbp),%rsi
call   1110 <getIP@plt>
mov    0x2d59(%rip),%rax
mov    (%rax),%edi
mov    0x2d58(%rip),%rax
mov    (%rax),%esi
mov    0x2d5f(%rip),%rax
mov    (%rax),%edx
call   1120 <socket@plt>
mov    %eax,-0x54(%rbp)
cmp    $0xffffffff,%eax
jne    12a6 <main+0xa6>
lea    0xda6(%rip),%rdi
call   10d0 <perror@plt>
mov    0x2d19(%rip),%rax
mov    (%rax),%edi
call   1100 <exit@plt>
lea    -0x28(%rbp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1060 <memset@plt>
mov    0x2d2b(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    $0x44c,%edi
call   1040 <htons@plt>
mov    %rax,-0x20(%rbp)
mov    0x2d07(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    -0x54(%rbp),%edi
lea    -0x28(%rbp),%rsi
mov    $0x18,%edx
call   10b0 <bind@plt>
cmp    $0xffffffff,%eax
jne    131a <main+0x11a>
lea    0xd56(%rip),%rdi
call   10d0 <perror@plt>
mov    -0x54(%rbp),%edi
call   1070 <close@plt>
mov    0x2ca5(%rip),%rax
mov    (%rax),%edi
call   1100 <exit@plt>
mov    0x2cc7(%rip),%rax
mov    (%rax),%rdi
mov    -0x50(%rbp),%rsi
lea    -0x28(%rbp),%rdx
call   1080 <inet_pton@plt>
mov    -0x28(%rbp),%edi
call   1030 <inet_ntoa@plt>
mov    %rax,%rsi
lea    0xd20(%rip),%rdi
call   1050 <printf@plt>
mov    -0x54(%rbp),%edi
mov    $0xa,%esi
call   10a0 <listen@plt>
cmp    $0xffffffff,%eax
jne    1380 <main+0x180>
lea    0xd1f(%rip),%rdi
call   10d0 <perror@plt>
mov    -0x54(%rbp),%edi
call   1070 <close@plt>
mov    0x2c3f(%rip),%rax
mov    (%rax),%edi
call   1100 <exit@plt>
jmp    1385 <main+0x185>
movl   $0x18,-0x5c(%rbp)
mov    -0x54(%rbp),%edi
lea    -0x40(%rbp),%rsi
lea    -0x5c(%rbp),%rdx
call   10e0 <accept@plt>
mov    %eax,-0x58(%rbp)
cmp    $0x0,%eax
jge    13b4 <main+0x1b4>
lea    0xce2(%rip),%rdi
call   10d0 <perror@plt>
mov    0x2c2d(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    $0x44c,%edi
call   1040 <htons@plt>
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%edi
call   1030 <inet_ntoa@plt>
mov    %rax,%rsi
lea    0xcdb(%rip),%rdi
call   1050 <printf@plt>
mov    -0x58(%rbp),%edi
mov    -0x48(%rbp),%rsi
call   10c0 <recibirArchivo@plt>
jmp    1385 <main+0x185>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
mov    $0x14,%edi
call   1090 <malloc@plt>
cmp    $0x1,%ebp
jle    137c <main+0x17c>
mov    %rax,%r12
mov    0x8(%rbx),%rdi
call   10f0 <atoi@plt>
mov    %eax,%edi
mov    %r12,%rsi
call   1110 <getIP@plt>
mov    0x2d7d(%rip),%rax
mov    (%rax),%edi
mov    0x2d7c(%rip),%rax
mov    (%rax),%esi
mov    0x2d83(%rip),%rax
mov    (%rax),%edx
call   1120 <socket@plt>
cmp    $0xffffffff,%eax
je     1385 <main+0x185>
mov    %eax,%r15d
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1060 <memset@plt>
mov    0x2d65(%rip),%r14
mov    (%r14),%rax
mov    %rax,0x18(%rsp)
mov    $0x44c,%edi
call   1040 <htons@plt>
mov    %rax,0x10(%rsp)
mov    0x2d3f(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x8(%rsp)
mov    %r15d,%edi
mov    %rbx,%rsi
mov    $0x18,%edx
call   10b0 <bind@plt>
cmp    $0xffffffff,%eax
je     1393 <main+0x193>
mov    (%r14),%rdi
lea    0x8(%rsp),%rdx
mov    %r12,%rsi
call   1080 <inet_pton@plt>
mov    0x8(%rsp),%edi
call   1030 <inet_ntoa@plt>
lea    0xd83(%rip),%rdi
mov    %rax,%rsi
call   1050 <printf@plt>
mov    %r15d,%edi
mov    $0xa,%esi
call   10a0 <listen@plt>
cmp    $0xffffffff,%eax
je     139c <main+0x19c>
lea    0x20(%rsp),%r12
lea    0x4(%rsp),%r13
lea    0xdae(%rip),%rbx
jmp    1352 <main+0x152>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r14),%rax
mov    %rax,0x30(%rsp)
mov    $0x44c,%edi
call   1040 <htons@plt>
mov    %rax,0x28(%rsp)
mov    0x20(%rsp),%edi
call   1030 <inet_ntoa@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1050 <printf@plt>
mov    %ebp,%edi
call   10c0 <recibirArchivo@plt>
movl   $0x18,0x4(%rsp)
mov    %r15d,%edi
mov    %r12,%rsi
mov    %r13,%rdx
call   10e0 <accept@plt>
mov    %eax,%ebp
test   %eax,%eax
jns    1320 <main+0x120>
lea    0xd1c(%rip),%rdi
call   10d0 <perror@plt>
jmp    1320 <main+0x120>
lea    0xc7d(%rip),%rdi
jmp    138c <main+0x18c>
lea    0xcad(%rip),%rdi
call   10d0 <perror@plt>
jmp    13b0 <main+0x1b0>
lea    0xcbb(%rip),%rdi
jmp    13a3 <main+0x1a3>
lea    0xce1(%rip),%rdi
call   10d0 <perror@plt>
mov    %r15d,%edi
call   1070 <close@plt>
mov    0x2c01(%rip),%rax
mov    (%rax),%edi
call   1100 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { %struct.TYPE_3__, i8*, i8* }
%struct.TYPE_3__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [57 x i8] c"Uso ./ServerFiles <clave de interfaz 0:lo 1:wlan 2:eth0>\00"
@EXIT_FAILURE = global i32 0
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@IPPROTO_TCP = global i32 0
@.str.1 = [28 x i8] c"No se puede crear el socket\00"
@AF_INET = global i8* null
@INADDR_ANY = global i32 0
@.str.2 = [14 x i8] c"Error en bind\00"
@.str.3 = [33 x i8] c"Socket atado a la direcci\C3\B3n %s\0A\00"
@.str.4 = [13 x i8] c"Error listen\00"
@.str.5 = [44 x i8] c"Fallo para acpetar la conexi\C3\B3n del cliente\00"
@.str.6 = [23 x i8] c"Cliente conectado: %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.sockaddr_in
%7 = alloca %struct.sockaddr_in
%8 = alloca i32*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = call i8* @malloc(i32 20)
store i8* %14, i8** %9
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 2
br i1 %16, label %17, label %21
17: ; preds = %2
%18 = call i32 @perror(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%19 = load i32, i32* @EXIT_FAILURE
%20 = call i32 @exit(i32 %19)
unreachable
21: ; preds = %2
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = call i32 @atoi(i8* %24)
%26 = load i8*, i8** %9
%27 = call i32 @getIP(i32 %25, i8* %26)
%28 = load i32, i32* @PF_INET
%29 = load i32, i32* @SOCK_STREAM
%30 = load i32, i32* @IPPROTO_TCP
%31 = call i32 @socket(i32 %28, i32 %29, i32 %30)
store i32 %31, i32* %10
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %37
33: ; preds = %21
%34 = call i32 @perror(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%35 = load i32, i32* @EXIT_FAILURE
%36 = call i32 @exit(i32 %35)
unreachable
37: ; preds = %21
%38 = call i32 @memset(%struct.sockaddr_in* %6, i32 0, i32 24)
%39 = load i8*, i8** @AF_INET
%40 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 2
store i8* %39, i8** %40
%41 = call i8* @htons(i32 1100)
%42 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 1
store i8* %41, i8** %42
%43 = load i32, i32* @INADDR_ANY
%44 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 0
%45 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %44, i32 0, i32 0
store i32 %43, i32* %45
%46 = load i32, i32* %10
%47 = bitcast %struct.sockaddr_in* %6 to %struct.sockaddr*
%48 = call i32 @bind(i32 %46, %struct.sockaddr* %47, i32 24)
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %56
50: ; preds = %37
%51 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%52 = load i32, i32* %10
%53 = call i32 @close(i32 %52)
%54 = load i32, i32* @EXIT_FAILURE
%55 = call i32 @exit(i32 %54)
unreachable
56: ; preds = %37
%57 = load i8*, i8** @AF_INET
%58 = load i8*, i8** %9
%59 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 0
%60 = call i32 @inet_pton(i8* %57, i8* %58, %struct.TYPE_3__* %59)
%61 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 0
%62 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %61, i32 0, i32 0
%63 = load i32, i32* %62
%64 = call i8* @inet_ntoa(i32 %63)
%65 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i8* %64)
%66 = load i32, i32* %10
%67 = call i32 @listen(i32 %66, i32 10)
%68 = icmp eq i32 %67, -1
br i1 %68, label %69, label %75
69: ; preds = %56
%70 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%71 = load i32, i32* %10
%72 = call i32 @close(i32 %71)
%73 = load i32, i32* @EXIT_FAILURE
%74 = call i32 @exit(i32 %73)
unreachable
75: ; preds = %56
br label %76
76: ; preds = %75, %83
store i32 24, i32* %12
%77 = load i32, i32* %10
%78 = bitcast %struct.sockaddr_in* %7 to %struct.sockaddr*
%79 = call i32 @accept(i32 %77, %struct.sockaddr* %78, i32* %12)
store i32 %79, i32* %11
%80 = icmp slt i32 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %76
%82 = call i32 @perror(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0))
br label %83
83: ; preds = %81, %76
%84 = load i8*, i8** @AF_INET
%85 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 2
store i8* %84, i8** %85
%86 = call i8* @htons(i32 1100)
%87 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 1
store i8* %86, i8** %87
%88 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 0
%89 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %88, i32 0, i32 0
%90 = load i32, i32* %89
%91 = call i8* @inet_ntoa(i32 %90)
%92 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* %91)
%93 = load i32, i32* %11
%94 = load i32*, i32** %8
%95 = call i32 @recibirArchivo(i32 %93, i32* %94)
br label %76
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_3__, i8*, i8* }
%struct.TYPE_3__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [57 x i8] c"Uso ./ServerFiles <clave de interfaz 0:lo 1:wlan 2:eth0>\00"
@EXIT_FAILURE = global i32 0
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@IPPROTO_TCP = global i32 0
@.str.1 = [28 x i8] c"No se puede crear el socket\00"
@AF_INET = global i8* null
@INADDR_ANY = global i32 0
@.str.2 = [14 x i8] c"Error en bind\00"
@.str.3 = [33 x i8] c"Socket atado a la direcci\C3\B3n %s\0A\00"
@.str.4 = [13 x i8] c"Error listen\00"
@.str.5 = [44 x i8] c"Fallo para acpetar la conexi\C3\B3n del cliente\00"
@.str.6 = [23 x i8] c"Cliente conectado: %s\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.sockaddr_in
%4 = alloca %struct.sockaddr_in
%5 = alloca i32
%6 = bitcast %struct.sockaddr_in* %3 to i8*
%7 = bitcast %struct.sockaddr_in* %4 to i8*
%8 = bitcast i32* %5 to i8*
%9 = tail call dereferenceable_or_null(20) i8* @malloc(i32 20)
%10 = icmp slt i32 %0, 2
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = tail call i32 @perror(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%13 = load i32, i32* @EXIT_FAILURE
%14 = tail call i32 @exit(i32 %13)
unreachable
15: ; preds = %2
%16 = getelementptr inbounds i8*, i8** %1, i64 1
%17 = load i8*, i8** %16
%18 = tail call i32 @atoi(i8* %17)
%19 = tail call i32 @getIP(i32 %18, i8* %9)
%20 = load i32, i32* @PF_INET
%21 = load i32, i32* @SOCK_STREAM
%22 = load i32, i32* @IPPROTO_TCP
%23 = tail call i32 @socket(i32 %20, i32 %21, i32 %22)
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %29
25: ; preds = %15
%26 = tail call i32 @perror(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%27 = load i32, i32* @EXIT_FAILURE
%28 = tail call i32 @exit(i32 %27)
unreachable
29: ; preds = %15
%30 = call i32 @memset(%struct.sockaddr_in* %3, i32 0, i32 24)
%31 = load i8*, i8** @AF_INET
%32 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i8* %31, i8** %32
%33 = call i8* @htons(i32 1100)
%34 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1
store i8* %33, i8** %34
%35 = load i32, i32* @INADDR_ANY
%36 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0, i32 0
store i32 %35, i32* %36
%37 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%38 = call i32 @bind(i32 %23, %struct.sockaddr* %37, i32 24)
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %45
40: ; preds = %29
%41 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%42 = call i32 @close(i32 %23)
%43 = load i32, i32* @EXIT_FAILURE
%44 = call i32 @exit(i32 %43)
unreachable
45: ; preds = %29
%46 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0
%47 = load i8*, i8** @AF_INET
%48 = call i32 @inet_pton(i8* %47, i8* %9, %struct.TYPE_3__* %46)
%49 = load i32, i32* %36
%50 = call i8* @inet_ntoa(i32 %49)
%51 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i8* %50)
%52 = call i32 @listen(i32 %23, i32 10)
%53 = icmp eq i32 %52, -1
br i1 %53, label %59, label %54
54: ; preds = %45
%55 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%56 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 2
%57 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1
%58 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0, i32 0
br label %64
59: ; preds = %45
%60 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%61 = call i32 @close(i32 %23)
%62 = load i32, i32* @EXIT_FAILURE
%63 = call i32 @exit(i32 %62)
unreachable
64: ; preds = %54, %69
store i32 24, i32* %5
%65 = call i32 @accept(i32 %23, %struct.sockaddr* %55, i32* %5)
%66 = icmp slt i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = call i32 @perror(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0))
br label %69
69: ; preds = %67, %64
%70 = load i8*, i8** @AF_INET
store i8* %70, i8** %56
%71 = call i8* @htons(i32 1100)
store i8* %71, i8** %57
%72 = load i32, i32* %58
%73 = call i8* @inet_ntoa(i32 %72)
%74 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* %73)
%75 = call i32 @recibirArchivo(i32 %65, i32* undef)
br label %64
}