#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 fabs(double const);
int invert_matrix_3x3(double m[], double m_inv[]) {
  const double det = m[0] * (m[4] * m[8] - m[5] * m[7]) -
                     m[1] * (m[3] * m[8] - m[5] * m[6]) +
                     m[2] * (m[3] * m[7] - m[4] * m[6]);
  if (fabs(det) < (1.e-10))
    return 0;
  const double deti = 1.0 / det;
  m_inv[0] = (m[4] * m[8] - m[5] * m[7]) * deti;
  m_inv[1] = (m[2] * m[7] - m[1] * m[8]) * deti;
  m_inv[2] = (m[1] * m[5] - m[2] * m[4]) * deti;
  m_inv[3] = (m[5] * m[6] - m[3] * m[8]) * deti;
  m_inv[4] = (m[0] * m[8] - m[2] * m[6]) * deti;
  m_inv[5] = (m[2] * m[3] - m[0] * m[5]) * deti;
  m_inv[6] = (m[3] * m[7] - m[4] * m[6]) * deti;
  m_inv[7] = (m[1] * m[6] - m[0] * m[7]) * deti;
  m_inv[8] = (m[0] * m[4] - m[1] * m[3]) * deti;
  return 1;
}


x86 assembly (clang, -O0):
<invert_matrix_3x3>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x40(%rax),%xmm3
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x10(%rbp),%rax
mulsd  0x38(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm3,%xmm2
addsd  %xmm0,%xmm2
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm3
mov    -0x10(%rbp),%rax
movsd  0x40(%rax),%xmm5
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm4
mov    -0x10(%rbp),%rax
mulsd  0x30(%rax),%xmm4
movq   %xmm4,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm4
mulsd  %xmm5,%xmm3
addsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm4
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm3
mov    -0x10(%rbp),%rax
mulsd  0x30(%rax),%xmm3
movq   %xmm3,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm3
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm1
movaps 0xde5(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  0xdc9(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    124d <invert_matrix_3x3+0x14d>
movl   $0x0,-0x4(%rbp)
jmp    153a <invert_matrix_3x3+0x43a>
movsd  0xdb3(%rip),%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x40(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm1
mov    -0x10(%rbp),%rax
mulsd  0x38(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mulsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x10(%rbp),%rax
mulsd  0x40(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mulsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm1
mov    -0x10(%rbp),%rax
mulsd  0x20(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mulsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x10(%rbp),%rax
mulsd  0x40(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mulsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x40(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm1
mov    -0x10(%rbp),%rax
mulsd  0x30(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mulsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x10(%rbp),%rax
mulsd  0x28(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mulsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm1
mov    -0x10(%rbp),%rax
mulsd  0x30(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mulsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x10(%rbp),%rax
mulsd  0x38(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mulsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x10(%rbp),%rax
mulsd  0x18(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mulsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x40(%rax)
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<invert_matrix_3x3>:
movsd  0x18(%rdi),%xmm1
movsd  0x20(%rdi),%xmm3
movsd  0x40(%rdi),%xmm0
movsd  0x28(%rdi),%xmm4
movsd  0x38(%rdi),%xmm5
movapd %xmm3,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm0
mulsd  %xmm5,%xmm1
mulsd  %xmm4,%xmm5
subsd  %xmm5,%xmm2
movsd  0x30(%rdi),%xmm5
mulsd  %xmm5,%xmm4
subsd  %xmm4,%xmm0
mulsd  0x8(%rdi),%xmm0
movsd  (%rdi),%xmm4
mulsd  %xmm2,%xmm4
mulsd  %xmm3,%xmm5
subsd  %xmm5,%xmm1
mulsd  0x10(%rdi),%xmm1
subsd  %xmm0,%xmm4
addsd  %xmm4,%xmm1
movapd 0xe98(%rip),%xmm0
andpd  %xmm1,%xmm0
xor    %eax,%eax
movsd  0xe9a(%rip),%xmm3
ucomisd %xmm0,%xmm3
ja     129d <invert_matrix_3x3+0x19d>
movsd  0xe90(%rip),%xmm0
divsd  %xmm1,%xmm0
mulsd  %xmm0,%xmm2
movsd  %xmm2,(%rsi)
movsd  0x40(%rdi),%xmm1
mulsd  0x8(%rdi),%xmm1
movsd  0x10(%rdi),%xmm2
mulsd  0x38(%rdi),%xmm2
subsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
movsd  %xmm2,0x8(%rsi)
movsd  0x8(%rdi),%xmm1
movsd  0x20(%rdi),%xmm2
mulsd  0x10(%rdi),%xmm2
mulsd  0x28(%rdi),%xmm1
subsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsi)
movsd  0x28(%rdi),%xmm1
movsd  0x40(%rdi),%xmm2
mulsd  0x18(%rdi),%xmm2
mulsd  0x30(%rdi),%xmm1
subsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsi)
movsd  0x30(%rdi),%xmm1
mulsd  0x10(%rdi),%xmm1
movsd  (%rdi),%xmm2
mulsd  0x40(%rdi),%xmm2
subsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
movsd  %xmm2,0x20(%rsi)
movsd  0x10(%rdi),%xmm1
movsd  0x28(%rdi),%xmm2
mulsd  (%rdi),%xmm2
mulsd  0x18(%rdi),%xmm1
subsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x28(%rsi)
movsd  0x18(%rdi),%xmm1
movsd  0x30(%rdi),%xmm2
mulsd  0x20(%rdi),%xmm2
mulsd  0x38(%rdi),%xmm1
subsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x30(%rsi)
movsd  0x38(%rdi),%xmm1
mulsd  (%rdi),%xmm1
movsd  0x8(%rdi),%xmm2
mulsd  0x30(%rdi),%xmm2
subsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
movsd  %xmm2,0x38(%rsi)
movsd  (%rdi),%xmm1
movsd  0x18(%rdi),%xmm2
mulsd  0x8(%rdi),%xmm2
mulsd  0x20(%rdi),%xmm1
subsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x40(%rsi)
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @invert_matrix_3x3(double* nocapture %0, double* nocapture writeonly %1) {
%3 = load double, double* %0
%4 = getelementptr inbounds double, double* %0, i64 4
%5 = load double, double* %4
%6 = getelementptr inbounds double, double* %0, i64 8
%7 = load double, double* %6
%8 = getelementptr inbounds double, double* %0, i64 5
%9 = load double, double* %8
%10 = getelementptr inbounds double, double* %0, i64 7
%11 = load double, double* %10
%12 = fneg double %9
%13 = fmul double %11, %12
%14 = tail call double @llvm.fmuladd.f64(double %5, double %7, double %13)
%15 = getelementptr inbounds double, double* %0, i64 1
%16 = load double, double* %15
%17 = getelementptr inbounds double, double* %0, i64 3
%18 = load double, double* %17
%19 = getelementptr inbounds double, double* %0, i64 6
%20 = load double, double* %19
%21 = fmul double %20, %12
%22 = tail call double @llvm.fmuladd.f64(double %18, double %7, double %21)
%23 = fneg double %16
%24 = fmul double %22, %23
%25 = tail call double @llvm.fmuladd.f64(double %3, double %14, double %24)
%26 = getelementptr inbounds double, double* %0, i64 2
%27 = load double, double* %26
%28 = fneg double %5
%29 = fmul double %20, %28
%30 = tail call double @llvm.fmuladd.f64(double %18, double %11, double %29)
%31 = tail call double @llvm.fmuladd.f64(double %27, double %30, double %25)
%32 = tail call double @llvm.fabs.f64(double %31)
%33 = fcmp olt double %32, 1.000000e-10
br i1 %33, label %109, label %34
34: ; preds = %2
%35 = fdiv double 1.000000e+00, %31
%36 = fmul double %14, %35
store double %36, double* %1
%37 = load double, double* %26
%38 = load double, double* %10
%39 = load double, double* %15
%40 = load double, double* %6
%41 = fneg double %39
%42 = fmul double %40, %41
%43 = tail call double @llvm.fmuladd.f64(double %37, double %38, double %42)
%44 = fmul double %35, %43
%45 = getelementptr inbounds double, double* %1, i64 1
store double %44, double* %45
%46 = load double, double* %15
%47 = load double, double* %8
%48 = load double, double* %26
%49 = load double, double* %4
%50 = fneg double %48
%51 = fmul double %49, %50
%52 = tail call double @llvm.fmuladd.f64(double %46, double %47, double %51)
%53 = fmul double %35, %52
%54 = getelementptr inbounds double, double* %1, i64 2
store double %53, double* %54
%55 = load double, double* %8
%56 = load double, double* %19
%57 = load double, double* %17
%58 = load double, double* %6
%59 = fneg double %57
%60 = fmul double %58, %59
%61 = tail call double @llvm.fmuladd.f64(double %55, double %56, double %60)
%62 = fmul double %35, %61
%63 = getelementptr inbounds double, double* %1, i64 3
store double %62, double* %63
%64 = load double, double* %0
%65 = load double, double* %6
%66 = load double, double* %26
%67 = load double, double* %19
%68 = fneg double %66
%69 = fmul double %67, %68
%70 = tail call double @llvm.fmuladd.f64(double %64, double %65, double %69)
%71 = fmul double %35, %70
%72 = getelementptr inbounds double, double* %1, i64 4
store double %71, double* %72
%73 = load double, double* %26
%74 = load double, double* %17
%75 = load double, double* %0
%76 = load double, double* %8
%77 = fneg double %75
%78 = fmul double %76, %77
%79 = tail call double @llvm.fmuladd.f64(double %73, double %74, double %78)
%80 = fmul double %35, %79
%81 = getelementptr inbounds double, double* %1, i64 5
store double %80, double* %81
%82 = load double, double* %17
%83 = load double, double* %10
%84 = load double, double* %4
%85 = load double, double* %19
%86 = fneg double %84
%87 = fmul double %85, %86
%88 = tail call double @llvm.fmuladd.f64(double %82, double %83, double %87)
%89 = fmul double %35, %88
%90 = getelementptr inbounds double, double* %1, i64 6
store double %89, double* %90
%91 = load double, double* %15
%92 = load double, double* %19
%93 = load double, double* %0
%94 = load double, double* %10
%95 = fneg double %93
%96 = fmul double %94, %95
%97 = tail call double @llvm.fmuladd.f64(double %91, double %92, double %96)
%98 = fmul double %35, %97
%99 = getelementptr inbounds double, double* %1, i64 7
store double %98, double* %99
%100 = load double, double* %0
%101 = load double, double* %4
%102 = load double, double* %15
%103 = load double, double* %17
%104 = fneg double %102
%105 = fmul double %103, %104
%106 = tail call double @llvm.fmuladd.f64(double %100, double %101, double %105)
%107 = fmul double %35, %106
%108 = getelementptr inbounds double, double* %1, i64 8
store double %107, double* %108
br label %109
109: ; preds = %2, %34
%110 = phi i32 [ 1, %34 ], [ 0, %2 ]
ret i32 %110
}