#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*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
int /*<<< orphan*/ free_matrix2(double **);
double **new_matrix2(int, int);
int sscanf(char *, char *, ...);
int /*<<< orphan*/ stderr;
char *sword(char *, char *, int);
double **load_matrix(char *fin, int *n, int *m) {
  FILE *f = fopen(fin, "r");
  if (f == NULL) {
    fprintf(stderr, "Invalid filename: %s\n", fin);
    return NULL;
  }
  char sbuf0[128], *s = sbuf0;
  if (fgets(s, 128, f) == NULL || sscanf(s, "%d %d", n, m) < 2) {
    fprintf(stderr, "Corrupt matrix header in file %s\n", fin);
    fclose(f);
    return NULL;
  }
  double **X = new_matrix2(*n, *m);
  const int CHARS_PER_FLOAT = 20;
  char sbuf[CHARS_PER_FLOAT * (*m)];
  int i, j;
  for (i = 0; i < *n; i++) {
    s = sbuf;
    if (fgets(s, 10000, f) == NULL)
      break;
    for (j = 0; j < *m; j++) {
      if (sscanf(s, "%lf", &X[i][j]) < 1)
        break;
      s = sword(s, " \t", 1);
    }
    if (j < *m)
      break;
  }
  if (i < *n) {
    fprintf(stderr, "Corrupt matrix file '%s' at line %d\n", fin, i + 2);
    fclose(f);
    free_matrix2(X);
    return NULL;
  }
  fclose(f);
  return X;
}


