#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*/ SEEK_SET;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fread(unsigned char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int, int /*<<< orphan*/);
long ftell(int /*<<< orphan*/ *);
void *malloc(int);
double **MNIST17() {
  int i;
  int j;
  int n = 13007;
  FILE *labels;
  labels = fopen("train-labels.idx1-ubyte", "rb");
  FILE *images;
  images = fopen("train-images.idx3-ubyte", "rb");
  fseek(labels, 8, SEEK_SET);
  fseek(images, 16, SEEK_SET);
  int count17 = 0;
  unsigned char label;
  unsigned char pixel;
  double **data17 = malloc(n * sizeof(double *));
  for (i = 0; i < n; ++i)
    data17[i] = malloc((28 * 28 + 2) * sizeof(double));
  for (i = 0; i < 60000; ++i) {
    fread(&label, 1, 1, labels);
    if (label == 1) {
      fseek(images, 16 + 28 * 28 * i, SEEK_SET);
      for (j = 0; j < 28 * 28; ++j) {
        fread(&pixel, 1, 1, images);
        data17[count17][j] = (double)pixel;
      }
      data17[count17][28 * 28] = 1.;
      ++count17;
    } else if (label == 7) {
      fseek(images, 16 + 28 * 28 * i, SEEK_SET);
      for (j = 0; j < 28 * 28; ++j) {
        fread(&pixel, 1, 1, images);
        data17[count17][j] = (double)pixel;
      }
      data17[count17][28 * 28] = -1.;
      ++count17;
    }
    if (13007 == count17)
      break;
  }
  long lsize;
  fseek(images, 0, SEEK_END);
  lsize = ftell(images);
  fclose(labels);
  fclose(images);
  return data17;
}


