#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 M_PI;
double acos(float);
float sqrt(float);
int check_eigen_calc(float mm[2][2], float d[2], float v[2][2], int n,
                     float diff1[2], float diff2[2], float *length1,
                     float *length2, float *angle) {
  int status;
  status = 1;
  (*angle) = acos((v[0][0] * v[0][1] + v[1][0] * v[1][1]) /
                  (sqrt(v[0][0] * v[0][0] + v[1][0] * v[1][0]) *
                   sqrt(v[0][1] * v[0][1] + v[1][1] * v[1][1]))) *
             180.0 / M_PI;
  if ((*angle) < 89.5 && (*angle) > 90.5) {
    status = 0;
  }
  diff1[0] = mm[0][0] * v[0][0] + mm[0][1] * v[1][0];
  diff1[1] = mm[1][0] * v[0][0] + mm[1][1] * v[1][0];
  diff1[0] = diff1[0] - d[0] * v[0][0];
  diff1[1] = diff1[1] - d[0] * v[1][0];
  if (((*length1) = sqrt(diff1[0] * diff1[0] + diff1[1] * diff1[1])) > 0.1) {
    status = 0;
  }
  diff2[0] = mm[0][0] * v[0][1] + mm[0][1] * v[1][1];
  diff2[1] = mm[1][0] * v[0][1] + mm[1][1] * v[1][1];
  diff2[0] = diff2[0] - d[1] * v[0][1];
  diff2[1] = diff2[1] - d[1] * v[1][1];
  if (((*length2) = sqrt(diff2[0] * diff2[0] + diff2[1] * diff2[1])) > 0.1) {
    status = 0;
  }
  if (n > 50) {
    status = 0;
  }
  return (status);
}


