#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 */

/* Variables and functions */
double **dmatrix(int /*<<< orphan*/, int, int /*<<< orphan*/, int);
double *dvector(int /*<<< orphan*/, int);
int /*<<< orphan*/ free_dmatrix(double **, int /*<<< orphan*/, int,
                                int /*<<< orphan*/);
int /*<<< orphan*/ free_dvector(double *, int /*<<< orphan*/);
int /*<<< orphan*/ free_ivector(int *, int /*<<< orphan*/);
int *ivector(int /*<<< orphan*/, int);
int /*<<< orphan*/ lubksb(double **, int, int *, double *);
scalar_t__ ludcmp(double **, int, int *, double *);
int inverse(double **a, int n) {
  double d;
  int i, j;
  int ret = 0;
  double **ai = dmatrix(0, n - 1, 0, n - 1);
  double *col = dvector(0, n - 1);
  int *indx = ivector(0, n - 1);
  if (ludcmp(a, n, indx, &d)) {
    for (j = 0; j < n; j++) {
      for (i = 0; i < n; i++)
        col[i] = 0.0;
      col[j] = 1.0;
      lubksb(a, n, indx, col);
      for (i = 0; i < n; i++)
        ai[i][j] = col[i];
    }
    for (i = 0; i < n; i++) {
      for (j = 0; j < n; j++) {
        a[i][j] = ai[i][j];
      }
    }
    ret = 1;
  }
  free_dmatrix(ai, 0, n - 1, 0);
  free_dvector(col, 0);
  free_ivector(indx, 0);
  return ret;
}


