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

/* Variables and functions */
int /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fread(void *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(void *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, long, int /*<<< orphan*/);
int ftell(int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(void *, int, int, int /*<<< orphan*/ *);
void *malloc(int);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
int /*<<< orphan*/ strcpy(char *, char *);
int main(int argc, char **argv) {
  if (argc < 2) {
    printf("usage: %s <output file> <input file> [input files...]", argv[0]);
    return 1;
  }
  FILE *file = fopen(argv[1], "wb+");
  fwrite("kukki\0", 1, 6, file);
  char args[4] = "";
  uint32_t k = argc - 2;
  args[0] = k >> 24;
  args[1] = k >> 16;
  args[2] = k >> 8;
  args[3] = k & 0xFF;
  fwrite(args, 4, 1, file);
  FILE *readfile;
  for (int i = 2; i < argc; i++) {
    readfile = fopen(argv[i], "rb");
    if (readfile == NULL) {
      printf("fopen returned null at file %s", argv[i]);
      return 2;
    }
    char name[128] = "";
    strcpy(name, argv[i]);
    fwrite(name, 128, 1, file);
    fseek(readfile, 0L, SEEK_END);
    int size = ftell(readfile);
    rewind(readfile);
    char n[4] = "";
    uint32_t kk = size;
    n[0] = kk >> 24;
    n[1] = kk >> 16;
    n[2] = kk >> 8;
    n[3] = kk & 0xFF;
    fwrite(n, 4, 1, file);
    void *data = malloc(size);
    fread(data, size, 1, readfile);
    fwrite(data, size, 1, file);
    free(data);
    fclose(readfile);
  }
  fclose(file);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1202 <main+0x42>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe0f(%rip),%rdi
call   1070 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    144d <main+0x28d>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe25(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rcx
lea    0xe37(%rip),%rdi
mov    $0x1,%esi
mov    $0x6,%edx
call   10e0 <fwrite@plt>
lea    -0x1c(%rbp),%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1090 <memset@plt>
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
sar    $0x18,%eax
mov    %al,-0x1c(%rbp)
mov    -0x20(%rbp),%eax
sar    $0x10,%eax
mov    %al,-0x1b(%rbp)
mov    -0x20(%rbp),%eax
sar    $0x8,%eax
mov    %al,-0x1a(%rbp)
mov    -0x20(%rbp),%eax
and    $0xff,%eax
mov    %al,-0x19(%rbp)
lea    -0x1c(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   10e0 <fwrite@plt>
movl   $0x2,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    143d <main+0x27d>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd8a(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    12e8 <main+0x128>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xd66(%rip),%rdi
call   1070 <printf@plt>
movl   $0x2,-0x4(%rbp)
jmp    144d <main+0x28d>
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1090 <memset@plt>
lea    -0xb0(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1040 <strcpy@plt>
lea    -0xb0(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0x80,%esi
mov    $0x1,%edx
call   10e0 <fwrite@plt>
mov    -0x28(%rbp),%rdi
mov    0x2cb0(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   10c0 <fseek@plt>
mov    -0x28(%rbp),%rdi
call   10a0 <ftell@plt>
mov    %eax,-0xb4(%rbp)
mov    -0x28(%rbp),%rdi
call   1080 <rewind@plt>
lea    -0xb8(%rbp),%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1090 <memset@plt>
mov    -0xb4(%rbp),%eax
mov    %eax,-0xbc(%rbp)
mov    -0xbc(%rbp),%eax
sar    $0x18,%eax
mov    %al,-0xb8(%rbp)
mov    -0xbc(%rbp),%eax
sar    $0x10,%eax
mov    %al,-0xb7(%rbp)
mov    -0xbc(%rbp),%eax
sar    $0x8,%eax
mov    %al,-0xb6(%rbp)
mov    -0xbc(%rbp),%eax
and    $0xff,%eax
mov    %al,-0xb5(%rbp)
lea    -0xb8(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   10e0 <fwrite@plt>
mov    -0xb4(%rbp),%edi
call   10b0 <malloc@plt>
mov    %rax,-0xc8(%rbp)
mov    -0xc8(%rbp),%rdi
mov    -0xb4(%rbp),%esi
mov    -0x28(%rbp),%rcx
mov    $0x1,%edx
call   1050 <fread@plt>
mov    -0xc8(%rbp),%rdi
mov    -0xb4(%rbp),%esi
mov    -0x18(%rbp),%rcx
mov    $0x1,%edx
call   10e0 <fwrite@plt>
mov    -0xc8(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1291 <main+0xd1>
mov    -0x18(%rbp),%rdi
call   1060 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %rsi,%rbx
cmp    $0x1,%edi
jg     11e2 <main+0x32>
mov    (%rbx),%rsi
lea    0xe2d(%rip),%rdi
call   1070 <printf@plt>
mov    $0x1,%eax
jmp    137a <main+0x1ca>
mov    %edi,%ebp
mov    0x8(%rbx),%rdi
lea    0xe47(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,%r14
lea    0xe5e(%rip),%rdi
mov    $0x1,%esi
mov    $0x6,%edx
mov    %rax,%rcx
call   10d0 <fwrite@plt>
lea    -0x2(%rbp),%eax
bswap  %eax
mov    %eax,0x4(%rsp)
lea    0x4(%rsp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10d0 <fwrite@plt>
cmp    $0x2,%ebp
je     1359 <main+0x1a9>
mov    %ebp,%eax
mov    %rax,0x8(%rsp)
mov    $0x2,%r12d
cs nopw 0x0(%rax,%rax,1)
mov    (%rbx,%r12,8),%rdi
lea    0xddf(%rip),%rsi
call   10c0 <fopen@plt>
test   %rax,%rax
je     1365 <main+0x1b5>
mov    %rax,%rbp
xorps  %xmm0,%xmm0
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
mov    (%rbx,%r12,8),%rsi
mov    %rbx,%r15
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
mov    %r15,%rbx
mov    $0x80,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10d0 <fwrite@plt>
mov    0x2d1b(%rip),%rax
mov    (%rax),%edx
mov    %rbp,%rdi
xor    %esi,%esi
call   10b0 <fseek@plt>
mov    %rbp,%rdi
call   1090 <ftell@plt>
mov    %eax,%r15d
mov    %rbp,%rdi
call   1080 <rewind@plt>
mov    %r15d,%eax
bswap  %eax
mov    %eax,(%rsp)
mov    %rsp,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10d0 <fwrite@plt>
mov    %r15d,%edi
call   10a0 <malloc@plt>
mov    %rax,%r13
mov    %rax,%rdi
mov    %r15d,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1050 <fread@plt>
mov    %r13,%rdi
mov    %r15d,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10d0 <fwrite@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1060 <fclose@plt>
add    $0x1,%r12
cmp    %r12,0x8(%rsp)
jne    1250 <main+0xa0>
mov    %r14,%rdi
call   1060 <fclose@plt>
xor    %eax,%eax
jmp    137a <main+0x1ca>
mov    (%rbx,%r12,8),%rsi
lea    0xccd(%rip),%rdi
call   1070 <printf@plt>
mov    $0x2,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [54 x i8] c"usage: %s <output file> <input file> [input files...]\00"
@.str.1 = [4 x i8] c"wb+\00"
@.str.2 = [7 x i8] c"kukki\00\00"
@.str.3 = [3 x i8] c"rb\00"
@.str.4 = [31 x i8] c"fopen returned null at file %s\00"
@SEEK_END = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca [4 x i8]
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i32
%11 = alloca [128 x i8]
%12 = alloca i32
%13 = alloca [4 x i8]
%14 = alloca i32
%15 = alloca i8*
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, 2
br i1 %17, label %18, label %23
18: ; preds = %2
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
%22 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i8* %21)
store i32 1, i32* %3
br label %132
23: ; preds = %2
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = call i32* @fopen(i8* %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
store i32* %27, i32** %6
%28 = load i32*, i32** %6
%29 = call i32 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 6, i32* %28)
%30 = bitcast [4 x i8]* %7 to i8*
%31 = load i32, i32* %4
%32 = sub nsw i32 %31, 2
store i32 %32, i32* %8
%33 = load i32, i32* %8
%34 = ashr i32 %33, 24
%35 = trunc i32 %34 to i8
%36 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
store i8 %35, i8* %36
%37 = load i32, i32* %8
%38 = ashr i32 %37, 16
%39 = trunc i32 %38 to i8
%40 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 1
store i8 %39, i8* %40
%41 = load i32, i32* %8
%42 = ashr i32 %41, 8
%43 = trunc i32 %42 to i8
%44 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 2
store i8 %43, i8* %44
%45 = load i32, i32* %8
%46 = and i32 %45, 255
%47 = trunc i32 %46 to i8
%48 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 3
store i8 %47, i8* %48
%49 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%50 = load i32*, i32** %6
%51 = call i32 @fwrite(i8* %49, i32 4, i32 1, i32* %50)
store i32 2, i32* %10
br label %52
52: ; preds = %126, %23
%53 = load i32, i32* %10
%54 = load i32, i32* %4
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %129
56: ; preds = %52
%57 = load i8**, i8*** %5
%58 = load i32, i32* %10
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8*, i8** %57, i64 %59
%61 = load i8*, i8** %60
%62 = call i32* @fopen(i8* %61, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i32* %62, i32** %9
%63 = load i32*, i32** %9
%64 = icmp eq i32* %63, null
br i1 %64, label %65, label %72
65: ; preds = %56
%66 = load i8**, i8*** %5
%67 = load i32, i32* %10
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8*, i8** %66, i64 %68
%70 = load i8*, i8** %69
%71 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i8* %70)
store i32 2, i32* %3
br label %132
72: ; preds = %56
%73 = bitcast [128 x i8]* %11 to i8*
%74 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%75 = load i8**, i8*** %5
%76 = load i32, i32* %10
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8*, i8** %75, i64 %77
%79 = load i8*, i8** %78
%80 = call i32 @strcpy(i8* %74, i8* %79)
%81 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%82 = load i32*, i32** %6
%83 = call i32 @fwrite(i8* %81, i32 128, i32 1, i32* %82)
%84 = load i32*, i32** %9
%85 = load i32, i32* @SEEK_END
%86 = call i32 @fseek(i32* %84, i64 0, i32 %85)
%87 = load i32*, i32** %9
%88 = call i32 @ftell(i32* %87)
store i32 %88, i32* %12
%89 = load i32*, i32** %9
%90 = call i32 @rewind(i32* %89)
%91 = bitcast [4 x i8]* %13 to i8*
%92 = load i32, i32* %12
store i32 %92, i32* %14
%93 = load i32, i32* %14
%94 = ashr i32 %93, 24
%95 = trunc i32 %94 to i8
%96 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
store i8 %95, i8* %96
%97 = load i32, i32* %14
%98 = ashr i32 %97, 16
%99 = trunc i32 %98 to i8
%100 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 1
store i8 %99, i8* %100
%101 = load i32, i32* %14
%102 = ashr i32 %101, 8
%103 = trunc i32 %102 to i8
%104 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 2
store i8 %103, i8* %104
%105 = load i32, i32* %14
%106 = and i32 %105, 255
%107 = trunc i32 %106 to i8
%108 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 3
store i8 %107, i8* %108
%109 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%110 = load i32*, i32** %6
%111 = call i32 @fwrite(i8* %109, i32 4, i32 1, i32* %110)
%112 = load i32, i32* %12
%113 = call i8* @malloc(i32 %112)
store i8* %113, i8** %15
%114 = load i8*, i8** %15
%115 = load i32, i32* %12
%116 = load i32*, i32** %9
%117 = call i32 @fread(i8* %114, i32 %115, i32 1, i32* %116)
%118 = load i8*, i8** %15
%119 = load i32, i32* %12
%120 = load i32*, i32** %6
%121 = call i32 @fwrite(i8* %118, i32 %119, i32 1, i32* %120)
%122 = load i8*, i8** %15
%123 = call i32 @free(i8* %122)
%124 = load i32*, i32** %9
%125 = call i32 @fclose(i32* %124)
br label %126
126: ; preds = %72
%127 = load i32, i32* %10
%128 = add nsw i32 %127, 1
store i32 %128, i32* %10
br label %52
129: ; preds = %52
%130 = load i32*, i32** %6
%131 = call i32 @fclose(i32* %130)
store i32 0, i32* %3
br label %132
132: ; preds = %129, %65, %18
%133 = load i32, i32* %3
ret i32 %133
}

LLVM IR (-O2):
@.str = [54 x i8] c"usage: %s <output file> <input file> [input files...]\00"
@.str.1 = [4 x i8] c"wb+\00"
@.str.2 = [7 x i8] c"kukki\00\00"
@.str.3 = [3 x i8] c"rb\00"
@.str.4 = [31 x i8] c"fopen returned null at file %s\00"
@SEEK_END = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to [4 x i8]*
%5 = alloca [128 x i8]
%6 = alloca i32
%7 = bitcast i32* %6 to [4 x i8]*
%8 = icmp slt i32 %0, 2
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i8*, i8** %1
%11 = tail call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i8* %10)
br label %74
12: ; preds = %2
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = tail call i32* @fopen(i8* %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%16 = tail call i32 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 6, i32* %15)
%17 = bitcast i32* %3 to i8*
%18 = add nsw i32 %0, -2
%19 = lshr i32 %18, 24
%20 = trunc i32 %19 to i8
store i8 %20, i8* %17
%21 = lshr i32 %18, 16
%22 = trunc i32 %21 to i8
%23 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 1
store i8 %22, i8* %23
%24 = lshr i32 %18, 8
%25 = trunc i32 %24 to i8
%26 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 2
store i8 %25, i8* %26
%27 = trunc i32 %18 to i8
%28 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 3
store i8 %27, i8* %28
%29 = call i32 @fwrite(i8* %17, i32 4, i32 1, i32* %15)
%30 = icmp eq i32 %0, 2
br i1 %30, label %70, label %31
31: ; preds = %12
%32 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%33 = bitcast i32* %6 to i8*
%34 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 1
%35 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 2
%36 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 3
%37 = zext i32 %0 to i64
br label %38
38: ; preds = %31, %47
%39 = phi i64 [ 2, %31 ], [ %68, %47 ]
%40 = getelementptr inbounds i8*, i8** %1, i64 %39
%41 = load i8*, i8** %40
%42 = call i32* @fopen(i8* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%43 = icmp eq i32* %42, null
br i1 %43, label %44, label %47
44: ; preds = %38
%45 = load i8*, i8** %40
%46 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i8* %45)
br label %72
47: ; preds = %38
%48 = load i8*, i8** %40
%49 = call i32 @strcpy(i8* %32, i8* %48)
%50 = call i32 @fwrite(i8* %32, i32 128, i32 1, i32* %15)
%51 = load i32, i32* @SEEK_END
%52 = call i32 @fseek(i32* %42, i64 0, i32 %51)
%53 = call i32 @ftell(i32* %42)
%54 = call i32 @rewind(i32* %42)
%55 = lshr i32 %53, 24
%56 = trunc i32 %55 to i8
store i8 %56, i8* %33
%57 = lshr i32 %53, 16
%58 = trunc i32 %57 to i8
store i8 %58, i8* %34
%59 = lshr i32 %53, 8
%60 = trunc i32 %59 to i8
store i8 %60, i8* %35
%61 = trunc i32 %53 to i8
store i8 %61, i8* %36
%62 = call i32 @fwrite(i8* %33, i32 4, i32 1, i32* %15)
%63 = call i8* @malloc(i32 %53)
%64 = call i32 @fread(i8* %63, i32 %53, i32 1, i32* %42)
%65 = call i32 @fwrite(i8* %63, i32 %53, i32 1, i32* %15)
%66 = call i32 @free(i8* %63)
%67 = call i32 @fclose(i32* %42)
%68 = add nuw nsw i64 %39, 1
%69 = icmp eq i64 %68, %37
br i1 %69, label %70, label %38
70: ; preds = %47, %12
%71 = call i32 @fclose(i32* %15)
br label %72
72: ; preds = %44, %70
%73 = phi i32 [ 0, %70 ], [ 2, %44 ]
br label %74
74: ; preds = %72, %9
%75 = phi i32 [ 1, %9 ], [ %73, %72 ]
ret i32 %75
}