x86 assembly (clang, -O0):
<check_eigen_calc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x1,-0x34(%rbp)
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  0x4(%rax),%xmm2
mov    -0x18(%rbp),%rax
movss  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulss  0xc(%rax),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x38(%rbp)
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x18(%rbp),%rax
movss  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulss  0x8(%rax),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1040 <sqrt@plt>
movss  %xmm0,-0x3c(%rbp)
mov    -0x18(%rbp),%rax
movss  0x4(%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  0x4(%rax),%xmm2
mov    -0x18(%rbp),%rax
movss  0xc(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulss  0xc(%rax),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1040 <sqrt@plt>
movss  -0x3c(%rbp),%xmm1
movaps %xmm0,%xmm2
movss  -0x38(%rbp),%xmm0
mulss  %xmm2,%xmm1
divss  %xmm1,%xmm0
call   1030 <acos@plt>
movsd  0xdff(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    0x2dd4(%rip),%rax
divsd  (%rax),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0x20(%rbp),%rax
movss  %xmm0,(%rax)
mov    0x20(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xdc8(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1267 <check_eigen_calc+0x147>
mov    0x20(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdba(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1267 <check_eigen_calc+0x147>
movl   $0x0,-0x34(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulss  0x8(%rax),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulss  0x8(%rax),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movss  %xmm0,0x4(%rax)
mov    -0x28(%rbp),%rax
movss  (%rax),%xmm1
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  0x8(%rax),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movss  %xmm0,0x4(%rax)
mov    -0x28(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x28(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x28(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x28(%rbp),%rax
mulss  0x4(%rax),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1040 <sqrt@plt>
mov    0x10(%rbp),%rax
movss  %xmm0,(%rax)
cvtss2sd %xmm0,%xmm0
movsd  0xc9b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    138e <check_eigen_calc+0x26e>
movl   $0x0,-0x34(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  0x4(%rax),%xmm2
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulss  0xc(%rax),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  0x4(%rax),%xmm2
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulss  0xc(%rax),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movss  %xmm0,0x4(%rax)
mov    -0x30(%rbp),%rax
movss  (%rax),%xmm1
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  0x4(%rax),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  0xc(%rax),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movss  %xmm0,0x4(%rax)
mov    -0x30(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x30(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x30(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x30(%rbp),%rax
mulss  0x4(%rax),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1040 <sqrt@plt>
mov    0x18(%rbp),%rax
movss  %xmm0,(%rax)
cvtss2sd %xmm0,%xmm0
movsd  0xb6f(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    14ba <check_eigen_calc+0x39a>
movl   $0x0,-0x34(%rbp)
cmpl   $0x32,-0x1c(%rbp)
jle    14cb <check_eigen_calc+0x3ab>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_eigen_calc>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9,%r15
mov    %r8,%r13
mov    %ecx,0x14(%rsp)
mov    %rdx,%rbp
mov    %rsi,%r12
mov    %rdi,%rbx
movss  (%rdx),%xmm0
movss  0x8(%rdx),%xmm1
movss  0xc(%rdx),%xmm4
mulss  %xmm1,%xmm4
movss  0x4(%rdx),%xmm2
mulss  %xmm0,%xmm2
mulss  %xmm1,%xmm1
mulss  %xmm0,%xmm0
addss  %xmm1,%xmm0
xorps  %xmm5,%xmm5
ucomiss %xmm5,%xmm0
jb     1176 <check_eigen_calc+0x56>
sqrtss %xmm0,%xmm3
jmp    1199 <check_eigen_calc+0x79>
movss  %xmm2,0x8(%rsp)
movss  %xmm4,0x4(%rsp)
call   1040 <sqrt@plt>
xorps  %xmm5,%xmm5
movss  0x4(%rsp),%xmm4
movss  0x8(%rsp),%xmm2
movaps %xmm0,%xmm3
addss  %xmm4,%xmm2
movss  0x4(%rbp),%xmm0
movss  0xc(%rbp),%xmm1
mulss  %xmm1,%xmm1
mulss  %xmm0,%xmm0
addss  %xmm1,%xmm0
ucomiss %xmm5,%xmm0
jb     11be <check_eigen_calc+0x9e>
sqrtss %xmm0,%xmm0
jmp    11db <check_eigen_calc+0xbb>
movss  %xmm2,0x8(%rsp)
movss  %xmm3,0x4(%rsp)
call   1040 <sqrt@plt>
movss  0x4(%rsp),%xmm3
movss  0x8(%rsp),%xmm2
mulss  %xmm0,%xmm3
divss  %xmm3,%xmm2
movaps %xmm2,%xmm0
call   1030 <acos@plt>
mulsd  0xe0d(%rip),%xmm0
mov    0x2dee(%rip),%rax
divsd  (%rax),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  0xe06(%rip),%xmm1
ucomiss %xmm0,%xmm1
setbe  %r14b
ucomiss 0xdfc(%rip),%xmm0
mov    0x60(%rsp),%rax
movss  %xmm0,(%rax)
setbe  %al
movss  (%rbx),%xmm0
movss  0x4(%rbx),%xmm1
mulss  0x8(%rbp),%xmm1
mulss  0x0(%rbp),%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,0x0(%r13)
movss  0x8(%rbx),%xmm1
movss  0xc(%rbx),%xmm2
mulss  0x8(%rbp),%xmm2
mulss  0x0(%rbp),%xmm1
addss  %xmm2,%xmm1
movss  %xmm1,0x4(%r13)
movss  (%r12),%xmm2
mulss  0x0(%rbp),%xmm2
subss  %xmm2,%xmm0
movss  %xmm0,0x0(%r13)
movss  (%r12),%xmm2
mulss  0x8(%rbp),%xmm2
subss  %xmm2,%xmm1
movss  %xmm1,0x4(%r13)
mulss  %xmm1,%xmm1
mulss  %xmm0,%xmm0
addss  %xmm1,%xmm0
xorps  %xmm4,%xmm4
ucomiss %xmm4,%xmm0
jb     12a6 <check_eigen_calc+0x186>
xorps  %xmm1,%xmm1
sqrtss %xmm0,%xmm1
jmp    12b7 <check_eigen_calc+0x197>
mov    %eax,%r13d
call   1040 <sqrt@plt>
mov    %r13d,%eax
xorps  %xmm4,%xmm4
movaps %xmm0,%xmm1
mov    0x58(%rsp),%r13
or     %al,%r14b
mov    0x50(%rsp),%rax
movss  %xmm1,(%rax)
movss  (%rbx),%xmm0
movss  0x4(%rbx),%xmm2
mulss  0xc(%rbp),%xmm2
mulss  0x4(%rbp),%xmm0
addss  %xmm2,%xmm0
movss  %xmm0,(%r15)
movss  0x8(%rbx),%xmm2
movss  0xc(%rbx),%xmm3
mulss  0xc(%rbp),%xmm3
mulss  0x4(%rbp),%xmm2
addss  %xmm3,%xmm2
movss  %xmm2,0x4(%r15)
movss  0x4(%r12),%xmm3
mulss  0x4(%rbp),%xmm3
subss  %xmm3,%xmm0
movss  %xmm0,(%r15)
movss  0x4(%r12),%xmm3
mulss  0xc(%rbp),%xmm3
cvtss2sd %xmm1,%xmm5
subss  %xmm3,%xmm2
movss  %xmm2,0x4(%r15)
mulss  %xmm2,%xmm2
mulss  %xmm0,%xmm0
addss  %xmm2,%xmm0
ucomiss %xmm4,%xmm0
jb     1348 <check_eigen_calc+0x228>
sqrtss %xmm0,%xmm0
jmp    1359 <check_eigen_calc+0x239>
movsd  %xmm5,0x8(%rsp)
call   1040 <sqrt@plt>
movsd  0x8(%rsp),%xmm5
movsd  0xca7(%rip),%xmm1
ucomisd %xmm1,%xmm5
setbe  %al
movss  %xmm0,0x0(%r13)
cvtss2sd %xmm0,%xmm0
ucomisd %xmm1,%xmm0
setbe  %cl
cmpl   $0x33,0x14(%rsp)
setl   %dl
and    %cl,%dl
and    %al,%dl
and    %r14b,%dl
movzbl %dl,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
define i32 @check_eigen_calc([2 x float]* nocapture %0, float* nocapture %1, [2 x float]* nocapture %2, i32 %3, float* nocapture %4, float* nocapture %5, float* nocapture writeonly %6, float* nocapture writeonly %7, float* nocapture writeonly %8) {
%10 = getelementptr inbounds [2 x float], [2 x float]* %2, i64 0, i64 0
%11 = load float, float* %10
%12 = getelementptr inbounds [2 x float], [2 x float]* %2, i64 0, i64 1
%13 = load float, float* %12
%14 = getelementptr inbounds [2 x float], [2 x float]* %2, i64 1, i64 0
%15 = load float, float* %14
%16 = getelementptr inbounds [2 x float], [2 x float]* %2, i64 1, i64 1
%17 = load float, float* %16
%18 = fmul float %15, %17
%19 = tail call float @llvm.fmuladd.f32(float %11, float %13, float %18)
%20 = fmul float %15, %15
%21 = tail call float @llvm.fmuladd.f32(float %11, float %11, float %20)
%22 = tail call float @sqrt(float %21)
%23 = load float, float* %12
%24 = load float, float* %16
%25 = fmul float %24, %24
%26 = tail call float @llvm.fmuladd.f32(float %23, float %23, float %25)
%27 = tail call float @sqrt(float %26)
%28 = fmul float %22, %27
%29 = fdiv float %19, %28
%30 = tail call double @acos(float %29)
%31 = fmul double %30, 1.800000e+02
%32 = load double, double* @M_PI
%33 = fdiv double %31, %32
%34 = fptrunc double %33 to float
store float %34, float* %8
%35 = fcmp uge float %34, 8.950000e+01
%36 = fcmp ule float %34, 9.050000e+01
%37 = or i1 %35, %36
%38 = getelementptr inbounds [2 x float], [2 x float]* %0, i64 0, i64 0
%39 = load float, float* %38
%40 = load float, float* %10
%41 = getelementptr inbounds [2 x float], [2 x float]* %0, i64 0, i64 1
%42 = load float, float* %41
%43 = load float, float* %14
%44 = fmul float %42, %43
%45 = tail call float @llvm.fmuladd.f32(float %39, float %40, float %44)
store float %45, float* %4
%46 = getelementptr inbounds [2 x float], [2 x float]* %0, i64 1, i64 0
%47 = load float, float* %46
%48 = load float, float* %10
%49 = getelementptr inbounds [2 x float], [2 x float]* %0, i64 1, i64 1
%50 = load float, float* %49
%51 = load float, float* %14
%52 = fmul float %50, %51
%53 = tail call float @llvm.fmuladd.f32(float %47, float %48, float %52)
%54 = getelementptr inbounds float, float* %4, i64 1
store float %53, float* %54
%55 = load float, float* %1
%56 = load float, float* %10
%57 = fneg float %55
%58 = tail call float @llvm.fmuladd.f32(float %57, float %56, float %45)
store float %58, float* %4
%59 = load float, float* %1
%60 = load float, float* %14
%61 = fneg float %59
%62 = tail call float @llvm.fmuladd.f32(float %61, float %60, float %53)
store float %62, float* %54
%63 = fmul float %62, %62
%64 = tail call float @llvm.fmuladd.f32(float %58, float %58, float %63)
%65 = tail call float @sqrt(float %64)
store float %65, float* %6
%66 = fpext float %65 to double
%67 = fcmp ule double %66, 1.000000e-01
%68 = load float, float* %38
%69 = load float, float* %12
%70 = load float, float* %41
%71 = load float, float* %16
%72 = fmul float %70, %71
%73 = tail call float @llvm.fmuladd.f32(float %68, float %69, float %72)
store float %73, float* %5
%74 = load float, float* %46
%75 = load float, float* %12
%76 = load float, float* %49
%77 = load float, float* %16
%78 = fmul float %76, %77
%79 = tail call float @llvm.fmuladd.f32(float %74, float %75, float %78)
%80 = getelementptr inbounds float, float* %5, i64 1
store float %79, float* %80
%81 = getelementptr inbounds float, float* %1, i64 1
%82 = load float, float* %81
%83 = load float, float* %12
%84 = fneg float %82
%85 = tail call float @llvm.fmuladd.f32(float %84, float %83, float %73)
store float %85, float* %5
%86 = load float, float* %81
%87 = load float, float* %16
%88 = fneg float %86
%89 = tail call float @llvm.fmuladd.f32(float %88, float %87, float %79)
store float %89, float* %80
%90 = fmul float %89, %89
%91 = tail call float @llvm.fmuladd.f32(float %85, float %85, float %90)
%92 = tail call float @sqrt(float %91)
store float %92, float* %7
%93 = fpext float %92 to double
%94 = fcmp ule double %93, 1.000000e-01
%95 = icmp slt i32 %3, 51
%96 = select i1 %95, i1 %94, i1 false
%97 = select i1 %96, i1 %67, i1 false
%98 = select i1 %97, i1 %37, i1 false
%99 = zext i1 %98 to i32
ret i32 %99
}