#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;
};
typedef int /*<<< orphan*/ serverAddr;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ PF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ atoi(char *);
int /*<<< orphan*/ close(int);
int connect(int, struct sockaddr *, int);
int /*<<< orphan*/ error_handling(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ htons(int /*<<< orphan*/);
int /*<<< orphan*/ inet_addr(char *);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int read(int, char *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strlen(char *);
int write(int, char *, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  int sockServer;
  struct sockaddr_in serverAddr;
  char buf[1024];
  int strLength;
  int recvLength;
  int recvCount;
  if (argc != 3) {
    printf("argument error!\n");
    exit(1);
  }
  sockServer = socket(PF_INET, SOCK_STREAM, 0);
  if (sockServer == -1)
    error_handling("socket() error");
  memset(&serverAddr, 0, sizeof(serverAddr));
  serverAddr.sin_family = AF_INET;
  serverAddr.sin_addr.s_addr = inet_addr(argv[1]);
  serverAddr.sin_port = htons(atoi(argv[2]));
  if ((connect(sockServer, (struct sockaddr *)&serverAddr,
               sizeof(serverAddr))) == -1)
    error_handling("connect() error");
  else
    puts("Connect Success");
  while (1) {
    fputs("Input : ", stdout);
    fgets(buf, 1024, stdin);
    if (!strcmp(buf, "q\n") || !strcmp(buf, "Q\n"))
      break;
    strLength = write(sockServer, buf, strlen(buf));
    recvLength = 0;
    while (recvLength < strLength) {
      recvCount = read(sockServer, &buf[recvLength], 1024 - 1);
      recvLength += recvCount;
    }
    buf[recvLength] = 0;
    printf("Message from Server : %s", buf);
  }
  close(sockServer);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x440,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     124b <main+0x3b>
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
mov    0x2d76(%rip),%rax
mov    (%rax),%edi
mov    0x2d75(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1130 <socket@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
jne    127d <main+0x6d>
lea    0xd99(%rip),%rdi
call   10f0 <error_handling@plt>
lea    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1090 <memset@plt>
mov    0x2d54(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10d0 <inet_addr@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1100 <atoi@plt>
mov    %eax,%edi
call   1060 <htons@plt>
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0xc,%edx
call   1120 <connect@plt>
cmp    $0xffffffff,%eax
jne    12eb <main+0xdb>
lea    0xd3f(%rip),%rdi
call   10f0 <error_handling@plt>
jmp    12f7 <main+0xe7>
lea    0xd3e(%rip),%rdi
call   1030 <puts@plt>
jmp    12fc <main+0xec>
mov    0x2cbd(%rip),%rax
mov    (%rax),%esi
lea    0xd34(%rip),%rdi
call   1080 <fputs@plt>
lea    -0x420(%rbp),%rdi
mov    0x2cc1(%rip),%rax
mov    (%rax),%edx
mov    $0x400,%esi
call   10c0 <fgets@plt>
lea    -0x420(%rbp),%rdi
lea    0xd10(%rip),%rsi
call   10e0 <strcmp@plt>
cmp    $0x0,%eax
je     1363 <main+0x153>
lea    -0x420(%rbp),%rdi
lea    0xcf7(%rip),%rsi
call   10e0 <strcmp@plt>
cmp    $0x0,%eax
jne    1368 <main+0x158>
jmp    1425 <main+0x215>
mov    -0x14(%rbp),%eax
mov    %eax,-0x43c(%rbp)
lea    -0x420(%rbp),%rax
mov    %rax,-0x438(%rbp)
lea    -0x420(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x43c(%rbp),%edi
mov    -0x438(%rbp),%rsi
mov    %eax,%edx
call   1040 <write@plt>
mov    %eax,-0x424(%rbp)
movl   $0x0,-0x428(%rbp)
mov    -0x428(%rbp),%eax
cmp    -0x424(%rbp),%eax
jge    13fc <main+0x1ec>
mov    -0x14(%rbp),%edi
movslq -0x428(%rbp),%rax
lea    -0x420(%rbp),%rsi
add    %rax,%rsi
mov    $0x3ff,%edx
call   10b0 <read@plt>
mov    %eax,-0x42c(%rbp)
mov    -0x42c(%rbp),%eax
add    -0x428(%rbp),%eax
mov    %eax,-0x428(%rbp)
jmp    13af <main+0x19f>
movslq -0x428(%rbp),%rax
movb   $0x0,-0x420(%rbp,%rax,1)
lea    -0x420(%rbp),%rsi
lea    0xc36(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    12fc <main+0xec>
mov    -0x14(%rbp),%edi
call   10a0 <close@plt>
xor    %eax,%eax
add    $0x440,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x418,%rsp
cmp    $0x3,%edi
jne    13ef <main+0x1ef>
mov    %rsi,%r14
mov    0x2da4(%rip),%rax
mov    (%rax),%edi
mov    0x2da3(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1120 <socket@plt>
mov    %eax,%ebx
cmp    $0xffffffff,%eax
jne    1249 <main+0x49>
lea    0xdbc(%rip),%rdi
call   10e0 <error_handling@plt>
mov    %rsp,%r15
mov    %r15,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1090 <memset@plt>
mov    0x2d86(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x8(%rsp)
mov    0x8(%r14),%rdi
call   10d0 <inet_addr@plt>
mov    %eax,0x4(%rsp)
mov    0x10(%r14),%rdi
call   10f0 <atoi@plt>
mov    %eax,%edi
call   1060 <htons@plt>
mov    %eax,(%rsp)
mov    %ebx,%edi
mov    %r15,%rsi
mov    $0xc,%edx
call   1110 <connect@plt>
cmp    $0xffffffff,%eax
je     12aa <main+0xaa>
lea    0xd7c(%rip),%rdi
call   1030 <puts@plt>
jmp    12b6 <main+0xb6>
lea    0xd5e(%rip),%rdi
call   10e0 <error_handling@plt>
mov    0x2d03(%rip),%rax
mov    (%rax),%esi
lea    0xd69(%rip),%rdi
call   1080 <fputs@plt>
mov    0x2d0e(%rip),%rax
mov    (%rax),%edx
lea    0x10(%rsp),%rdi
mov    $0x400,%esi
call   10c0 <fgets@plt>
mov    $0xa71,%ecx
mov    0x10(%rsp),%eax
xor    %ecx,%eax
movzbl 0x12(%rsp),%ecx
or     %ax,%cx
je     13d4 <main+0x1d4>
lea    0x10(%rsp),%r14
lea    0xd36(%rip),%r15
lea    0xd20(%rip),%r12
jmp    1374 <main+0x174>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %r13d,%r13d
movslq %r13d,%rax
movb   $0x0,0x10(%rsp,%rax,1)
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x2c81(%rip),%rax
mov    (%rax),%esi
mov    %r12,%rdi
call   1080 <fputs@plt>
mov    0x2c90(%rip),%rax
mov    (%rax),%edx
mov    %r14,%rdi
mov    $0x400,%esi
call   10c0 <fgets@plt>
mov    0x10(%rsp),%eax
mov    $0xa71,%ecx
xor    %ecx,%eax
movzbl 0x12(%rsp),%ecx
or     %ax,%cx
je     13d4 <main+0x1d4>
mov    0x10(%rsp),%eax
mov    $0xa51,%ecx
xor    %ecx,%eax
movzbl 0x12(%rsp),%ecx
or     %ax,%cx
je     13d4 <main+0x1d4>
mov    %r14,%rdi
call   1050 <strlen@plt>
mov    %ebx,%edi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <write@plt>
test   %eax,%eax
jle    1320 <main+0x120>
mov    %eax,%ebp
xor    %r13d,%r13d
nopw   0x0(%rax,%rax,1)
movslq %r13d,%r13
lea    (%rsp,%r13,1),%rsi
add    $0x10,%rsi
mov    %ebx,%edi
mov    $0x3ff,%edx
call   10b0 <read@plt>
add    %eax,%r13d
cmp    %ebp,%r13d
jl     13b0 <main+0x1b0>
jmp    1323 <main+0x123>
mov    %ebx,%edi
call   10a0 <close@plt>
xor    %eax,%eax
add    $0x418,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc61(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1100 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [17 x i8] c"argument error!\0A\00"
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str.1 = [15 x i8] c"socket() error\00"
@AF_INET = global i32 0
@.str.2 = [16 x i8] c"connect() error\00"
@.str.3 = [16 x i8] c"Connect Success\00"
@.str.4 = [9 x i8] c"Input : \00"
@stdout = global i32 0
@stdin = global i32 0
@.str.5 = [3 x i8] c"q\0A\00"
@.str.6 = [3 x i8] c"Q\0A\00"
@.str.7 = [25 x i8] c"Message from Server : %s\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca %struct.sockaddr_in
%8 = alloca [1024 x i8]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = load i32, i32* %4
%13 = icmp ne i32 %12, 3
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @exit(i32 1)
unreachable
17: ; preds = %2
%18 = load i32, i32* @PF_INET
%19 = load i32, i32* @SOCK_STREAM
%20 = call i32 @socket(i32 %18, i32 %19, i32 0)
store i32 %20, i32* %6
%21 = load i32, i32* %6
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %25
23: ; preds = %17
%24 = call i32 @error_handling(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %25
25: ; preds = %23, %17
%26 = call i32 @memset(%struct.sockaddr_in* %7, i32 0, i32 12)
%27 = load i32, i32* @AF_INET
%28 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 2
store i32 %27, i32* %28
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 1
%31 = load i8*, i8** %30
%32 = call i32 @inet_addr(i8* %31)
%33 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 1
%34 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %33, i32 0, i32 0
store i32 %32, i32* %34
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 2
%37 = load i8*, i8** %36
%38 = call i32 @atoi(i8* %37)
%39 = call i32 @htons(i32 %38)
%40 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 0
store i32 %39, i32* %40
%41 = load i32, i32* %6
%42 = bitcast %struct.sockaddr_in* %7 to %struct.sockaddr*
%43 = call i32 @connect(i32 %41, %struct.sockaddr* %42, i32 12)
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %47
45: ; preds = %25
%46 = call i32 @error_handling(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %49
47: ; preds = %25
%48 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
br label %49
49: ; preds = %47, %45
br label %50
50: ; preds = %49, %83
%51 = load i32, i32* @stdout
%52 = call i32 @fputs(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %51)
%53 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%54 = load i32, i32* @stdin
%55 = call i32 @fgets(i8* %53, i32 1024, i32 %54)
%56 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%57 = call i32 @strcmp(i8* %56, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %63
59: ; preds = %50
%60 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%61 = call i32 @strcmp(i8* %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%62 = icmp ne i32 %61, 0
br i1 %62, label %64, label %63
63: ; preds = %59, %50
br label %89
64: ; preds = %59
%65 = load i32, i32* %6
%66 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%67 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%68 = call i32 @strlen(i8* %67)
%69 = call i32 @write(i32 %65, i8* %66, i32 %68)
store i32 %69, i32* %9
store i32 0, i32* %10
br label %70
70: ; preds = %74, %64
%71 = load i32, i32* %10
%72 = load i32, i32* %9
%73 = icmp slt i32 %71, %72
br i1 %73, label %74, label %83
74: ; preds = %70
%75 = load i32, i32* %6
%76 = load i32, i32* %10
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 %77
%79 = call i32 @read(i32 %75, i8* %78, i32 1023)
store i32 %79, i32* %11
%80 = load i32, i32* %11
%81 = load i32, i32* %10
%82 = add nsw i32 %81, %80
store i32 %82, i32* %10
br label %70
83: ; preds = %70
%84 = load i32, i32* %10
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 %85
store i8 0, i8* %86
%87 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8* %87)
br label %50
89: ; preds = %63
%90 = load i32, i32* %6
%91 = call i32 @close(i32 %90)
ret i32 0
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str.1 = [15 x i8] c"socket() error\00"
@AF_INET = global i32 0
@.str.2 = [16 x i8] c"connect() error\00"
@.str.3 = [16 x i8] c"Connect Success\00"
@.str.4 = [9 x i8] c"Input : \00"
@stdout = global i32 0
@stdin = global i32 0
@.str.5 = [3 x i8] c"q\0A\00"
@.str.6 = [3 x i8] c"Q\0A\00"
@.str.7 = [25 x i8] c"Message from Server : %s\00"
@str = [16 x i8] c"argument error!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.sockaddr_in
%4 = alloca [1024 x i8]
%5 = bitcast %struct.sockaddr_in* %3 to i8*
%6 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%7 = icmp eq i32 %0, 3
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%10 = tail call i32 @exit(i32 1)
unreachable
11: ; preds = %2
%12 = load i32, i32* @PF_INET
%13 = load i32, i32* @SOCK_STREAM
%14 = tail call i32 @socket(i32 %12, i32 %13, i32 0)
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = tail call i32 @error_handling(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %18
18: ; preds = %16, %11
%19 = call i32 @memset(%struct.sockaddr_in* %3, i32 0, i32 12)
%20 = load i32, i32* @AF_INET
%21 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %20, i32* %21
%22 = getelementptr inbounds i8*, i8** %1, i64 1
%23 = load i8*, i8** %22
%24 = call i32 @inet_addr(i8* %23)
%25 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1, i32 0
store i32 %24, i32* %25
%26 = getelementptr inbounds i8*, i8** %1, i64 2
%27 = load i8*, i8** %26
%28 = call i32 @atoi(i8* %27)
%29 = call i32 @htons(i32 %28)
%30 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0
store i32 %29, i32* %30
%31 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%32 = call i32 @connect(i32 %14, %struct.sockaddr* %31, i32 12)
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %36
34: ; preds = %18
%35 = call i32 @error_handling(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %38
36: ; preds = %18
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
br label %38
38: ; preds = %36, %34
%39 = load i32, i32* @stdout
%40 = call i32 @fputs(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %39)
%41 = load i32, i32* @stdin
%42 = call i32 @fgets(i8* %6, i32 1024, i32 %41)
%43 = call i32 @bcmp(i8* dereferenceable(3) %6, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i64 3)
%44 = icmp eq i32 %43, 0
br i1 %44, label %70, label %45
45: ; preds = %38, %59
%46 = call i32 @bcmp(i8* dereferenceable(3) %6, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i64 3)
%47 = icmp eq i32 %46, 0
br i1 %47, label %70, label %48
48: ; preds = %45
%49 = call i32 @strlen(i8* %6)
%50 = call i32 @write(i32 %14, i8* %6, i32 %49)
%51 = icmp sgt i32 %50, 0
br i1 %51, label %52, label %59
52: ; preds = %48, %52
%53 = phi i32 [ %57, %52 ], [ 0, %48 ]
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 %54
%56 = call i32 @read(i32 %14, i8* %55, i32 1023)
%57 = add nsw i32 %56, %53
%58 = icmp slt i32 %57, %50
br i1 %58, label %52, label %59
59: ; preds = %52, %48
%60 = phi i32 [ 0, %48 ], [ %57, %52 ]
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 %61
store i8 0, i8* %62
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8* %6)
%64 = load i32, i32* @stdout
%65 = call i32 @fputs(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %64)
%66 = load i32, i32* @stdin
%67 = call i32 @fgets(i8* %6, i32 1024, i32 %66)
%68 = call i32 @bcmp(i8* dereferenceable(3) %6, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i64 3)
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %45
70: ; preds = %45, %59, %38
%71 = call i32 @close(i32 %14)
ret i32 0
}