#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, ...);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, char const *);
double **load_matrix(const char *file_name, int *num_inputs,
                     double ***m_inputs) {
  FILE *fd;
  int file_found;
  double **outputs = NULL;
  double **inputs = NULL;
  int r, c_input, c_output;
  double min, max;
  int a, b;
  do {
    fd = fopen(file_name, "r");
    if (!fd) {
      printf("File %s Not Found!!\n", file_name);
      file_found = 1;
    } else
      file_found = 0;
  } while (file_found);
  fscanf(fd, "%d", &r);
  fscanf(fd, "%d", &c_input);
  fscanf(fd, "%d", &c_output);
  fscanf(fd, "%lf", &min);
  fscanf(fd, "%lf", &max);
  *num_inputs = r;
  inputs = (double **)malloc(r * sizeof(double));
  for (a = 0; a < r; a++) {
    inputs[a] = (double *)malloc(c_input * sizeof(double));
  }
  if (c_output > 0) {
    outputs = (double **)malloc(r * sizeof(double));
    for (a = 0; a < r; a++) {
      outputs[a] = (double *)malloc(c_output * sizeof(double));
    }
  }
  while (!feof(fd)) {
    for (a = 0; a < r; a++) {
      for (b = 0; b < c_input; b++) {
        fscanf(fd, "%lf", &inputs[a][b]);
      }
      for (b = 0; b < c_output; b++) {
        fscanf(fd, "%lf", &outputs[a][b]);
      }
    }
  }
  fclose(fd);
  *m_inputs = inputs;
  return outputs;
}