x86 assembly (clang, -O0):
<inverse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0xc(%rbp),%esi
sub    $0x1,%esi
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
xor    %edx,%edx
mov    %edx,%edi
call   1040 <dmatrix@plt>
mov    %rax,-0x30(%rbp)
mov    -0xc(%rbp),%esi
sub    $0x1,%esi
xor    %edi,%edi
call   1060 <dvector@plt>
mov    %rax,-0x38(%rbp)
mov    -0xc(%rbp),%esi
sub    $0x1,%esi
xor    %edi,%edi
call   1090 <ivector@plt>
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x40(%rbp),%rdx
lea    -0x18(%rbp),%rcx
call   1030 <ludcmp@plt>
cmp    $0x0,%rax
je     132a <inverse+0x1aa>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12b2 <inverse+0x132>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1233 <inverse+0xb3>
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1209 <inverse+0x89>
mov    -0x38(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  0xdbd(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x40(%rbp),%rdx
mov    -0x38(%rbp),%rcx
call   1050 <lubksb@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    129f <inverse+0x11f>
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1263 <inverse+0xe3>
jmp    12a4 <inverse+0x124>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11f6 <inverse+0x76>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1323 <inverse+0x1a3>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1310 <inverse+0x190>
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12cc <inverse+0x14c>
jmp    1315 <inverse+0x195>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12b9 <inverse+0x139>
movl   $0x1,-0x24(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0xc(%rbp),%edx
sub    $0x1,%edx
xor    %ecx,%ecx
mov    %ecx,%esi
call   10a0 <free_dmatrix@plt>
mov    -0x38(%rbp),%rdi
xor    %esi,%esi
call   1080 <free_dvector@plt>
mov    -0x40(%rbp),%rdi
xor    %esi,%esi
call   1070 <free_ivector@plt>
mov    -0x24(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inverse>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %esi,%r12d
mov    %rdi,%r13
lea    -0x1(%r12),%r15d
xor    %r14d,%r14d
xor    %edi,%edi
mov    %r15d,%esi
xor    %edx,%edx
mov    %r15d,%ecx
call   1050 <dmatrix@plt>
mov    %rax,%rbx
xor    %edi,%edi
mov    %r15d,%esi
call   1070 <dvector@plt>
mov    %rax,%rbp
xor    %edi,%edi
mov    %r15d,%esi
call   10a0 <ivector@plt>
lea    0x30(%rsp),%rcx
mov    %r13,0x18(%rsp)
mov    %r13,%rdi
mov    %r12d,%esi
mov    %rax,0x10(%rsp)
mov    %rax,%rdx
call   1030 <ludcmp@plt>
test   %rax,%rax
je     14e7 <inverse+0x357>
mov    $0x1,%r14d
test   %r12d,%r12d
jle    14e7 <inverse+0x357>
mov    %r15d,0x4(%rsp)
mov    %r12,0x8(%rsp)
mov    %r12d,%r13d
lea    0x0(,%r13,8),%rax
mov    %rax,0x28(%rsp)
lea    -0x1(%r13),%rax
mov    %rax,0x20(%rsp)
mov    %r13d,%r14d
and    $0x3,%r14d
mov    %r13d,%r12d
and    $0xfffffffc,%r12d
xor    %r15d,%r15d
jmp    124d <inverse+0xbd>
add    $0x1,%r15
cmp    %r13,%r15
je     132d <inverse+0x19d>
mov    %rbp,%rdi
xor    %esi,%esi
mov    0x28(%rsp),%rdx
call   1040 <memset@plt>
movabs $0x3ff0000000000000,%rax
mov    %rax,0x0(%rbp,%r15,8)
mov    0x18(%rsp),%rdi
mov    0x8(%rsp),%rsi
mov    0x10(%rsp),%rdx
mov    %rbp,%rcx
call   1060 <lubksb@plt>
cmpq   $0x3,0x20(%rsp)
jae    1290 <inverse+0x100>
xor    %eax,%eax
jmp    12ec <inverse+0x15c>
xchg   %ax,%ax
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0x0(%rbp,%rax,8),%xmm0
mov    (%rbx,%rax,8),%rcx
movsd  %xmm0,(%rcx,%r15,8)
movsd  0x8(%rbp,%rax,8),%xmm0
mov    0x8(%rbx,%rax,8),%rcx
movsd  %xmm0,(%rcx,%r15,8)
movsd  0x10(%rbp,%rax,8),%xmm0
mov    0x10(%rbx,%rax,8),%rcx
movsd  %xmm0,(%rcx,%r15,8)
movsd  0x18(%rbp,%rax,8),%xmm0
mov    0x18(%rbx,%rax,8),%rcx
movsd  %xmm0,(%rcx,%r15,8)
add    $0x4,%rax
cmp    %rax,%r12
jne    12a0 <inverse+0x110>
test   %r14,%r14
je     1240 <inverse+0xb0>
lea    (%rbx,%rax,8),%rcx
lea    0x0(,%rax,8),%rax
add    %rbp,%rax
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
movsd  (%rax,%rdx,8),%xmm0
mov    (%rcx,%rdx,8),%rsi
movsd  %xmm0,(%rsi,%r15,8)
add    $0x1,%rdx
cmp    %rdx,%r14
jne    1310 <inverse+0x180>
jmp    1240 <inverse+0xb0>
cmpl   $0x0,0x8(%rsp)
jle    14dc <inverse+0x34c>
mov    %r13d,%r10d
and    $0xfffffffc,%r10d
add    $0xfffffffffffffffc,%r10
mov    %r10,%r8
shr    $0x2,%r8
add    $0x1,%r8
mov    %r13d,%r11d
and    $0xfffffffc,%r11d
mov    %r8d,%r9d
and    $0x3,%r9d
and    $0xfffffffffffffffc,%r8
mov    %r13d,%r14d
and    $0x3,%r14d
mov    %r9,%r15
shl    $0x5,%r15
xor    %r12d,%r12d
jmp    138d <inverse+0x1fd>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r12
cmp    %r13,%r12
je     14dc <inverse+0x34c>
mov    (%rbx,%r12,8),%rax
mov    0x18(%rsp),%rcx
mov    (%rcx,%r12,8),%rdx
cmpl   $0x4,0x8(%rsp)
jb     13bb <inverse+0x22b>
lea    (%rax,%r13,8),%rcx
cmp    %rcx,%rdx
jae    1430 <inverse+0x2a0>
lea    (%rdx,%r13,8),%rcx
cmp    %rcx,%rax
jae    1430 <inverse+0x2a0>
xor    %edi,%edi
mov    %rdi,%rsi
not    %rsi
add    %r13,%rsi
test   %r14,%r14
je     13e4 <inverse+0x254>
mov    %r14,%rcx
xchg   %ax,%ax
movsd  (%rax,%rdi,8),%xmm0
movsd  %xmm0,(%rdx,%rdi,8)
add    $0x1,%rdi
add    $0xffffffffffffffff,%rcx
jne    13d0 <inverse+0x240>
cmp    $0x3,%rsi
jb     1380 <inverse+0x1f0>
nopw   0x0(%rax,%rax,1)
movsd  (%rax,%rdi,8),%xmm0
movsd  %xmm0,(%rdx,%rdi,8)
movsd  0x8(%rax,%rdi,8),%xmm0
movsd  %xmm0,0x8(%rdx,%rdi,8)
movsd  0x10(%rax,%rdi,8),%xmm0
movsd  %xmm0,0x10(%rdx,%rdi,8)
movsd  0x18(%rax,%rdi,8),%xmm0
movsd  %xmm0,0x18(%rdx,%rdi,8)
add    $0x4,%rdi
cmp    %rdi,%r13
jne    13f0 <inverse+0x260>
jmp    1380 <inverse+0x1f0>
nopl   0x0(%rax)
cmp    $0xc,%r10
jae    143a <inverse+0x2aa>
xor    %edi,%edi
jmp    1498 <inverse+0x308>
mov    %r8,%rsi
xor    %edi,%edi
nop
movups (%rax,%rdi,8),%xmm0
movups 0x10(%rax,%rdi,8),%xmm1
movups %xmm0,(%rdx,%rdi,8)
movups %xmm1,0x10(%rdx,%rdi,8)
movups 0x20(%rax,%rdi,8),%xmm0
movups 0x30(%rax,%rdi,8),%xmm1
movups %xmm0,0x20(%rdx,%rdi,8)
movups %xmm1,0x30(%rdx,%rdi,8)
movups 0x40(%rax,%rdi,8),%xmm0
movups 0x50(%rax,%rdi,8),%xmm1
movups %xmm0,0x40(%rdx,%rdi,8)
movups %xmm1,0x50(%rdx,%rdi,8)
movups 0x60(%rax,%rdi,8),%xmm0
movups 0x70(%rax,%rdi,8),%xmm1
movups %xmm0,0x60(%rdx,%rdi,8)
movups %xmm1,0x70(%rdx,%rdi,8)
add    $0x10,%rdi
add    $0xfffffffffffffffc,%rsi
jne    1440 <inverse+0x2b0>
test   %r9,%r9
je     14cb <inverse+0x33b>
lea    (%rdx,%rdi,8),%rsi
add    $0x10,%rsi
lea    (%rax,%rdi,8),%rcx
add    $0x10,%rcx
xor    %edi,%edi
nop
movups -0x10(%rcx,%rdi,1),%xmm0
movups (%rcx,%rdi,1),%xmm1
movups %xmm0,-0x10(%rsi,%rdi,1)
movups %xmm1,(%rsi,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%r15
jne    14b0 <inverse+0x320>
mov    %r11,%rdi
cmp    %r13,%r11
je     1380 <inverse+0x1f0>
jmp    13bd <inverse+0x22d>
mov    $0x1,%r14d
mov    0x4(%rsp),%r15d
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r15d,%edx
xor    %ecx,%ecx
call   10b0 <free_dmatrix@plt>
mov    %rbp,%rdi
xor    %esi,%esi
call   1090 <free_dvector@plt>
mov    0x10(%rsp),%rdi
xor    %esi,%esi
call   1080 <free_ivector@plt>
mov    %r14d,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @inverse(double** %0, i32 %1) {
%3 = alloca double**
%4 = alloca i32
%5 = alloca double
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca double**
%10 = alloca double*
%11 = alloca i32*
store double** %0, double*** %3
store i32 %1, i32* %4
store i32 0, i32* %8
%12 = load i32, i32* %4
%13 = sub nsw i32 %12, 1
%14 = load i32, i32* %4
%15 = sub nsw i32 %14, 1
%16 = call double** @dmatrix(i32 0, i32 %13, i32 0, i32 %15)
store double** %16, double*** %9
%17 = load i32, i32* %4
%18 = sub nsw i32 %17, 1
%19 = call double* @dvector(i32 0, i32 %18)
store double* %19, double** %10
%20 = load i32, i32* %4
%21 = sub nsw i32 %20, 1
%22 = call i32* @ivector(i32 0, i32 %21)
store i32* %22, i32** %11
%23 = load double**, double*** %3
%24 = load i32, i32* %4
%25 = load i32*, i32** %11
%26 = call i64 @ludcmp(double** %23, i32 %24, i32* %25, double* %5)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %117
28: ; preds = %2
store i32 0, i32* %7
br label %29
29: ; preds = %78, %28
%30 = load i32, i32* %7
%31 = load i32, i32* %4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %81
33: ; preds = %29
store i32 0, i32* %6
br label %34
34: ; preds = %43, %33
%35 = load i32, i32* %6
%36 = load i32, i32* %4
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %46
38: ; preds = %34
%39 = load double*, double** %10
%40 = load i32, i32* %6
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, double* %39, i64 %41
store double 0.000000e+00, double* %42
br label %43
43: ; preds = %38
%44 = load i32, i32* %6
%45 = add nsw i32 %44, 1
store i32 %45, i32* %6
br label %34
46: ; preds = %34
%47 = load double*, double** %10
%48 = load i32, i32* %7
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds double, double* %47, i64 %49
store double 1.000000e+00, double* %50
%51 = load double**, double*** %3
%52 = load i32, i32* %4
%53 = load i32*, i32** %11
%54 = load double*, double** %10
%55 = call i32 @lubksb(double** %51, i32 %52, i32* %53, double* %54)
store i32 0, i32* %6
br label %56
56: ; preds = %74, %46
%57 = load i32, i32* %6
%58 = load i32, i32* %4
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %77
60: ; preds = %56
%61 = load double*, double** %10
%62 = load i32, i32* %6
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, double* %61, i64 %63
%65 = load double, double* %64
%66 = load double**, double*** %9
%67 = load i32, i32* %6
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double*, double** %66, i64 %68
%70 = load double*, double** %69
%71 = load i32, i32* %7
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, double* %70, i64 %72
store double %65, double* %73
br label %74
74: ; preds = %60
%75 = load i32, i32* %6
%76 = add nsw i32 %75, 1
store i32 %76, i32* %6
br label %56
77: ; preds = %56
br label %78
78: ; preds = %77
%79 = load i32, i32* %7
%80 = add nsw i32 %79, 1
store i32 %80, i32* %7
br label %29
81: ; preds = %29
store i32 0, i32* %6
br label %82
82: ; preds = %113, %81
%83 = load i32, i32* %6
%84 = load i32, i32* %4
%85 = icmp slt i32 %83, %84
br i1 %85, label %86, label %116
86: ; preds = %82
store i32 0, i32* %7
br label %87
87: ; preds = %109, %86
%88 = load i32, i32* %7
%89 = load i32, i32* %4
%90 = icmp slt i32 %88, %89
br i1 %90, label %91, label %112
91: ; preds = %87
%92 = load double**, double*** %9
%93 = load i32, i32* %6
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double*, double** %92, i64 %94
%96 = load double*, double** %95
%97 = load i32, i32* %7
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double, double* %96, i64 %98
%100 = load double, double* %99
%101 = load double**, double*** %3
%102 = load i32, i32* %6
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds double*, double** %101, i64 %103
%105 = load double*, double** %104
%106 = load i32, i32* %7
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, double* %105, i64 %107
store double %100, double* %108
br label %109
109: ; preds = %91
%110 = load i32, i32* %7
%111 = add nsw i32 %110, 1
store i32 %111, i32* %7
br label %87
112: ; preds = %87
br label %113
113: ; preds = %112
%114 = load i32, i32* %6
%115 = add nsw i32 %114, 1
store i32 %115, i32* %6
br label %82
116: ; preds = %82
store i32 1, i32* %8
br label %117
117: ; preds = %116, %2
%118 = load double**, double*** %9
%119 = load i32, i32* %4
%120 = sub nsw i32 %119, 1
%121 = call i32 @free_dmatrix(double** %118, i32 0, i32 %120, i32 0)
%122 = load double*, double** %10
%123 = call i32 @free_dvector(double* %122, i32 0)
%124 = load i32*, i32** %11
%125 = call i32 @free_ivector(i32* %124, i32 0)
%126 = load i32, i32* %8
ret i32 %126
}

LLVM IR (-O2):
define i32 @inverse(double** %0, i32 %1) {
%3 = alloca double
%4 = bitcast double* %3 to i8*
%5 = add nsw i32 %1, -1
%6 = tail call double** @dmatrix(i32 0, i32 %5, i32 0, i32 %5)
%7 = tail call double* @dvector(i32 0, i32 %5)
%8 = bitcast double* %7 to i8*
%9 = tail call i32* @ivector(i32 0, i32 %5)
%10 = call i64 @ludcmp(double** %0, i32 %1, i32* %9, double* %3)
%11 = icmp eq i64 %10, 0
br i1 %11, label %206, label %12
12: ; preds = %2
%13 = icmp sgt i32 %1, 0
br i1 %13, label %14, label %206
14: ; preds = %12
%15 = zext i32 %1 to i64
%16 = shl nuw nsw i64 %15, 3
%17 = add nsw i64 %15, -1
%18 = and i64 %15, 3
%19 = icmp ult i64 %17, 3
%20 = and i64 %15, 4294967292
%21 = icmp eq i64 %18, 0
br label %38
22: ; preds = %84
br i1 %13, label %23, label %206
23: ; preds = %22
%24 = zext i32 %1 to i64
%25 = and i64 %24, 4294967292
%26 = add nsw i64 %25, -4
%27 = lshr exact i64 %26, 2
%28 = add nuw nsw i64 %27, 1
%29 = icmp ult i32 %1, 4
%30 = and i64 %15, 4294967292
%31 = and i64 %28, 3
%32 = icmp ult i64 %26, 12
%33 = and i64 %28, 9223372036854775804
%34 = icmp eq i64 %31, 0
%35 = icmp eq i64 %30, %15
%36 = and i64 %24, 3
%37 = icmp eq i64 %36, 0
br label %87
38: ; preds = %84, %14
%39 = phi i64 [ 0, %14 ], [ %85, %84 ]
%40 = getelementptr inbounds double, double* %7, i64 %39
store double 1.000000e+00, double* %40
%41 = call i32 @lubksb(double** %0, i32 %1, i32* %9, double* %7)
br i1 %19, label %71, label %42
42: ; preds = %38, %42
%43 = phi i64 [ %68, %42 ], [ 0, %38 ]
%44 = phi i64 [ %69, %42 ], [ 0, %38 ]
%45 = getelementptr inbounds double, double* %7, i64 %43
%46 = load double, double* %45
%47 = getelementptr inbounds double*, double** %6, i64 %43
%48 = load double*, double** %47
%49 = getelementptr inbounds double, double* %48, i64 %39
store double %46, double* %49
%50 = or i64 %43, 1
%51 = getelementptr inbounds double, double* %7, i64 %50
%52 = load double, double* %51
%53 = getelementptr inbounds double*, double** %6, i64 %50
%54 = load double*, double** %53
%55 = getelementptr inbounds double, double* %54, i64 %39
store double %52, double* %55
%56 = or i64 %43, 2
%57 = getelementptr inbounds double, double* %7, i64 %56
%58 = load double, double* %57
%59 = getelementptr inbounds double*, double** %6, i64 %56
%60 = load double*, double** %59
%61 = getelementptr inbounds double, double* %60, i64 %39
store double %58, double* %61
%62 = or i64 %43, 3
%63 = getelementptr inbounds double, double* %7, i64 %62
%64 = load double, double* %63
%65 = getelementptr inbounds double*, double** %6, i64 %62
%66 = load double*, double** %65
%67 = getelementptr inbounds double, double* %66, i64 %39
store double %64, double* %67
%68 = add nuw nsw i64 %43, 4
%69 = add i64 %44, 4
%70 = icmp eq i64 %69, %20
br i1 %70, label %71, label %42
71: ; preds = %42, %38
%72 = phi i64 [ 0, %38 ], [ %68, %42 ]
br i1 %21, label %84, label %73
73: ; preds = %71, %73
%74 = phi i64 [ %81, %73 ], [ %72, %71 ]
%75 = phi i64 [ %82, %73 ], [ 0, %71 ]
%76 = getelementptr inbounds double, double* %7, i64 %74
%77 = load double, double* %76
%78 = getelementptr inbounds double*, double** %6, i64 %74
%79 = load double*, double** %78
%80 = getelementptr inbounds double, double* %79, i64 %39
store double %77, double* %80
%81 = add nuw nsw i64 %74, 1
%82 = add i64 %75, 1
%83 = icmp eq i64 %82, %18
br i1 %83, label %84, label %73
84: ; preds = %73, %71
%85 = add nuw nsw i64 %39, 1
%86 = icmp eq i64 %85, %15
br i1 %86, label %22, label %38
87: ; preds = %203, %23
%88 = phi i64 [ 0, %23 ], [ %204, %203 ]
%89 = getelementptr inbounds double*, double** %6, i64 %88
%90 = load double*, double** %89
%91 = getelementptr inbounds double*, double** %0, i64 %88
%92 = load double*, double** %91
br i1 %29, label %168, label %93
93: ; preds = %87
%94 = getelementptr double, double* %92, i64 %15
%95 = getelementptr double, double* %90, i64 %15
%96 = icmp ult double* %92, %95
%97 = icmp ult double* %90, %94
%98 = and i1 %96, %97
br i1 %98, label %168, label %99
99: ; preds = %93
br i1 %32, label %149, label %100
100: ; preds = %99, %100
%101 = phi i64 [ %146, %100 ], [ 0, %99 ]
%102 = phi i64 [ %147, %100 ], [ 0, %99 ]
%103 = getelementptr inbounds double, double* %90, i64 %101
%104 = bitcast double* %103 to <2 x double>*
%105 = load <2 x double>, <2 x double>* %104
%106 = getelementptr inbounds double, double* %103, i64 2
%107 = bitcast double* %106 to <2 x double>*
%108 = load <2 x double>, <2 x double>* %107
%109 = getelementptr inbounds double, double* %92, i64 %101
%110 = bitcast double* %109 to <2 x double>*
store <2 x double> %105, <2 x double>* %110
%111 = getelementptr inbounds double, double* %109, i64 2
%112 = bitcast double* %111 to <2 x double>*
store <2 x double> %108, <2 x double>* %112
%113 = or i64 %101, 4
%114 = getelementptr inbounds double, double* %90, i64 %113
%115 = bitcast double* %114 to <2 x double>*
%116 = load <2 x double>, <2 x double>* %115
%117 = getelementptr inbounds double, double* %114, i64 2
%118 = bitcast double* %117 to <2 x double>*
%119 = load <2 x double>, <2 x double>* %118
%120 = getelementptr inbounds double, double* %92, i64 %113
%121 = bitcast double* %120 to <2 x double>*
store <2 x double> %116, <2 x double>* %121
%122 = getelementptr inbounds double, double* %120, i64 2
%123 = bitcast double* %122 to <2 x double>*
store <2 x double> %119, <2 x double>* %123
%124 = or i64 %101, 8
%125 = getelementptr inbounds double, double* %90, i64 %124
%126 = bitcast double* %125 to <2 x double>*
%127 = load <2 x double>, <2 x double>* %126
%128 = getelementptr inbounds double, double* %125, i64 2
%129 = bitcast double* %128 to <2 x double>*
%130 = load <2 x double>, <2 x double>* %129
%131 = getelementptr inbounds double, double* %92, i64 %124
%132 = bitcast double* %131 to <2 x double>*
store <2 x double> %127, <2 x double>* %132
%133 = getelementptr inbounds double, double* %131, i64 2
%134 = bitcast double* %133 to <2 x double>*
store <2 x double> %130, <2 x double>* %134
%135 = or i64 %101, 12
%136 = getelementptr inbounds double, double* %90, i64 %135
%137 = bitcast double* %136 to <2 x double>*
%138 = load <2 x double>, <2 x double>* %137
%139 = getelementptr inbounds double, double* %136, i64 2
%140 = bitcast double* %139 to <2 x double>*
%141 = load <2 x double>, <2 x double>* %140
%142 = getelementptr inbounds double, double* %92, i64 %135
%143 = bitcast double* %142 to <2 x double>*
store <2 x double> %138, <2 x double>* %143
%144 = getelementptr inbounds double, double* %142, i64 2
%145 = bitcast double* %144 to <2 x double>*
store <2 x double> %141, <2 x double>* %145
%146 = add nuw i64 %101, 16
%147 = add nuw i64 %102, 4
%148 = icmp eq i64 %147, %33
br i1 %148, label %149, label %100
149: ; preds = %100, %99
%150 = phi i64 [ 0, %99 ], [ %146, %100 ]
br i1 %34, label %167, label %151
151: ; preds = %149, %151
%152 = phi i64 [ %164, %151 ], [ %150, %149 ]
%153 = phi i64 [ %165, %151 ], [ 0, %149 ]
%154 = getelementptr inbounds double, double* %90, i64 %152
%155 = bitcast double* %154 to <2 x double>*
%156 = load <2 x double>, <2 x double>* %155
%157 = getelementptr inbounds double, double* %154, i64 2
%158 = bitcast double* %157 to <2 x double>*
%159 = load <2 x double>, <2 x double>* %158
%160 = getelementptr inbounds double, double* %92, i64 %152
%161 = bitcast double* %160 to <2 x double>*
store <2 x double> %156, <2 x double>* %161
%162 = getelementptr inbounds double, double* %160, i64 2
%163 = bitcast double* %162 to <2 x double>*
store <2 x double> %159, <2 x double>* %163
%164 = add nuw i64 %152, 4
%165 = add i64 %153, 1
%166 = icmp eq i64 %165, %31
br i1 %166, label %167, label %151
167: ; preds = %151, %149
br i1 %35, label %203, label %168
168: ; preds = %93, %87, %167
%169 = phi i64 [ 0, %93 ], [ 0, %87 ], [ %30, %167 ]
%170 = xor i64 %169, -1
%171 = add nsw i64 %170, %24
br i1 %37, label %181, label %172
172: ; preds = %168, %172
%173 = phi i64 [ %178, %172 ], [ %169, %168 ]
%174 = phi i64 [ %179, %172 ], [ 0, %168 ]
%175 = getelementptr inbounds double, double* %90, i64 %173
%176 = load double, double* %175
%177 = getelementptr inbounds double, double* %92, i64 %173
store double %176, double* %177
%178 = add nuw nsw i64 %173, 1
%179 = add i64 %174, 1
%180 = icmp eq i64 %179, %36
br i1 %180, label %181, label %172
181: ; preds = %172, %168
%182 = phi i64 [ %169, %168 ], [ %178, %172 ]
%183 = icmp ult i64 %171, 3
br i1 %183, label %203, label %184
184: ; preds = %181, %184
%185 = phi i64 [ %201, %184 ], [ %182, %181 ]
%186 = getelementptr inbounds double, double* %90, i64 %185
%187 = load double, double* %186
%188 = getelementptr inbounds double, double* %92, i64 %185
store double %187, double* %188
%189 = add nuw nsw i64 %185, 1
%190 = getelementptr inbounds double, double* %90, i64 %189
%191 = load double, double* %190
%192 = getelementptr inbounds double, double* %92, i64 %189
store double %191, double* %192
%193 = add nuw nsw i64 %185, 2
%194 = getelementptr inbounds double, double* %90, i64 %193
%195 = load double, double* %194
%196 = getelementptr inbounds double, double* %92, i64 %193
store double %195, double* %196
%197 = add nuw nsw i64 %185, 3
%198 = getelementptr inbounds double, double* %90, i64 %197
%199 = load double, double* %198
%200 = getelementptr inbounds double, double* %92, i64 %197
store double %199, double* %200
%201 = add nuw nsw i64 %185, 4
%202 = icmp eq i64 %201, %24
br i1 %202, label %203, label %184
203: ; preds = %181, %184, %167
%204 = add nuw nsw i64 %88, 1
%205 = icmp eq i64 %204, %24
br i1 %205, label %206, label %87
206: ; preds = %203, %12, %22, %2
%207 = phi i32 [ 0, %2 ], [ 1, %22 ], [ 1, %12 ], [ 1, %203 ]
%208 = call i32 @free_dmatrix(double** %6, i32 0, i32 %5, i32 0)
%209 = call i32 @free_dvector(double* %7, i32 0)
%210 = call i32 @free_ivector(i32* %9, i32 0)
ret i32 %207
}