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

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ fwrite(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, unsigned long, unsigned long, unsigned long,
                          float);
int randomish();
int sprintf(char *, char *, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
unsigned long time(unsigned long *);
void generate_dna(char *filename, char *dna, int files, int bytes, int mult) {
  int end = strlen(filename);
  unsigned long wbytes = 0;
  int nfiles = 0;
  time_t start, elapsed;
  char istr[80];
  FILE *fp;
  int il;
  int i;
  int n;
  time(&start);
  for (i = 0; i < files; i++) {
    n = (randomish() % mult) + 1;
    il = sprintf(istr, "%d", i);
    strcpy(filename + end, istr);
    sprintf(filename + end + il, "-%d", n);
    if ((fp = fopen(filename, "w")) == NULL)
      fprintf(stderr, "Error: failed to open '%s'\n", filename);
    else {
      while (n--) {
        fwrite(dna, bytes, 1, fp);
        fwrite(istr, il, 1, fp);
        fwrite(filename, end, 1, fp);
        wbytes += (bytes + il + end);
      }
      fclose(fp);
      nfiles++;
    }
  }
  elapsed = time(NULL) - start;
  printf("%.2f MB written in %ld seconds (%.2f MB/s, %.2f files/s)\n",
         wbytes / 1048576., elapsed, wbytes / 1048576. / elapsed,
         (float)nfiles / elapsed);
}


x86 assembly (clang, -O0):
<generate_dna>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
lea    -0x38(%rbp),%rdi
call   1080 <time@plt>
movl   $0x0,-0xa0(%rbp)
mov    -0xa0(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1360 <generate_dna+0x1c0>
mov    $0x0,%al
call   1090 <randomish@plt>
cltd
idivl  -0x1c(%rbp)
add    $0x1,%edx
mov    %edx,-0xa4(%rbp)
lea    -0x90(%rbp),%rdi
mov    -0xa0(%rbp),%edx
lea    0xe0f(%rip),%rsi
call   10b0 <sprintf@plt>
mov    %eax,-0x9c(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x20(%rbp),%rax
add    %rax,%rdi
lea    -0x90(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x8(%rbp),%rdi
movslq -0x20(%rbp),%rax
add    %rax,%rdi
movslq -0x9c(%rbp),%rax
add    %rax,%rdi
mov    -0xa4(%rbp),%edx
lea    0xdca(%rip),%rsi
call   10b0 <sprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xdbe(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x98(%rbp)
cmp    $0x0,%rax
jne    12aa <generate_dna+0x10a>
mov    0x2d4d(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xd96(%rip),%rsi
call   1070 <fprintf@plt>
jmp    1347 <generate_dna+0x1a7>
jmp    12af <generate_dna+0x10f>
mov    -0xa4(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0xa4(%rbp)
cmp    $0x0,%eax
je     1332 <generate_dna+0x192>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%esi
mov    -0x98(%rbp),%rcx
mov    $0x1,%edx
call   10c0 <fwrite@plt>
lea    -0x90(%rbp),%rdi
mov    -0x9c(%rbp),%esi
mov    -0x98(%rbp),%rcx
mov    $0x1,%edx
call   10c0 <fwrite@plt>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x98(%rbp),%rcx
mov    $0x1,%edx
call   10c0 <fwrite@plt>
mov    -0x18(%rbp),%eax
add    -0x9c(%rbp),%eax
add    -0x20(%rbp),%eax
cltq
add    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    12af <generate_dna+0x10f>
mov    -0x98(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    134c <generate_dna+0x1ac>
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
jmp    11eb <generate_dna+0x4b>
xor    %eax,%eax
mov    %eax,%edi
call   1080 <time@plt>
mov    -0x38(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x40(%rbp)
movaps 0xc85(%rip),%xmm4
movq   -0x28(%rbp),%xmm0
punpckldq %xmm4,%xmm0
movapd 0xc84(%rip),%xmm3
subpd  %xmm3,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0xc7d(%rip),%xmm1
divsd  %xmm1,%xmm0
movaps %xmm0,%xmm1
cvttsd2si %xmm1,%rax
mov    %rax,%rdx
sar    $0x3f,%rdx
movsd  0xc6a(%rip),%xmm1
movaps %xmm0,%xmm2
subsd  %xmm1,%xmm2
cvttsd2si %xmm2,%rcx
and    %rdx,%rcx
or     %rcx,%rax
mov    %rax,-0xc8(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0xc0(%rbp)
movq   %rax,%xmm2
punpckldq %xmm4,%xmm2
subpd  %xmm3,%xmm2
movaps %xmm2,%xmm3
unpckhpd %xmm2,%xmm2
addsd  %xmm3,%xmm2
divsd  %xmm2,%xmm0
movaps %xmm0,%xmm2
cvttsd2si %xmm2,%rcx
mov    %rcx,%rsi
sar    $0x3f,%rsi
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rdx
and    %rsi,%rdx
or     %rdx,%rcx
mov    %rcx,-0xb8(%rbp)
cvtsi2ssl -0x2c(%rbp),%xmm0
movss  %xmm0,-0xb0(%rbp)
ff
mov    %rax,%rdx
shr    %rdx
mov    %eax,%ecx
and    $0x1,%ecx
or     %rdx,%rcx
cvtsi2ss %rcx,%xmm0
addss  %xmm0,%xmm0
cvtsi2ss %rax,%xmm1
movss  %xmm1,-0xac(%rbp)
ff
test   %rax,%rax
movss  %xmm0,-0xa8(%rbp)
ff
js     1475 <generate_dna+0x2d5>
movss  -0xac(%rbp),%xmm0
ff
movss  %xmm0,-0xa8(%rbp)
ff
mov    -0xb8(%rbp),%rcx
mov    -0xc0(%rbp),%rdx
mov    -0xc8(%rbp),%rsi
movss  -0xb0(%rbp),%xmm0
ff
movss  -0xa8(%rbp),%xmm1
ff
divss  %xmm1,%xmm0
lea    0xbad(%rip),%rdi
call   1060 <printf@plt>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<generate_dna>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %r8d,0x24(%rsp)
mov    %ecx,%r14d
mov    %edx,%ebx
mov    %rsi,%r13
mov    %rdi,%r12
call   1050 <strlen@plt>
mov    %eax,%r15d
lea    0x58(%rsp),%rdi
call   1080 <time@plt>
mov    %ebx,0x20(%rsp)
test   %ebx,%ebx
jle    1378 <generate_dna+0x1d8>
movslq %r15d,%rax
lea    (%r12,%rax,1),%rcx
mov    %rcx,0x50(%rsp)
add    %r14d,%eax
mov    %rax,0x40(%rsp)
lea    0x60(%rsp),%rbp
xor    %ebx,%ebx
xor    %eax,%eax
mov    %rax,0x10(%rsp)
xor    %eax,%eax
mov    %rax,0x8(%rsp)
mov    %r12,0x30(%rsp)
mov    %r15d,0x28(%rsp)
mov    %r13,0x38(%rsp)
mov    %r14d,0x1c(%rsp)
jmp    1251 <generate_dna+0xb1>
xchg   %ax,%ax
mov    %r12,%rbp
mov    0x2db6(%rip),%rax
mov    (%rax),%edi
lea    0xe03(%rip),%rsi
mov    %r12,%rdx
call   1070 <fprintf@plt>
lea    0x60(%rsp),%rbp
mov    0x4(%rsp),%ebx
add    $0x1,%ebx
cmp    0x20(%rsp),%ebx
je     1386 <generate_dna+0x1e6>
xor    %eax,%eax
call   1090 <randomish@plt>
cltd
idivl  0x24(%rsp)
mov    %rdx,%r14
lea    0x1(%rdx),%r15d
mov    %rbp,%rdi
lea    0xdc3(%rip),%rsi
mov    %ebx,0x4(%rsp)
mov    %ebx,%edx
call   10b0 <sprintf@plt>
mov    %eax,%ebx
mov    %rbp,%rsi
mov    0x50(%rsp),%rbp
mov    %rbp,%rdi
call   1030 <strcpy@plt>
mov    %ebx,%r13d
movslq %ebx,%rdi
add    %rbp,%rdi
lea    0xd95(%rip),%rsi
mov    %r15d,%edx
call   10b0 <sprintf@plt>
mov    %r12,%rdi
lea    0xd87(%rip),%rsi
call   10a0 <fopen@plt>
test   %rax,%rax
je     1220 <generate_dna+0x80>
mov    %rax,%r12
test   %r15d,%r15d
je     1350 <generate_dna+0x1b0>
mov    %r13d,0x2c(%rsp)
add    0x40(%rsp),%r13d
movslq %r13d,%rax
mov    %r14d,%ecx
add    $0x1,%rcx
imul   %rax,%rcx
mov    %rcx,0x48(%rsp)
mov    0x1c(%rsp),%r14d
mov    0x38(%rsp),%r13
mov    0x30(%rsp),%rbp
lea    0x60(%rsp),%rbx
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
mov    %r14d,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   10c0 <fwrite@plt>
mov    %rbx,%rdi
mov    0x2c(%rsp),%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   10c0 <fwrite@plt>
mov    %rbp,%rdi
mov    0x28(%rsp),%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   10c0 <fwrite@plt>
add    $0xffffffff,%r15d
jne    1300 <generate_dna+0x160>
mov    0x48(%rsp),%rax
add    %rax,0x10(%rsp)
mov    %rbx,%rbp
jmp    1355 <generate_dna+0x1b5>
lea    0x60(%rsp),%rbp
mov    0x4(%rsp),%ebx
mov    %r12,%rdi
call   1040 <fclose@plt>
mov    0x8(%rsp),%rax
add    $0x1,%eax
mov    %rax,0x8(%rsp)
mov    0x30(%rsp),%r12
jmp    1244 <generate_dna+0xa4>
xor    %eax,%eax
mov    %rax,0x8(%rsp)
xor    %eax,%eax
mov    %rax,0x10(%rsp)
xor    %edi,%edi
call   1080 <time@plt>
sub    0x58(%rsp),%rax
movsd  0x10(%rsp),%xmm1
movapd 0xc60(%rip),%xmm2
unpcklps %xmm2,%xmm1
movapd 0xc65(%rip),%xmm3
subpd  %xmm3,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
mulsd  0xc5d(%rip),%xmm0
cvttsd2si %xmm0,%rcx
mov    %rcx,%rdx
sar    $0x3f,%rdx
movsd  0xc51(%rip),%xmm1
movapd %xmm0,%xmm4
subsd  %xmm1,%xmm4
cvttsd2si %xmm4,%rsi
and    %rdx,%rsi
or     %rcx,%rsi
movq   %rax,%xmm4
punpckldq %xmm2,%xmm4
subpd  %xmm3,%xmm4
movapd %xmm4,%xmm2
unpckhpd %xmm4,%xmm2
addsd  %xmm4,%xmm2
divsd  %xmm2,%xmm0
cvttsd2si %xmm0,%rdx
mov    %rdx,%rdi
sar    $0x3f,%rdi
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rcx
and    %rdi,%rcx
or     %rdx,%rcx
xorps  %xmm0,%xmm0
cvtsi2ssl 0x8(%rsp),%xmm0
test   %rax,%rax
js     143a <generate_dna+0x29a>
xorps  %xmm1,%xmm1
cvtsi2ss %rax,%xmm1
jmp    1454 <generate_dna+0x2b4>
mov    %rax,%rdx
shr    %rdx
mov    %eax,%edi
and    $0x1,%edi
or     %rdx,%rdi
xorps  %xmm1,%xmm1
cvtsi2ss %rdi,%xmm1
addss  %xmm1,%xmm1
divss  %xmm1,%xmm0
lea    0xbf3(%rip),%rdi
mov    %rax,%rdx
call   1060 <printf@plt>
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"-%d\00"
@.str.2 = [2 x i8] c"w\00"
@stderr = global i32 0
@.str.3 = [28 x i8] c"Error: failed to open '%s'\0A\00"
@.str.4 = [58 x i8] c"%.2f MB written in %ld seconds (%.2f MB/s, %.2f files/s)\0A\00"
define void @generate_dna(i8* %0, i8* %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i64
%13 = alloca i32
%14 = alloca i64
%15 = alloca i64
%16 = alloca [80 x i8]
%17 = alloca i32*
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
store i8* %0, i8** %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%21 = load i8*, i8** %6
%22 = call i32 @strlen(i8* %21)
store i32 %22, i32* %11
store i64 0, i64* %12
store i32 0, i32* %13
%23 = call i64 @time(i64* %14)
store i32 0, i32* %19
br label %24
24: ; preds = %90, %5
%25 = load i32, i32* %19
%26 = load i32, i32* %8
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %93
28: ; preds = %24
%29 = call i32 (...) @randomish()
%30 = load i32, i32* %10
%31 = srem i32 %29, %30
%32 = add nsw i32 %31, 1
store i32 %32, i32* %20
%33 = getelementptr inbounds [80 x i8], [80 x i8]* %16, i64 0, i64 0
%34 = load i32, i32* %19
%35 = call i32 @sprintf(i8* %33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %34)
store i32 %35, i32* %18
%36 = load i8*, i8** %6
%37 = load i32, i32* %11
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, i8* %36, i64 %38
%40 = getelementptr inbounds [80 x i8], [80 x i8]* %16, i64 0, i64 0
%41 = call i32 @strcpy(i8* %39, i8* %40)
%42 = load i8*, i8** %6
%43 = load i32, i32* %11
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, i8* %42, i64 %44
%46 = load i32, i32* %18
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, i8* %45, i64 %47
%49 = load i32, i32* %20
%50 = call i32 @sprintf(i8* %48, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %49)
%51 = load i8*, i8** %6
%52 = call i32* @fopen(i8* %51, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %52, i32** %17
%53 = icmp eq i32* %52, null
br i1 %53, label %54, label %58
54: ; preds = %28
%55 = load i32, i32* @stderr
%56 = load i8*, i8** %6
%57 = call i32 @fprintf(i32 %55, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i8* %56)
br label %89
58: ; preds = %28
br label %59
59: ; preds = %63, %58
%60 = load i32, i32* %20
%61 = add nsw i32 %60, -1
store i32 %61, i32* %20
%62 = icmp ne i32 %60, 0
br i1 %62, label %63, label %84
63: ; preds = %59
%64 = load i8*, i8** %7
%65 = load i32, i32* %9
%66 = load i32*, i32** %17
%67 = call i32 @fwrite(i8* %64, i32 %65, i32 1, i32* %66)
%68 = getelementptr inbounds [80 x i8], [80 x i8]* %16, i64 0, i64 0
%69 = load i32, i32* %18
%70 = load i32*, i32** %17
%71 = call i32 @fwrite(i8* %68, i32 %69, i32 1, i32* %70)
%72 = load i8*, i8** %6
%73 = load i32, i32* %11
%74 = load i32*, i32** %17
%75 = call i32 @fwrite(i8* %72, i32 %73, i32 1, i32* %74)
%76 = load i32, i32* %9
%77 = load i32, i32* %18
%78 = add nsw i32 %76, %77
%79 = load i32, i32* %11
%80 = add nsw i32 %78, %79
%81 = sext i32 %80 to i64
%82 = load i64, i64* %12
%83 = add i64 %82, %81
store i64 %83, i64* %12
br label %59
84: ; preds = %59
%85 = load i32*, i32** %17
%86 = call i32 @fclose(i32* %85)
%87 = load i32, i32* %13
%88 = add nsw i32 %87, 1
store i32 %88, i32* %13
br label %89
89: ; preds = %84, %54
br label %90
90: ; preds = %89
%91 = load i32, i32* %19
%92 = add nsw i32 %91, 1
store i32 %92, i32* %19
br label %24
93: ; preds = %24
%94 = call i64 @time(i64* null)
%95 = load i64, i64* %14
%96 = sub i64 %94, %95
store i64 %96, i64* %15
%97 = load i64, i64* %12
%98 = uitofp i64 %97 to double
%99 = fdiv double %98, 0x4130000000000000
%100 = fptoui double %99 to i64
%101 = load i64, i64* %15
%102 = load i64, i64* %12
%103 = uitofp i64 %102 to double
%104 = fdiv double %103, 0x4130000000000000
%105 = load i64, i64* %15
%106 = uitofp i64 %105 to double
%107 = fdiv double %104, %106
%108 = fptoui double %107 to i64
%109 = load i32, i32* %13
%110 = sitofp i32 %109 to float
%111 = load i64, i64* %15
%112 = uitofp i64 %111 to float
%113 = fdiv float %110, %112
%114 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0), i64 %100, i64 %101, i64 %108, float %113)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"-%d\00"
@.str.2 = [2 x i8] c"w\00"
@stderr = global i32 0
@.str.3 = [28 x i8] c"Error: failed to open '%s'\0A\00"
@.str.4 = [58 x i8] c"%.2f MB written in %ld seconds (%.2f MB/s, %.2f files/s)\0A\00"
define void @generate_dna(i8* %0, i8* nocapture %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i64
%7 = alloca [80 x i8]
%8 = tail call i32 @strlen(i8* %0)
%9 = bitcast i64* %6 to i8*
%10 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%11 = call i64 @time(i64* %6)
%12 = icmp sgt i32 %2, 0
br i1 %12, label %13, label %60
13: ; preds = %5
%14 = sext i32 %8 to i64
%15 = getelementptr inbounds i8, i8* %0, i64 %14
%16 = add i32 %8, %3
br label %17
17: ; preds = %13, %55
%18 = phi i32 [ 0, %13 ], [ %58, %55 ]
%19 = phi i64 [ 0, %13 ], [ %57, %55 ]
%20 = phi i32 [ 0, %13 ], [ %56, %55 ]
%21 = call i32 (...) @randomish()
%22 = srem i32 %21, %4
%23 = add nsw i32 %22, 1
%24 = call i32 @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %18)
%25 = call i32 @strcpy(i8* %15, i8* %10)
%26 = sext i32 %24 to i64
%27 = getelementptr inbounds i8, i8* %15, i64 %26
%28 = call i32 @sprintf(i8* dereferenceable(1) %27, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %23)
%29 = call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%30 = icmp eq i32* %29, null
br i1 %30, label %39, label %31
31: ; preds = %17
%32 = icmp eq i32 %23, 0
br i1 %32, label %51, label %33
33: ; preds = %31
%34 = add i32 %16, %24
%35 = sext i32 %34 to i64
%36 = zext i32 %22 to i64
%37 = add nuw nsw i64 %36, 1
%38 = mul nsw i64 %37, %35
br label %42
39: ; preds = %17
%40 = load i32, i32* @stderr
%41 = call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i8* %0)
br label %55
42: ; preds = %33, %42
%43 = phi i32 [ %23, %33 ], [ %44, %42 ]
%44 = add nsw i32 %43, -1
%45 = call i32 @fwrite(i8* %1, i32 %3, i32 1, i32* %29)
%46 = call i32 @fwrite(i8* %10, i32 %24, i32 1, i32* %29)
%47 = call i32 @fwrite(i8* %0, i32 %8, i32 1, i32* %29)
%48 = icmp eq i32 %44, 0
br i1 %48, label %49, label %42
49: ; preds = %42
%50 = add i64 %19, %38
br label %51
51: ; preds = %49, %31
%52 = phi i64 [ %19, %31 ], [ %50, %49 ]
%53 = call i32 @fclose(i32* %29)
%54 = add nsw i32 %20, 1
br label %55
55: ; preds = %39, %51
%56 = phi i32 [ %20, %39 ], [ %54, %51 ]
%57 = phi i64 [ %19, %39 ], [ %52, %51 ]
%58 = add nuw nsw i32 %18, 1
%59 = icmp eq i32 %58, %2
br i1 %59, label %60, label %17
60: ; preds = %55, %5
%61 = phi i32 [ 0, %5 ], [ %56, %55 ]
%62 = phi i64 [ 0, %5 ], [ %57, %55 ]
%63 = call i64 @time(i64* null)
%64 = load i64, i64* %6
%65 = sub i64 %63, %64
%66 = uitofp i64 %62 to double
%67 = fmul double %66, 0x3EB0000000000000
%68 = fptoui double %67 to i64
%69 = uitofp i64 %65 to double
%70 = fdiv double %67, %69
%71 = fptoui double %70 to i64
%72 = sitofp i32 %61 to float
%73 = uitofp i64 %65 to float
%74 = fdiv float %72, %73
%75 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0), i64 %68, i64 %65, i64 %71, float %74)
ret void
}