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

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ SOCK_STREAM;
int accept(int, struct sockaddr_in *, int *);
scalar_t__ bind(int, struct sockaddr_in *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ getsockname(int, struct sockaddr *, int *);
scalar_t__ listen(int, int);
int ntohs(scalar_t__);
int /*<<< orphan*/ printf(char *);
int recv(int, char *, int, int /*<<< orphan*/);
scalar_t__ send(int, char *, int, int /*<<< orphan*/);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
main() {
  int sockint, s;
  int namelen;
  int ns;
  struct sockaddr_in client;
  struct sockaddr_in server;
  char buf[32];
  s = socket(AF_INET, SOCK_STREAM, 0);
  if (s == -1) {
    fprintf(stderr, "ERRO em socket()\n");
    exit(2);
  } else
    fprintf(stderr, "Socket criado com sucesso\n");
  server.sin_family = AF_INET;
  server.sin_port = 0;
  server.sin_addr.s_addr = INADDR_ANY;
  if (bind(s, &server, sizeof(server)) < 0) {
    fprintf(stderr, "Erro em bind()\n");
    exit(3);
  }
  namelen = sizeof(server);
  if (getsockname(s, (struct sockaddr *)&server, &namelen) < 0) {
    fprintf(stderr, "Erro em getsockname()\n");
    exit(4);
  }
  fprintf(stderr, "Numero de porta : %d\n", ntohs(server.sin_port));
  if (listen(s, 1) != 0) {
    fprintf(stderr, "Erro em listen()\n");
    exit(5);
  }
  namelen = sizeof(client);
  if ((ns = accept(s, &client, &namelen)) == -1) {
    fprintf(stderr, "Erro em accept()\n");
    exit(6);
  }
  if (recv(ns, buf, sizeof(buf), 0) == -1) {
    fprintf(stderr, "Erro em recv()\n");
    exit(7);
  }
  if (send(ns, buf, sizeof(buf), 0) < 0) {
    fprintf(stderr, " Erro em send()\n");
    exit(8);
  }
  close(ns);
  close(s);
  printf("Servidor finalizado\n");
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e12(%rip),%rax
mov    (%rax),%edi
mov    0x2de9(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10e0 <socket@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0xffffffff,-0xc(%rbp)
jne    1216 <main+0x56>
mov    0x2dd4(%rip),%rax
mov    (%rax),%edi
lea    0xdfb(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x2,%edi
call   10d0 <exit@plt>
mov    0x2db3(%rip),%rax
mov    (%rax),%edi
lea    0xdec(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2db4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
movq   $0x0,-0x38(%rbp)
mov    0x2d98(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    -0xc(%rbp),%edi
lea    -0x38(%rbp),%rsi
mov    $0x10,%edx
call   10a0 <bind@plt>
cmp    $0x0,%rax
jge    1289 <main+0xc9>
mov    0x2d61(%rip),%rax
mov    (%rax),%edi
lea    0xdb5(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x3,%edi
call   10d0 <exit@plt>
movl   $0x10,-0x10(%rbp)
mov    -0xc(%rbp),%edi
lea    -0x38(%rbp),%rsi
lea    -0x10(%rbp),%rdx
call   10c0 <getsockname@plt>
cmp    $0x0,%rax
jge    12cb <main+0x10b>
mov    0x2d1f(%rip),%rax
mov    (%rax),%edi
lea    0xd83(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x4,%edi
call   10d0 <exit@plt>
mov    0x2cfe(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    -0x38(%rbp),%rdi
call   1090 <ntohs@plt>
mov    -0x64(%rbp),%edi
mov    %eax,%edx
lea    0xd68(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0xc(%rbp),%edi
mov    $0x1,%esi
call   1080 <listen@plt>
cmp    $0x0,%rax
je     132b <main+0x16b>
mov    0x2cbf(%rip),%rax
mov    (%rax),%edi
lea    0xd50(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x5,%edi
call   10d0 <exit@plt>
movl   $0x10,-0x10(%rbp)
mov    -0xc(%rbp),%edi
lea    -0x28(%rbp),%rsi
lea    -0x10(%rbp),%rdx
call   10b0 <accept@plt>
mov    %eax,-0x14(%rbp)
cmp    $0xffffffff,%eax
jne    136f <main+0x1af>
mov    0x2c7b(%rip),%rax
mov    (%rax),%edi
lea    0xd1e(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x6,%edi
call   10d0 <exit@plt>
mov    -0x14(%rbp),%edi
lea    -0x60(%rbp),%rsi
mov    $0x20,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
cmp    $0xffffffff,%eax
jne    13ac <main+0x1ec>
mov    0x2c3e(%rip),%rax
mov    (%rax),%edi
lea    0xcf3(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x7,%edi
call   10d0 <exit@plt>
mov    -0x14(%rbp),%edi
lea    -0x60(%rbp),%rsi
mov    $0x20,%edx
xor    %ecx,%ecx
call   1040 <send@plt>
cmp    $0x0,%rax
jge    13ea <main+0x22a>
mov    0x2c00(%rip),%rax
mov    (%rax),%edi
lea    0xcc5(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x8,%edi
call   10d0 <exit@plt>
mov    -0x14(%rbp),%edi
call   1060 <close@plt>
mov    -0xc(%rbp),%edi
call   1060 <close@plt>
lea    0xcae(%rip),%rdi
call   1050 <printf@plt>
xor    %edi,%edi
call   10d0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x50,%rsp
mov    0x2e19(%rip),%rbp
mov    0x0(%rbp),%edi
mov    0x2def(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10e0 <socket@plt>
mov    0x2de7(%rip),%r14
mov    (%r14),%edi
cmp    $0xffffffff,%eax
jne    1209 <main+0x49>
lea    0xe08(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x2,%edi
call   10d0 <exit@plt>
mov    %eax,%ebx
lea    0xe00(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x0(%rbp),%eax
mov    %eax,0x1c(%rsp)
movq   $0x0,0x10(%rsp)
mov    0x2db0(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x18(%rsp)
lea    0x10(%rsp),%rsi
mov    %ebx,%edi
mov    $0x10,%edx
call   10a0 <bind@plt>
test   %rax,%rax
jns    1267 <main+0xa7>
mov    (%r14),%edi
lea    0xdd7(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x3,%edi
call   10d0 <exit@plt>
movl   $0x10,0xc(%rsp)
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    %ebx,%edi
call   10c0 <getsockname@plt>
mov    (%r14),%ebp
test   %rax,%rax
jns    12a2 <main+0xe2>
lea    0xdae(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x4,%edi
call   10d0 <exit@plt>
mov    0x10(%rsp),%rdi
call   1090 <ntohs@plt>
lea    0xda1(%rip),%rsi
mov    %ebp,%edi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    %ebx,%edi
mov    $0x1,%esi
call   1080 <listen@plt>
test   %rax,%rax
jne    1308 <main+0x148>
movl   $0x10,0xc(%rsp)
lea    0x40(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    %ebx,%edi
call   10b0 <accept@plt>
cmp    $0xffffffff,%eax
jne    1323 <main+0x163>
mov    (%r14),%edi
lea    0xd85(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x6,%edi
call   10d0 <exit@plt>
mov    (%r14),%edi
lea    0xd58(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x5,%edi
call   10d0 <exit@plt>
mov    %eax,%ebp
lea    0x20(%rsp),%rsi
mov    %eax,%edi
mov    $0x20,%edx
xor    %ecx,%ecx
call   1030 <recv@plt>
cmp    $0xffffffff,%eax
jne    1358 <main+0x198>
mov    (%r14),%edi
lea    0xd47(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x7,%edi
call   10d0 <exit@plt>
lea    0x20(%rsp),%rsi
mov    %ebp,%edi
mov    $0x20,%edx
xor    %ecx,%ecx
call   1050 <send@plt>
test   %rax,%rax
jns    138b <main+0x1cb>
mov    (%r14),%edi
lea    0xd24(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x8,%edi
call   10d0 <exit@plt>
mov    %ebp,%edi
call   1060 <close@plt>
mov    %ebx,%edi
call   1060 <close@plt>
lea    0xd0f(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { i64, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@stderr = global i32 0
@.str = [18 x i8] c"ERRO em socket()\0A\00"
@.str.1 = [27 x i8] c"Socket criado com sucesso\0A\00"
@INADDR_ANY = global i32 0
@.str.2 = [16 x i8] c"Erro em bind()\0A\00"
@.str.3 = [23 x i8] c"Erro em getsockname()\0A\00"
@.str.4 = [22 x i8] c"Numero de porta : %d\0A\00"
@.str.5 = [18 x i8] c"Erro em listen()\0A\00"
@.str.6 = [18 x i8] c"Erro em accept()\0A\00"
@.str.7 = [16 x i8] c"Erro em recv()\0A\00"
@.str.8 = [17 x i8] c" Erro em send()\0A\00"
@.str.9 = [21 x i8] c"Servidor finalizado\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca %struct.sockaddr_in
%7 = alloca %struct.sockaddr_in
%8 = alloca [32 x i8]
store i32 0, i32* %1
%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* %3
%12 = load i32, i32* %3
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %18
14: ; preds = %0
%15 = load i32, i32* @stderr
%16 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%17 = call i32 @exit(i32 2)
unreachable
18: ; preds = %0
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
br label %21
21: ; preds = %18
%22 = load i32, i32* @AF_INET
%23 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 2
store i32 %22, i32* %23
%24 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 0
store i64 0, i64* %24
%25 = load i32, i32* @INADDR_ANY
%26 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 1
%27 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %26, i32 0, i32 0
store i32 %25, i32* %27
%28 = load i32, i32* %3
%29 = call i64 @bind(i32 %28, %struct.sockaddr_in* %7, i32 16)
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %21
%32 = load i32, i32* @stderr
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%34 = call i32 @exit(i32 3)
unreachable
35: ; preds = %21
store i32 16, i32* %4
%36 = load i32, i32* %3
%37 = bitcast %struct.sockaddr_in* %7 to %struct.sockaddr*
%38 = call i64 @getsockname(i32 %36, %struct.sockaddr* %37, i32* %4)
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %35
%41 = load i32, i32* @stderr
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%43 = call i32 @exit(i32 4)
unreachable
44: ; preds = %35
%45 = load i32, i32* @stderr
%46 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 0
%47 = load i64, i64* %46
%48 = call i32 @ntohs(i64 %47)
%49 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i32 %48)
%50 = load i32, i32* %3
%51 = call i64 @listen(i32 %50, i32 1)
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %44
%54 = load i32, i32* @stderr
%55 = call i32 (i32, i8*, ...) @fprintf(i32 %54, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%56 = call i32 @exit(i32 5)
unreachable
57: ; preds = %44
store i32 16, i32* %4
%58 = load i32, i32* %3
%59 = call i32 @accept(i32 %58, %struct.sockaddr_in* %6, i32* %4)
store i32 %59, i32* %5
%60 = icmp eq i32 %59, -1
br i1 %60, label %61, label %65
61: ; preds = %57
%62 = load i32, i32* @stderr
%63 = call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%64 = call i32 @exit(i32 6)
unreachable
65: ; preds = %57
%66 = load i32, i32* %5
%67 = getelementptr inbounds [32 x i8], [32 x i8]* %8, i64 0, i64 0
%68 = call i32 @recv(i32 %66, i8* %67, i32 32, i32 0)
%69 = icmp eq i32 %68, -1
br i1 %69, label %70, label %74
70: ; preds = %65
%71 = load i32, i32* @stderr
%72 = call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%73 = call i32 @exit(i32 7)
unreachable
74: ; preds = %65
%75 = load i32, i32* %5
%76 = getelementptr inbounds [32 x i8], [32 x i8]* %8, i64 0, i64 0
%77 = call i64 @send(i32 %75, i8* %76, i32 32, i32 0)
%78 = icmp slt i64 %77, 0
br i1 %78, label %79, label %83
79: ; preds = %74
%80 = load i32, i32* @stderr
%81 = call i32 (i32, i8*, ...) @fprintf(i32 %80, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%82 = call i32 @exit(i32 8)
unreachable
83: ; preds = %74
%84 = load i32, i32* %5
%85 = call i32 @close(i32 %84)
%86 = load i32, i32* %3
%87 = call i32 @close(i32 %86)
%88 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
%89 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i64, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@stderr = global i32 0
@.str = [18 x i8] c"ERRO em socket()\0A\00"
@.str.1 = [27 x i8] c"Socket criado com sucesso\0A\00"
@INADDR_ANY = global i32 0
@.str.2 = [16 x i8] c"Erro em bind()\0A\00"
@.str.3 = [23 x i8] c"Erro em getsockname()\0A\00"
@.str.4 = [22 x i8] c"Numero de porta : %d\0A\00"
@.str.5 = [18 x i8] c"Erro em listen()\0A\00"
@.str.6 = [18 x i8] c"Erro em accept()\0A\00"
@.str.7 = [16 x i8] c"Erro em recv()\0A\00"
@.str.8 = [17 x i8] c" Erro em send()\0A\00"
@str = [20 x i8] c"Servidor finalizado\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.sockaddr_in
%3 = alloca %struct.sockaddr_in
%4 = alloca [32 x i8]
%5 = bitcast i32* %1 to i8*
%6 = bitcast %struct.sockaddr_in* %2 to i8*
%7 = bitcast %struct.sockaddr_in* %3 to i8*
%8 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
%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
%13 = load i32, i32* @stderr
br i1 %12, label %14, label %17
14: ; preds = %0
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%16 = tail call i32 @exit(i32 2)
unreachable
17: ; preds = %0
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%19 = load i32, i32* @AF_INET
%20 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %19, i32* %20
%21 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0
store i64 0, i64* %21
%22 = load i32, i32* @INADDR_ANY
%23 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1, i32 0
store i32 %22, i32* %23
%24 = call i64 @bind(i32 %11, %struct.sockaddr_in* %3, i32 16)
%25 = icmp slt i64 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %17
%27 = load i32, i32* @stderr
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%29 = call i32 @exit(i32 3)
unreachable
30: ; preds = %17
store i32 16, i32* %1
%31 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%32 = call i64 @getsockname(i32 %11, %struct.sockaddr* %31, i32* %1)
%33 = icmp slt i64 %32, 0
%34 = load i32, i32* @stderr
br i1 %33, label %35, label %38
35: ; preds = %30
%36 = call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%37 = call i32 @exit(i32 4)
unreachable
38: ; preds = %30
%39 = load i64, i64* %21
%40 = call i32 @ntohs(i64 %39)
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i32 %40)
%42 = call i64 @listen(i32 %11, i32 1)
%43 = icmp eq i64 %42, 0
br i1 %43, label %48, label %44
44: ; preds = %38
%45 = load i32, i32* @stderr
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%47 = call i32 @exit(i32 5)
unreachable
48: ; preds = %38
store i32 16, i32* %1
%49 = call i32 @accept(i32 %11, %struct.sockaddr_in* %2, i32* %1)
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %55
51: ; preds = %48
%52 = load i32, i32* @stderr
%53 = call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%54 = call i32 @exit(i32 6)
unreachable
55: ; preds = %48
%56 = call i32 @recv(i32 %49, i8* %8, i32 32, i32 0)
%57 = icmp eq i32 %56, -1
br i1 %57, label %58, label %62
58: ; preds = %55
%59 = load i32, i32* @stderr
%60 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%61 = call i32 @exit(i32 7)
unreachable
62: ; preds = %55
%63 = call i64 @send(i32 %49, i8* %8, i32 32, i32 0)
%64 = icmp slt i64 %63, 0
br i1 %64, label %65, label %69
65: ; preds = %62
%66 = load i32, i32* @stderr
%67 = call i32 (i32, i8*, ...) @fprintf(i32 %66, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%68 = call i32 @exit(i32 8)
unreachable
69: ; preds = %62
%70 = call i32 @close(i32 %49)
%71 = call i32 @close(i32 %11)
%72 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%73 = call i32 @exit(i32 0)
unreachable
}