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

/* Variables and functions */
int EOF;
int /*<<< orphan*/ EXIT_FAILURE;
int errno;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
size_t fread(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(char *, int, size_t, int /*<<< orphan*/);
int getc(int /*<<< orphan*/ *);
int getopt(int, char **, char *);
int optind;
int /*<<< orphan*/ putchar(int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ *stdin;
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
char *strerror(int);
int main(int argc, char **argv) {
  FILE *file;
  int i, exitcode = 0, opt;
  bool usebuffer = true;
  while ((opt = getopt(argc, argv, "u")) != -1) {
    switch (opt) {
    case 'u':
      usebuffer = false;
      break;
    default:
      fprintf(stderr, "Usage: %s [−u] [file...]\n", argv[0]);
      exit(EXIT_FAILURE);
    }
  }
  char buffer[4096];
  size_t numbytes;
  if (optind == argc) {
    optind--;
    strcpy(argv[optind], "-");
  }
  for (i = optind; i < argc; i++) {
    if (strcmp(argv[i], "-") == 0)
      file = stdin;
    else
      file = fopen(argv[i], "r");
    if (!file) {
      fprintf(stderr, "%s: Error %d: %s\n", argv[0], errno, strerror(errno));
      exitcode = 1;
      continue;
    }
    if (usebuffer) {
      while (1) {
        numbytes = fread(buffer, sizeof(unsigned char), 4096, file);
        fwrite(buffer, sizeof(unsigned char), numbytes, stdout);
        if (numbytes < 4096)
          break;
      }
    } else {
      int c;
      while ((c = getc(file)) != EOF)
        putchar(c);
    }
    if (strcmp(argv[i], "-") != 0)
      fclose(file);
  }
  return exitcode;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1050,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x1,-0x28(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe0b(%rip),%rdx
call   10a0 <getopt@plt>
mov    %eax,-0x24(%rbp)
cmp    $0xffffffff,%eax
je     1254 <main+0x94>
mov    -0x24(%rbp),%eax
sub    $0x75,%eax
jne    1223 <main+0x63>
jmp    1217 <main+0x57>
movl   $0x0,-0x28(%rbp)
jmp    124f <main+0x8f>
mov    0x2d9e(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xdc8(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2d70(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
jmp    11e7 <main+0x27>
mov    0x2d7d(%rip),%rax
mov    (%rax),%eax
cmp    -0x8(%rbp),%eax
jne    1299 <main+0xd9>
mov    0x2d6b(%rip),%rax
mov    (%rax),%ecx
add    $0xffffffff,%ecx
mov    0x2d5f(%rip),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    0x2d52(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd8a(%rip),%rsi
call   1040 <strcpy@plt>
mov    0x2d38(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    145e <main+0x29e>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd5a(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    12e6 <main+0x126>
mov    0x2d0e(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
jmp    1302 <main+0x142>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd27(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1377 <main+0x1b7>
mov    0x2cb4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x104c(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x1048(%rbp)
mov    0x2c8f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1040(%rbp)
mov    0x2c80(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
mov    -0x104c(%rbp),%edi
mov    -0x1048(%rbp),%rdx
mov    -0x1040(%rbp),%ecx
mov    %rax,%r8
lea    0xcbe(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0x1,-0x20(%rbp)
jmp    1450 <main+0x290>
cmpl   $0x0,-0x28(%rbp)
je     13e8 <main+0x228>
jmp    1386 <main+0x1c6>
lea    -0x1030(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0x1,%esi
mov    $0x1000,%edx
call   1050 <fread@plt>
mov    %rax,-0x1038(%rbp)
lea    -0x1030(%rbp),%rdi
mov    -0x1038(%rbp),%rdx
mov    0x2bf4(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%esi
call   10c0 <fwrite@plt>
cmpq   $0x1000,-0x1038(%rbp)
jae    13de <main+0x21e>
jmp    13e3 <main+0x223>
jmp    1386 <main+0x1c6>
jmp    1420 <main+0x260>
jmp    13ed <main+0x22d>
mov    -0x18(%rbp),%rdi
call   10e0 <getc@plt>
mov    %eax,-0x103c(%rbp)
mov    0x2bdd(%rip),%rcx
cmp    (%rcx),%eax
je     141b <main+0x25b>
mov    -0x103c(%rbp),%edi
call   1030 <putchar@plt>
jmp    13ed <main+0x22d>
jmp    1420 <main+0x260>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xbeb(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     144b <main+0x28b>
mov    -0x18(%rbp),%rdi
call   1060 <fclose@plt>
jmp    1450 <main+0x290>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12a5 <main+0xe5>
mov    -0x20(%rbp),%eax
add    $0x1050,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1028,%rsp
mov    %rsi,%rbp
mov    %edi,%r12d
xor    %ecx,%ecx
lea    0xe20(%rip),%r14
mov    %ecx,%ebx
mov    %r12d,%edi
mov    %rbp,%rsi
mov    %r14,%rdx
call   10a0 <getopt@plt>
mov    $0x1,%cl
cmp    $0x75,%eax
je     11e0 <main+0x20>
cmp    $0xffffffff,%eax
jne    13a5 <main+0x1e5>
mov    %bl,0xf(%rsp)
mov    0x2dcd(%rip),%r14
mov    (%r14),%eax
cmp    %r12d,%eax
jne    1232 <main+0x72>
lea    -0x1(%r12),%eax
mov    %eax,(%r14)
movslq %r12d,%rax
mov    -0x8(%rbp,%rax,8),%rdi
lea    0xdf4(%rip),%rsi
call   1040 <strcpy@plt>
mov    (%r14),%eax
xor    %r15d,%r15d
mov    %r12,0x18(%rsp)
cmp    %r12d,%eax
jge    1390 <main+0x1d0>
movslq %eax,%r12
lea    0x20(%rsp),%r14
mov    0x2d5e(%rip),%r13
xor    %r15d,%r15d
mov    %rbp,0x10(%rsp)
jmp    12b6 <main+0xf6>
nopl   0x0(%rax)
mov    0x2d61(%rip),%rax
mov    (%rax),%ebp
mov    0x10(%rsp),%rax
mov    (%rax),%rbx
mov    0x2d48(%rip),%rax
mov    (%rax),%r15d
mov    %r15d,%edi
call   10d0 <strerror@plt>
mov    %ebp,%edi
lea    0xd96(%rip),%rsi
mov    %rbx,%rdx
mov    %r15d,%ecx
mov    %rax,%r8
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x1,%r15d
add    $0x1,%r12
cmp    0x18(%rsp),%r12d
mov    0x10(%rsp),%rbp
je     1390 <main+0x1d0>
mov    0x0(%rbp,%r12,8),%rdi
lea    0xd5c(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12f0 <main+0x130>
mov    0x0(%rbp,%r12,8),%rdi
lea    0xd48(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbp
test   %rbp,%rbp
jne    1303 <main+0x143>
jmp    1260 <main+0xa0>
nopw   0x0(%rax,%rax,1)
mov    0x2cf1(%rip),%rax
mov    (%rax),%rbp
test   %rbp,%rbp
je     1260 <main+0xa0>
testb  $0x1,0xf(%rsp)
je     1330 <main+0x170>
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
call   10e0 <getc@plt>
mov    0x2cc1(%rip),%rcx
cmp    (%rcx),%eax
je     1365 <main+0x1a5>
mov    %eax,%edi
call   1030 <putchar@plt>
jmp    1310 <main+0x150>
nopl   0x0(%rax)
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x1000,%edx
mov    %rbp,%rcx
call   1050 <fread@plt>
mov    %rax,%rbx
mov    0x0(%r13),%ecx
mov    %r14,%rdi
mov    $0x1,%esi
mov    %rax,%rdx
call   10c0 <fwrite@plt>
cmp    $0x1000,%rbx
jae    1330 <main+0x170>
mov    0x10(%rsp),%rax
mov    (%rax,%r12,8),%rdi
lea    0xca9(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12a2 <main+0xe2>
mov    %rbp,%rdi
call   1060 <fclose@plt>
jmp    12a2 <main+0xe2>
mov    %r15d,%eax
add    $0x1028,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c1c(%rip),%rax
mov    (%rax),%edi
mov    0x0(%rbp),%rdx
lea    0xc49(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x2bf1(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"u\00"
@stderr = global i32 0
@.str.1 = [28 x i8] c"Usage: %s [\E2\88\92u] [file...]\0A\00"
@EXIT_FAILURE = global i32 0
@optind = global i32 0
@.str.2 = [2 x i8] c"-\00"
@stdin = global i32* null
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [18 x i8] c"%s: Error %d: %s\0A\00"
@errno = global i32 0
@stdout = global i32 0
@EOF = global i32 0
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 i32
%10 = alloca i32
%11 = alloca [4096 x i8]
%12 = alloca i64
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
store i32 1, i32* %10
br label %14
14: ; preds = %30, %2
%15 = load i32, i32* %4
%16 = load i8**, i8*** %5
%17 = call i32 @getopt(i32 %15, i8** %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32 %17, i32* %9
%18 = icmp ne i32 %17, -1
br i1 %18, label %19, label %31
19: ; preds = %14
%20 = load i32, i32* %9
switch i32 %20, label %22 [
i32 117, label %21
]
21: ; preds = %19
store i32 0, i32* %10
br label %30
22: ; preds = %19
%23 = load i32, i32* @stderr
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 0
%26 = load i8*, i8** %25
%27 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* %26)
%28 = load i32, i32* @EXIT_FAILURE
%29 = call i32 @exit(i32 %28)
unreachable
30: ; preds = %21
br label %14
31: ; preds = %14
%32 = load i32, i32* @optind
%33 = load i32, i32* %4
%34 = icmp eq i32 %32, %33
br i1 %34, label %35, label %44
35: ; preds = %31
%36 = load i32, i32* @optind
%37 = add nsw i32 %36, -1
store i32 %37, i32* @optind
%38 = load i8**, i8*** %5
%39 = load i32, i32* @optind
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8*, i8** %38, i64 %40
%42 = load i8*, i8** %41
%43 = call i32 @strcpy(i8* %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %44
44: ; preds = %35, %31
%45 = load i32, i32* @optind
store i32 %45, i32* %7
br label %46
46: ; preds = %118, %44
%47 = load i32, i32* %7
%48 = load i32, i32* %4
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %121
50: ; preds = %46
%51 = load i8**, i8*** %5
%52 = load i32, i32* %7
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8*, i8** %51, i64 %53
%55 = load i8*, i8** %54
%56 = call i64 @strcmp(i8* %55, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %50
%59 = load i32*, i32** @stdin
store i32* %59, i32** %6
br label %67
60: ; preds = %50
%61 = load i8**, i8*** %5
%62 = load i32, i32* %7
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8*, i8** %61, i64 %63
%65 = load i8*, i8** %64
%66 = call i32* @fopen(i8* %65, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %66, i32** %6
br label %67
67: ; preds = %60, %58
%68 = load i32*, i32** %6
%69 = icmp ne i32* %68, null
br i1 %69, label %79, label %70
70: ; preds = %67
%71 = load i32, i32* @stderr
%72 = load i8**, i8*** %5
%73 = getelementptr inbounds i8*, i8** %72, i64 0
%74 = load i8*, i8** %73
%75 = load i32, i32* @errno
%76 = load i32, i32* @errno
%77 = call i8* @strerror(i32 %76)
%78 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* %74, i32 %75, i8* %77)
store i32 1, i32* %8
br label %118
79: ; preds = %67
%80 = load i32, i32* %10
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %96
82: ; preds = %79
br label %83
83: ; preds = %82, %94
%84 = getelementptr inbounds [4096 x i8], [4096 x i8]* %11, i64 0, i64 0
%85 = load i32*, i32** %6
%86 = call i64 @fread(i8* %84, i32 1, i32 4096, i32* %85)
store i64 %86, i64* %12
%87 = getelementptr inbounds [4096 x i8], [4096 x i8]* %11, i64 0, i64 0
%88 = load i64, i64* %12
%89 = load i32, i32* @stdout
%90 = call i32 @fwrite(i8* %87, i32 1, i64 %88, i32 %89)
%91 = load i64, i64* %12
%92 = icmp ult i64 %91, 4096
br i1 %92, label %93, label %94
93: ; preds = %83
br label %95
94: ; preds = %83
br label %83
95: ; preds = %93
br label %106
96: ; preds = %79
br label %97
97: ; preds = %102, %96
%98 = load i32*, i32** %6
%99 = call i32 @getc(i32* %98)
store i32 %99, i32* %13
%100 = load i32, i32* @EOF
%101 = icmp ne i32 %99, %100
br i1 %101, label %102, label %105
102: ; preds = %97
%103 = load i32, i32* %13
%104 = call i32 @putchar(i32 %103)
br label %97
105: ; preds = %97
br label %106
106: ; preds = %105, %95
%107 = load i8**, i8*** %5
%108 = load i32, i32* %7
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i8*, i8** %107, i64 %109
%111 = load i8*, i8** %110
%112 = call i64 @strcmp(i8* %111, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%113 = icmp ne i64 %112, 0
br i1 %113, label %114, label %117
114: ; preds = %106
%115 = load i32*, i32** %6
%116 = call i32 @fclose(i32* %115)
br label %117
117: ; preds = %114, %106
br label %118
118: ; preds = %117, %70
%119 = load i32, i32* %7
%120 = add nsw i32 %119, 1
store i32 %120, i32* %7
br label %46
121: ; preds = %46
%122 = load i32, i32* %8
ret i32 %122
}

LLVM IR (-O2):
@.str = [2 x i8] c"u\00"
@stderr = global i32 0
@.str.1 = [28 x i8] c"Usage: %s [\E2\88\92u] [file...]\0A\00"
@EXIT_FAILURE = global i32 0
@optind = global i32 0
@.str.2 = [2 x i8] c"-\00"
@stdin = global i32* null
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [18 x i8] c"%s: Error %d: %s\0A\00"
@errno = global i32 0
@stdout = global i32 0
@EOF = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca [4096 x i8]
br label %4
4: ; preds = %4, %2
%5 = phi i1 [ false, %2 ], [ true, %4 ]
%6 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
switch i32 %6, label %7 [
i32 -1, label %13
i32 117, label %4
]
7: ; preds = %4
%8 = load i32, i32* @stderr
%9 = load i8*, i8** %1
%10 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* %9)
%11 = load i32, i32* @EXIT_FAILURE
%12 = tail call i32 @exit(i32 %11)
unreachable
13: ; preds = %4
%14 = getelementptr inbounds [4096 x i8], [4096 x i8]* %3, i64 0, i64 0
%15 = load i32, i32* @optind
%16 = icmp eq i32 %15, %0
br i1 %16, label %17, label %24
17: ; preds = %13
%18 = add nsw i32 %0, -1
store i32 %18, i32* @optind
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8*, i8** %1, i64 %19
%21 = load i8*, i8** %20
%22 = tail call i32 @strcpy(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%23 = load i32, i32* @optind
br label %24
24: ; preds = %17, %13
%25 = phi i32 [ %23, %17 ], [ %15, %13 ]
%26 = icmp slt i32 %25, %0
br i1 %26, label %27, label %77
27: ; preds = %24
%28 = sext i32 %25 to i64
br label %29
29: ; preds = %27, %72
%30 = phi i64 [ %28, %27 ], [ %74, %72 ]
%31 = phi i32 [ 0, %27 ], [ %73, %72 ]
%32 = getelementptr inbounds i8*, i8** %1, i64 %30
%33 = load i8*, i8** %32
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %29
%37 = load i32*, i32** @stdin
br label %41
38: ; preds = %29
%39 = load i8*, i8** %32
%40 = call i32* @fopen(i8* %39, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %41
41: ; preds = %38, %36
%42 = phi i32* [ %37, %36 ], [ %40, %38 ]
%43 = icmp eq i32* %42, null
br i1 %43, label %44, label %50
44: ; preds = %41
%45 = load i32, i32* @stderr
%46 = load i8*, i8** %1
%47 = load i32, i32* @errno
%48 = call i8* @strerror(i32 %47)
%49 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* %46, i32 %47, i8* %48)
br label %72
50: ; preds = %41
br i1 %5, label %51, label %55
51: ; preds = %50
%52 = call i32 @getc(i32* %42)
%53 = load i32, i32* @EOF
%54 = icmp eq i32 %52, %53
br i1 %54, label %66, label %60
55: ; preds = %50, %55
%56 = call i64 @fread(i8* %14, i32 1, i32 4096, i32* %42)
%57 = load i32, i32* @stdout
%58 = call i32 @fwrite(i8* %14, i32 1, i64 %56, i32 %57)
%59 = icmp ult i64 %56, 4096
br i1 %59, label %66, label %55
60: ; preds = %51, %60
%61 = phi i32 [ %63, %60 ], [ %52, %51 ]
%62 = call i32 @putchar(i32 %61)
%63 = call i32 @getc(i32* %42)
%64 = load i32, i32* @EOF
%65 = icmp eq i32 %63, %64
br i1 %65, label %66, label %60
66: ; preds = %55, %60, %51
%67 = load i8*, i8** %32
%68 = call i64 @strcmp(i8* %67, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %72, label %70
70: ; preds = %66
%71 = call i32 @fclose(i32* %42)
br label %72
72: ; preds = %66, %70, %44
%73 = phi i32 [ %31, %70 ], [ %31, %66 ], [ 1, %44 ]
%74 = add nsw i64 %30, 1
%75 = trunc i64 %74 to i32
%76 = icmp eq i32 %75, %0
br i1 %76, label %77, label %29
77: ; preds = %72, %24
%78 = phi i32 [ 0, %24 ], [ %73, %72 ]
ret i32 %78
}