#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 /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fputc(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(unsigned char *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
int ftell(int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(unsigned char *, int, int, int /*<<< orphan*/ *);
unsigned char *malloc(int);
int /*<<< orphan*/ memset(unsigned char *, int, int);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ strcmp(char *, char *);
int strtoimax(char *, int /*<<< orphan*/ *, int /*<<< orphan*/);
int main(int argc, char **argv) {
  int ii;
  int needed;
  int sizealign;
  int nullfill;
  char *FileName;
  FILE *FileInput;
  FileName = "";
  sizealign = 256;
  nullfill = 0;
  for (ii = 1; ii < argc; ii++) {
    if (!strcmp(argv[ii], "-sizealign")) {
      ii++;
      sizealign = strtoimax(argv[ii], NULL, 0);
      if (!sizealign)
        sizealign = 1;
    } else if (!strcmp(argv[ii], "-nullfill")) {
      ii++;
      nullfill = strtoimax(argv[ii], NULL, 0);
    } else if (!FileName[0])
      FileName = argv[ii];
  }
  FileInput = fopen(FileName, "rb");
  if (!FileInput) {
    printf("Couldn't open input file %s\n", FileName);
    return 1;
  } else {
    fclose(FileInput);
    FileInput = fopen(FileName, "ab");
  }
  fseek(FileInput, 0, SEEK_END);
  needed = ftell(FileInput) & (sizealign - 1);
  if (needed) {
    unsigned char *mem;
    needed = sizealign - needed;
    mem = malloc(needed);
    if (mem) {
      memset(mem, nullfill, needed);
      fwrite(mem, needed, 1, FileInput);
      free(mem);
    } else
      for (ii = 0; ii < needed; ii++)
        fputc(nullfill, FileInput);
  }
  fclose(FileInput);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe57(%rip),%rax
mov    %rax,-0x28(%rbp)
movl   $0x100,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12df <main+0x11f>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdeb(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    125c <main+0x9c>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1040 <strtoimax@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jne    1257 <main+0x97>
movl   $0x1,-0x1c(%rbp)
jmp    12cc <main+0x10c>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd9c(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    12a5 <main+0xe5>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1040 <strtoimax@plt>
mov    %eax,-0x20(%rbp)
jmp    12c7 <main+0x107>
mov    -0x28(%rbp),%rax
cmpb   $0x0,(%rax)
jne    12c2 <main+0x102>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x28(%rbp)
jmp    12c7 <main+0x107>
jmp    12cc <main+0x10c>
jmp    12d1 <main+0x111>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11f6 <main+0x36>
mov    -0x28(%rbp),%rdi
lea    0xd2b(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    131a <main+0x15a>
mov    -0x28(%rbp),%rsi
lea    0xd0f(%rip),%rdi
call   1060 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1402 <main+0x242>
mov    -0x30(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x28(%rbp),%rdi
lea    0xd07(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
mov    0x2ca6(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10c0 <fseek@plt>
mov    -0x30(%rbp),%rdi
call   10a0 <ftell@plt>
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
and    %ecx,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     13f2 <main+0x232>
mov    -0x1c(%rbp),%eax
sub    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%edi
call   10b0 <malloc@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     13bb <main+0x1fb>
mov    -0x38(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1070 <memset@plt>
mov    -0x38(%rbp),%rdi
mov    -0x18(%rbp),%esi
mov    -0x30(%rbp),%rcx
mov    $0x1,%edx
call   10e0 <fwrite@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
jmp    13ed <main+0x22d>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    13e8 <main+0x228>
mov    -0x20(%rbp),%edi
mov    -0x30(%rbp),%rsi
call   1080 <fputc@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    13c2 <main+0x202>
jmp    13ed <main+0x22d>
jmp    13f2 <main+0x232>
mov    -0x30(%rbp),%rdi
call   1050 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
cmp    $0x2,%edi
jl     1289 <main+0xc9>
mov    %rsi,%r12
mov    %edi,%r15d
mov    $0x100,%ebx
xor    %eax,%eax
mov    %rax,0x10(%rsp)
lea    0xe44(%rip),%rax
mov    %rax,0x8(%rsp)
mov    $0x1,%r13d
jmp    1227 <main+0x67>
nopl   (%rax)
lea    0x1(%rbp),%r13d
mov    0x8(%r12,%rbp,8),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1040 <strtoimax@plt>
mov    %eax,%ebx
test   %eax,%eax
mov    $0x1,%eax
cmove  %eax,%ebx
add    $0x1,%r13d
cmp    %r15d,%r13d
jge    12a1 <main+0xe1>
movslq %r13d,%rbp
mov    (%r12,%rbp,8),%r14
mov    %r14,%rdi
lea    0xdc8(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     1200 <main+0x40>
mov    %r14,%rdi
lea    0xdc0(%rip),%rsi
call   1090 <strcmp@plt>
test   %eax,%eax
je     1270 <main+0xb0>
mov    0x8(%rsp),%rax
cmpb   $0x0,(%rax)
cmove  %r14,%rax
mov    %rax,0x8(%rsp)
jmp    121e <main+0x5e>
nopw   0x0(%rax,%rax,1)
lea    0x1(%rbp),%r13d
mov    0x8(%r12,%rbp,8),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1040 <strtoimax@plt>
mov    %rax,0x10(%rsp)
jmp    121e <main+0x5e>
lea    0xda4(%rip),%rax
mov    %rax,0x8(%rsp)
xor    %eax,%eax
mov    %rax,0x10(%rsp)
mov    $0x100,%ebx
lea    0xd6d(%rip),%rsi
mov    0x8(%rsp),%rbp
mov    %rbp,%rdi
call   10d0 <fopen@plt>
test   %rax,%rax
je     1337 <main+0x177>
mov    %rax,%rdi
call   1050 <fclose@plt>
lea    0xd6c(%rip),%rsi
mov    %rbp,%rdi
call   10d0 <fopen@plt>
mov    %rax,%r12
mov    0x2d0d(%rip),%rax
mov    (%rax),%edx
xor    %r14d,%r14d
mov    %r12,%rdi
xor    %esi,%esi
call   10c0 <fseek@plt>
mov    %r12,%rdi
call   10a0 <ftell@plt>
lea    -0x1(%rbx),%ecx
and    %eax,%ecx
mov    0x10(%rsp),%rbp
je     136f <main+0x1af>
sub    %ecx,%ebx
mov    %ebx,%edi
call   10b0 <malloc@plt>
test   %rax,%rax
je     134e <main+0x18e>
mov    %rax,%r15
mov    %rax,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
call   1070 <memset@plt>
mov    %r15,%rdi
mov    %ebx,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   10e0 <fwrite@plt>
mov    %r15,%rdi
call   1030 <free@plt>
jmp    136f <main+0x1af>
lea    0xcda(%rip),%rdi
mov    %rbp,%rsi
call   1060 <printf@plt>
mov    $0x1,%r14d
jmp    1377 <main+0x1b7>
test   %ebx,%ebx
jle    136f <main+0x1af>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %ebp,%edi
mov    %r12,%rsi
call   1080 <fputc@plt>
add    $0xffffffff,%ebx
jne    1360 <main+0x1a0>
mov    %r12,%rdi
call   1050 <fclose@plt>
mov    %r14d,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [11 x i8] c"-sizealign\00"
@.str.2 = [10 x i8] c"-nullfill\00"
@.str.3 = [3 x i8] c"rb\00"
@.str.4 = [29 x i8] c"Couldn't open input file %s\0A\00"
@.str.5 = [3 x i8] c"ab\00"
@SEEK_END = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %42
4: ; preds = %2, %35
%5 = phi i8* [ %39, %35 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %2 ]
%6 = phi i32 [ %38, %35 ], [ 0, %2 ]
%7 = phi i32 [ %37, %35 ], [ 256, %2 ]
%8 = phi i32 [ %40, %35 ], [ 1, %2 ]
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8*, i8** %1, i64 %9
%11 = load i8*, i8** %10
%12 = tail call i32 @strcmp(i8* dereferenceable(1) %11, i8* dereferenceable(11) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %22
14: ; preds = %4
%15 = add nsw i32 %8, 1
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8*, i8** %1, i64 %16
%18 = load i8*, i8** %17
%19 = tail call i32 @strtoimax(i8* %18, i32* null, i32 0)
%20 = icmp eq i32 %19, 0
%21 = select i1 %20, i32 1, i32 %19
br label %35
22: ; preds = %4
%23 = tail call i32 @strcmp(i8* dereferenceable(1) %11, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %31
25: ; preds = %22
%26 = add nsw i32 %8, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8*, i8** %1, i64 %27
%29 = load i8*, i8** %28
%30 = tail call i32 @strtoimax(i8* %29, i32* null, i32 0)
br label %35
31: ; preds = %22
%32 = load i8, i8* %5
%33 = icmp eq i8 %32, 0
%34 = select i1 %33, i8* %11, i8* %5
br label %35
35: ; preds = %31, %14, %25
%36 = phi i32 [ %26, %25 ], [ %15, %14 ], [ %8, %31 ]
%37 = phi i32 [ %7, %25 ], [ %21, %14 ], [ %7, %31 ]
%38 = phi i32 [ %30, %25 ], [ %6, %14 ], [ %6, %31 ]
%39 = phi i8* [ %5, %25 ], [ %5, %14 ], [ %34, %31 ]
%40 = add nsw i32 %36, 1
%41 = icmp slt i32 %40, %0
br i1 %41, label %4, label %42
42: ; preds = %35, %2
%43 = phi i32 [ 256, %2 ], [ %37, %35 ]
%44 = phi i32 [ 0, %2 ], [ %38, %35 ]
%45 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %2 ], [ %39, %35 ]
%46 = tail call i32* @fopen(i8* %45, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%47 = icmp eq i32* %46, null
br i1 %47, label %48, label %50
48: ; preds = %42
%49 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i8* %45)
br label %76
50: ; preds = %42
%51 = tail call i32 @fclose(i32* %46)
%52 = tail call i32* @fopen(i8* %45, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%53 = load i32, i32* @SEEK_END
%54 = tail call i32 @fseek(i32* %52, i32 0, i32 %53)
%55 = tail call i32 @ftell(i32* %52)
%56 = add nsw i32 %43, -1
%57 = and i32 %55, %56
%58 = icmp eq i32 %57, 0
br i1 %58, label %74, label %59
59: ; preds = %50
%60 = sub nsw i32 %43, %57
%61 = tail call i8* @malloc(i32 %60)
%62 = icmp eq i8* %61, null
br i1 %62, label %63, label %65
63: ; preds = %59
%64 = icmp sgt i32 %60, 0
br i1 %64, label %69, label %74
65: ; preds = %59
%66 = tail call i32 @memset(i8* %61, i32 %44, i32 %60)
%67 = tail call i32 @fwrite(i8* %61, i32 %60, i32 1, i32* %52)
%68 = tail call i32 @free(i8* %61)
br label %74
69: ; preds = %63, %69
%70 = phi i32 [ %72, %69 ], [ 0, %63 ]
%71 = tail call i32 @fputc(i32 %44, i32* %52)
%72 = add nuw nsw i32 %70, 1
%73 = icmp eq i32 %72, %60
br i1 %73, label %74, label %69
74: ; preds = %69, %63, %65, %50
%75 = tail call i32 @fclose(i32* %52)
br label %76
76: ; preds = %74, %48
%77 = phi i32 [ 0, %74 ], [ 1, %48 ]
ret i32 %77
}