x86 assembly (clang, -O0):
<MNIST17>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x32cf,-0xc(%rbp)
lea    0xe9a(%rip),%rdi
lea    0xeab(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
lea    0xe9e(%rip),%rdi
lea    0xe94(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
mov    0x2e30(%rip),%rax
mov    (%rax),%edx
mov    $0x8,%esi
call   1070 <fseek@plt>
mov    -0x20(%rbp),%rdi
mov    0x2e19(%rip),%rax
mov    (%rax),%edx
mov    $0x10,%esi
call   1070 <fseek@plt>
movl   $0x0,-0x24(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    121f <MNIST17+0xbf>
mov    $0x1890,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x4(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11ec <MNIST17+0x8c>
movl   $0x0,-0x4(%rbp)
cmpl   $0xea60,-0x4(%rbp)
jge    13b9 <MNIST17+0x259>
mov    -0x18(%rbp),%rcx
lea    -0x25(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
movzbl -0x25(%rbp),%eax
cmp    $0x1,%eax
jne    12ed <MNIST17+0x18d>
mov    -0x20(%rbp),%rdi
imul   $0x310,-0x4(%rbp),%esi
add    $0x10,%esi
mov    0x2d6f(%rip),%rax
mov    (%rax),%edx
call   1070 <fseek@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x310,-0x8(%rbp)
jge    12c3 <MNIST17+0x163>
mov    -0x20(%rbp),%rcx
lea    -0x26(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
movzbl -0x26(%rbp),%eax
cvtsi2sd %eax,%xmm0
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x8(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1277 <MNIST17+0x117>
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0xd31(%rip),%xmm0
movsd  %xmm0,0x1880(%rax)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1393 <MNIST17+0x233>
movzbl -0x25(%rbp),%eax
cmp    $0x7,%eax
jne    138e <MNIST17+0x22e>
mov    -0x20(%rbp),%rdi
imul   $0x310,-0x4(%rbp),%esi
add    $0x10,%esi
mov    0x2cc9(%rip),%rax
mov    (%rax),%edx
call   1070 <fseek@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x310,-0x8(%rbp)
jge    1369 <MNIST17+0x209>
mov    -0x20(%rbp),%rcx
lea    -0x26(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
movzbl -0x26(%rbp),%eax
cvtsi2sd %eax,%xmm0
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x8(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    131d <MNIST17+0x1bd>
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0xc83(%rip),%xmm0
movsd  %xmm0,0x1880(%rax)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1393 <MNIST17+0x233>
mov    $0x32cf,%eax
cmp    -0x24(%rbp),%eax
jne    13a6 <MNIST17+0x246>
jmp    13b9 <MNIST17+0x259>
jmp    13ab <MNIST17+0x24b>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1226 <MNIST17+0xc6>
mov    -0x20(%rbp),%rdi
mov    0x2c24(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1070 <fseek@plt>
mov    -0x20(%rbp),%rdi
call   1050 <ftell@plt>
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x30(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MNIST17>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xe9b(%rip),%rdi
lea    0xeac(%rip),%rbp
mov    %rbp,%rsi
call   1080 <fopen@plt>
mov    %rax,%r14
lea    0xe9d(%rip),%rdi
mov    %rbp,%rsi
call   1080 <fopen@plt>
mov    %rax,%r15
mov    0x2e38(%rip),%rbp
mov    0x0(%rbp),%edx
mov    %r14,%rdi
mov    $0x8,%esi
call   1070 <fseek@plt>
mov    0x0(%rbp),%edx
mov    %r15,%rdi
mov    $0x10,%esi
call   1070 <fseek@plt>
mov    $0x19678,%edi
call   1060 <malloc@plt>
mov    %rax,%r12
xor    %ebp,%ebp
nop
mov    $0x1890,%edi
call   1060 <malloc@plt>
mov    %rax,(%r12,%rbp,8)
add    $0x1,%rbp
cmp    $0x32cf,%rbp
jne    11d0 <MNIST17+0x70>
xor    %ebp,%ebp
lea    0x2(%rsp),%r13
xor    %ebx,%ebx
mov    %r14,0x8(%rsp)
jmp    122a <MNIST17+0xca>
nopl   0x0(%rax,%rax,1)
mov    0x4(%rsp),%ebx
movsd  %xmm0,0x1880(%rax)
add    $0x1,%ebx
cmp    $0x32cf,%ebx
je     134c <MNIST17+0x1ec>
add    $0x1,%ebp
cmp    $0xea60,%ebp
je     134c <MNIST17+0x1ec>
lea    0x3(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
mov    0x3(%rsp),%al
cmp    $0x7,%al
je     12d0 <MNIST17+0x170>
cmp    $0x1,%al
jne    121b <MNIST17+0xbb>
mov    %rbp,0x10(%rsp)
imul   $0x310,%ebp,%esi
add    $0x10,%esi
mov    0x2d72(%rip),%rax
mov    (%rax),%edx
mov    %r15,%rdi
call   1070 <fseek@plt>
mov    %ebx,0x4(%rsp)
movslq %ebx,%r14
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r13,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1030 <fread@plt>
movzbl 0x2(%rsp),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    (%r12,%r14,8),%rax
movsd  %xmm0,(%rax,%rbp,8)
add    $0x1,%rbp
cmp    $0x310,%rbp
jne    1280 <MNIST17+0x120>
movsd  0xd49(%rip),%xmm0
mov    0x8(%rsp),%r14
mov    0x10(%rsp),%rbp
jmp    1200 <MNIST17+0xa0>
xchg   %ax,%ax
mov    %rbp,%r14
imul   $0x310,%ebp,%esi
add    $0x10,%esi
mov    0x2cf5(%rip),%rax
mov    (%rax),%edx
mov    %r15,%rdi
call   1070 <fseek@plt>
mov    %ebx,0x4(%rsp)
movslq %ebx,%rbp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    %r13,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1030 <fread@plt>
movzbl 0x2(%rsp),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    (%r12,%rbp,8),%rax
movsd  %xmm0,(%rax,%rbx,8)
add    $0x1,%rbx
cmp    $0x310,%rbx
jne    1300 <MNIST17+0x1a0>
movsd  0xcc1(%rip),%xmm0
mov    %r14,%rbp
mov    0x8(%rsp),%r14
jmp    1200 <MNIST17+0xa0>
mov    0x2c95(%rip),%rax
mov    (%rax),%edx
mov    %r15,%rdi
xor    %esi,%esi
call   1070 <fseek@plt>
mov    %r15,%rdi
call   1050 <ftell@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
mov    %r15,%rdi
call   1040 <fclose@plt>
mov    %r12,%rax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [24 x i8] c"train-labels.idx1-ubyte\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [24 x i8] c"train-images.idx3-ubyte\00"
@SEEK_SET = global i32 0
@SEEK_END = global i32 0
define double** @MNIST17() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i8
%8 = alloca i8
%9 = alloca double**
%10 = alloca i64
store i32 13007, i32* %3
%11 = call i32* @fopen(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %11, i32** %4
%12 = call i32* @fopen(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %12, i32** %5
%13 = load i32*, i32** %4
%14 = load i32, i32* @SEEK_SET
%15 = call i32 @fseek(i32* %13, i32 8, i32 %14)
%16 = load i32*, i32** %5
%17 = load i32, i32* @SEEK_SET
%18 = call i32 @fseek(i32* %16, i32 16, i32 %17)
store i32 0, i32* %6
%19 = load i32, i32* %3
%20 = sext i32 %19 to i64
%21 = mul i64 %20, 8
%22 = trunc i64 %21 to i32
%23 = call i8* @malloc(i32 %22)
%24 = bitcast i8* %23 to double**
store double** %24, double*** %9
store i32 0, i32* %1
br label %25
25: ; preds = %36, %0
%26 = load i32, i32* %1
%27 = load i32, i32* %3
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %39
29: ; preds = %25
%30 = call i8* @malloc(i32 6288)
%31 = bitcast i8* %30 to double*
%32 = load double**, double*** %9
%33 = load i32, i32* %1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double*, double** %32, i64 %34
store double* %31, double** %35
br label %36
36: ; preds = %29
%37 = load i32, i32* %1
%38 = add nsw i32 %37, 1
store i32 %38, i32* %1
br label %25
39: ; preds = %25
store i32 0, i32* %1
br label %40
40: ; preds = %129, %39
%41 = load i32, i32* %1
%42 = icmp slt i32 %41, 60000
br i1 %42, label %43, label %132
43: ; preds = %40
%44 = load i32*, i32** %4
%45 = call i32 @fread(i8* %7, i32 1, i32 1, i32* %44)
%46 = load i8, i8* %7
%47 = zext i8 %46 to i32
%48 = icmp eq i32 %47, 1
br i1 %48, label %49, label %84
49: ; preds = %43
%50 = load i32*, i32** %5
%51 = load i32, i32* %1
%52 = mul nsw i32 784, %51
%53 = add nsw i32 16, %52
%54 = load i32, i32* @SEEK_SET
%55 = call i32 @fseek(i32* %50, i32 %53, i32 %54)
store i32 0, i32* %2
br label %56
56: ; preds = %72, %49
%57 = load i32, i32* %2
%58 = icmp slt i32 %57, 784
br i1 %58, label %59, label %75
59: ; preds = %56
%60 = load i32*, i32** %5
%61 = call i32 @fread(i8* %8, i32 1, i32 1, i32* %60)
%62 = load i8, i8* %8
%63 = uitofp i8 %62 to double
%64 = load double**, double*** %9
%65 = load i32, i32* %6
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double*, double** %64, i64 %66
%68 = load double*, double** %67
%69 = load i32, i32* %2
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, double* %68, i64 %70
store double %63, double* %71
br label %72
72: ; preds = %59
%73 = load i32, i32* %2
%74 = add nsw i32 %73, 1
store i32 %74, i32* %2
br label %56
75: ; preds = %56
%76 = load double**, double*** %9
%77 = load i32, i32* %6
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds double*, double** %76, i64 %78
%80 = load double*, double** %79
%81 = getelementptr inbounds double, double* %80, i64 784
store double 1.000000e+00, double* %81
%82 = load i32, i32* %6
%83 = add nsw i32 %82, 1
store i32 %83, i32* %6
br label %124
84: ; preds = %43
%85 = load i8, i8* %7
%86 = zext i8 %85 to i32
%87 = icmp eq i32 %86, 7
br i1 %87, label %88, label %123
88: ; preds = %84
%89 = load i32*, i32** %5
%90 = load i32, i32* %1
%91 = mul nsw i32 784, %90
%92 = add nsw i32 16, %91
%93 = load i32, i32* @SEEK_SET
%94 = call i32 @fseek(i32* %89, i32 %92, i32 %93)
store i32 0, i32* %2
br label %95
95: ; preds = %111, %88
%96 = load i32, i32* %2
%97 = icmp slt i32 %96, 784
br i1 %97, label %98, label %114
98: ; preds = %95
%99 = load i32*, i32** %5
%100 = call i32 @fread(i8* %8, i32 1, i32 1, i32* %99)
%101 = load i8, i8* %8
%102 = uitofp i8 %101 to double
%103 = load double**, double*** %9
%104 = load i32, i32* %6
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double*, double** %103, i64 %105
%107 = load double*, double** %106
%108 = load i32, i32* %2
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds double, double* %107, i64 %109
store double %102, double* %110
br label %111
111: ; preds = %98
%112 = load i32, i32* %2
%113 = add nsw i32 %112, 1
store i32 %113, i32* %2
br label %95
114: ; preds = %95
%115 = load double**, double*** %9
%116 = load i32, i32* %6
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds double*, double** %115, i64 %117
%119 = load double*, double** %118
%120 = getelementptr inbounds double, double* %119, i64 784
store double -1.000000e+00, double* %120
%121 = load i32, i32* %6
%122 = add nsw i32 %121, 1
store i32 %122, i32* %6
br label %123
123: ; preds = %114, %84
br label %124
124: ; preds = %123, %75
%125 = load i32, i32* %6
%126 = icmp eq i32 13007, %125
br i1 %126, label %127, label %128
127: ; preds = %124
br label %132
128: ; preds = %124
br label %129
129: ; preds = %128
%130 = load i32, i32* %1
%131 = add nsw i32 %130, 1
store i32 %131, i32* %1
br label %40
132: ; preds = %127, %40
%133 = load i32*, i32** %5
%134 = load i32, i32* @SEEK_END
%135 = call i32 @fseek(i32* %133, i32 0, i32 %134)
%136 = load i32*, i32** %5
%137 = call i64 @ftell(i32* %136)
store i64 %137, i64* %10
%138 = load i32*, i32** %4
%139 = call i32 @fclose(i32* %138)
%140 = load i32*, i32** %5
%141 = call i32 @fclose(i32* %140)
%142 = load double**, double*** %9
ret double** %142
}

LLVM IR (-O2):
@.str = [24 x i8] c"train-labels.idx1-ubyte\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [24 x i8] c"train-images.idx3-ubyte\00"
@SEEK_SET = global i32 0
@SEEK_END = global i32 0
define noalias double** @MNIST17() {
%1 = alloca i8
%2 = alloca i8
%3 = tail call i32* @fopen(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32* @fopen(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @SEEK_SET
%6 = tail call i32 @fseek(i32* %3, i32 8, i32 %5)
%7 = load i32, i32* @SEEK_SET
%8 = tail call i32 @fseek(i32* %4, i32 16, i32 %7)
%9 = tail call dereferenceable_or_null(104056) i8* @malloc(i32 104056)
%10 = bitcast i8* %9 to double**
br label %11
11: ; preds = %0, %11
%12 = phi i64 [ 0, %0 ], [ %16, %11 ]
%13 = tail call dereferenceable_or_null(6288) i8* @malloc(i32 6288)
%14 = getelementptr inbounds double*, double** %10, i64 %12
%15 = bitcast double** %14 to i8**
store i8* %13, i8** %15
%16 = add nuw nsw i64 %12, 1
%17 = icmp eq i64 %16, 13007
br i1 %17, label %18, label %11
18: ; preds = %11, %61
%19 = phi i32 [ %63, %61 ], [ 0, %11 ]
%20 = phi i32 [ %62, %61 ], [ 0, %11 ]
%21 = call i32 @fread(i8* %1, i32 1, i32 1, i32* %3)
%22 = load i8, i8* %1
switch i8 %22, label %61 [
i8 1, label %23
i8 7, label %39
]
23: ; preds = %18
%24 = mul nuw nsw i32 %19, 784
%25 = add nuw nsw i32 %24, 16
%26 = load i32, i32* @SEEK_SET
%27 = tail call i32 @fseek(i32* %4, i32 %25, i32 %26)
%28 = sext i32 %20 to i64
%29 = getelementptr inbounds double*, double** %10, i64 %28
br label %30
30: ; preds = %23, %30
%31 = phi i64 [ 0, %23 ], [ %37, %30 ]
%32 = call i32 @fread(i8* %2, i32 1, i32 1, i32* %4)
%33 = load i8, i8* %2
%34 = uitofp i8 %33 to double
%35 = load double*, double** %29
%36 = getelementptr inbounds double, double* %35, i64 %31
store double %34, double* %36
%37 = add nuw nsw i64 %31, 1
%38 = icmp eq i64 %37, 784
br i1 %38, label %55, label %30
39: ; preds = %18
%40 = mul nuw nsw i32 %19, 784
%41 = add nuw nsw i32 %40, 16
%42 = load i32, i32* @SEEK_SET
%43 = tail call i32 @fseek(i32* %4, i32 %41, i32 %42)
%44 = sext i32 %20 to i64
%45 = getelementptr inbounds double*, double** %10, i64 %44
br label %46
46: ; preds = %39, %46
%47 = phi i64 [ 0, %39 ], [ %53, %46 ]
%48 = call i32 @fread(i8* %2, i32 1, i32 1, i32* %4)
%49 = load i8, i8* %2
%50 = uitofp i8 %49 to double
%51 = load double*, double** %45
%52 = getelementptr inbounds double, double* %51, i64 %47
store double %50, double* %52
%53 = add nuw nsw i64 %47, 1
%54 = icmp eq i64 %53, 784
br i1 %54, label %55, label %46
55: ; preds = %46, %30
%56 = phi double* [ %35, %30 ], [ %51, %46 ]
%57 = phi double [ 1.000000e+00, %30 ], [ -1.000000e+00, %46 ]
%58 = getelementptr inbounds double, double* %56, i64 784
store double %57, double* %58
%59 = add nsw i32 %20, 1
%60 = icmp eq i32 %59, 13007
br i1 %60, label %65, label %61
61: ; preds = %18, %55
%62 = phi i32 [ %59, %55 ], [ %20, %18 ]
%63 = add nuw nsw i32 %19, 1
%64 = icmp eq i32 %63, 60000
br i1 %64, label %65, label %18
65: ; preds = %55, %61
%66 = load i32, i32* @SEEK_END
%67 = tail call i32 @fseek(i32* %4, i32 0, i32 %66)
%68 = tail call i64 @ftell(i32* %4)
%69 = tail call i32 @fclose(i32* %3)
%70 = tail call i32 @fclose(i32* %4)
ret double** %10
}