void MatrixInv(double matrix_in[3][3], double matrix_out[3][3]) {
  int userN = 3;
  int userM = 2;
  int row = 0;
  int column = 0;
  double **matrixA;
  double **inversedMatrixA;
  double **multiplicationalMatrixA;
  double determinantResult = 0;
  matrixA = (double **)malloc(sizeof(double *) * userN);
  for (row = 0; row < userN; row++) {
    matrixA[row] = (double *)malloc(sizeof(double) * userN);
  }
  for (row = 0; row < userN; row++) {
    for (column = 0; column < userN; column++) {
      matrixA[row][column] = matrix_in[row][column];
    }
  }
  determinantResult = Determinant(matrixA, userN);
  if (!determinantResult) {
    printf("\nNo determinant(A)\n");
  } else {
    inversedMatrixA = (double **)malloc(sizeof(double *) * userN);
    multiplicationalMatrixA = (double **)malloc(sizeof(double *) * userN);
    for (row = 0; row < userN; row++) {
      inversedMatrixA[row] = (double *)malloc(sizeof(double) * userN);
      multiplicationalMatrixA[row] = (double *)malloc(sizeof(double) * userN);
    }
    InverseMatrix(matrixA, inversedMatrixA, userN, determinantResult);
    for (row = 0; row < userN; row++) {
      for (column = 0; column < userN; column++) {
        matrix_out[row][column] = inversedMatrixA[row][column];
      }
    }
    for (row = 0; row < userN; row++) {
      free(multiplicationalMatrixA[row]);
      free(inversedMatrixA[row]);
    }
    free(multiplicationalMatrixA);
    free(inversedMatrixA);
  }
  for (row = 0; row < userN; row++) {
    free(matrixA[row]);
  }
  free(matrixA);
}


