#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 const mat_Dabs(double);
int /*<<< orphan*/ mat_copy_matrix_d3(double **, double **);
double mat_get_determinant_d3(double **);
int mat_inverse_matrix_d3(double m[3][3], double a[3][3],
                          const double precision) {
  double det;
  double c[3][3];
  det = mat_get_determinant_d3(a);
  if (mat_Dabs(det) < precision) {
    ;
    ;
    return 0;
  }
  c[0][0] = (a[1][1] * a[2][2] - a[1][2] * a[2][1]) / det;
  c[1][0] = (a[1][2] * a[2][0] - a[1][0] * a[2][2]) / det;
  c[2][0] = (a[1][0] * a[2][1] - a[1][1] * a[2][0]) / det;
  c[0][1] = (a[2][1] * a[0][2] - a[2][2] * a[0][1]) / det;
  c[1][1] = (a[2][2] * a[0][0] - a[2][0] * a[0][2]) / det;
  c[2][1] = (a[2][0] * a[0][1] - a[2][1] * a[0][0]) / det;
  c[0][2] = (a[0][1] * a[1][2] - a[0][2] * a[1][1]) / det;
  c[1][2] = (a[0][2] * a[1][0] - a[0][0] * a[1][2]) / det;
  c[2][2] = (a[0][0] * a[1][1] - a[0][1] * a[1][0]) / det;
  mat_copy_matrix_d3(m, c);
  return 1;
}


