void inverse2(double *a, int dim) {
  int i, j, *indx;
  double **y, d, *col;
  y = dmatrix(dim, dim);
  indx = ivector(dim);
  col = dvector(dim);
  ludcmp2(a, dim, indx, &d);
  for (j = 0; j < dim; j++) {
    memset(col, 0, sizeof(double) * dim);
    col[j] = 1.0;
    lubksb2(a, dim, indx, col);
    for (i = 0; i < dim; i++)
      y[i][j] = col[i];
  }
  for (i = 0; i < dim; i++)
    for (j = 0; j < dim; j++)
      a[i * dim + j] = y[i][j];
  free_dmatrix(y, dim);
  free(col);
  free(indx);
}


x86 assembly (clang, -O0):
<inverse2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    $0x0,%al
call   1060 <dmatrix@plt>
cltq
mov    %rax,-0x28(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x0,%al
call   1080 <ivector@plt>
cltq
mov    %rax,-0x20(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x0,%al
call   1070 <dvector@plt>
cltq
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x20(%rbp),%rdx
lea    -0x30(%rbp),%rcx
mov    $0x0,%al
call   10a0 <ludcmp2@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    127f <inverse2+0xff>
mov    -0x38(%rbp),%rdi
movslq -0xc(%rbp),%rdx
shl    $0x3,%rdx
xor    %esi,%esi
call   1050 <memset@plt>
mov    -0x38(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  0xdf2(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x20(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    $0x0,%al
call   1030 <lubksb2@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    126c <inverse2+0xec>
mov    -0x38(%rbp),%rax
movslq -0x10(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x14(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1230 <inverse2+0xb0>
jmp    1271 <inverse2+0xf1>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11df <inverse2+0x5f>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12f1 <inverse2+0x171>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12de <inverse2+0x15e>
mov    -0x28(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    -0x14(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1299 <inverse2+0x119>
jmp    12e3 <inverse2+0x163>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1286 <inverse2+0x106>
mov    -0x28(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    $0x0,%al
call   1090 <free_dmatrix@plt>
mov    -0x38(%rbp),%rdi
call   1040 <free@plt>
mov    -0x20(%rbp),%rdi
call   1040 <free@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inverse2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %esi,%r14d
mov    %rdi,%r15
mov    %esi,%edi
xor    %eax,%eax
call   1060 <dmatrix@plt>
movslq %eax,%rbx
mov    %r14d,%edi
xor    %eax,%eax
call   1080 <ivector@plt>
movslq %eax,%r12
mov    %r14d,%edi
xor    %eax,%eax
call   1070 <dvector@plt>
movslq %eax,%rbp
lea    0x40(%rsp),%rcx
mov    %r15,%rdi
mov    %r14d,%esi
mov    %r12,0x20(%rsp)
mov    %r12,%rdx
xor    %eax,%eax
call   10a0 <ludcmp2@plt>
mov    %r14d,0xc(%rsp)
test   %r14d,%r14d
jle    151c <inverse2+0x39c>
mov    %r15,0x18(%rsp)
mov    0xc(%rsp),%r13d
lea    0x0(,%r13,8),%rax
mov    %rax,0x28(%rsp)
lea    -0x1(%r13),%rax
mov    %rax,0x10(%rsp)
mov    %r13d,%r15d
and    $0x3,%r15d
mov    %r13d,%r12d
and    $0xfffffffc,%r12d
xor    %r14d,%r14d
jmp    122d <inverse2+0xad>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r14
cmp    %r13,%r14
je     130d <inverse2+0x18d>
mov    %rbp,%rdi
xor    %esi,%esi
mov    0x28(%rsp),%rdx
call   1050 <memset@plt>
movabs $0x3ff0000000000000,%rax
mov    %rax,0x0(%rbp,%r14,8)
mov    0x18(%rsp),%rdi
mov    0xc(%rsp),%esi
mov    0x20(%rsp),%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1030 <lubksb2@plt>
cmpq   $0x3,0x10(%rsp)
jae    1270 <inverse2+0xf0>
xor    %eax,%eax
jmp    12cc <inverse2+0x14c>
nop
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,%r14,8)
movsd  0x8(%rbp,%rax,8),%xmm0
mov    0x8(%rbx,%rax,8),%rcx
movsd  %xmm0,(%rcx,%r14,8)
movsd  0x10(%rbp,%rax,8),%xmm0
mov    0x10(%rbx,%rax,8),%rcx
movsd  %xmm0,(%rcx,%r14,8)
movsd  0x18(%rbp,%rax,8),%xmm0
mov    0x18(%rbx,%rax,8),%rcx
movsd  %xmm0,(%rcx,%r14,8)
add    $0x4,%rax
cmp    %rax,%r12
jne    1280 <inverse2+0x100>
test   %r15,%r15
je     1220 <inverse2+0xa0>
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,%r14,8)
add    $0x1,%rdx
cmp    %rdx,%r15
jne    12f0 <inverse2+0x170>
jmp    1220 <inverse2+0xa0>
cmpl   $0x0,0xc(%rsp)
mov    0x18(%rsp),%r15
jle    151c <inverse2+0x39c>
mov    %r13d,%r11d
and    $0xfffffffc,%r11d
lea    -0x4(%r11),%rax
mov    %rax,0x10(%rsp)
shr    $0x2,%rax
add    $0x1,%rax
mov    %eax,%r12d
and    $0x3,%r12d
and    $0xfffffffffffffffc,%rax
mov    %rax,0x30(%rsp)
mov    %r13d,%r9d
and    $0x3,%r9d
lea    0x70(%r15),%rcx
lea    0x10(%r15),%rdx
mov    %r12,0x38(%rsp)
shl    $0x5,%r12
xor    %r10d,%r10d
mov    %r15,%r14
jmp    138b <inverse2+0x20b>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r10
mov    0x28(%rsp),%rax
add    %rax,%rcx
add    %rax,%rdx
add    %rax,%r14
cmp    %r13,%r10
je     151c <inverse2+0x39c>
mov    (%rbx,%r10,8),%r8
cmpl   $0x4,0xc(%rsp)
jb     13be <inverse2+0x23e>
mov    %r10,%rax
imul   %r13,%rax
lea    (%r15,%rax,8),%rsi
lea    (%r8,%r13,8),%rdi
cmp    %rdi,%rsi
jae    1450 <inverse2+0x2d0>
add    %r13,%rax
lea    (%r15,%rax,8),%rax
cmp    %rax,%r8
jae    1450 <inverse2+0x2d0>
xor    %edi,%edi
mov    %rdi,%rsi
not    %rsi
add    %r13,%rsi
test   %r9,%r9
je     13f6 <inverse2+0x276>
mov    %r9,%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%r8,%rdi,8),%xmm0
movsd  %xmm0,(%r14,%rdi,8)
add    $0x1,%rdi
add    $0xffffffffffffffff,%r15
jne    13e0 <inverse2+0x260>
cmp    $0x3,%rsi
mov    0x18(%rsp),%r15
jb     1370 <inverse2+0x1f0>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%r8,%rdi,8),%xmm0
movsd  %xmm0,-0x10(%rdx,%rdi,8)
movsd  0x8(%r8,%rdi,8),%xmm0
movsd  %xmm0,-0x8(%rdx,%rdi,8)
movsd  0x10(%r8,%rdi,8),%xmm0
movsd  %xmm0,(%rdx,%rdi,8)
movsd  0x18(%r8,%rdi,8),%xmm0
movsd  %xmm0,0x8(%rdx,%rdi,8)
add    $0x4,%rdi
cmp    %rdi,%r13
jne    1410 <inverse2+0x290>
jmp    1370 <inverse2+0x1f0>
cmpq   $0xc,0x10(%rsp)
jae    145c <inverse2+0x2dc>
xor    %edi,%edi
jmp    14d0 <inverse2+0x350>
mov    0x30(%rsp),%rsi
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups (%r8,%rdi,8),%xmm0
movups 0x10(%r8,%rdi,8),%xmm1
movups %xmm0,-0x70(%rcx,%rdi,8)
movups %xmm1,-0x60(%rcx,%rdi,8)
movups 0x20(%r8,%rdi,8),%xmm0
movups 0x30(%r8,%rdi,8),%xmm1
movups %xmm0,-0x50(%rcx,%rdi,8)
movups %xmm1,-0x40(%rcx,%rdi,8)
movups 0x40(%r8,%rdi,8),%xmm0
movups 0x50(%r8,%rdi,8),%xmm1
movups %xmm0,-0x30(%rcx,%rdi,8)
movups %xmm1,-0x20(%rcx,%rdi,8)
movups 0x60(%r8,%rdi,8),%xmm0
movups 0x70(%r8,%rdi,8),%xmm1
movups %xmm0,-0x10(%rcx,%rdi,8)
movups %xmm1,(%rcx,%rdi,8)
add    $0x10,%rdi
add    $0xfffffffffffffffc,%rsi
jne    1470 <inverse2+0x2f0>
cmpq   $0x0,0x38(%rsp)
je     150b <inverse2+0x38b>
lea    (%rdx,%rdi,8),%rsi
lea    (%r8,%rdi,8),%rdi
add    $0x10,%rdi
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
movups -0x10(%rdi,%rax,1),%xmm0
movups (%rdi,%rax,1),%xmm1
movups %xmm0,-0x10(%rsi,%rax,1)
movups %xmm1,(%rsi,%rax,1)
add    $0x20,%rax
cmp    %rax,%r12
jne    14f0 <inverse2+0x370>
mov    %r11,%rdi
cmp    %r13,%r11
je     1370 <inverse2+0x1f0>
jmp    13c0 <inverse2+0x240>
mov    %rbx,%rdi
mov    0xc(%rsp),%esi
xor    %eax,%eax
call   1090 <free_dmatrix@plt>
mov    %rbp,%rdi
call   1040 <free@plt>
mov    0x20(%rsp),%rdi
call   1040 <free@plt>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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