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

/* Variables and functions */
double RAND_MAX;
int /*<<< orphan*/ check_crc_ccitt(char *);
int /*<<< orphan*/ checksum(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int fwrite(int *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
double rand();
int /*<<< orphan*/ sprintf(char *, char *, int /*<<< orphan*/);
int main(void) {
  FILE *fp, *cyclefp;
  int cycleCount;
  int rand_data;
  int data_size;
  int temp_size;
  char filename[30];
  short filenameCounter = 0;
  unsigned short counter;
  unsigned short numberFiles;
  numberFiles = 100;
  for (counter = 0; counter < numberFiles; counter++) {
    sprintf(filename, "file%i", filenameCounter++);
    fp = fopen(filename, "wb");
    if (!fp) {
      printf("Error! Cannot open file: %s\n", filename);
      exit(1);
    }
    while (((data_size =
                 (int)(1 + (int)(20000.0 * rand() / (RAND_MAX + 1.0)))) < 100))
      printf("Writing %i ints to the file.\n", data_size);
    temp_size = data_size * sizeof(int);
    if (!fwrite(&temp_size, sizeof(int), 1, fp)) {
      printf("File write error!!.\n");
      fclose(fp);
      exit(1);
    }
    data_size--;
    while (data_size--) {
      rand_data = (int)(1 + (int)(10000.0 * rand() / (RAND_MAX + 1.0)));
      if (!fwrite(&rand_data, sizeof(int), 1, fp)) {
        printf("File write error!!.\n");
        fclose(fp);
        exit(1);
      }
    }
    fflush(fp);
    fclose(fp);
    checksum(filename);
    check_crc_ccitt(filename);
  }
  cyclefp = fopen("cycleCnt", "wb");
  if (!cyclefp) {
    printf("cannot open file \"cycleCnt\". Cannot continue.\n");
    exit(1);
  }
  cycleCount = 0;
  if (fwrite(&cycleCount, sizeof(cycleCount), 1, cyclefp) != 1) {
    printf("Error writing to file cycleCnt. Cannot continue.\n");
    exit(1);
  }
  fclose(cyclefp);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
movw   $0x0,-0x52(%rbp)
movw   $0x64,-0x56(%rbp)
movw   $0x0,-0x54(%rbp)
movzwl -0x54(%rbp),%eax
movzwl -0x56(%rbp),%ecx
cmp    %ecx,%eax
jge    13a4 <main+0x204>
lea    -0x50(%rbp),%rdi
mov    -0x52(%rbp),%ax
mov    %ax,%cx
add    $0x1,%cx
mov    %cx,-0x52(%rbp)
movswl %ax,%edx
lea    0xe2a(%rip),%rsi
call   1090 <sprintf@plt>
lea    -0x50(%rbp),%rdi
lea    0xe21(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    122e <main+0x8e>
lea    -0x50(%rbp),%rsi
lea    0xe05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
jmp    1233 <main+0x93>
mov    $0x0,%al
call   10c0 <rand@plt>
movaps %xmm0,%xmm1
movsd  0xdc3(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xdaf(%rip),%xmm1
mov    0x2d90(%rip),%rax
addsd  (%rax),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
cmp    $0x64,%eax
jge    1289 <main+0xe9>
mov    -0x24(%rbp),%esi
lea    0xdc2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1233 <main+0x93>
movslq -0x24(%rbp),%rax
shl    $0x2,%rax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rcx
lea    -0x28(%rbp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   10b0 <fwrite@plt>
cmp    $0x0,%eax
jne    12d5 <main+0x135>
lea    0xda2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x24(%rbp)
cmp    $0x0,%eax
je     136f <main+0x1cf>
mov    $0x0,%al
call   10c0 <rand@plt>
movaps %xmm0,%xmm1
movsd  0xd0c(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xcf0(%rip),%xmm1
mov    0x2cd1(%rip),%rax
addsd  (%rax),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rcx
lea    -0x20(%rbp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   10b0 <fwrite@plt>
cmp    $0x0,%eax
jne    136a <main+0x1ca>
lea    0xd0d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
jmp    12de <main+0x13e>
mov    -0x10(%rbp),%rdi
call   1070 <fflush@plt>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
lea    -0x50(%rbp),%rdi
call   1050 <checksum@plt>
lea    -0x50(%rbp),%rdi
call   1060 <check_crc_ccitt@plt>
mov    -0x54(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x54(%rbp)
jmp    11c1 <main+0x21>
lea    0xcc7(%rip),%rdi
lea    0xc6d(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    13de <main+0x23e>
lea    0xcae(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x18(%rbp),%rcx
lea    -0x1c(%rbp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   10b0 <fwrite@plt>
cmp    $0x1,%eax
je     141d <main+0x27d>
lea    0xc9e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
xor    %edi,%edi
call   10a0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0x10(%rsp),%rbx
mov    0x2e1e(%rip),%r13
lea    0xe6e(%rip),%r14
xor    %ebp,%ebp
jmp    1209 <main+0x59>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r15,%rdi
call   1080 <fflush@plt>
mov    %r15,%rdi
call   1040 <fclose@plt>
mov    %rbx,%rdi
call   1060 <checksum@plt>
mov    %rbx,%rdi
call   1070 <check_crc_ccitt@plt>
cmp    $0x64,%ebp
je     134f <main+0x19f>
mov    %rbx,%rdi
lea    0xe05(%rip),%rsi
mov    %ebp,%edx
call   10a0 <sprintf@plt>
mov    %rbx,%rdi
lea    0xdfb(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     1370 <main+0x1c0>
mov    %rax,%r15
xor    %eax,%eax
call   10d0 <rand@plt>
movsd  0xdbc(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0x0(%r13),%xmm1
movsd  0xdb2(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%r12d
lea    0x1(%r12),%esi
cmp    $0x62,%r12d
jg     12ab <main+0xfb>
xchg   %ax,%ax
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   10d0 <rand@plt>
mulsd  0xd77(%rip),%xmm0
movsd  0x0(%r13),%xmm1
addsd  0xd71(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%r12d
lea    0x1(%r12),%esi
cmp    $0x63,%r12d
jl     1270 <main+0xc0>
shl    $0x2,%esi
mov    %esi,0x4(%rsp)
lea    0x4(%rsp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   10c0 <fwrite@plt>
test   %eax,%eax
je     1331 <main+0x181>
add    $0x1,%ebp
add    $0x1,%r12d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0xffffffff,%r12d
je     11e0 <main+0x30>
xor    %eax,%eax
call   10d0 <rand@plt>
mulsd  0xd17(%rip),%xmm0
movsd  0x0(%r13),%xmm1
addsd  0xd01(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
add    $0x1,%eax
mov    %eax,0x8(%rsp)
lea    0x8(%rsp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   10c0 <fwrite@plt>
test   %eax,%eax
jne    12e0 <main+0x130>
lea    0xd8d(%rip),%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
call   1040 <fclose@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
lea    0xd07(%rip),%rdi
lea    0xcc2(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
jne    138d <main+0x1dd>
lea    0xcf8(%rip),%rdi
jmp    13ca <main+0x21a>
lea    0xcab(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    %rax,%rbx
movl   $0x0,0xc(%rsp)
lea    0xc(%rsp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   10c0 <fwrite@plt>
cmp    $0x1,%eax
jne    13c3 <main+0x213>
mov    %rbx,%rdi
call   1040 <fclose@plt>
xor    %edi,%edi
call   10b0 <exit@plt>
lea    0xcca(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"file%i\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [29 x i8] c"Error! Cannot open file: %s\0A\00"
@RAND_MAX = global double 0.000000e+00
@.str.3 = [30 x i8] c"Writing %i ints to the file.\0A\00"
@.str.4 = [21 x i8] c"File write error!!.\0A\00"
@.str.5 = [9 x i8] c"cycleCnt\00"
@.str.6 = [47 x i8] c"cannot open file \22cycleCnt\22. Cannot continue.\0A\00"
@.str.7 = [50 x i8] c"Error writing to file cycleCnt. Cannot continue.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca [30 x i8]
%9 = alloca i16
%10 = alloca i16
%11 = alloca i16
store i32 0, i32* %1
store i16 0, i16* %9
store i16 100, i16* %11
store i16 0, i16* %10
br label %12
12: ; preds = %91, %0
%13 = load i16, i16* %10
%14 = zext i16 %13 to i32
%15 = load i16, i16* %11
%16 = zext i16 %15 to i32
%17 = icmp slt i32 %14, %16
br i1 %17, label %18, label %94
18: ; preds = %12
%19 = getelementptr inbounds [30 x i8], [30 x i8]* %8, i64 0, i64 0
%20 = load i16, i16* %9
%21 = add i16 %20, 1
store i16 %21, i16* %9
%22 = sext i16 %20 to i32
%23 = call i32 @sprintf(i8* %19, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %22)
%24 = getelementptr inbounds [30 x i8], [30 x i8]* %8, i64 0, i64 0
%25 = call i32* @fopen(i8* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %25, i32** %2
%26 = load i32*, i32** %2
%27 = icmp ne i32* %26, null
br i1 %27, label %32, label %28
28: ; preds = %18
%29 = getelementptr inbounds [30 x i8], [30 x i8]* %8, i64 0, i64 0
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* %29)
%31 = call i32 @exit(i32 1)
unreachable
32: ; preds = %18
br label %33
33: ; preds = %42, %32
%34 = call double (...) @rand()
%35 = fmul double 2.000000e+04, %34
%36 = load double, double* @RAND_MAX
%37 = fadd double %36, 1.000000e+00
%38 = fdiv double %35, %37
%39 = fptosi double %38 to i32
%40 = add nsw i32 1, %39
store i32 %40, i32* %6
%41 = icmp slt i32 %40, 100
br i1 %41, label %42, label %45
42: ; preds = %33
%43 = load i32, i32* %6
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %43)
br label %33
45: ; preds = %33
%46 = load i32, i32* %6
%47 = sext i32 %46 to i64
%48 = mul i64 %47, 4
%49 = trunc i64 %48 to i32
store i32 %49, i32* %7
%50 = load i32*, i32** %2
%51 = call i32 @fwrite(i32* %7, i32 4, i32 1, i32* %50)
%52 = icmp ne i32 %51, 0
br i1 %52, label %58, label %53
53: ; preds = %45
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%55 = load i32*, i32** %2
%56 = call i32 @fclose(i32* %55)
%57 = call i32 @exit(i32 1)
unreachable
58: ; preds = %45
%59 = load i32, i32* %6
%60 = add nsw i32 %59, -1
store i32 %60, i32* %6
br label %61
61: ; preds = %81, %58
%62 = load i32, i32* %6
%63 = add nsw i32 %62, -1
store i32 %63, i32* %6
%64 = icmp ne i32 %62, 0
br i1 %64, label %65, label %82
65: ; preds = %61
%66 = call double (...) @rand()
%67 = fmul double 1.000000e+04, %66
%68 = load double, double* @RAND_MAX
%69 = fadd double %68, 1.000000e+00
%70 = fdiv double %67, %69
%71 = fptosi double %70 to i32
%72 = add nsw i32 1, %71
store i32 %72, i32* %5
%73 = load i32*, i32** %2
%74 = call i32 @fwrite(i32* %5, i32 4, i32 1, i32* %73)
%75 = icmp ne i32 %74, 0
br i1 %75, label %81, label %76
76: ; preds = %65
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%78 = load i32*, i32** %2
%79 = call i32 @fclose(i32* %78)
%80 = call i32 @exit(i32 1)
unreachable
81: ; preds = %65
br label %61
82: ; preds = %61
%83 = load i32*, i32** %2
%84 = call i32 @fflush(i32* %83)
%85 = load i32*, i32** %2
%86 = call i32 @fclose(i32* %85)
%87 = getelementptr inbounds [30 x i8], [30 x i8]* %8, i64 0, i64 0
%88 = call i32 @checksum(i8* %87)
%89 = getelementptr inbounds [30 x i8], [30 x i8]* %8, i64 0, i64 0
%90 = call i32 @check_crc_ccitt(i8* %89)
br label %91
91: ; preds = %82
%92 = load i16, i16* %10
%93 = add i16 %92, 1
store i16 %93, i16* %10
br label %12
94: ; preds = %12
%95 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %95, i32** %3
%96 = load i32*, i32** %3
%97 = icmp ne i32* %96, null
br i1 %97, label %101, label %98
98: ; preds = %94
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0))
%100 = call i32 @exit(i32 1)
unreachable
101: ; preds = %94
store i32 0, i32* %4
%102 = load i32*, i32** %3
%103 = call i32 @fwrite(i32* %4, i32 4, i32 1, i32* %102)
%104 = icmp ne i32 %103, 1
br i1 %104, label %105, label %108
105: ; preds = %101
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%107 = call i32 @exit(i32 1)
unreachable
108: ; preds = %101
%109 = load i32*, i32** %3
%110 = call i32 @fclose(i32* %109)
%111 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [7 x i8] c"file%i\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [29 x i8] c"Error! Cannot open file: %s\0A\00"
@RAND_MAX = global double 0.000000e+00
@.str.3 = [30 x i8] c"Writing %i ints to the file.\0A\00"
@.str.5 = [9 x i8] c"cycleCnt\00"
@str = [46 x i8] c"cannot open file \22cycleCnt\22. Cannot continue.\00"
@str.8 = [49 x i8] c"Error writing to file cycleCnt. Cannot continue.\00"
@str.10 = [20 x i8] c"File write error!!.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [30 x i8]
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast i32* %3 to i8*
%8 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
br label %9
9: ; preds = %0, %66
%10 = phi i32 [ 0, %0 ], [ %11, %66 ]
%11 = add nuw nsw i32 %10, 1
%12 = call i32 @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %10)
%13 = call i32* @fopen(i8* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%14 = icmp eq i32* %13, null
br i1 %14, label %24, label %15
15: ; preds = %9
%16 = call double (...) @rand()
%17 = fmul double %16, 2.000000e+04
%18 = load double, double* @RAND_MAX
%19 = fadd double %18, 1.000000e+00
%20 = fdiv double %17, %19
%21 = fptosi double %20 to i32
%22 = add nsw i32 %21, 1
%23 = icmp slt i32 %21, 99
br i1 %23, label %27, label %38
24: ; preds = %9
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* %8)
%26 = call i32 @exit(i32 1)
unreachable
27: ; preds = %15, %27
%28 = phi i32 [ %36, %27 ], [ %22, %15 ]
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %28)
%30 = call double (...) @rand()
%31 = fmul double %30, 2.000000e+04
%32 = load double, double* @RAND_MAX
%33 = fadd double %32, 1.000000e+00
%34 = fdiv double %31, %33
%35 = fptosi double %34 to i32
%36 = add nsw i32 %35, 1
%37 = icmp slt i32 %35, 99
br i1 %37, label %27, label %38
38: ; preds = %27, %15
%39 = phi i32 [ %21, %15 ], [ %35, %27 ]
%40 = phi i32 [ %22, %15 ], [ %36, %27 ]
%41 = shl i32 %40, 2
store i32 %41, i32* %3
%42 = call i32 @fwrite(i32* %3, i32 4, i32 1, i32* %13)
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %48
44: ; preds = %38
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.10, i64 0, i64 0))
%46 = call i32 @fclose(i32* %13)
%47 = call i32 @exit(i32 1)
unreachable
48: ; preds = %38, %51
%49 = phi i32 [ %52, %51 ], [ %39, %38 ]
%50 = icmp eq i32 %49, 0
br i1 %50, label %66, label %51
51: ; preds = %48
%52 = add nsw i32 %49, -1
%53 = call double (...) @rand()
%54 = fmul double %53, 1.000000e+04
%55 = load double, double* @RAND_MAX
%56 = fadd double %55, 1.000000e+00
%57 = fdiv double %54, %56
%58 = fptosi double %57 to i32
%59 = add nsw i32 %58, 1
store i32 %59, i32* %2
%60 = call i32 @fwrite(i32* %2, i32 4, i32 1, i32* %13)
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %48
62: ; preds = %51
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.10, i64 0, i64 0))
%64 = call i32 @fclose(i32* %13)
%65 = call i32 @exit(i32 1)
unreachable
66: ; preds = %48
%67 = call i32 @fflush(i32* %13)
%68 = call i32 @fclose(i32* %13)
%69 = call i32 @checksum(i8* %8)
%70 = call i32 @check_crc_ccitt(i8* %8)
%71 = icmp eq i32 %11, 100
br i1 %71, label %72, label %9
72: ; preds = %66
%73 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%74 = icmp eq i32* %73, null
br i1 %74, label %75, label %78
75: ; preds = %72
%76 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str, i64 0, i64 0))
%77 = call i32 @exit(i32 1)
unreachable
78: ; preds = %72
store i32 0, i32* %1
%79 = call i32 @fwrite(i32* %1, i32 4, i32 1, i32* %73)
%80 = icmp eq i32 %79, 1
br i1 %80, label %84, label %81
81: ; preds = %78
%82 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.8, i64 0, i64 0))
%83 = call i32 @exit(i32 1)
unreachable
84: ; preds = %78
%85 = call i32 @fclose(i32* %73)
%86 = call i32 @exit(i32 0)
unreachable
}