#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 */
float _matrix_2x2_determinant(float **);
float _matrix_3x3_determinant(float **);
int /*<<< orphan*/ _matrix_3x3_mul_constant(float **, float);
void _matrix_3x3_invert(float m1[3][3], float m2[3][3]) {
  float tmp[2][2];
  float determinant = _matrix_3x3_determinant(m1);
  if (determinant == 0.0f)
    return;
  tmp[0][0] = m1[1][1];
  tmp[0][1] = m1[1][2];
  tmp[1][0] = m1[2][1];
  tmp[1][1] = m1[2][2];
  m2[0][0] = _matrix_2x2_determinant(tmp);
  tmp[0][0] = m1[1][0];
  tmp[0][1] = m1[1][2];
  tmp[1][0] = m1[2][0];
  tmp[1][1] = m1[2][2];
  m2[0][1] = _matrix_2x2_determinant(tmp);
  tmp[0][0] = m1[1][0];
  tmp[0][1] = m1[1][1];
  tmp[1][0] = m1[2][0];
  tmp[1][1] = m1[2][1];
  m2[0][2] = _matrix_2x2_determinant(tmp);
  tmp[0][0] = m1[0][1];
  tmp[0][1] = m1[0][2];
  tmp[1][0] = m1[2][1];
  tmp[1][1] = m1[2][2];
  m2[1][0] = _matrix_2x2_determinant(tmp);
  tmp[0][0] = m1[0][0];
  tmp[0][1] = m1[0][2];
  tmp[1][0] = m1[2][0];
  tmp[1][1] = m1[2][2];
  m2[1][1] = _matrix_2x2_determinant(tmp);
  tmp[0][0] = m1[0][0];
  tmp[0][1] = m1[0][1];
  tmp[1][0] = m1[2][0];
  tmp[1][1] = m1[2][1];
  m2[1][2] = _matrix_2x2_determinant(tmp);
  tmp[0][0] = m1[0][1];
  tmp[0][1] = m1[0][2];
  tmp[1][0] = m1[1][1];
  tmp[1][1] = m1[1][2];
  m2[2][0] = _matrix_2x2_determinant(tmp);
  tmp[0][0] = m1[0][0];
  tmp[0][1] = m1[0][2];
  tmp[1][0] = m1[1][0];
  tmp[1][1] = m1[1][2];
  m2[2][1] = _matrix_2x2_determinant(tmp);
  tmp[0][0] = m1[0][0];
  tmp[0][1] = m1[0][1];
  tmp[1][0] = m1[1][0];
  tmp[1][1] = m1[1][1];
  m2[2][2] = _matrix_2x2_determinant(tmp);
  _matrix_3x3_mul_constant(m2, 1.0f / determinant);
}


