#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;
};
typedef int /*<<< orphan*/ sockname;
typedef int socklen_t;
typedef int /*<<< orphan*/ fd_set;
typedef int /*<<< orphan*/ cadena;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
scalar_t__ FD_ISSET(int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ FD_SET(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ FD_SETSIZE;
int /*<<< orphan*/ FD_ZERO(int /*<<< orphan*/ *);
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ bzero(char *, int);
int /*<<< orphan*/ close(int);
int connect(int, struct sockaddr *, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ inet_addr(char *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int recv(int, char *, int, int /*<<< orphan*/);
int select(int /*<<< orphan*/, int /*<<< orphan*/ *, int /*<<< orphan*/ *,
           int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int send(int, char *, int /*<<< orphan*/, int /*<<< orphan*/);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ strlen(char *);
scalar_t__ strncmp(char *, char *, int);
main() {
  int sd, fin = 0;
  struct sockaddr_in sockname;
  char cadena[250];
  socklen_t len_sockname;
  fd_set general, buffer;
  sd = socket(AF_INET, SOCK_STREAM, 0);
  if (sd == -1) {
    perror("No se puede abrir el socket cliente\n");
    exit(1);
  }
  sockname.sin_family = AF_INET;
  sockname.sin_port = htons(2000);
  sockname.sin_addr.s_addr = inet_addr("127.0.0.1");
  len_sockname = sizeof(sockname);
  FD_ZERO(&general);
  FD_ZERO(&buffer);
  if (connect(sd, (struct sockaddr *)&sockname, len_sockname) == -1) {
    perror("Error de conexión");
    exit(1);
  }
  FD_SET(0, &general);
  FD_SET(sd, &general);
  do {
    buffer = general;
    printf("Mensaje:\n");
    if (select(FD_SETSIZE, &buffer, NULL, NULL, NULL) == -1) {
      perror("Error en la funcion <select>");
      exit(1);
    }
    if (FD_ISSET(0, &buffer)) {
      fgets(cadena, sizeof(cadena), stdin);
      if (send(sd, cadena, strlen(cadena), 0) == -1) {
        perror("Error enviando datos en el cliente");
      }
      if (strncmp(cadena, "quit", 4) == 0) {
        fin = 1;
      }
    } else {
      bzero(cadena, sizeof(cadena));
      if (recv(sd, cadena, sizeof(cadena), 0) == -1) {
        perror("Error en la operación de recv con el cliente");
      }
      printf("%s\n", cadena);
    }
  } while (fin == 0);
  close(sd);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
mov    0x2da8(%rip),%rax
mov    (%rax),%edi
mov    0x2d87(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1140 <socket@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
jne    1275 <main+0x55>
lea    0xd9a(%rip),%rdi
call   10f0 <perror@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
mov    0x2d6c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
mov    $0x7d0,%edi
call   1070 <htons@plt>
mov    %eax,-0x14(%rbp)
lea    0xd90(%rip),%rdi
call   10c0 <inet_addr@plt>
mov    %eax,-0x18(%rbp)
movl   $0xc,-0x124(%rbp)
lea    -0x128(%rbp),%rdi
call   10d0 <FD_ZERO@plt>
lea    -0x12c(%rbp),%rdi
call   10d0 <FD_ZERO@plt>
mov    -0x8(%rbp),%edi
lea    -0x18(%rbp),%rsi
mov    -0x124(%rbp),%edx
call   1120 <connect@plt>
cmp    $0xffffffff,%eax
jne    12f0 <main+0xd0>
lea    0xd4e(%rip),%rdi
call   10f0 <perror@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
xor    %edi,%edi
lea    -0x128(%rbp),%rsi
call   1130 <FD_SET@plt>
mov    -0x8(%rbp),%edi
lea    -0x128(%rbp),%rsi
call   1130 <FD_SET@plt>
mov    -0x128(%rbp),%eax
mov    %eax,-0x12c(%rbp)
lea    0xd22(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    0x2c9a(%rip),%rax
mov    (%rax),%edi
lea    -0x12c(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%r8d
mov    %r8,%rdx
mov    %r8,%rcx
call   10e0 <select@plt>
cmp    $0xffffffff,%eax
jne    1366 <main+0x146>
lea    0xcf5(%rip),%rdi
call   10f0 <perror@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
xor    %edi,%edi
lea    -0x12c(%rbp),%rsi
call   1050 <FD_ISSET@plt>
cmp    $0x0,%rax
je     1414 <main+0x1f4>
lea    -0x120(%rbp),%rdi
mov    0x2c54(%rip),%rax
mov    (%rax),%edx
mov    $0xfa,%esi
call   10b0 <fgets@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x13c(%rbp)
lea    -0x120(%rbp),%rax
mov    %rax,-0x138(%rbp)
lea    -0x120(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x13c(%rbp),%edi
mov    -0x138(%rbp),%rsi
mov    %eax,%edx
xor    %ecx,%ecx
call   1080 <send@plt>
cmp    $0xffffffff,%eax
jne    13e6 <main+0x1c6>
lea    0xc88(%rip),%rdi
call   10f0 <perror@plt>
lea    -0x120(%rbp),%rdi
lea    0xc98(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    140f <main+0x1ef>
movl   $0x1,-0xc(%rbp)
jmp    1465 <main+0x245>
lea    -0x120(%rbp),%rdi
mov    $0xfa,%esi
call   1100 <bzero@plt>
mov    -0x8(%rbp),%edi
lea    -0x120(%rbp),%rsi
mov    $0xfa,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
cmp    $0xffffffff,%eax
jne    1450 <main+0x230>
lea    0xc46(%rip),%rdi
call   10f0 <perror@plt>
lea    -0x120(%rbp),%rsi
lea    0xc61(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
jmp    146a <main+0x24a>
cmpl   $0x0,-0xc(%rbp)
je     130d <main+0xed>
mov    -0x8(%rbp),%edi
call   10a0 <close@plt>
mov    -0x4(%rbp),%eax
add    $0x140,%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    0x2db0(%rip),%rbx
mov    (%rbx),%edi
mov    0x2d8f(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1140 <socket@plt>
cmp    $0xffffffff,%eax
je     1429 <main+0x209>
mov    %eax,%r14d
mov    (%rbx),%eax
mov    %eax,0x18(%rsp)
mov    $0x7d0,%edi
call   1080 <htons@plt>
mov    %eax,0x14(%rsp)
lea    0xdb4(%rip),%rdi
call   10c0 <inet_addr@plt>
mov    %eax,0x10(%rsp)
lea    0xc(%rsp),%rdi
call   10d0 <FD_ZERO@plt>
lea    0x8(%rsp),%rdi
call   10d0 <FD_ZERO@plt>
lea    0x10(%rsp),%rsi
mov    %r14d,%edi
mov    $0xc,%edx
call   1120 <connect@plt>
cmp    $0xffffffff,%eax
je     1432 <main+0x212>
lea    0xc(%rsp),%rbx
xor    %edi,%edi
mov    %rbx,%rsi
call   1130 <FD_SET@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1130 <FD_SET@plt>
mov    0xc(%rsp),%eax
mov    %eax,0x8(%rsp)
lea    0xde3(%rip),%rdi
call   1050 <puts@plt>
mov    0x2cea(%rip),%r13
mov    0x0(%r13),%edi
lea    0x8(%rsp),%rsi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
call   10e0 <select@plt>
cmp    $0xffffffff,%eax
je     1413 <main+0x1f3>
lea    0x8(%rsp),%rbx
lea    0x20(%rsp),%rbp
lea    0xda8(%rip),%r12
lea    0xd6e(%rip),%r15
jmp    137c <main+0x15c>
cs nopw 0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    $0xfa,%esi
call   1100 <bzero@plt>
mov    %r14d,%edi
mov    %rbp,%rsi
mov    $0xfa,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
cmp    $0xffffffff,%eax
je     13e6 <main+0x1c6>
mov    %rbp,%rdi
call   1050 <puts@plt>
mov    0xc(%rsp),%eax
mov    %eax,0x8(%rsp)
mov    %r12,%rdi
call   1050 <puts@plt>
mov    0x0(%r13),%edi
mov    %rbx,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
call   10e0 <select@plt>
cmp    $0xffffffff,%eax
je     1413 <main+0x1f3>
xor    %edi,%edi
mov    %rbx,%rsi
call   1060 <FD_ISSET@plt>
test   %rax,%rax
je     1320 <main+0x100>
mov    0x2c4e(%rip),%rax
mov    (%rax),%edx
mov    %rbp,%rdi
mov    $0xfa,%esi
call   10b0 <fgets@plt>
mov    %rbp,%rdi
call   1070 <strlen@plt>
mov    %r14d,%edi
mov    %rbp,%rsi
mov    %eax,%edx
xor    %ecx,%ecx
call   1090 <send@plt>
cmp    $0xffffffff,%eax
je     13d8 <main+0x1b8>
mov    %rbp,%rdi
mov    %r15,%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
jne    1350 <main+0x130>
jmp    13f7 <main+0x1d7>
lea    0xc80(%rip),%rdi
call   10f0 <perror@plt>
jmp    13bd <main+0x19d>
lea    0xc9a(%rip),%rdi
call   10f0 <perror@plt>
jmp    1348 <main+0x128>
mov    %r14d,%edi
call   10a0 <close@plt>
xor    %eax,%eax
add    $0x128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc28(%rip),%rdi
call   10f0 <perror@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
lea    0xbd0(%rip),%rdi
jmp    141a <main+0x1fa>
lea    0xbf6(%rip),%rdi
jmp    141a <main+0x1fa>

LLVM IR (-O0):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [37 x i8] c"No se puede abrir el socket cliente\0A\00"
@.str.1 = [10 x i8] c"127.0.0.1\00"
@.str.2 = [19 x i8] c"Error de conexi\C3\B3n\00"
@.str.3 = [10 x i8] c"Mensaje:\0A\00"
@FD_SETSIZE = global i32 0
@.str.4 = [29 x i8] c"Error en la funcion <select>\00"
@stdin = global i32 0
@.str.5 = [35 x i8] c"Error enviando datos en el cliente\00"
@.str.6 = [5 x i8] c"quit\00"
@.str.7 = [46 x i8] c"Error en la operaci\C3\B3n de recv con el cliente\00"
@.str.8 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca %struct.sockaddr_in
%5 = alloca [250 x i8]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
%9 = load i32, i32* @AF_INET
%10 = load i32, i32* @SOCK_STREAM
%11 = call i32 @socket(i32 %9, i32 %10, i32 0)
store i32 %11, i32* %2
%12 = load i32, i32* %2
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %17
14: ; preds = %0
%15 = call i32 @perror(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @exit(i32 1)
unreachable
17: ; preds = %0
%18 = load i32, i32* @AF_INET
%19 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i32 0, i32 2
store i32 %18, i32* %19
%20 = call i32 @htons(i32 2000)
%21 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i32 0, i32 1
store i32 %20, i32* %21
%22 = call i32 @inet_addr(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%23 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i32 0, i32 0
%24 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %23, i32 0, i32 0
store i32 %22, i32* %24
store i32 12, i32* %6
%25 = call i32 @FD_ZERO(i32* %7)
%26 = call i32 @FD_ZERO(i32* %8)
%27 = load i32, i32* %2
%28 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%29 = load i32, i32* %6
%30 = call i32 @connect(i32 %27, %struct.sockaddr* %28, i32 %29)
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %35
32: ; preds = %17
%33 = call i32 @perror(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%34 = call i32 @exit(i32 1)
unreachable
35: ; preds = %17
%36 = call i32 @FD_SET(i32 0, i32* %7)
%37 = load i32, i32* %2
%38 = call i32 @FD_SET(i32 %37, i32* %7)
br label %39
39: ; preds = %82, %35
%40 = load i32, i32* %7
store i32 %40, i32* %8
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%42 = load i32, i32* @FD_SETSIZE
%43 = call i32 @select(i32 %42, i32* %8, i32* null, i32* null, i32* null)
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %48
45: ; preds = %39
%46 = call i32 @perror(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%47 = call i32 @exit(i32 1)
unreachable
48: ; preds = %39
%49 = call i64 @FD_ISSET(i32 0, i32* %8)
%50 = icmp ne i64 %49, 0
br i1 %50, label %51, label %69
51: ; preds = %48
%52 = getelementptr inbounds [250 x i8], [250 x i8]* %5, i64 0, i64 0
%53 = load i32, i32* @stdin
%54 = call i32 @fgets(i8* %52, i32 250, i32 %53)
%55 = load i32, i32* %2
%56 = getelementptr inbounds [250 x i8], [250 x i8]* %5, i64 0, i64 0
%57 = getelementptr inbounds [250 x i8], [250 x i8]* %5, i64 0, i64 0
%58 = call i32 @strlen(i8* %57)
%59 = call i32 @send(i32 %55, i8* %56, i32 %58, i32 0)
%60 = icmp eq i32 %59, -1
br i1 %60, label %61, label %63
61: ; preds = %51
%62 = call i32 @perror(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
br label %63
63: ; preds = %61, %51
%64 = getelementptr inbounds [250 x i8], [250 x i8]* %5, i64 0, i64 0
%65 = call i64 @strncmp(i8* %64, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 4)
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %68
67: ; preds = %63
store i32 1, i32* %3
br label %68
68: ; preds = %67, %63
br label %81
69: ; preds = %48
%70 = getelementptr inbounds [250 x i8], [250 x i8]* %5, i64 0, i64 0
%71 = call i32 @bzero(i8* %70, i32 250)
%72 = load i32, i32* %2
%73 = getelementptr inbounds [250 x i8], [250 x i8]* %5, i64 0, i64 0
%74 = call i32 @recv(i32 %72, i8* %73, i32 250, i32 0)
%75 = icmp eq i32 %74, -1
br i1 %75, label %76, label %78
76: ; preds = %69
%77 = call i32 @perror(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0))
br label %78
78: ; preds = %76, %69
%79 = getelementptr inbounds [250 x i8], [250 x i8]* %5, i64 0, i64 0
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %79)
br label %81
81: ; preds = %78, %68
br label %82
82: ; preds = %81
%83 = load i32, i32* %3
%84 = icmp eq i32 %83, 0
br i1 %84, label %39, label %85
85: ; preds = %82
%86 = load i32, i32* %2
%87 = call i32 @close(i32 %86)
%88 = load i32, i32* %1
ret i32 %88
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [37 x i8] c"No se puede abrir el socket cliente\0A\00"
@.str.1 = [10 x i8] c"127.0.0.1\00"
@.str.2 = [19 x i8] c"Error de conexi\C3\B3n\00"
@FD_SETSIZE = global i32 0
@.str.4 = [29 x i8] c"Error en la funcion <select>\00"
@stdin = global i32 0
@.str.5 = [35 x i8] c"Error enviando datos en el cliente\00"
@.str.6 = [5 x i8] c"quit\00"
@.str.7 = [46 x i8] c"Error en la operaci\C3\B3n de recv con el cliente\00"
@str = [9 x i8] c"Mensaje:\00"
define i32 @main() {
%1 = alloca %struct.sockaddr_in
%2 = alloca [250 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = bitcast %struct.sockaddr_in* %1 to i8*
%6 = getelementptr inbounds [250 x i8], [250 x i8]* %2, i64 0, i64 0
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = load i32, i32* @AF_INET
%10 = load i32, i32* @SOCK_STREAM
%11 = tail call i32 @socket(i32 %9, i32 %10, i32 0)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %16
13: ; preds = %0
%14 = tail call i32 @perror(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%15 = tail call i32 @exit(i32 1)
unreachable
16: ; preds = %0
%17 = load i32, i32* @AF_INET
%18 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 2
store i32 %17, i32* %18
%19 = tail call i32 @htons(i32 2000)
%20 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 1
store i32 %19, i32* %20
%21 = tail call i32 @inet_addr(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%22 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %1, i64 0, i32 0, i32 0
store i32 %21, i32* %22
%23 = call i32 @FD_ZERO(i32* %3)
%24 = call i32 @FD_ZERO(i32* %4)
%25 = bitcast %struct.sockaddr_in* %1 to %struct.sockaddr*
%26 = call i32 @connect(i32 %11, %struct.sockaddr* %25, i32 12)
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %31
28: ; preds = %16
%29 = call i32 @perror(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%30 = call i32 @exit(i32 1)
unreachable
31: ; preds = %16
%32 = call i32 @FD_SET(i32 0, i32* %3)
%33 = call i32 @FD_SET(i32 %11, i32* %3)
%34 = load i32, i32* %3
store i32 %34, i32* %4
%35 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%36 = load i32, i32* @FD_SETSIZE
%37 = call i32 @select(i32 %36, i32* %4, i32* null, i32* null, i32* null)
%38 = icmp eq i32 %37, -1
br i1 %38, label %39, label %42
39: ; preds = %56, %31
%40 = call i32 @perror(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%41 = call i32 @exit(i32 1)
unreachable
42: ; preds = %31, %56
%43 = call i64 @FD_ISSET(i32 0, i32* %4)
%44 = icmp eq i64 %43, 0
br i1 %44, label %62, label %45
45: ; preds = %42
%46 = load i32, i32* @stdin
%47 = call i32 @fgets(i8* %6, i32 250, i32 %46)
%48 = call i32 @strlen(i8* %6)
%49 = call i32 @send(i32 %11, i8* %6, i32 %48, i32 0)
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %53
51: ; preds = %45
%52 = call i32 @perror(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
br label %53
53: ; preds = %51, %45
%54 = call i64 @strncmp(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 4)
%55 = icmp eq i64 %54, 0
br i1 %55, label %70, label %56
56: ; preds = %53, %68
%57 = load i32, i32* %3
store i32 %57, i32* %4
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%59 = load i32, i32* @FD_SETSIZE
%60 = call i32 @select(i32 %59, i32* %4, i32* null, i32* null, i32* null)
%61 = icmp eq i32 %60, -1
br i1 %61, label %39, label %42
62: ; preds = %42
%63 = call i32 @bzero(i8* %6, i32 250)
%64 = call i32 @recv(i32 %11, i8* %6, i32 250, i32 0)
%65 = icmp eq i32 %64, -1
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = call i32 @perror(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0))
br label %68
68: ; preds = %66, %62
%69 = call i32 @puts(i8* %6)
br label %56
70: ; preds = %53
%71 = call i32 @close(i32 %11)
ret i32 0
}