x86 assembly (clang, -O0):
<MatrixInv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x3,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movslq -0x14(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11d2 <MatrixInv+0x82>
movslq -0x14(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x28(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    119c <MatrixInv+0x4c>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1246 <MatrixInv+0xf6>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1233 <MatrixInv+0xe3>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%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    11ec <MatrixInv+0x9c>
jmp    1238 <MatrixInv+0xe8>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11d9 <MatrixInv+0x89>
mov    -0x28(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    $0x0,%al
call   1050 <Determinant@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1288 <MatrixInv+0x138>
jp     1288 <MatrixInv+0x138>
lea    0xd84(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13e3 <MatrixInv+0x293>
movslq -0x14(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0x14(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1303 <MatrixInv+0x1b3>
movslq -0x14(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movslq -0x14(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12b1 <MatrixInv+0x161>
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x14(%rbp),%edx
movsd  -0x40(%rbp),%xmm0
mov    $0x1,%al
call   1040 <InverseMatrix@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    138e <MatrixInv+0x23e>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    137b <MatrixInv+0x22b>
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1334 <MatrixInv+0x1e4>
jmp    1380 <MatrixInv+0x230>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1321 <MatrixInv+0x1d1>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13d1 <MatrixInv+0x281>
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1395 <MatrixInv+0x245>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1415 <MatrixInv+0x2c5>
mov    -0x28(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13ea <MatrixInv+0x29a>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MatrixInv>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
mov    $0x18,%edi
call   1070 <malloc@plt>
mov    %rax,%r15
mov    $0x18,%edi
call   1070 <malloc@plt>
mov    %rax,%r12
mov    %rax,(%r15)
mov    $0x18,%edi
call   1070 <malloc@plt>
mov    %rax,%r13
mov    %rax,0x8(%r15)
mov    $0x18,%edi
call   1070 <malloc@plt>
mov    %rax,0x10(%r15)
movups (%rbx),%xmm0
movups %xmm0,(%r12)
movsd  0x10(%rbx),%xmm0
movsd  %xmm0,0x10(%r12)
movups 0x18(%rbx),%xmm0
movups %xmm0,0x0(%r13)
movsd  0x28(%rbx),%xmm0
movsd  %xmm0,0x10(%r13)
movups 0x30(%rbx),%xmm0
movups %xmm0,(%rax)
movsd  0x40(%rbx),%xmm0
movsd  %xmm0,0x10(%rax)
mov    %r15,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1060 <Determinant@plt>
test   %eax,%eax
je     12d5 <MatrixInv+0x185>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
mov    $0x18,%edi
call   1070 <malloc@plt>
mov    %rax,%rbx
mov    $0x18,%edi
call   1070 <malloc@plt>
mov    %rax,(%rbx)
mov    $0x18,%edi
call   1070 <malloc@plt>
mov    %rax,0x8(%rbx)
mov    $0x18,%edi
call   1070 <malloc@plt>
mov    %rax,0x10(%rbx)
mov    %r15,%rdi
mov    %rbx,%rsi
mov    $0x3,%edx
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1040 <InverseMatrix@plt>
mov    (%rbx),%rdi
movsd  (%rdi),%xmm0
movsd  %xmm0,(%r14)
movsd  0x8(%rdi),%xmm0
movsd  %xmm0,0x8(%r14)
movsd  0x10(%rdi),%xmm0
movsd  %xmm0,0x10(%r14)
mov    0x8(%rbx),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,0x18(%r14)
movsd  0x8(%rax),%xmm0
movsd  %xmm0,0x20(%r14)
movsd  0x10(%rax),%xmm0
movsd  %xmm0,0x28(%r14)
mov    0x10(%rbx),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,0x30(%r14)
movsd  0x8(%rax),%xmm0
movsd  %xmm0,0x38(%r14)
movsd  0x10(%rax),%xmm0
movsd  %xmm0,0x40(%r14)
call   1030 <free@plt>
mov    0x8(%rbx),%rdi
call   1030 <free@plt>
mov    0x10(%rbx),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
jmp    12e1 <MatrixInv+0x191>
lea    0xd24(%rip),%rdi
call   1050 <puts@plt>
mov    (%r15),%rdi
call   1030 <free@plt>
mov    0x8(%r15),%rdi
call   1030 <free@plt>
mov    0x10(%r15),%rdi
call   1030 <free@plt>
mov    %r15,%rdi
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1030 <free@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"\0ANo determinant(A)\0A\00"
define void @MatrixInv([3 x double]* %0, [3 x double]* %1) {
%3 = alloca [3 x double]*
%4 = alloca [3 x double]*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca double**
%10 = alloca double**
%11 = alloca double**
%12 = alloca double
store [3 x double]* %0, [3 x double]** %3
store [3 x double]* %1, [3 x double]** %4
store i32 3, i32* %5
store i32 2, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store double 0.000000e+00, double* %12
%13 = load i32, i32* %5
%14 = sext i32 %13 to i64
%15 = mul i64 8, %14
%16 = call i8* @malloc(i64 %15)
%17 = bitcast i8* %16 to double**
store double** %17, double*** %9
store i32 0, i32* %7
br label %18
18: ; preds = %32, %2
%19 = load i32, i32* %7
%20 = load i32, i32* %5
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %35
22: ; preds = %18
%23 = load i32, i32* %5
%24 = sext i32 %23 to i64
%25 = mul i64 8, %24
%26 = call i8* @malloc(i64 %25)
%27 = bitcast i8* %26 to double*
%28 = load double**, double*** %9
%29 = load i32, i32* %7
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double*, double** %28, i64 %30
store double* %27, double** %31
br label %32
32: ; preds = %22
%33 = load i32, i32* %7
%34 = add nsw i32 %33, 1
store i32 %34, i32* %7
br label %18
35: ; preds = %18
store i32 0, i32* %7
br label %36
36: ; preds = %66, %35
%37 = load i32, i32* %7
%38 = load i32, i32* %5
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %69
40: ; preds = %36
store i32 0, i32* %8
br label %41
41: ; preds = %62, %40
%42 = load i32, i32* %8
%43 = load i32, i32* %5
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %65
45: ; preds = %41
%46 = load [3 x double]*, [3 x double]** %3
%47 = load i32, i32* %7
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [3 x double], [3 x double]* %46, i64 %48
%50 = load i32, i32* %8
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [3 x double], [3 x double]* %49, i64 0, i64 %51
%53 = load double, double* %52
%54 = load double**, double*** %9
%55 = load i32, i32* %7
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double*, double** %54, i64 %56
%58 = load double*, double** %57
%59 = load i32, i32* %8
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %58, i64 %60
store double %53, double* %61
br label %62
62: ; preds = %45
%63 = load i32, i32* %8
%64 = add nsw i32 %63, 1
store i32 %64, i32* %8
br label %41
65: ; preds = %41
br label %66
66: ; preds = %65
%67 = load i32, i32* %7
%68 = add nsw i32 %67, 1
store i32 %68, i32* %7
br label %36
69: ; preds = %36
%70 = load double**, double*** %9
%71 = load i32, i32* %5
%72 = call i32 (double**, i32, ...) bitcast (i32 (...)* @Determinant to i32 (double**, i32, ...)*)(double** %70, i32 %71)
%73 = sitofp i32 %72 to double
store double %73, double* %12
%74 = load double, double* %12
%75 = fcmp une double %74, 0.000000e+00
br i1 %75, label %78, label %76
76: ; preds = %69
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
br label %180
78: ; preds = %69
%79 = load i32, i32* %5
%80 = sext i32 %79 to i64
%81 = mul i64 8, %80
%82 = call i8* @malloc(i64 %81)
%83 = bitcast i8* %82 to double**
store double** %83, double*** %10
%84 = load i32, i32* %5
%85 = sext i32 %84 to i64
%86 = mul i64 8, %85
%87 = call i8* @malloc(i64 %86)
%88 = bitcast i8* %87 to double**
store double** %88, double*** %11
store i32 0, i32* %7
br label %89
89: ; preds = %112, %78
%90 = load i32, i32* %7
%91 = load i32, i32* %5
%92 = icmp slt i32 %90, %91
br i1 %92, label %93, label %115
93: ; preds = %89
%94 = load i32, i32* %5
%95 = sext i32 %94 to i64
%96 = mul i64 8, %95
%97 = call i8* @malloc(i64 %96)
%98 = bitcast i8* %97 to double*
%99 = load double**, double*** %10
%100 = load i32, i32* %7
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds double*, double** %99, i64 %101
store double* %98, double** %102
%103 = load i32, i32* %5
%104 = sext i32 %103 to i64
%105 = mul i64 8, %104
%106 = call i8* @malloc(i64 %105)
%107 = bitcast i8* %106 to double*
%108 = load double**, double*** %11
%109 = load i32, i32* %7
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds double*, double** %108, i64 %110
store double* %107, double** %111
br label %112
112: ; preds = %93
%113 = load i32, i32* %7
%114 = add nsw i32 %113, 1
store i32 %114, i32* %7
br label %89
115: ; preds = %89
%116 = load double**, double*** %9
%117 = load double**, double*** %10
%118 = load i32, i32* %5
%119 = load double, double* %12
%120 = call i32 (double**, double**, i32, double, ...) bitcast (i32 (...)* @InverseMatrix to i32 (double**, double**, i32, double, ...)*)(double** %116, double** %117, i32 %118, double %119)
store i32 0, i32* %7
br label %121
121: ; preds = %151, %115
%122 = load i32, i32* %7
%123 = load i32, i32* %5
%124 = icmp slt i32 %122, %123
br i1 %124, label %125, label %154
125: ; preds = %121
store i32 0, i32* %8
br label %126
126: ; preds = %147, %125
%127 = load i32, i32* %8
%128 = load i32, i32* %5
%129 = icmp slt i32 %127, %128
br i1 %129, label %130, label %150
130: ; preds = %126
%131 = load double**, double*** %10
%132 = load i32, i32* %7
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double*, double** %131, i64 %133
%135 = load double*, double** %134
%136 = load i32, i32* %8
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double, double* %135, i64 %137
%139 = load double, double* %138
%140 = load [3 x double]*, [3 x double]** %4
%141 = load i32, i32* %7
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [3 x double], [3 x double]* %140, i64 %142
%144 = load i32, i32* %8
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds [3 x double], [3 x double]* %143, i64 0, i64 %145
store double %139, double* %146
br label %147
147: ; preds = %130
%148 = load i32, i32* %8
%149 = add nsw i32 %148, 1
store i32 %149, i32* %8
br label %126
150: ; preds = %126
br label %151
151: ; preds = %150
%152 = load i32, i32* %7
%153 = add nsw i32 %152, 1
store i32 %153, i32* %7
br label %121
154: ; preds = %121
store i32 0, i32* %7
br label %155
155: ; preds = %172, %154
%156 = load i32, i32* %7
%157 = load i32, i32* %5
%158 = icmp slt i32 %156, %157
br i1 %158, label %159, label %175
159: ; preds = %155
%160 = load double**, double*** %11
%161 = load i32, i32* %7
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds double*, double** %160, i64 %162
%164 = load double*, double** %163
%165 = bitcast double* %164 to i8*
%166 = load double**, double*** %10
%167 = load i32, i32* %7
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds double*, double** %166, i64 %168
%170 = load double*, double** %169
%171 = bitcast double* %170 to i8*
br label %172
172: ; preds = %159
%173 = load i32, i32* %7
%174 = add nsw i32 %173, 1
store i32 %174, i32* %7
br label %155
175: ; preds = %155
%176 = load double**, double*** %11
%177 = bitcast double** %176 to i8*
%178 = load double**, double*** %10
%179 = bitcast double** %178 to i8*
br label %180
180: ; preds = %175, %76
store i32 0, i32* %7
br label %181
181: ; preds = %192, %180
%182 = load i32, i32* %7
%183 = load i32, i32* %5
%184 = icmp slt i32 %182, %183
br i1 %184, label %185, label %195
185: ; preds = %181
%186 = load double**, double*** %9
%187 = load i32, i32* %7
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds double*, double** %186, i64 %188
%190 = load double*, double** %189
%191 = bitcast double* %190 to i8*
br label %192
192: ; preds = %185
%193 = load i32, i32* %7
%194 = add nsw i32 %193, 1
store i32 %194, i32* %7
br label %181
195: ; preds = %181
%196 = load double**, double*** %9
%197 = bitcast double** %196 to i8*
ret void
}

LLVM IR (-O2):
@str = [19 x i8] c"\0ANo determinant(A)\00"
define void @MatrixInv([3 x double]* nocapture %0, [3 x double]* nocapture writeonly %1) {
%3 = tail call dereferenceable_or_null(24) i8* @malloc(i64 24)
%4 = bitcast i8* %3 to double**
%5 = tail call dereferenceable_or_null(24) i8* @malloc(i64 24)
%6 = bitcast i8* %3 to i8**
store i8* %5, i8** %6
%7 = tail call dereferenceable_or_null(24) i8* @malloc(i64 24)
%8 = getelementptr inbounds double*, double** %4, i64 1
%9 = bitcast double** %8 to i8**
store i8* %7, i8** %9
%10 = tail call dereferenceable_or_null(24) i8* @malloc(i64 24)
%11 = getelementptr inbounds double*, double** %4, i64 2
%12 = bitcast double** %11 to i8**
store i8* %10, i8** %12
%13 = bitcast i8* %5 to double*
%14 = bitcast [3 x double]* %0 to <2 x double>*
%15 = load <2 x double>, <2 x double>* %14
%16 = bitcast i8* %5 to <2 x double>*
store <2 x double> %15, <2 x double>* %16
%17 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 0, i64 2
%18 = load double, double* %17
%19 = getelementptr inbounds double, double* %13, i64 2
store double %18, double* %19
%20 = bitcast i8* %7 to double*
%21 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 1, i64 0
%22 = bitcast double* %21 to <2 x double>*
%23 = load <2 x double>, <2 x double>* %22
%24 = bitcast i8* %7 to <2 x double>*
store <2 x double> %23, <2 x double>* %24
%25 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 1, i64 2
%26 = load double, double* %25
%27 = getelementptr inbounds double, double* %20, i64 2
store double %26, double* %27
%28 = bitcast i8* %10 to double*
%29 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 2, i64 0
%30 = bitcast double* %29 to <2 x double>*
%31 = load <2 x double>, <2 x double>* %30
%32 = bitcast i8* %10 to <2 x double>*
store <2 x double> %31, <2 x double>* %32
%33 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 2, i64 2
%34 = load double, double* %33
%35 = getelementptr inbounds double, double* %28, i64 2
store double %34, double* %35
%36 = tail call i32 (double**, i32, ...) bitcast (i32 (...)* @Determinant to i32 (double**, i32, ...)*)(double** %4, i32 3)
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %2
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
br label %83
40: ; preds = %2
%41 = sitofp i32 %36 to double
%42 = tail call dereferenceable_or_null(24) i8* @malloc(i64 24)
%43 = bitcast i8* %42 to double**
%44 = tail call dereferenceable_or_null(24) i8* @malloc(i64 24)
%45 = bitcast i8* %42 to i8**
store i8* %44, i8** %45
%46 = tail call dereferenceable_or_null(24) i8* @malloc(i64 24)
%47 = getelementptr inbounds double*, double** %43, i64 1
%48 = bitcast double** %47 to i8**
store i8* %46, i8** %48
%49 = tail call dereferenceable_or_null(24) i8* @malloc(i64 24)
%50 = getelementptr inbounds double*, double** %43, i64 2
%51 = bitcast double** %50 to i8**
store i8* %49, i8** %51
%52 = tail call i32 (double**, double**, i32, double, ...) bitcast (i32 (...)* @InverseMatrix to i32 (double**, double**, i32, double, ...)*)(double** %4, double** %43, i32 3, double %41)
%53 = load double*, double** %43
%54 = load double, double* %53
%55 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 0
store double %54, double* %55
%56 = getelementptr inbounds double, double* %53, i64 1
%57 = load double, double* %56
%58 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 1
store double %57, double* %58
%59 = getelementptr inbounds double, double* %53, i64 2
%60 = load double, double* %59
%61 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 2
store double %60, double* %61
%62 = load double*, double** %47
%63 = load double, double* %62
%64 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 1, i64 0
store double %63, double* %64
%65 = getelementptr inbounds double, double* %62, i64 1
%66 = load double, double* %65
%67 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 1, i64 1
store double %66, double* %67
%68 = getelementptr inbounds double, double* %62, i64 2
%69 = load double, double* %68
%70 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 1, i64 2
store double %69, double* %70
%71 = load double*, double** %50
%72 = load double, double* %71
%73 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 2, i64 0
store double %72, double* %73
%74 = getelementptr inbounds double, double* %71, i64 1
%75 = load double, double* %74
%76 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 2, i64 1
store double %75, double* %76
%77 = getelementptr inbounds double, double* %71, i64 2
%78 = load double, double* %77
%79 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 2, i64 2
store double %78, double* %79
%80 = bitcast double* %53 to i8*
tail call void @free(i8* %80)
%81 = load i8*, i8** %48
tail call void @free(i8* %81)
%82 = load i8*, i8** %51
tail call void @free(i8* %82)
tail call void @free(i8* %42)
br label %83
83: ; preds = %40, %38
%84 = load i8*, i8** %6
tail call void @free(i8* %84)
%85 = load i8*, i8** %9
tail call void @free(i8* %85)
%86 = load i8*, i8** %12
tail call void @free(i8* %86)
tail call void @free(i8* %3)
ret void
}