x86 assembly (clang, -O0):
<load_matrix>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe5e(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    11de <load_matrix+0x5e>
mov    0x2e23(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe38(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movq   $0x0,-0x8(%rbp)
jmp    1458 <load_matrix+0x2d8>
lea    -0xb0(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0xb8(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    $0x80,%esi
call   1040 <fgets@plt>
cmp    $0x0,%rax
je     1231 <load_matrix+0xb1>
mov    -0xb8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xdf7(%rip),%rsi
mov    $0x0,%al
call   1070 <sscanf@plt>
cmp    $0x2,%eax
jge    1262 <load_matrix+0xe2>
mov    0x2da8(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xdd9(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
movq   $0x0,-0x8(%rbp)
jmp    1458 <load_matrix+0x2d8>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rax
mov    (%rax),%esi
call   1090 <new_matrix2@plt>
mov    %rax,-0xc0(%rbp)
movl   $0x14,-0xc4(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%ecx
shl    $0x2,%ecx
mov    %ecx,%eax
lea    (%rax,%rax,4),%eax
mov    %rsp,%rcx
mov    %rcx,-0xd0(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xf0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0xd8(%rbp)
movl   $0x0,-0xdc(%rbp)
mov    -0xdc(%rbp),%eax
mov    -0x18(%rbp),%rcx
cmp    (%rcx),%eax
jge    13ce <load_matrix+0x24e>
mov    -0xf0(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0xb8(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    $0x2710,%esi
call   1040 <fgets@plt>
cmp    $0x0,%rax
jne    130c <load_matrix+0x18c>
jmp    13ce <load_matrix+0x24e>
movl   $0x0,-0xe0(%rbp)
mov    -0xe0(%rbp),%eax
mov    -0x20(%rbp),%rcx
cmp    (%rcx),%eax
jge    139e <load_matrix+0x21e>
mov    -0xb8(%rbp),%rdi
mov    -0xc0(%rbp),%rax
movslq -0xdc(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
movslq -0xe0(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
lea    0xcea(%rip),%rsi
mov    $0x0,%al
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jge    136b <load_matrix+0x1eb>
jmp    139e <load_matrix+0x21e>
mov    -0xb8(%rbp),%rdi
lea    0xccb(%rip),%rsi
mov    $0x1,%edx
call   1080 <sword@plt>
mov    %rax,-0xb8(%rbp)
mov    -0xe0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe0(%rbp)
jmp    1316 <load_matrix+0x196>
mov    -0xe0(%rbp),%eax
mov    -0x20(%rbp),%rcx
cmp    (%rcx),%eax
jge    13b5 <load_matrix+0x235>
jmp    13ce <load_matrix+0x24e>
jmp    13ba <load_matrix+0x23a>
mov    -0xdc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xdc(%rbp)
jmp    12c8 <load_matrix+0x148>
mov    -0xdc(%rbp),%eax
mov    -0x18(%rbp),%rcx
cmp    (%rcx),%eax
jge    1430 <load_matrix+0x2b0>
mov    0x2bf9(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
mov    -0xdc(%rbp),%ecx
add    $0x2,%ecx
lea    0xc4a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0xc0(%rbp),%rdi
call   1060 <free_matrix2@plt>
movq   $0x0,-0x8(%rbp)
movl   $0x1,-0xe4(%rbp)
jmp    144e <load_matrix+0x2ce>
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0xc0(%rbp),%rax
mov    %rax,-0x8(%rbp)
movl   $0x1,-0xe4(%rbp)
mov    -0xd0(%rbp),%rax
mov    %rax,%rsp
mov    -0x8(%rbp),%rax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<load_matrix>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %rdx,%rbx
mov    %rsi,%r13
mov    %rdi,%r14
lea    0xe5c(%rip),%rsi
call   10a0 <fopen@plt>
test   %rax,%rax
je     121b <load_matrix+0x9b>
mov    %rax,%r12
mov    %r14,-0x38(%rbp)
lea    -0xe0(%rbp),%rdi
mov    $0x80,%esi
mov    %rax,%rdx
call   1040 <fgets@plt>
test   %rax,%rax
je     11f1 <load_matrix+0x71>
lea    0xe43(%rip),%rsi
xor    %r14d,%r14d
lea    -0xe0(%rbp),%rdi
mov    %r13,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jg     123c <load_matrix+0xbc>
mov    0x2de8(%rip),%rax
mov    (%rax),%edi
lea    0xe1d(%rip),%rsi
xor    %ebx,%ebx
mov    -0x38(%rbp),%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r12,%rdi
call   1030 <fclose@plt>
jmp    1390 <load_matrix+0x210>
mov    0x2dbe(%rip),%rax
mov    (%rax),%edi
lea    0xdd7(%rip),%rsi
xor    %ebx,%ebx
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    1390 <load_matrix+0x210>
mov    0x0(%r13),%edi
mov    (%rbx),%esi
call   1090 <new_matrix2@plt>
mov    %rax,-0x30(%rbp)
mov    %rsp,-0x48(%rbp)
mov    (%rbx),%eax
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x40(%rbp)
mov    %rcx,%rsp
mov    0x0(%r13),%eax
test   %eax,%eax
jle    1344 <load_matrix+0x1c4>
xor    %r14d,%r14d
mov    %r12,-0x58(%rbp)
mov    %r13,-0x50(%rbp)
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    -0x40(%rbp),%rdi
mov    $0x2710,%esi
mov    %r12,%rdx
call   1040 <fgets@plt>
test   %rax,%rax
je     1340 <load_matrix+0x1c0>
mov    (%rbx),%eax
test   %eax,%eax
jle    1310 <load_matrix+0x190>
xor    %r13d,%r13d
xor    %r15d,%r15d
mov    -0x40(%rbp),%r12
nopw   0x0(%rax,%rax,1)
mov    -0x30(%rbp),%rax
mov    (%rax,%r14,8),%rdx
add    %r13,%rdx
mov    %r12,%rdi
lea    0xd6b(%rip),%rsi
xor    %eax,%eax
call   1070 <sscanf@plt>
test   %eax,%eax
jle    1320 <load_matrix+0x1a0>
mov    %r12,%rdi
lea    0xd5a(%rip),%rsi
mov    $0x1,%edx
call   1080 <sword@plt>
mov    %rax,%r12
add    $0x1,%r15
movslq (%rbx),%rax
add    $0x8,%r13
cmp    %rax,%r15
jl     12c0 <load_matrix+0x140>
jmp    1322 <load_matrix+0x1a2>
nopl   0x0(%rax)
xor    %r15d,%r15d
jmp    132a <load_matrix+0x1aa>
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%rbx),%eax
mov    -0x58(%rbp),%r12
mov    -0x50(%rbp),%r13
cmp    %eax,%r15d
jl     1340 <load_matrix+0x1c0>
add    $0x1,%r14
movslq 0x0(%r13),%rax
cmp    %rax,%r14
jl     1290 <load_matrix+0x110>
mov    0x0(%r13),%eax
cmp    %eax,%r14d
jge    1380 <load_matrix+0x200>
mov    0x2c90(%rip),%rax
mov    (%rax),%edi
add    $0x2,%r14d
lea    0xcea(%rip),%rsi
mov    -0x38(%rbp),%rdx
mov    %r14d,%ecx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r12,%rdi
call   1030 <fclose@plt>
mov    -0x30(%rbp),%rdi
call   1060 <free_matrix2@plt>
xor    %ebx,%ebx
jmp    138c <load_matrix+0x20c>
mov    %r12,%rdi
call   1030 <fclose@plt>
mov    -0x30(%rbp),%rbx
mov    -0x48(%rbp),%rsp
mov    %rbx,%rax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.1 = [22 x i8] c"Invalid filename: %s\0A\00"
@.str.2 = [6 x i8] c"%d %d\00"
@.str.3 = [34 x i8] c"Corrupt matrix header in file %s\0A\00"
@.str.4 = [4 x i8] c"%lf\00"
@.str.5 = [3 x i8] c" \09\00"
@.str.6 = [37 x i8] c"Corrupt matrix file '%s' at line %d\0A\00"
define double** @load_matrix(i8* %0, i32* %1, i32* %2) {
%4 = alloca double**
%5 = alloca i8*
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca [128 x i8]
%10 = alloca i8*
%11 = alloca double**
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i64
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i8* %0, i8** %5
store i32* %1, i32** %6
store i32* %2, i32** %7
%18 = load i8*, i8** %5
%19 = call i32* @fopen(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %19, i32** %8
%20 = load i32*, i32** %8
%21 = icmp eq i32* %20, null
br i1 %21, label %22, label %26
22: ; preds = %3
%23 = load i32, i32* @stderr
%24 = load i8*, i8** %5
%25 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %24)
store double** null, double*** %4
br label %123
26: ; preds = %3
%27 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
store i8* %27, i8** %10
%28 = load i8*, i8** %10
%29 = load i32*, i32** %8
%30 = call i32* @fgets(i8* %28, i32 128, i32* %29)
%31 = icmp eq i32* %30, null
br i1 %31, label %38, label %32
32: ; preds = %26
%33 = load i8*, i8** %10
%34 = load i32*, i32** %6
%35 = load i32*, i32** %7
%36 = call i32 (i8*, i8*, ...) @sscanf(i8* %33, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32* %34, i32* %35)
%37 = icmp slt i32 %36, 2
br i1 %37, label %38, label %44
38: ; preds = %32, %26
%39 = load i32, i32* @stderr
%40 = load i8*, i8** %5
%41 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i8* %40)
%42 = load i32*, i32** %8
%43 = call i32 @fclose(i32* %42)
store double** null, double*** %4
br label %123
44: ; preds = %32
%45 = load i32*, i32** %6
%46 = load i32, i32* %45
%47 = load i32*, i32** %7
%48 = load i32, i32* %47
%49 = call double** @new_matrix2(i32 %46, i32 %48)
store double** %49, double*** %11
store i32 20, i32* %12
%50 = load i32*, i32** %7
%51 = load i32, i32* %50
%52 = mul nsw i32 20, %51
%53 = zext i32 %52 to i64
%54 = call i8* @llvm.stacksave()
store i8* %54, i8** %13
%55 = alloca i8, i64 %53
store i64 %53, i64* %14
store i32 0, i32* %15
br label %56
56: ; preds = %99, %44
%57 = load i32, i32* %15
%58 = load i32*, i32** %6
%59 = load i32, i32* %58
%60 = icmp slt i32 %57, %59
br i1 %60, label %61, label %102
61: ; preds = %56
store i8* %55, i8** %10
%62 = load i8*, i8** %10
%63 = load i32*, i32** %8
%64 = call i32* @fgets(i8* %62, i32 10000, i32* %63)
%65 = icmp eq i32* %64, null
br i1 %65, label %66, label %67
66: ; preds = %61
br label %102
67: ; preds = %61
store i32 0, i32* %16
br label %68
68: ; preds = %89, %67
%69 = load i32, i32* %16
%70 = load i32*, i32** %7
%71 = load i32, i32* %70
%72 = icmp slt i32 %69, %71
br i1 %72, label %73, label %92
73: ; preds = %68
%74 = load i8*, i8** %10
%75 = load double**, double*** %11
%76 = load i32, i32* %15
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double*, double** %75, i64 %77
%79 = load double*, double** %78
%80 = load i32, i32* %16
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, double* %79, i64 %81
%83 = call i32 (i8*, i8*, ...) @sscanf(i8* %74, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %82)
%84 = icmp slt i32 %83, 1
br i1 %84, label %85, label %86
85: ; preds = %73
br label %92
86: ; preds = %73
%87 = load i8*, i8** %10
%88 = call i8* @sword(i8* %87, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 1)
store i8* %88, i8** %10
br label %89
89: ; preds = %86
%90 = load i32, i32* %16
%91 = add nsw i32 %90, 1
store i32 %91, i32* %16
br label %68
92: ; preds = %85, %68
%93 = load i32, i32* %16
%94 = load i32*, i32** %7
%95 = load i32, i32* %94
%96 = icmp slt i32 %93, %95
br i1 %96, label %97, label %98
97: ; preds = %92
br label %102
98: ; preds = %92
br label %99
99: ; preds = %98
%100 = load i32, i32* %15
%101 = add nsw i32 %100, 1
store i32 %101, i32* %15
br label %56
102: ; preds = %97, %66, %56
%103 = load i32, i32* %15
%104 = load i32*, i32** %6
%105 = load i32, i32* %104
%106 = icmp slt i32 %103, %105
br i1 %106, label %107, label %117
107: ; preds = %102
%108 = load i32, i32* @stderr
%109 = load i8*, i8** %5
%110 = load i32, i32* %15
%111 = add nsw i32 %110, 2
%112 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %108, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i8* %109, i32 %111)
%113 = load i32*, i32** %8
%114 = call i32 @fclose(i32* %113)
%115 = load double**, double*** %11
%116 = call i32 @free_matrix2(double** %115)
store double** null, double*** %4
store i32 1, i32* %17
br label %121
117: ; preds = %102
%118 = load i32*, i32** %8
%119 = call i32 @fclose(i32* %118)
%120 = load double**, double*** %11
store double** %120, double*** %4
store i32 1, i32* %17
br label %121
121: ; preds = %117, %107
%122 = load i8*, i8** %13
br label %123
123: ; preds = %121, %38, %22
%124 = load double**, double*** %4
ret double** %124
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.1 = [22 x i8] c"Invalid filename: %s\0A\00"
@.str.2 = [6 x i8] c"%d %d\00"
@.str.3 = [34 x i8] c"Corrupt matrix header in file %s\0A\00"
@.str.4 = [4 x i8] c"%lf\00"
@.str.5 = [3 x i8] c" \09\00"
@.str.6 = [37 x i8] c"Corrupt matrix file '%s' at line %d\0A\00"
define double** @load_matrix(i8* %0, i32* %1, i32* %2) {
%4 = alloca [128 x i8]
%5 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i32* %5, null
br i1 %6, label %7, label %10
7: ; preds = %3
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %0)
br label %88
10: ; preds = %3
%11 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%12 = call i32* @fgets(i8* %11, i32 128, i32* %5)
%13 = icmp eq i32* %12, null
br i1 %13, label %17, label %14
14: ; preds = %10
%15 = call i32 (i8*, i8*, ...) @sscanf(i8* %11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32* %1, i32* %2)
%16 = icmp slt i32 %15, 2
br i1 %16, label %17, label %21
17: ; preds = %14, %10
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%20 = call i32 @fclose(i32* %5)
br label %86
21: ; preds = %14
%22 = load i32, i32* %1
%23 = load i32, i32* %2
%24 = call double** @new_matrix2(i32 %22, i32 %23)
%25 = load i32, i32* %2
%26 = mul nsw i32 %25, 20
%27 = zext i32 %26 to i64
%28 = call i8* @llvm.stacksave()
%29 = alloca i8, i64 %27
%30 = load i32, i32* %1
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %72
32: ; preds = %21, %63
%33 = phi i64 [ %64, %63 ], [ 0, %21 ]
%34 = call i32* @fgets(i8* %29, i32 10000, i32* %5)
%35 = icmp eq i32* %34, null
br i1 %35, label %68, label %36
36: ; preds = %32
%37 = getelementptr inbounds double*, double** %24, i64 %33
%38 = load i32, i32* %2
%39 = icmp sgt i32 %38, 0
br i1 %39, label %40, label %59
40: ; preds = %36, %49
%41 = phi i64 [ %51, %49 ], [ 0, %36 ]
%42 = phi i8* [ %50, %49 ], [ %29, %36 ]
%43 = load double*, double** %37
%44 = getelementptr inbounds double, double* %43, i64 %41
%45 = call i32 (i8*, i8*, ...) @sscanf(i8* %42, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %44)
%46 = icmp slt i32 %45, 1
br i1 %46, label %47, label %49
47: ; preds = %40
%48 = load i32, i32* %2
br label %55
49: ; preds = %40
%50 = call i8* @sword(i8* %42, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 1)
%51 = add nuw nsw i64 %41, 1
%52 = load i32, i32* %2
%53 = sext i32 %52 to i64
%54 = icmp slt i64 %51, %53
br i1 %54, label %40, label %55
55: ; preds = %49, %47
%56 = phi i32 [ %48, %47 ], [ %52, %49 ]
%57 = phi i64 [ %41, %47 ], [ %51, %49 ]
%58 = trunc i64 %57 to i32
br label %59
59: ; preds = %55, %36
%60 = phi i32 [ %38, %36 ], [ %56, %55 ]
%61 = phi i32 [ 0, %36 ], [ %58, %55 ]
%62 = icmp slt i32 %61, %60
br i1 %62, label %68, label %63
63: ; preds = %59
%64 = add nuw nsw i64 %33, 1
%65 = load i32, i32* %1
%66 = sext i32 %65 to i64
%67 = icmp slt i64 %64, %66
br i1 %67, label %32, label %68
68: ; preds = %59, %32, %63
%69 = phi i64 [ %64, %63 ], [ %33, %32 ], [ %33, %59 ]
%70 = trunc i64 %69 to i32
%71 = load i32, i32* %1
br label %72
72: ; preds = %68, %21
%73 = phi i32 [ %30, %21 ], [ %71, %68 ]
%74 = phi i32 [ 0, %21 ], [ %70, %68 ]
%75 = icmp slt i32 %74, %73
br i1 %75, label %76, label %82
76: ; preds = %72
%77 = load i32, i32* @stderr
%78 = add nuw nsw i32 %74, 2
%79 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %77, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i8* %0, i32 %78)
%80 = call i32 @fclose(i32* %5)
%81 = call i32 @free_matrix2(double** %24)
br label %84
82: ; preds = %72
%83 = call i32 @fclose(i32* %5)
br label %84
84: ; preds = %82, %76
%85 = phi double** [ null, %76 ], [ %24, %82 ]
br label %86
86: ; preds = %84, %17
%87 = phi double** [ null, %17 ], [ %85, %84 ]
br label %88
88: ; preds = %86, %7
%89 = phi double** [ null, %7 ], [ %87, %86 ]
ret double** %89
}