x86 assembly (clang, -O0):
<load_matrix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe71(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    11bf <load_matrix+0x5f>
mov    -0x8(%rbp),%rsi
lea    0xe54(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x24(%rbp)
jmp    11c6 <load_matrix+0x66>
movl   $0x0,-0x24(%rbp)
jmp    11cb <load_matrix+0x6b>
cmpl   $0x0,-0x24(%rbp)
jne    1184 <load_matrix+0x24>
mov    -0x20(%rbp),%rdi
lea    0xe37(%rip),%rsi
lea    -0x3c(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x20(%rbp),%rdi
lea    0xe21(%rip),%rsi
lea    -0x40(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x20(%rbp),%rdi
lea    0xe0b(%rip),%rsi
lea    -0x44(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x20(%rbp),%rdi
lea    0xdf8(%rip),%rsi
lea    -0x50(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x20(%rbp),%rdi
lea    0xde2(%rip),%rsi
lea    -0x58(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x3c(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
movslq -0x3c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    129e <load_matrix+0x13e>
movslq -0x40(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x38(%rbp),%rax
movslq -0x5c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1266 <load_matrix+0x106>
cmpl   $0x0,-0x44(%rbp)
jle    12ff <load_matrix+0x19f>
movslq -0x3c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    12fa <load_matrix+0x19a>
movslq -0x44(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x5c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    12c2 <load_matrix+0x162>
jmp    12ff <load_matrix+0x19f>
jmp    1304 <load_matrix+0x1a4>
mov    -0x20(%rbp),%rdi
call   1060 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1322 <load_matrix+0x1c2>
jmp    13e1 <load_matrix+0x281>
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    13dc <load_matrix+0x27c>
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    137f <load_matrix+0x21f>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%rax
movslq -0x5c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
movslq -0x60(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
lea    0xcb0(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    133c <load_matrix+0x1dc>
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    13c9 <load_matrix+0x269>
mov    -0x20(%rbp),%rdi
mov    -0x30(%rbp),%rax
movslq -0x5c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
movslq -0x60(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
lea    0xc66(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1386 <load_matrix+0x226>
jmp    13ce <load_matrix+0x26e>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1329 <load_matrix+0x1c9>
jmp    1304 <load_matrix+0x1a4>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x38(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x30(%rbp),%rax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<load_matrix>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
lea    0xe82(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%r13
test   %rax,%rax
jne    11be <load_matrix+0x5e>
lea    0xe70(%rip),%r12
lea    0xe67(%rip),%rbp
nopl   0x0(%rax)
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     11a0 <load_matrix+0x40>
mov    %rax,%r13
lea    0xe52(%rip),%rbx
lea    0x4(%rsp),%rdx
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0xc(%rsp),%rdx
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0x8(%rsp),%rdx
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0xe18(%rip),%rbx
lea    0x30(%rsp),%rdx
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0x28(%rsp),%rdx
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    0x4(%rsp),%edi
mov    %edi,(%r15)
shl    $0x3,%edi
call   1070 <malloc@plt>
mov    %rax,%rbp
mov    0x4(%rsp),%edi
test   %edi,%edi
jle    126f <load_matrix+0x10f>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0xc(%rsp),%edi
shl    $0x3,%edi
call   1070 <malloc@plt>
mov    %rax,0x0(%rbp,%rbx,8)
add    $0x1,%rbx
movslq 0x4(%rsp),%rdi
cmp    %rdi,%rbx
jl     1250 <load_matrix+0xf0>
cmpl   $0x0,0x8(%rsp)
mov    %r14,0x18(%rsp)
jle    12c0 <load_matrix+0x160>
shl    $0x3,%edi
call   1070 <malloc@plt>
cmpl   $0x0,0x4(%rsp)
mov    %rax,0x10(%rsp)
jle    12c7 <load_matrix+0x167>
mov    %rax,%r15
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x8(%rsp),%edi
shl    $0x3,%edi
call   1070 <malloc@plt>
mov    %rax,(%r15,%rbx,8)
add    $0x1,%rbx
movslq 0x4(%rsp),%rax
cmp    %rax,%rbx
jl     12a0 <load_matrix+0x140>
jmp    12c7 <load_matrix+0x167>
xor    %eax,%eax
mov    %rax,0x10(%rsp)
mov    %r13,%rdi
call   1060 <feof@plt>
test   %eax,%eax
je     12f7 <load_matrix+0x197>
mov    %r13,%rdi
call   1030 <fclose@plt>
mov    0x18(%rsp),%rax
mov    %rbp,(%rax)
mov    0x10(%rsp),%rax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd1c(%rip),%r15
mov    %rbp,0x20(%rsp)
jmp    131c <load_matrix+0x1bc>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r13,%rdi
call   1060 <feof@plt>
test   %eax,%eax
jne    12d3 <load_matrix+0x173>
cmpl   $0x0,0x4(%rsp)
jle    1310 <load_matrix+0x1b0>
xor    %r12d,%r12d
jmp    1343 <load_matrix+0x1e3>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r12
movslq 0x4(%rsp),%rax
cmp    %rax,%r12
mov    0x20(%rsp),%rbp
jge    1310 <load_matrix+0x1b0>
cmpl   $0x0,0xc(%rsp)
jle    1377 <load_matrix+0x217>
xor    %r14d,%r14d
xor    %ebx,%ebx
nop
mov    0x0(%rbp,%r12,8),%rdx
add    %r14,%rdx
mov    %r13,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
add    $0x8,%r14
cmp    %rax,%rbx
jl     1350 <load_matrix+0x1f0>
cmpl   $0x0,0x8(%rsp)
mov    0x10(%rsp),%r14
jle    1330 <load_matrix+0x1d0>
xor    %ebx,%ebx
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
mov    (%r14,%r12,8),%rdx
add    %rbx,%rdx
mov    %r13,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
add    $0x1,%rbp
movslq 0x8(%rsp),%rax
add    $0x8,%rbx
cmp    %rax,%rbp
jl     1390 <load_matrix+0x230>
jmp    1330 <load_matrix+0x1d0>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [21 x i8] c"File %s Not Found!!\0A\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [4 x i8] c"%lf\00"
define double** @load_matrix(i8* %0, i32* %1, double*** %2) {
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca double***
%7 = alloca i32*
%8 = alloca i32
%9 = alloca double**
%10 = alloca double**
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca double
%15 = alloca double
%16 = alloca i32
%17 = alloca i32
store i8* %0, i8** %4
store i32* %1, i32** %5
store double*** %2, double**** %6
store double** null, double*** %9
store double** null, double*** %10
br label %18
18: ; preds = %28, %3
%19 = load i8*, i8** %4
%20 = call i32* @fopen(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %20, i32** %7
%21 = load i32*, i32** %7
%22 = icmp ne i32* %21, null
br i1 %22, label %26, label %23
23: ; preds = %18
%24 = load i8*, i8** %4
%25 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %24)
store i32 1, i32* %8
br label %27
26: ; preds = %18
store i32 0, i32* %8
br label %27
27: ; preds = %26, %23
br label %28
28: ; preds = %27
%29 = load i32, i32* %8
%30 = icmp ne i32 %29, 0
br i1 %30, label %18, label %31
31: ; preds = %28
%32 = load i32*, i32** %7
%33 = call i32 (i32*, i8*, ...) @fscanf(i32* %32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %11)
%34 = load i32*, i32** %7
%35 = call i32 (i32*, i8*, ...) @fscanf(i32* %34, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %12)
%36 = load i32*, i32** %7
%37 = call i32 (i32*, i8*, ...) @fscanf(i32* %36, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %13)
%38 = load i32*, i32** %7
%39 = call i32 (i32*, i8*, ...) @fscanf(i32* %38, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %14)
%40 = load i32*, i32** %7
%41 = call i32 (i32*, i8*, ...) @fscanf(i32* %40, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %15)
%42 = load i32, i32* %11
%43 = load i32*, i32** %5
store i32 %42, i32* %43
%44 = load i32, i32* %11
%45 = sext i32 %44 to i64
%46 = mul i64 %45, 8
%47 = trunc i64 %46 to i32
%48 = call i64 @malloc(i32 %47)
%49 = inttoptr i64 %48 to double**
store double** %49, double*** %10
store i32 0, i32* %16
br label %50
50: ; preds = %65, %31
%51 = load i32, i32* %16
%52 = load i32, i32* %11
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %68
54: ; preds = %50
%55 = load i32, i32* %12
%56 = sext i32 %55 to i64
%57 = mul i64 %56, 8
%58 = trunc i64 %57 to i32
%59 = call i64 @malloc(i32 %58)
%60 = inttoptr i64 %59 to double*
%61 = load double**, double*** %10
%62 = load i32, i32* %16
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double*, double** %61, i64 %63
store double* %60, double** %64
br label %65
65: ; preds = %54
%66 = load i32, i32* %16
%67 = add nsw i32 %66, 1
store i32 %67, i32* %16
br label %50
68: ; preds = %50
%69 = load i32, i32* %13
%70 = icmp sgt i32 %69, 0
br i1 %70, label %71, label %97
71: ; preds = %68
%72 = load i32, i32* %11
%73 = sext i32 %72 to i64
%74 = mul i64 %73, 8
%75 = trunc i64 %74 to i32
%76 = call i64 @malloc(i32 %75)
%77 = inttoptr i64 %76 to double**
store double** %77, double*** %9
store i32 0, i32* %16
br label %78
78: ; preds = %93, %71
%79 = load i32, i32* %16
%80 = load i32, i32* %11
%81 = icmp slt i32 %79, %80
br i1 %81, label %82, label %96
82: ; preds = %78
%83 = load i32, i32* %13
%84 = sext i32 %83 to i64
%85 = mul i64 %84, 8
%86 = trunc i64 %85 to i32
%87 = call i64 @malloc(i32 %86)
%88 = inttoptr i64 %87 to double*
%89 = load double**, double*** %9
%90 = load i32, i32* %16
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds double*, double** %89, i64 %91
store double* %88, double** %92
br label %93
93: ; preds = %82
%94 = load i32, i32* %16
%95 = add nsw i32 %94, 1
store i32 %95, i32* %16
br label %78
96: ; preds = %78
br label %97
97: ; preds = %96, %68
br label %98
98: ; preds = %150, %97
%99 = load i32*, i32** %7
%100 = call i32 @feof(i32* %99)
%101 = icmp ne i32 %100, 0
%102 = xor i1 %101, true
br i1 %102, label %103, label %151
103: ; preds = %98
store i32 0, i32* %16
br label %104
104: ; preds = %147, %103
%105 = load i32, i32* %16
%106 = load i32, i32* %11
%107 = icmp slt i32 %105, %106
br i1 %107, label %108, label %150
108: ; preds = %104
store i32 0, i32* %17
br label %109
109: ; preds = %124, %108
%110 = load i32, i32* %17
%111 = load i32, i32* %12
%112 = icmp slt i32 %110, %111
br i1 %112, label %113, label %127
113: ; preds = %109
%114 = load i32*, i32** %7
%115 = load double**, double*** %10
%116 = load i32, i32* %16
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds double*, double** %115, i64 %117
%119 = load double*, double** %118
%120 = load i32, i32* %17
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, double* %119, i64 %121
%123 = call i32 (i32*, i8*, ...) @fscanf(i32* %114, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %122)
br label %124
124: ; preds = %113
%125 = load i32, i32* %17
%126 = add nsw i32 %125, 1
store i32 %126, i32* %17
br label %109
127: ; preds = %109
store i32 0, i32* %17
br label %128
128: ; preds = %143, %127
%129 = load i32, i32* %17
%130 = load i32, i32* %13
%131 = icmp slt i32 %129, %130
br i1 %131, label %132, label %146
132: ; preds = %128
%133 = load i32*, i32** %7
%134 = load double**, double*** %9
%135 = load i32, i32* %16
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds double*, double** %134, i64 %136
%138 = load double*, double** %137
%139 = load i32, i32* %17
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds double, double* %138, i64 %140
%142 = call i32 (i32*, i8*, ...) @fscanf(i32* %133, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %141)
br label %143
143: ; preds = %132
%144 = load i32, i32* %17
%145 = add nsw i32 %144, 1
store i32 %145, i32* %17
br label %128
146: ; preds = %128
br label %147
147: ; preds = %146
%148 = load i32, i32* %16
%149 = add nsw i32 %148, 1
store i32 %149, i32* %16
br label %104
150: ; preds = %104
br label %98
151: ; preds = %98
%152 = load i32*, i32** %7
%153 = call i32 @fclose(i32* %152)
%154 = load double**, double*** %10
%155 = load double***, double**** %6
store double** %154, double*** %155
%156 = load double**, double*** %9
ret double** %156
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [21 x i8] c"File %s Not Found!!\0A\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [4 x i8] c"%lf\00"
define double** @load_matrix(i8* %0, i32* nocapture writeonly %1, double*** nocapture writeonly %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca double
%8 = alloca double
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = bitcast i32* %6 to i8*
%12 = bitcast double* %7 to i8*
%13 = bitcast double* %8 to i8*
%14 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %20
16: ; preds = %3, %16
%17 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%18 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%19 = icmp eq i32* %18, null
br i1 %19, label %16, label %20
20: ; preds = %16, %3
%21 = phi i32* [ %14, %3 ], [ %18, %16 ]
%22 = call i32 (i32*, i8*, ...) @fscanf(i32* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
%23 = call i32 (i32*, i8*, ...) @fscanf(i32* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %5)
%24 = call i32 (i32*, i8*, ...) @fscanf(i32* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %6)
%25 = call i32 (i32*, i8*, ...) @fscanf(i32* %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %7)
%26 = call i32 (i32*, i8*, ...) @fscanf(i32* %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %8)
%27 = load i32, i32* %4
store i32 %27, i32* %1
%28 = shl i32 %27, 3
%29 = call i64 @malloc(i32 %28)
%30 = inttoptr i64 %29 to double**
%31 = load i32, i32* %4
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %44
33: ; preds = %20, %33
%34 = phi i64 [ %40, %33 ], [ 0, %20 ]
%35 = load i32, i32* %5
%36 = shl i32 %35, 3
%37 = call i64 @malloc(i32 %36)
%38 = inttoptr i64 %37 to double*
%39 = getelementptr inbounds double*, double** %30, i64 %34
store double* %38, double** %39
%40 = add nuw nsw i64 %34, 1
%41 = load i32, i32* %4
%42 = sext i32 %41 to i64
%43 = icmp slt i64 %40, %42
br i1 %43, label %33, label %44
44: ; preds = %33, %20
%45 = phi i32 [ %31, %20 ], [ %41, %33 ]
%46 = load i32, i32* %6
%47 = icmp sgt i32 %46, 0
br i1 %47, label %48, label %65
48: ; preds = %44
%49 = shl i32 %45, 3
%50 = call i64 @malloc(i32 %49)
%51 = inttoptr i64 %50 to double**
%52 = load i32, i32* %4
%53 = icmp sgt i32 %52, 0
br i1 %53, label %54, label %65
54: ; preds = %48, %54
%55 = phi i64 [ %61, %54 ], [ 0, %48 ]
%56 = load i32, i32* %6
%57 = shl i32 %56, 3
%58 = call i64 @malloc(i32 %57)
%59 = inttoptr i64 %58 to double*
%60 = getelementptr inbounds double*, double** %51, i64 %55
store double* %59, double** %60
%61 = add nuw nsw i64 %55, 1
%62 = load i32, i32* %4
%63 = sext i32 %62 to i64
%64 = icmp slt i64 %61, %63
br i1 %64, label %54, label %65
65: ; preds = %54, %48, %44
%66 = phi double** [ null, %44 ], [ %51, %48 ], [ %51, %54 ]
%67 = call i32 @feof(i32* %21)
%68 = icmp eq i32 %67, 0
br i1 %68, label %72, label %109
69: ; preds = %104, %72
%70 = call i32 @feof(i32* %21)
%71 = icmp eq i32 %70, 0
br i1 %71, label %72, label %109
72: ; preds = %65, %69
%73 = load i32, i32* %4
%74 = icmp sgt i32 %73, 0
br i1 %74, label %75, label %69
75: ; preds = %72, %104
%76 = phi i64 [ %105, %104 ], [ 0, %72 ]
%77 = load i32, i32* %5
%78 = icmp sgt i32 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %75
%80 = getelementptr inbounds double*, double** %30, i64 %76
br label %86
81: ; preds = %86, %75
%82 = load i32, i32* %6
%83 = icmp sgt i32 %82, 0
br i1 %83, label %84, label %104
84: ; preds = %81
%85 = getelementptr inbounds double*, double** %66, i64 %76
br label %95
86: ; preds = %79, %86
%87 = phi i64 [ 0, %79 ], [ %91, %86 ]
%88 = load double*, double** %80
%89 = getelementptr inbounds double, double* %88, i64 %87
%90 = call i32 (i32*, i8*, ...) @fscanf(i32* %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %89)
%91 = add nuw nsw i64 %87, 1
%92 = load i32, i32* %5
%93 = sext i32 %92 to i64
%94 = icmp slt i64 %91, %93
br i1 %94, label %86, label %81
95: ; preds = %84, %95
%96 = phi i64 [ 0, %84 ], [ %100, %95 ]
%97 = load double*, double** %85
%98 = getelementptr inbounds double, double* %97, i64 %96
%99 = call i32 (i32*, i8*, ...) @fscanf(i32* %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %98)
%100 = add nuw nsw i64 %96, 1
%101 = load i32, i32* %6
%102 = sext i32 %101 to i64
%103 = icmp slt i64 %100, %102
br i1 %103, label %95, label %104
104: ; preds = %95, %81
%105 = add nuw nsw i64 %76, 1
%106 = load i32, i32* %4
%107 = sext i32 %106 to i64
%108 = icmp slt i64 %105, %107
br i1 %108, label %75, label %69
109: ; preds = %69, %65
%110 = call i32 @fclose(i32* %21)
store double** %30, double*** %2
ret double** %66
}