x86 assembly (clang, -O0):
<mat_inverse_matrix_d3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <mat_get_determinant_d3@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1040 <mat_Dabs@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    117b <mat_inverse_matrix_d3+0x4b>
movl   $0x0,-0x4(%rbp)
jmp    1440 <mat_inverse_matrix_d3+0x310>
mov    -0x18(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x40(%rax),%xmm2
mov    -0x18(%rbp),%rax
movsd  0x28(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x38(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x30(%rax),%xmm2
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x40(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x38(%rax),%xmm2
mov    -0x18(%rbp),%rax
movsd  0x20(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x30(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm2
mov    -0x18(%rbp),%rax
movsd  0x40(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x8(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x40(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x18(%rbp),%rax
movsd  0x30(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x10(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm2
mov    -0x18(%rbp),%rax
movsd  0x38(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x28(%rax),%xmm2
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x20(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm2
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x28(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x20(%rax),%xmm2
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x18(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1050 <mat_copy_matrix_d3@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mat_inverse_matrix_d3>:
push   %r14
push   %rbx
sub    $0x68,%rsp
movsd  %xmm0,0x8(%rsp)
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1030 <mat_get_determinant_d3@plt>
movapd %xmm0,0x10(%rsp)
call   1040 <mat_Dabs@plt>
xor    %eax,%eax
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
ja     127a <mat_inverse_matrix_d3+0x14a>
movsd  0x20(%rbx),%xmm8
movupd 0x28(%rbx),%xmm3
movupd 0x10(%rbx),%xmm4
movapd %xmm4,%xmm10
unpckhpd %xmm4,%xmm10
movsd  0x8(%rbx),%xmm7
movsd  0x40(%rbx),%xmm9
movsd  0x38(%rbx),%xmm6
movapd %xmm8,%xmm12
unpcklpd %xmm6,%xmm12
unpcklpd %xmm7,%xmm6
movapd %xmm3,%xmm11
movapd %xmm4,%xmm1
unpckhpd %xmm3,%xmm1
mulsd  %xmm7,%xmm10
unpcklpd %xmm3,%xmm7
mulpd  %xmm3,%xmm7
movapd %xmm4,%xmm2
unpcklpd %xmm3,%xmm2
unpcklpd %xmm9,%xmm3
mulpd  %xmm6,%xmm3
movapd %xmm8,%xmm0
unpcklpd %xmm9,%xmm0
unpcklpd %xmm4,%xmm9
movapd %xmm12,%xmm5
mulpd  %xmm9,%xmm5
subpd  %xmm3,%xmm5
movapd 0x10(%rsp),%xmm13
movapd %xmm13,%xmm3
unpcklpd %xmm13,%xmm3
divpd  %xmm3,%xmm5
movapd %xmm5,0x20(%rsp)
movsd  (%rbx),%xmm5
shufpd $0x1,%xmm5,%xmm11
mulpd  %xmm11,%xmm12
mulpd  %xmm6,%xmm1
subpd  %xmm12,%xmm1
divpd  %xmm3,%xmm1
movapd %xmm1,0x50(%rsp)
mulpd  %xmm4,%xmm0
subpd  %xmm0,%xmm7
divpd  %xmm3,%xmm7
movapd %xmm7,0x30(%rsp)
mulpd  %xmm11,%xmm2
movsd  %xmm5,%xmm4
mulpd  %xmm9,%xmm4
subpd  %xmm2,%xmm4
divpd  %xmm3,%xmm4
movapd %xmm4,0x40(%rsp)
mulsd  %xmm8,%xmm5
subsd  %xmm10,%xmm5
divsd  %xmm13,%xmm5
movsd  %xmm5,0x60(%rsp)
lea    0x20(%rsp),%rsi
mov    %r14,%rdi
call   1050 <mat_copy_matrix_d3@plt>
mov    $0x1,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i32 @mat_inverse_matrix_d3([3 x double]* %0, [3 x double]* %1, double %2) {
%4 = alloca [3 x [3 x double]]
%5 = bitcast [3 x [3 x double]]* %4 to i8*
%6 = bitcast [3 x double]* %1 to double**
%7 = tail call double @mat_get_determinant_d3(double** %6)
%8 = tail call double @mat_Dabs(double %7)
%9 = fcmp olt double %8, %2
br i1 %9, label %77, label %10
10: ; preds = %3
%11 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 1, i64 1
%12 = load double, double* %11
%13 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 2, i64 2
%14 = load double, double* %13
%15 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 1, i64 2
%16 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 2, i64 1
%17 = load double, double* %16
%18 = bitcast double* %15 to <2 x double>*
%19 = load <2 x double>, <2 x double>* %18
%20 = extractelement <2 x double> %19, i64 1
%21 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 2
%22 = bitcast double* %21 to <2 x double>*
%23 = load <2 x double>, <2 x double>* %22
%24 = extractelement <2 x double> %23, i64 1
%25 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %4, i64 0, i64 2, i64 0
%26 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 1
%27 = load double, double* %26
%28 = insertelement <2 x double> %19, double %14, i64 1
%29 = fneg <2 x double> %28
%30 = insertelement <2 x double> poison, double %17, i64 0
%31 = insertelement <2 x double> %30, double %27, i64 1
%32 = fmul <2 x double> %31, %29
%33 = insertelement <2 x double> poison, double %12, i64 0
%34 = insertelement <2 x double> %33, double %17, i64 1
%35 = insertelement <2 x double> poison, double %14, i64 0
%36 = shufflevector <2 x double> %35, <2 x double> %23, <2 x i32> <i32 0, i32 2>
%37 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %34, <2 x double> %36, <2 x double> %32)
%38 = insertelement <2 x double> poison, double %7, i64 0
%39 = shufflevector <2 x double> %38, <2 x double> poison, <2 x i32> zeroinitializer
%40 = fdiv <2 x double> %37, %39
%41 = bitcast [3 x [3 x double]]* %4 to <2 x double>*
store <2 x double> %40, <2 x double>* %41
%42 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 0
%43 = load double, double* %42
%44 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %4, i64 0, i64 1, i64 1
%45 = fneg <2 x double> %34
%46 = insertelement <2 x double> poison, double %20, i64 0
%47 = insertelement <2 x double> %46, double %43, i64 1
%48 = fmul <2 x double> %47, %45
%49 = shufflevector <2 x double> %23, <2 x double> %19, <2 x i32> <i32 1, i32 3>
%50 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %49, <2 x double> %31, <2 x double> %48)
%51 = fdiv <2 x double> %50, %39
%52 = bitcast double* %25 to <2 x double>*
store <2 x double> %51, <2 x double>* %52
%53 = fneg <2 x double> %23
%54 = insertelement <2 x double> %33, double %14, i64 1
%55 = fmul <2 x double> %54, %53
%56 = insertelement <2 x double> poison, double %27, i64 0
%57 = shufflevector <2 x double> %56, <2 x double> %19, <2 x i32> <i32 0, i32 2>
%58 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %57, <2 x double> %19, <2 x double> %55)
%59 = fdiv <2 x double> %58, %39
%60 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %4, i64 0, i64 0, i64 2
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> %59, <2 x double>* %61
%62 = fneg <2 x double> %47
%63 = shufflevector <2 x double> %23, <2 x double> %19, <2 x i32> <i32 0, i32 2>
%64 = fmul <2 x double> %63, %62
%65 = insertelement <2 x double> %23, double %43, i64 0
%66 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %36, <2 x double> %65, <2 x double> %64)
%67 = fdiv <2 x double> %66, %39
%68 = bitcast double* %44 to <2 x double>*
store <2 x double> %67, <2 x double>* %68
%69 = fneg double %27
%70 = fmul double %24, %69
%71 = tail call double @llvm.fmuladd.f64(double %43, double %12, double %70)
%72 = fdiv double %71, %7
%73 = getelementptr inbounds [3 x [3 x double]], [3 x [3 x double]]* %4, i64 0, i64 2, i64 2
store double %72, double* %73
%74 = bitcast [3 x double]* %0 to double**
%75 = bitcast [3 x [3 x double]]* %4 to double**
%76 = call i32 @mat_copy_matrix_d3(double** %74, double** %75)
br label %77
77: ; preds = %3, %10
%78 = phi i32 [ 1, %10 ], [ 0, %3 ]
ret i32 %78
}