#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 */

/* Type definitions */
struct sockaddr_in {
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_addr;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ srv_addr;
typedef int socklen_t;
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ PF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ atoi(char *);
int /*<<< orphan*/ bzero(struct sockaddr_in *, int);
int /*<<< orphan*/ close(int);
int connect(int, struct sockaddr const *, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ htons(int /*<<< orphan*/);
int /*<<< orphan*/ inet_aton(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int read(int, char *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
scalar_t__ strlen(char *);
int /*<<< orphan*/ write(int, char *, scalar_t__);
int main(int argc, char *argv[]) {
  if (argc < 4) {
    fprintf(stderr, "缺少参数\n");
    printf("Usage: %s ip port \"msg\"", argv[0]);
    exit(-1);
  }
  char *srv_ip = argv[1];
  char *srv_port = argv[2];
  char *msg = argv[3];
  int iret;
  int sock_fd = socket(PF_INET, SOCK_STREAM, 0);
  if (sock_fd == -1) {
    do {
      perror("socket");
      exit(-1);
    } while (0);
  }
  printf("socket ok, sock_fd:%d\n", sock_fd);
  struct sockaddr_in srv_addr;
  socklen_t srv_addr_len = sizeof(srv_addr);
  bzero(&srv_addr, sizeof(srv_addr));
  srv_addr.sin_family = AF_INET;
  inet_aton(srv_ip, &srv_addr.sin_addr);
  srv_addr.sin_port = htons(atoi(srv_port));
  int conn_fd =
      connect(sock_fd, (const struct sockaddr *)&srv_addr, srv_addr_len);
  if (conn_fd == -1) {
    do {
      perror("connect");
      exit(-1);
    } while (0);
  }
  printf("connect is ok, conn_fd = %d\n", conn_fd);
  char buf[1024] = {0};
  write(sock_fd, msg, strlen(msg) + 1);
  printf("write: %s\n", msg);
  int n = read(sock_fd, buf, sizeof(buf));
  if (n < 0) {
    perror("read");
  } else if (n == 0) {
    fprintf(stderr, "connection close by peer\n");
  } else {
    buf[n - 1] = '\0';
    printf("read: %s(%d)\n", buf, n);
  }
  close(sock_fd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x470,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    1247 <main+0x57>
mov    0x2dbe(%rip),%rax
mov    (%rax),%edi
lea    0xddd(%rip),%rsi
call   10a0 <fprintf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xdd8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0xffffffff,%edi
call   10f0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    0x2d56(%rip),%rax
mov    (%rax),%edi
mov    0x2d55(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1110 <socket@plt>
mov    %eax,-0x30(%rbp)
cmpl   $0xffffffff,-0x30(%rbp)
jne    12ac <main+0xbc>
jmp    1296 <main+0xa6>
lea    0xd89(%rip),%rdi
call   10c0 <perror@plt>
mov    $0xffffffff,%edi
call   10f0 <exit@plt>
mov    -0x30(%rbp),%esi
lea    0xd77(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0xc,-0x44(%rbp)
lea    -0x40(%rbp),%rdi
mov    $0xc,%esi
call   10d0 <bzero@plt>
mov    0x2d0f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    -0x18(%rbp),%rdi
lea    -0x40(%rbp),%rsi
add    $0x4,%rsi
call   10b0 <inet_aton@plt>
mov    -0x20(%rbp),%rdi
call   10e0 <atoi@plt>
mov    %eax,%edi
call   1050 <htons@plt>
mov    %eax,-0x40(%rbp)
mov    -0x30(%rbp),%edi
lea    -0x40(%rbp),%rsi
mov    -0x44(%rbp),%edx
call   1100 <connect@plt>
mov    %eax,-0x48(%rbp)
cmpl   $0xffffffff,-0x48(%rbp)
jne    1339 <main+0x149>
jmp    1323 <main+0x133>
lea    0xd1a(%rip),%rdi
call   10c0 <perror@plt>
mov    $0xffffffff,%edi
call   10f0 <exit@plt>
mov    -0x48(%rbp),%esi
lea    0xd09(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x450(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1070 <memset@plt>
mov    -0x30(%rbp),%eax
mov    %eax,-0x464(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x460(%rbp)
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x464(%rbp),%edi
mov    -0x460(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1030 <write@plt>
mov    -0x28(%rbp),%rsi
lea    0xccb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x30(%rbp),%edi
lea    -0x450(%rbp),%rsi
mov    $0x400,%edx
call   1090 <read@plt>
mov    %eax,-0x454(%rbp)
cmpl   $0x0,-0x454(%rbp)
jge    13dd <main+0x1ed>
lea    0xca1(%rip),%rdi
call   10c0 <perror@plt>
jmp    1437 <main+0x247>
cmpl   $0x0,-0x454(%rbp)
jne    1404 <main+0x214>
mov    0x2be7(%rip),%rax
mov    (%rax),%edi
lea    0xc7f(%rip),%rsi
call   10a0 <fprintf@plt>
jmp    1432 <main+0x242>
mov    -0x454(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x450(%rbp,%rax,1)
lea    -0x450(%rbp),%rsi
mov    -0x454(%rbp),%edx
lea    0xc68(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1437 <main+0x247>
mov    -0x30(%rbp),%edi
call   1080 <close@plt>
xor    %eax,%eax
add    $0x470,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x410,%rsp
mov    %rsi,%rbx
cmp    $0x3,%edi
jle    135e <main+0x16e>
mov    0x8(%rbx),%r12
mov    0x10(%rbx),%r15
mov    0x18(%rbx),%r14
mov    0x2da9(%rip),%rax
mov    (%rax),%edi
mov    0x2da8(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1110 <socket@plt>
cmp    $0xffffffff,%eax
je     138e <main+0x19e>
mov    %eax,%ebx
lea    0xdea(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rsp,%r13
mov    %r13,%rdi
mov    $0xc,%esi
call   10d0 <bzero@plt>
mov    0x2d85(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x8(%rsp)
lea    0x4(%rsp),%rsi
mov    %r12,%rdi
call   10b0 <inet_aton@plt>
mov    %r15,%rdi
call   10e0 <atoi@plt>
mov    %eax,%edi
call   1050 <htons@plt>
mov    %eax,(%rsp)
mov    %ebx,%edi
mov    %r13,%rsi
mov    $0xc,%edx
call   1100 <connect@plt>
cmp    $0xffffffff,%eax
je     1397 <main+0x1a7>
lea    0xda5(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x10(%rsp),%r15
mov    $0x400,%edx
mov    %r15,%rdi
xor    %esi,%esi
call   1070 <memset@plt>
mov    %r14,%rdi
call   1040 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %ebx,%edi
mov    %r14,%rsi
call   1030 <write@plt>
lea    0xd88(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %ebx,%edi
mov    %r15,%rsi
mov    $0x400,%edx
call   1090 <read@plt>
test   %eax,%eax
js     1350 <main+0x160>
je     1321 <main+0x131>
mov    %eax,%ecx
add    $0xffffffff,%ecx
movb   $0x0,0x10(%rsp,%rcx,1)
lea    0xd82(%rip),%rdi
lea    0x10(%rsp),%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1336 <main+0x146>
mov    0x2cb0(%rip),%rax
mov    (%rax),%edi
lea    0xd48(%rip),%rsi
call   10a0 <fprintf@plt>
mov    %ebx,%edi
call   1080 <close@plt>
xor    %eax,%eax
add    $0x410,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
lea    0xd1d(%rip),%rdi
call   10c0 <perror@plt>
jmp    1336 <main+0x146>
mov    0x2c73(%rip),%rax
mov    (%rax),%edi
lea    0xc92(%rip),%rsi
call   10a0 <fprintf@plt>
mov    (%rbx),%rsi
lea    0xc91(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xffffffff,%edi
call   10f0 <exit@plt>
lea    0xc91(%rip),%rdi
jmp    139e <main+0x1ae>
lea    0xca6(%rip),%rdi
call   10c0 <perror@plt>
mov    $0xffffffff,%edi
call   10f0 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@stderr = global i32 0
@.str = [14 x i8] c"\E7\BC\BA\E5\B0\91\E5\8F\82\E6\95\B0\0A\00"
@.str.1 = [24 x i8] c"Usage: %s ip port \22msg\22\00"
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str.2 = [7 x i8] c"socket\00"
@.str.3 = [23 x i8] c"socket ok, sock_fd:%d\0A\00"
@AF_INET = global i32 0
@.str.4 = [8 x i8] c"connect\00"
@.str.5 = [29 x i8] c"connect is ok, conn_fd = %d\0A\00"
@.str.6 = [11 x i8] c"write: %s\0A\00"
@.str.7 = [5 x i8] c"read\00"
@.str.8 = [26 x i8] c"connection close by peer\0A\00"
@.str.9 = [14 x i8] c"read: %s(%d)\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca %struct.sockaddr_in
%12 = alloca i32
%13 = alloca i32
%14 = alloca [1024 x i8]
%15 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 4
br i1 %17, label %18, label %26
18: ; preds = %2
%19 = load i32, i32* @stderr
%20 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 0
%23 = load i8*, i8** %22
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %23)
%25 = call i32 @exit(i32 -1)
unreachable
26: ; preds = %2
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
store i8* %29, i8** %6
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 2
%32 = load i8*, i8** %31
store i8* %32, i8** %7
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 3
%35 = load i8*, i8** %34
store i8* %35, i8** %8
%36 = load i32, i32* @PF_INET
%37 = load i32, i32* @SOCK_STREAM
%38 = call i32 @socket(i32 %36, i32 %37, i32 0)
store i32 %38, i32* %10
%39 = load i32, i32* %10
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %46
41: ; preds = %26
br label %42
42: ; preds = %41
%43 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%44 = call i32 @exit(i32 -1)
unreachable
45: ; No predecessors!
br label %46
46: ; preds = %45, %26
%47 = load i32, i32* %10
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %47)
store i32 12, i32* %12
%49 = call i32 @bzero(%struct.sockaddr_in* %11, i32 12)
%50 = load i32, i32* @AF_INET
%51 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 2
store i32 %50, i32* %51
%52 = load i8*, i8** %6
%53 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 1
%54 = call i32 @inet_aton(i8* %52, i32* %53)
%55 = load i8*, i8** %7
%56 = call i32 @atoi(i8* %55)
%57 = call i32 @htons(i32 %56)
%58 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 0
store i32 %57, i32* %58
%59 = load i32, i32* %10
%60 = bitcast %struct.sockaddr_in* %11 to %struct.sockaddr*
%61 = load i32, i32* %12
%62 = call i32 @connect(i32 %59, %struct.sockaddr* %60, i32 %61)
store i32 %62, i32* %13
%63 = load i32, i32* %13
%64 = icmp eq i32 %63, -1
br i1 %64, label %65, label %70
65: ; preds = %46
br label %66
66: ; preds = %65
%67 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%68 = call i32 @exit(i32 -1)
unreachable
69: ; No predecessors!
br label %70
70: ; preds = %69, %46
%71 = load i32, i32* %13
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i32 %71)
%73 = bitcast [1024 x i8]* %14 to i8*
%74 = load i32, i32* %10
%75 = load i8*, i8** %8
%76 = load i8*, i8** %8
%77 = call i64 @strlen(i8* %76)
%78 = add nsw i64 %77, 1
%79 = call i32 @write(i32 %74, i8* %75, i64 %78)
%80 = load i8*, i8** %8
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %80)
%82 = load i32, i32* %10
%83 = getelementptr inbounds [1024 x i8], [1024 x i8]* %14, i64 0, i64 0
%84 = call i32 @read(i32 %82, i8* %83, i32 1024)
store i32 %84, i32* %15
%85 = load i32, i32* %15
%86 = icmp slt i32 %85, 0
br i1 %86, label %87, label %89
87: ; preds = %70
%88 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %104
89: ; preds = %70
%90 = load i32, i32* %15
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %95
92: ; preds = %89
%93 = load i32, i32* @stderr
%94 = call i32 @fprintf(i32 %93, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0))
br label %103
95: ; preds = %89
%96 = load i32, i32* %15
%97 = sub nsw i32 %96, 1
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [1024 x i8], [1024 x i8]* %14, i64 0, i64 %98
store i8 0, i8* %99
%100 = getelementptr inbounds [1024 x i8], [1024 x i8]* %14, i64 0, i64 0
%101 = load i32, i32* %15
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* %100, i32 %101)
br label %103
103: ; preds = %95, %92
br label %104
104: ; preds = %103, %87
%105 = load i32, i32* %10
%106 = call i32 @close(i32 %105)
ret i32 0
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@stderr = global i32 0
@.str = [14 x i8] c"\E7\BC\BA\E5\B0\91\E5\8F\82\E6\95\B0\0A\00"
@.str.1 = [24 x i8] c"Usage: %s ip port \22msg\22\00"
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str.2 = [7 x i8] c"socket\00"
@.str.3 = [23 x i8] c"socket ok, sock_fd:%d\0A\00"
@AF_INET = global i32 0
@.str.4 = [8 x i8] c"connect\00"
@.str.5 = [29 x i8] c"connect is ok, conn_fd = %d\0A\00"
@.str.6 = [11 x i8] c"write: %s\0A\00"
@.str.7 = [5 x i8] c"read\00"
@.str.8 = [26 x i8] c"connection close by peer\0A\00"
@.str.9 = [14 x i8] c"read: %s(%d)\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.sockaddr_in
%4 = alloca [1024 x i8]
%5 = icmp slt i32 %0, 4
br i1 %5, label %6, label %12
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%9 = load i8*, i8** %1
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %9)
%11 = tail call i32 @exit(i32 -1)
unreachable
12: ; preds = %2
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = getelementptr inbounds i8*, i8** %1, i64 2
%16 = load i8*, i8** %15
%17 = getelementptr inbounds i8*, i8** %1, i64 3
%18 = load i8*, i8** %17
%19 = load i32, i32* @PF_INET
%20 = load i32, i32* @SOCK_STREAM
%21 = tail call i32 @socket(i32 %19, i32 %20, i32 0)
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %26
23: ; preds = %12
%24 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%25 = tail call i32 @exit(i32 -1)
unreachable
26: ; preds = %12
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %21)
%28 = bitcast %struct.sockaddr_in* %3 to i8*
%29 = call i32 @bzero(%struct.sockaddr_in* %3, i32 12)
%30 = load i32, i32* @AF_INET
%31 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %30, i32* %31
%32 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1
%33 = call i32 @inet_aton(i8* %14, i32* %32)
%34 = call i32 @atoi(i8* %16)
%35 = call i32 @htons(i32 %34)
%36 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0
store i32 %35, i32* %36
%37 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%38 = call i32 @connect(i32 %21, %struct.sockaddr* %37, i32 12)
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %43
40: ; preds = %26
%41 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%42 = call i32 @exit(i32 -1)
unreachable
43: ; preds = %26
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i32 %38)
%45 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%46 = call i64 @strlen(i8* dereferenceable(1) %18)
%47 = add nsw i64 %46, 1
%48 = call i32 @write(i32 %21, i8* %18, i64 %47)
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %18)
%50 = call i32 @read(i32 %21, i8* %45, i32 1024)
%51 = icmp slt i32 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %43
%53 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %64
54: ; preds = %43
%55 = icmp eq i32 %50, 0
br i1 %55, label %56, label %59
56: ; preds = %54
%57 = load i32, i32* @stderr
%58 = call i32 @fprintf(i32 %57, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0))
br label %64
59: ; preds = %54
%60 = add nsw i32 %50, -1
%61 = zext 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 ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* %45, i32 %50)
br label %64
64: ; preds = %56, %59, %52
%65 = call i32 @close(i32 %21)
ret i32 0
}