x86 assembly (clang, -O0):
<_matrix_3x3_invert>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <_matrix_3x3_determinant@plt>
movss  %xmm0,-0x24(%rbp)
movss  -0x24(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    116a <_matrix_3x3_invert+0x3a>
jp     116a <_matrix_3x3_invert+0x3a>
jmp    1415 <_matrix_3x3_invert+0x2e5>
mov    -0x8(%rbp),%rax
movss  0x10(%rax),%xmm0
movss  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movss  0x14(%rax),%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movss  0x1c(%rax),%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movss  0x20(%rax),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    -0x20(%rbp),%rdi
call   1050 <_matrix_2x2_determinant@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movss  0x14(%rax),%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movss  0x18(%rax),%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movss  0x20(%rax),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    -0x20(%rbp),%rdi
call   1050 <_matrix_2x2_determinant@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x4(%rax)
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movss  0x10(%rax),%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movss  0x18(%rax),%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movss  0x1c(%rax),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    -0x20(%rbp),%rdi
call   1050 <_matrix_2x2_determinant@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
movss  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movss  0x1c(%rax),%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movss  0x20(%rax),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    -0x20(%rbp),%rdi
call   1050 <_matrix_2x2_determinant@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0xc(%rax)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movss  0x18(%rax),%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movss  0x20(%rax),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    -0x20(%rbp),%rdi
call   1050 <_matrix_2x2_determinant@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x10(%rax)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movss  0x18(%rax),%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movss  0x1c(%rax),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    -0x20(%rbp),%rdi
call   1050 <_matrix_2x2_determinant@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x14(%rax)
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
movss  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movss  0x10(%rax),%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movss  0x14(%rax),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    -0x20(%rbp),%rdi
call   1050 <_matrix_2x2_determinant@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x18(%rax)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movss  0x14(%rax),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    -0x20(%rbp),%rdi
call   1050 <_matrix_2x2_determinant@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x1c(%rax)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movss  0x10(%rax),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    -0x20(%rbp),%rdi
call   1050 <_matrix_2x2_determinant@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x20(%rax)
mov    -0x10(%rbp),%rdi
movss  0xbf5(%rip),%xmm0
divss  -0x24(%rbp),%xmm0
call   1040 <_matrix_3x3_mul_constant@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_matrix_3x3_invert>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <_matrix_3x3_determinant@plt>
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1152 <_matrix_3x3_invert+0x22>
jnp    12b9 <_matrix_3x3_invert+0x189>
movsd  0x10(%rbx),%xmm1
movhps 0x1c(%rbx),%xmm1
movaps %xmm1,(%rsp)
mov    %rsp,%r15
mov    %r15,%rdi
movss  %xmm0,0x1c(%rsp)
call   1050 <_matrix_2x2_determinant@plt>
movss  %xmm0,(%r14)
movss  0xc(%rbx),%xmm0
movss  %xmm0,(%rsp)
movss  0x14(%rbx),%xmm0
movss  %xmm0,0x4(%rsp)
movss  0x18(%rbx),%xmm0
movss  %xmm0,0x8(%rsp)
movss  0x20(%rbx),%xmm0
movss  %xmm0,0xc(%rsp)
mov    %r15,%rdi
call   1050 <_matrix_2x2_determinant@plt>
movss  %xmm0,0x4(%r14)
movsd  0xc(%rbx),%xmm0
movhps 0x18(%rbx),%xmm0
movaps %xmm0,(%rsp)
mov    %r15,%rdi
call   1050 <_matrix_2x2_determinant@plt>
movss  %xmm0,0x8(%r14)
movsd  0x4(%rbx),%xmm0
movhps 0x1c(%rbx),%xmm0
movaps %xmm0,(%rsp)
mov    %r15,%rdi
call   1050 <_matrix_2x2_determinant@plt>
movss  %xmm0,0xc(%r14)
movss  (%rbx),%xmm0
movss  %xmm0,(%rsp)
movss  0x8(%rbx),%xmm0
movss  %xmm0,0x4(%rsp)
movss  0x18(%rbx),%xmm0
movss  %xmm0,0x8(%rsp)
movss  0x20(%rbx),%xmm0
movss  %xmm0,0xc(%rsp)
mov    %r15,%rdi
call   1050 <_matrix_2x2_determinant@plt>
movss  %xmm0,0x10(%r14)
movsd  (%rbx),%xmm0
movhps 0x18(%rbx),%xmm0
movaps %xmm0,(%rsp)
mov    %r15,%rdi
call   1050 <_matrix_2x2_determinant@plt>
movss  %xmm0,0x14(%r14)
movsd  0x4(%rbx),%xmm0
movhps 0x10(%rbx),%xmm0
movaps %xmm0,(%rsp)
mov    %r15,%rdi
call   1050 <_matrix_2x2_determinant@plt>
movss  %xmm0,0x18(%r14)
movss  (%rbx),%xmm0
movss  %xmm0,(%rsp)
movss  0x8(%rbx),%xmm0
movss  %xmm0,0x4(%rsp)
movss  0xc(%rbx),%xmm0
movss  %xmm0,0x8(%rsp)
movss  0x14(%rbx),%xmm0
movss  %xmm0,0xc(%rsp)
mov    %r15,%rdi
call   1050 <_matrix_2x2_determinant@plt>
movss  %xmm0,0x1c(%r14)
movsd  (%rbx),%xmm0
movhps 0xc(%rbx),%xmm0
movaps %xmm0,(%rsp)
mov    %r15,%rdi
call   1050 <_matrix_2x2_determinant@plt>
movss  %xmm0,0x20(%r14)
movss  0xd55(%rip),%xmm0
divss  0x1c(%rsp),%xmm0
mov    %r14,%rdi
call   1040 <_matrix_3x3_mul_constant@plt>
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define void @_matrix_3x3_invert([3 x float]* %0, [3 x float]* %1) {
%3 = alloca <4 x float>
%4 = bitcast <4 x float>* %3 to i8*
%5 = bitcast [3 x float]* %0 to float**
%6 = tail call float @_matrix_3x3_determinant(float** %5)
%7 = fcmp oeq float %6, 0.000000e+00
br i1 %7, label %86, label %8
8: ; preds = %2
%9 = getelementptr inbounds [3 x float], [3 x float]* %0, i64 1, i64 1
%10 = getelementptr inbounds <4 x float>, <4 x float>* %3, i64 0, i64 0
%11 = getelementptr inbounds [3 x float], [3 x float]* %0, i64 1, i64 2
%12 = bitcast float* %9 to <2 x float>*
%13 = load <2 x float>, <2 x float>* %12
%14 = getelementptr inbounds <4 x float>, <4 x float>* %3, i64 0, i64 1
%15 = getelementptr inbounds [3 x float], [3 x float]* %0, i64 2, i64 1
%16 = getelementptr inbounds <4 x float>, <4 x float>* %3, i64 0, i64 2
%17 = getelementptr inbounds [3 x float], [3 x float]* %0, i64 2, i64 2
%18 = bitcast float* %15 to <2 x float>*
%19 = load <2 x float>, <2 x float>* %18
%20 = getelementptr inbounds <4 x float>, <4 x float>* %3, i64 0, i64 3
%21 = shufflevector <2 x float> %13, <2 x float> %19, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
store <4 x float> %21, <4 x float>* %3
%22 = bitcast <4 x float>* %3 to float**
%23 = call float @_matrix_2x2_determinant(float** %22)
%24 = getelementptr inbounds [3 x float], [3 x float]* %1, i64 0, i64 0
store float %23, float* %24
%25 = getelementptr inbounds [3 x float], [3 x float]* %0, i64 1, i64 0
%26 = load float, float* %25
store float %26, float* %10
%27 = load float, float* %11
store float %27, float* %14
%28 = getelementptr inbounds [3 x float], [3 x float]* %0, i64 2, i64 0
%29 = load float, float* %28
store float %29, float* %16
%30 = load float, float* %17
store float %30, float* %20
%31 = call float @_matrix_2x2_determinant(float** %22)
%32 = getelementptr inbounds [3 x float], [3 x float]* %1, i64 0, i64 1
store float %31, float* %32
%33 = bitcast float* %25 to <2 x float>*
%34 = load <2 x float>, <2 x float>* %33
%35 = bitcast float* %28 to <2 x float>*
%36 = load <2 x float>, <2 x float>* %35
%37 = shufflevector <2 x float> %34, <2 x float> %36, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
store <4 x float> %37, <4 x float>* %3
%38 = call float @_matrix_2x2_determinant(float** %22)
%39 = getelementptr inbounds [3 x float], [3 x float]* %1, i64 0, i64 2
store float %38, float* %39
%40 = getelementptr inbounds [3 x float], [3 x float]* %0, i64 0, i64 1
%41 = getelementptr inbounds [3 x float], [3 x float]* %0, i64 0, i64 2
%42 = bitcast float* %40 to <2 x float>*
%43 = load <2 x float>, <2 x float>* %42
%44 = bitcast float* %15 to <2 x float>*
%45 = load <2 x float>, <2 x float>* %44
%46 = shufflevector <2 x float> %43, <2 x float> %45, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
store <4 x float> %46, <4 x float>* %3
%47 = call float @_matrix_2x2_determinant(float** %22)
%48 = getelementptr inbounds [3 x float], [3 x float]* %1, i64 1, i64 0
store float %47, float* %48
%49 = getelementptr inbounds [3 x float], [3 x float]* %0, i64 0, i64 0
%50 = load float, float* %49
store float %50, float* %10
%51 = load float, float* %41
store float %51, float* %14
%52 = load float, float* %28
store float %52, float* %16
%53 = load float, float* %17
store float %53, float* %20
%54 = call float @_matrix_2x2_determinant(float** %22)
%55 = getelementptr inbounds [3 x float], [3 x float]* %1, i64 1, i64 1
store float %54, float* %55
%56 = bitcast [3 x float]* %0 to <2 x float>*
%57 = load <2 x float>, <2 x float>* %56
%58 = bitcast float* %28 to <2 x float>*
%59 = load <2 x float>, <2 x float>* %58
%60 = shufflevector <2 x float> %57, <2 x float> %59, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
store <4 x float> %60, <4 x float>* %3
%61 = call float @_matrix_2x2_determinant(float** %22)
%62 = getelementptr inbounds [3 x float], [3 x float]* %1, i64 1, i64 2
store float %61, float* %62
%63 = bitcast float* %40 to <2 x float>*
%64 = load <2 x float>, <2 x float>* %63
%65 = bitcast float* %9 to <2 x float>*
%66 = load <2 x float>, <2 x float>* %65
%67 = shufflevector <2 x float> %64, <2 x float> %66, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
store <4 x float> %67, <4 x float>* %3
%68 = call float @_matrix_2x2_determinant(float** %22)
%69 = getelementptr inbounds [3 x float], [3 x float]* %1, i64 2, i64 0
store float %68, float* %69
%70 = load float, float* %49
store float %70, float* %10
%71 = load float, float* %41
store float %71, float* %14
%72 = load float, float* %25
store float %72, float* %16
%73 = load float, float* %11
store float %73, float* %20
%74 = call float @_matrix_2x2_determinant(float** %22)
%75 = getelementptr inbounds [3 x float], [3 x float]* %1, i64 2, i64 1
store float %74, float* %75
%76 = bitcast [3 x float]* %0 to <2 x float>*
%77 = load <2 x float>, <2 x float>* %76
%78 = bitcast float* %25 to <2 x float>*
%79 = load <2 x float>, <2 x float>* %78
%80 = shufflevector <2 x float> %77, <2 x float> %79, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
store <4 x float> %80, <4 x float>* %3
%81 = call float @_matrix_2x2_determinant(float** %22)
%82 = getelementptr inbounds [3 x float], [3 x float]* %1, i64 2, i64 2
store float %81, float* %82
%83 = bitcast [3 x float]* %1 to float**
%84 = fdiv float 1.000000e+00, %6
%85 = call i32 @_matrix_3x3_mul_constant(float** %83, float %84)
br label %86
86: ; preds = %2, %8
ret void
}