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

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int atoi(char *);
int /*<<< orphan*/ bcopy(char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ bzero(char *, int);
int /*<<< orphan*/ close(int);
scalar_t__ connect(int, struct sockaddr *, int);
int /*<<< orphan*/ error(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ feof(int /*<<< orphan*/);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
struct hostent *gethostbyname(char *);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ printf(char *, char *);
int read(int, char *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ strlen(char *);
int write(int, char *, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  int sockfd, portno, n;
  struct sockaddr_in serv_addr;
  struct hostent *server;
  char buffer[(5 * 1024 * 1024)];
  if (argc < 3) {
    fprintf(stderr, "usage %s hostname port\n", argv[0]);
    exit(0);
  }
  portno = atoi(argv[2]);
  sockfd = socket(AF_INET, SOCK_STREAM, 0);
  if (sockfd < 0)
    error("ERROR opening socket");
  server = gethostbyname(argv[1]);
  if (server == NULL) {
    fprintf(stderr, "ERROR, no such host\n");
    exit(0);
  }
  bzero((char *)&serv_addr, sizeof(serv_addr));
  serv_addr.sin_family = AF_INET;
  bcopy((char *)server->h_addr, (char *)&serv_addr.sin_addr.s_addr,
        server->h_length);
  serv_addr.sin_port = htons(portno);
  if (connect(sockfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) < 0)
    error("ERROR connecting");
  while (!feof(stdin)) {
    bzero(buffer, (5 * 1024 * 1024));
    if (fgets(buffer, (5 * 1024 * 1024) - 1, stdin) == NULL)
      break;
    n = write(sockfd, buffer, strlen(buffer));
    if (n < 0)
      error("ERROR writing to socket");
    bzero(buffer, (5 * 1024 * 1024));
    n = read(sockfd, buffer, (5 * 1024 * 1024) - 1);
    if (n < 0)
      error("ERROR reading from socket");
    printf("%s", buffer);
  }
  close(sockfd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x500040,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    1258 <main+0x48>
mov    0x2d96(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xdb6(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
xor    %edi,%edi
call   1110 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1100 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    0x2d79(%rip),%rax
mov    (%rax),%edi
mov    0x2d50(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1130 <socket@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    129a <main+0x8a>
lea    0xd83(%rip),%rdi
call   10e0 <error@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10a0 <gethostbyname@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    12d4 <main+0xc4>
mov    0x2d13(%rip),%rax
mov    (%rax),%edi
lea    0xd67(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
xor    %edi,%edi
call   1110 <exit@plt>
lea    -0x28(%rbp),%rdi
mov    $0xc,%esi
call   10f0 <bzero@plt>
mov    0x2cff(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%rdi
lea    -0x28(%rbp),%rsi
add    $0x4,%rsi
mov    -0x30(%rbp),%rax
mov    (%rax),%edx
call   10d0 <bcopy@plt>
mov    -0x18(%rbp),%edi
call   1050 <htons@plt>
mov    %eax,-0x28(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x28(%rbp),%rsi
mov    $0xc,%edx
call   1120 <connect@plt>
cmp    $0x0,%rax
jge    133b <main+0x12b>
lea    0xd0c(%rip),%rdi
call   10e0 <error@plt>
jmp    1340 <main+0x130>
mov    0x2c99(%rip),%rax
mov    (%rax),%edi
call   10c0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1363 <main+0x153>
jmp    1443 <main+0x233>
lea    -0x500030(%rbp),%rdi
mov    $0x500000,%esi
call   10f0 <bzero@plt>
lea    -0x500030(%rbp),%rdi
mov    0x2c5e(%rip),%rax
mov    (%rax),%edx
mov    $0x4fffff,%esi
call   1090 <fgets@plt>
cmp    $0x0,%rax
jne    139d <main+0x18d>
jmp    1443 <main+0x233>
mov    -0x14(%rbp),%eax
mov    %eax,-0x50003c(%rbp)
lea    -0x500030(%rbp),%rax
mov    %rax,-0x500038(%rbp)
lea    -0x500030(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x50003c(%rbp),%edi
mov    -0x500038(%rbp),%rsi
mov    %eax,%edx
call   1030 <write@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    13ed <main+0x1dd>
lea    0xc6b(%rip),%rdi
call   10e0 <error@plt>
lea    -0x500030(%rbp),%rdi
mov    $0x500000,%esi
call   10f0 <bzero@plt>
mov    -0x14(%rbp),%edi
lea    -0x500030(%rbp),%rsi
mov    $0x4fffff,%edx
call   1080 <read@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    142b <main+0x21b>
lea    0xc45(%rip),%rdi
call   10e0 <error@plt>
lea    -0x500030(%rbp),%rsi
lea    0xc4c(%rip),%rdi
call   1060 <printf@plt>
jmp    1340 <main+0x130>
mov    -0x14(%rbp),%edi
call   1070 <close@plt>
xor    %eax,%eax
add    $0x500040,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x500018,%rsp
mov    %rsi,%rbx
cmp    $0x2,%edi
jle    13ac <main+0x19c>
mov    0x10(%rbx),%rdi
call   1100 <atoi@plt>
mov    %eax,%r14d
mov    0x2da8(%rip),%r12
mov    (%r12),%edi
mov    0x2d7d(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1130 <socket@plt>
mov    %eax,%ebp
test   %eax,%eax
jns    1266 <main+0x56>
lea    0xdb7(%rip),%rdi
call   10e0 <error@plt>
mov    0x8(%rbx),%rdi
call   10a0 <gethostbyname@plt>
test   %rax,%rax
je     13cd <main+0x1bd>
mov    %rax,%rbx
mov    %rsp,%r15
mov    %r15,%rdi
mov    $0xc,%esi
call   10f0 <bzero@plt>
mov    (%r12),%eax
mov    %eax,0x8(%rsp)
mov    0x8(%rbx),%rsi
lea    0x4(%rsp),%rdi
mov    (%rbx),%edx
call   10d0 <memmove@plt>
mov    %r14d,%edi
call   1050 <htons@plt>
mov    %eax,(%rsp)
mov    %ebp,%edi
mov    %r15,%rsi
mov    $0xc,%edx
call   1120 <connect@plt>
test   %rax,%rax
jns    12ce <main+0xbe>
lea    0xd79(%rip),%rdi
call   10e0 <error@plt>
mov    0x2d0b(%rip),%r13
mov    0x0(%r13),%edi
call   10c0 <feof@plt>
test   %eax,%eax
je     12fd <main+0xed>
mov    %ebp,%edi
call   1070 <close@plt>
xor    %eax,%eax
add    $0x500018,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x10(%rsp),%rbx
lea    0xd4a(%rip),%r14
lea    0xd5b(%rip),%r15
lea    0xd6e(%rip),%r12
jmp    1338 <main+0x128>
nopl   0x0(%rax)
mov    %r12,%rdi
mov    %rbx,%rsi
call   1060 <printf@plt>
mov    0x0(%r13),%edi
call   10c0 <feof@plt>
test   %eax,%eax
jne    12e2 <main+0xd2>
mov    %rbx,%rdi
mov    $0x500000,%esi
call   10f0 <bzero@plt>
mov    0x0(%r13),%edx
mov    %rbx,%rdi
mov    $0x4fffff,%esi
call   1090 <fgets@plt>
test   %rax,%rax
je     12e2 <main+0xd2>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1030 <write@plt>
test   %eax,%eax
jns    137f <main+0x16f>
mov    %r14,%rdi
call   10e0 <error@plt>
mov    %rbx,%rdi
mov    $0x500000,%esi
call   10f0 <bzero@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x4fffff,%edx
call   1080 <read@plt>
test   %eax,%eax
jns    1320 <main+0x110>
mov    %r15,%rdi
call   10e0 <error@plt>
jmp    1320 <main+0x110>
mov    0x2c1d(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xc41(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
xor    %edi,%edi
call   1110 <exit@plt>
mov    0x2bfc(%rip),%rax
mov    (%rax),%edi
lea    0xc50(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
xor    %edi,%edi
call   1110 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i32, i64 }
%struct.sockaddr = type { i32 }
@stderr = global i32 0
@.str = [24 x i8] c"usage %s hostname port\0A\00"
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str.1 = [21 x i8] c"ERROR opening socket\00"
@.str.2 = [21 x i8] c"ERROR, no such host\0A\00"
@.str.3 = [17 x i8] c"ERROR connecting\00"
@stdin = global i32 0
@.str.4 = [24 x i8] c"ERROR writing to socket\00"
@.str.5 = [26 x i8] c"ERROR reading from socket\00"
@.str.6 = [3 x i8] c"%s\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.hostent*
%11 = alloca [5242880 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = load i32, i32* %4
%13 = icmp slt i32 %12, 3
br i1 %13, label %14, label %21
14: ; preds = %2
%15 = load i32, i32* @stderr
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 0
%18 = load i8*, i8** %17
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %18)
%20 = call i32 @exit(i32 0)
unreachable
21: ; preds = %2
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 2
%24 = load i8*, i8** %23
%25 = call i32 @atoi(i8* %24)
store i32 %25, i32* %7
%26 = load i32, i32* @AF_INET
%27 = load i32, i32* @SOCK_STREAM
%28 = call i32 @socket(i32 %26, i32 %27, i32 0)
store i32 %28, i32* %6
%29 = load i32, i32* %6
%30 = icmp slt i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %21
%32 = call i32 @error(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
br label %33
33: ; preds = %31, %21
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 1
%36 = load i8*, i8** %35
%37 = call %struct.hostent* @gethostbyname(i8* %36)
store %struct.hostent* %37, %struct.hostent** %10
%38 = load %struct.hostent*, %struct.hostent** %10
%39 = icmp eq %struct.hostent* %38, null
br i1 %39, label %40, label %44
40: ; preds = %33
%41 = load i32, i32* @stderr
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%43 = call i32 @exit(i32 0)
unreachable
44: ; preds = %33
%45 = bitcast %struct.sockaddr_in* %9 to i8*
%46 = call i32 @bzero(i8* %45, i32 12)
%47 = load i32, i32* @AF_INET
%48 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 2
store i32 %47, i32* %48
%49 = load %struct.hostent*, %struct.hostent** %10
%50 = getelementptr inbounds %struct.hostent, %struct.hostent* %49, i32 0, i32 1
%51 = load i64, i64* %50
%52 = inttoptr i64 %51 to i8*
%53 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 1
%54 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %53, i32 0, i32 0
%55 = bitcast i32* %54 to i8*
%56 = load %struct.hostent*, %struct.hostent** %10
%57 = getelementptr inbounds %struct.hostent, %struct.hostent* %56, i32 0, i32 0
%58 = load i32, i32* %57
%59 = call i32 @bcopy(i8* %52, i8* %55, i32 %58)
%60 = load i32, i32* %7
%61 = call i32 @htons(i32 %60)
%62 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 0
store i32 %61, i32* %62
%63 = load i32, i32* %6
%64 = bitcast %struct.sockaddr_in* %9 to %struct.sockaddr*
%65 = call i64 @connect(i32 %63, %struct.sockaddr* %64, i32 12)
%66 = icmp slt i64 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %44
%68 = call i32 @error(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
br label %69
69: ; preds = %67, %44
br label %70
70: ; preds = %103, %69
%71 = load i32, i32* @stdin
%72 = call i32 @feof(i32 %71)
%73 = icmp ne i32 %72, 0
%74 = xor i1 %73, true
br i1 %74, label %75, label %106
75: ; preds = %70
%76 = getelementptr inbounds [5242880 x i8], [5242880 x i8]* %11, i64 0, i64 0
%77 = call i32 @bzero(i8* %76, i32 5242880)
%78 = getelementptr inbounds [5242880 x i8], [5242880 x i8]* %11, i64 0, i64 0
%79 = load i32, i32* @stdin
%80 = call i32* @fgets(i8* %78, i32 5242879, i32 %79)
%81 = icmp eq i32* %80, null
br i1 %81, label %82, label %83
82: ; preds = %75
br label %106
83: ; preds = %75
%84 = load i32, i32* %6
%85 = getelementptr inbounds [5242880 x i8], [5242880 x i8]* %11, i64 0, i64 0
%86 = getelementptr inbounds [5242880 x i8], [5242880 x i8]* %11, i64 0, i64 0
%87 = call i32 @strlen(i8* %86)
%88 = call i32 @write(i32 %84, i8* %85, i32 %87)
store i32 %88, i32* %8
%89 = load i32, i32* %8
%90 = icmp slt i32 %89, 0
br i1 %90, label %91, label %93
91: ; preds = %83
%92 = call i32 @error(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
br label %93
93: ; preds = %91, %83
%94 = getelementptr inbounds [5242880 x i8], [5242880 x i8]* %11, i64 0, i64 0
%95 = call i32 @bzero(i8* %94, i32 5242880)
%96 = load i32, i32* %6
%97 = getelementptr inbounds [5242880 x i8], [5242880 x i8]* %11, i64 0, i64 0
%98 = call i32 @read(i32 %96, i8* %97, i32 5242879)
store i32 %98, i32* %8
%99 = load i32, i32* %8
%100 = icmp slt i32 %99, 0
br i1 %100, label %101, label %103
101: ; preds = %93
%102 = call i32 @error(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
br label %103
103: ; preds = %101, %93
%104 = getelementptr inbounds [5242880 x i8], [5242880 x i8]* %11, i64 0, i64 0
%105 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %104)
br label %70
106: ; preds = %82, %70
%107 = load i32, i32* %6
%108 = call i32 @close(i32 %107)
ret i32 0
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i32, i64 }
%struct.sockaddr = type { i32 }
@stderr = global i32 0
@.str = [24 x i8] c"usage %s hostname port\0A\00"
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str.1 = [21 x i8] c"ERROR opening socket\00"
@.str.2 = [21 x i8] c"ERROR, no such host\0A\00"
@.str.3 = [17 x i8] c"ERROR connecting\00"
@stdin = global i32 0
@.str.4 = [24 x i8] c"ERROR writing to socket\00"
@.str.5 = [26 x i8] c"ERROR reading from socket\00"
@.str.6 = [3 x i8] c"%s\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.sockaddr_in
%4 = alloca [5242880 x i8]
%5 = bitcast %struct.sockaddr_in* %3 to i8*
%6 = getelementptr inbounds [5242880 x i8], [5242880 x i8]* %4, i64 0, i64 0
%7 = icmp slt i32 %0, 3
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load i32, i32* @stderr
%10 = load i8*, i8** %1
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %10)
%12 = tail call i32 @exit(i32 0)
unreachable
13: ; preds = %2
%14 = getelementptr inbounds i8*, i8** %1, i64 2
%15 = load i8*, i8** %14
%16 = tail call i32 @atoi(i8* %15)
%17 = load i32, i32* @AF_INET
%18 = load i32, i32* @SOCK_STREAM
%19 = tail call i32 @socket(i32 %17, i32 %18, i32 0)
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %13
%22 = tail call i32 @error(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
br label %23
23: ; preds = %21, %13
%24 = getelementptr inbounds i8*, i8** %1, i64 1
%25 = load i8*, i8** %24
%26 = tail call %struct.hostent* @gethostbyname(i8* %25)
%27 = icmp eq %struct.hostent* %26, null
br i1 %27, label %28, label %32
28: ; preds = %23
%29 = load i32, i32* @stderr
%30 = tail call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%31 = tail call i32 @exit(i32 0)
unreachable
32: ; preds = %23
%33 = call i32 @bzero(i8* %5, i32 12)
%34 = load i32, i32* @AF_INET
%35 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %34, i32* %35
%36 = getelementptr inbounds %struct.hostent, %struct.hostent* %26, i64 0, i32 1
%37 = load i64, i64* %36
%38 = inttoptr i64 %37 to i8*
%39 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1, i32 0
%40 = bitcast i32* %39 to i8*
%41 = getelementptr inbounds %struct.hostent, %struct.hostent* %26, i64 0, i32 0
%42 = load i32, i32* %41
%43 = tail call i32 @htons(i32 %16)
%44 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0
store i32 %43, i32* %44
%45 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%46 = call i64 @connect(i32 %19, %struct.sockaddr* %45, i32 12)
%47 = icmp slt i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %32
%49 = call i32 @error(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
br label %50
50: ; preds = %48, %32
%51 = load i32, i32* @stdin
%52 = call i32 @feof(i32 %51)
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %76
54: ; preds = %50, %71
%55 = call i32 @bzero(i8* %6, i32 5242880)
%56 = load i32, i32* @stdin
%57 = call i32* @fgets(i8* %6, i32 5242879, i32 %56)
%58 = icmp eq i32* %57, null
br i1 %58, label %76, label %59
59: ; preds = %54
%60 = call i32 @strlen(i8* %6)
%61 = call i32 @write(i32 %19, i8* %6, i32 %60)
%62 = icmp slt i32 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %59
%64 = call i32 @error(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
br label %65
65: ; preds = %63, %59
%66 = call i32 @bzero(i8* %6, i32 5242880)
%67 = call i32 @read(i32 %19, i8* %6, i32 5242879)
%68 = icmp slt i32 %67, 0
br i1 %68, label %69, label %71
69: ; preds = %65
%70 = call i32 @error(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
br label %71
71: ; preds = %69, %65
%72 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %6)
%73 = load i32, i32* @stdin
%74 = call i32 @feof(i32 %73)
%75 = icmp eq i32 %74, 0
br i1 %75, label %54, label %76
76: ; preds = %71, %54, %50
%77 = call i32 @close(i32 %19)
ret i32 0
}