#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);
double sqrt(double);
int find2_point_depth(double fp[3][3], double point_o[3],
                      double view_point_d[3], double point[3]) {
  int i, j, flag_inside;
  double v_f[3], t, n_norm, v_norm, nv_sign;
  double n_f[4];
  flag_inside = 0;
  n_f[0] = (fp[1][1] - fp[0][1]) * (fp[2][2] - fp[0][2]) -
           (fp[2][1] - fp[0][1]) * (fp[1][2] - fp[0][2]);
  n_f[1] = -(fp[1][0] - fp[0][0]) * (fp[2][2] - fp[0][2]) +
           (fp[2][0] - fp[0][0]) * (fp[1][2] - fp[0][2]);
  n_f[2] = (fp[1][0] - fp[0][0]) * (fp[2][1] - fp[0][1]) -
           (fp[2][0] - fp[0][0]) * (fp[1][1] - fp[0][1]);
  n_norm = sqrt(n_f[0] * n_f[0] + n_f[1] * n_f[1] + n_f[2] * n_f[2]);
  if (fabs(n_norm) > 0.00000001) {
    for (j = 0; j < 3; j++)
      n_f[j] /= n_norm;
  }
  for (i = 0; i < 3; i++)
    v_f[i] = view_point_d[i] - point_o[i];
  v_norm = sqrt(v_f[0] * v_f[0] + v_f[1] * v_f[1] + v_f[2] * v_f[2]);
  if (fabs(v_norm) > 0.00000001) {
    for (i = 0; i < 3; i++)
      v_f[i] /= v_norm;
  }
  nv_sign = n_f[0] * v_f[0] + n_f[1] * v_f[1] + n_f[2] * v_f[2];
  if (nv_sign < 0.0) {
    for (i = 0; i < 3; i++)
      n_f[i] = -n_f[i];
  }
  n_f[3] = -n_f[0] * fp[0][0] - n_f[1] * fp[0][1] - n_f[2] * fp[0][2];
  if (fabs(n_f[0] * (point_o[0] - view_point_d[0]) +
           n_f[1] * (point_o[1] - view_point_d[1]) +
           n_f[2] * (point_o[2] - view_point_d[2])) > 0.00000001) {
    t = (-n_f[3] - n_f[0] * view_point_d[0] - n_f[1] * view_point_d[1] -
         n_f[2] * view_point_d[2]) /
        (n_f[0] * (point_o[0] - view_point_d[0]) +
         n_f[1] * (point_o[1] - view_point_d[1]) +
         n_f[2] * (point_o[2] - view_point_d[2]));
    if (t > -0.00000001) {
      for (j = 0; j < 3; j++)
        point[j] = view_point_d[j] + t * (point_o[j] - view_point_d[j]);
      flag_inside = 1;
    }
  }
  return (flag_inside);
}


x86 assembly (clang, -O0):
<find2_point_depth>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x8(%rbp),%rax
subsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x40(%rax),%xmm2
mov    -0x8(%rbp),%rax
subsd  0x10(%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  0x38(%rax),%xmm1
mov    -0x8(%rbp),%rax
subsd  0x8(%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm3
mov    -0x8(%rbp),%rax
subsd  0x10(%rax),%xmm3
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x8(%rbp),%rax
subsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x40(%rax),%xmm2
mov    -0x8(%rbp),%rax
subsd  0x10(%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm1
mov    -0x8(%rbp),%rax
subsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm3
mov    -0x8(%rbp),%rax
subsd  0x10(%rax),%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x8(%rbp),%rax
subsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x38(%rax),%xmm2
mov    -0x8(%rbp),%rax
subsd  0x8(%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm1
mov    -0x8(%rbp),%rax
subsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm3
mov    -0x8(%rbp),%rax
subsd  0x8(%rax),%xmm3
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x90(%rbp),%xmm1
ff
movsd  -0x90(%rbp),%xmm2
ff
movsd  -0x88(%rbp),%xmm0
ff
mulsd  -0x88(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movaps 0xd3c(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xd20(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    132d <find2_point_depth+0x21d>
movl   $0x0,-0x28(%rbp)
cmpl   $0x3,-0x28(%rbp)
jge    1328 <find2_point_depth+0x218>
movsd  -0x60(%rbp),%xmm1
movslq -0x28(%rbp),%rax
movsd  -0x90(%rbp,%rax,8),%xmm0
ff ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp,%rax,8)
ff ff
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12f1 <find2_point_depth+0x1e1>
jmp    132d <find2_point_depth+0x21d>
movl   $0x0,-0x24(%rbp)
cmpl   $0x3,-0x24(%rbp)
jge    1370 <find2_point_depth+0x260>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movslq -0x24(%rbp),%rax
movsd  %xmm0,-0x50(%rbp,%rax,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1334 <find2_point_depth+0x224>
movsd  -0x50(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
movaps 0xc5c(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xc40(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1407 <find2_point_depth+0x2f7>
movl   $0x0,-0x24(%rbp)
cmpl   $0x3,-0x24(%rbp)
jge    1402 <find2_point_depth+0x2f2>
movsd  -0x68(%rbp),%xmm1
movslq -0x24(%rbp),%rax
movsd  -0x50(%rbp,%rax,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp,%rax,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    13d1 <find2_point_depth+0x2c1>
jmp    1407 <find2_point_depth+0x2f7>
movsd  -0x90(%rbp),%xmm1
ff
movsd  -0x50(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm0
ff
mulsd  -0x48(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x70(%rbp),%xmm0
jbe    14a3 <find2_point_depth+0x393>
movl   $0x0,-0x24(%rbp)
cmpl   $0x3,-0x24(%rbp)
jge    149e <find2_point_depth+0x38e>
movslq -0x24(%rbp),%rax
movsd  -0x90(%rbp,%rax,8),%xmm0
ff ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movslq -0x24(%rbp),%rax
movsd  %xmm0,-0x90(%rbp,%rax,8)
ff ff
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1455 <find2_point_depth+0x345>
jmp    14a3 <find2_point_depth+0x393>
movsd  -0x90(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x8(%rbp),%rax
mulsd  0x8(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x90(%rbp),%xmm1
ff
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x18(%rbp),%rax
subsd  (%rax),%xmm2
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm3
mov    -0x18(%rbp),%rax
subsd  0x8(%rax),%xmm3
mulsd  %xmm3,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm2
mov    -0x18(%rbp),%rax
subsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movaps 0xa80(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xa64(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1737 <find2_point_depth+0x627>
movsd  -0x78(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  -0x90(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x88(%rbp),%xmm1
ff
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x90(%rbp),%xmm2
ff
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm3
mov    -0x18(%rbp),%rax
subsd  (%rax),%xmm3
movsd  -0x88(%rbp),%xmm1
ff
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm4
mov    -0x18(%rbp),%rax
subsd  0x8(%rax),%xmm4
mulsd  %xmm4,%xmm1
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x80(%rbp),%xmm1
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm3
mov    -0x18(%rbp),%rax
subsd  0x10(%rax),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  0x947(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1732 <find2_point_depth+0x622>
movl   $0x0,-0x28(%rbp)
cmpl   $0x3,-0x28(%rbp)
jge    172b <find2_point_depth+0x61b>
mov    -0x18(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x18(%rbp),%rax
movslq -0x28(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    16d2 <find2_point_depth+0x5c2>
movl   $0x1,-0x2c(%rbp)
jmp    1737 <find2_point_depth+0x627>
mov    -0x2c(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<find2_point_depth>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
movupd 0x8(%rdi),%xmm1
movupd 0x38(%rdi),%xmm0
subpd  %xmm1,%xmm0
movupd 0x20(%rdi),%xmm2
subpd  %xmm1,%xmm2
movapd %xmm0,%xmm8
unpckhpd %xmm0,%xmm8
mulsd  %xmm2,%xmm8
movsd  (%rdi),%xmm1
movapd 0xea7(%rip),%xmm5
movsd  0x30(%rdi),%xmm3
subsd  %xmm1,%xmm3
movapd %xmm3,%xmm4
xorpd  %xmm5,%xmm4
unpcklpd %xmm3,%xmm4
mulpd  %xmm2,%xmm4
unpckhpd %xmm2,%xmm2
mulsd  %xmm0,%xmm2
subsd  %xmm2,%xmm8
movsd  0x18(%rdi),%xmm3
subsd  %xmm1,%xmm3
movapd %xmm3,%xmm1
xorpd  %xmm5,%xmm1
unpcklpd %xmm1,%xmm3
mulpd  %xmm0,%xmm3
addpd  %xmm4,%xmm3
movapd %xmm3,%xmm0
mulpd  %xmm3,%xmm0
unpckhpd %xmm0,%xmm0
movapd %xmm8,%xmm1
mulsd  %xmm8,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm3,%xmm0
mulsd  %xmm3,%xmm0
addsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     11d2 <find2_point_depth+0xc2>
sqrtsd %xmm0,%xmm0
jmp    11ef <find2_point_depth+0xdf>
movapd %xmm8,0x10(%rsp)
movapd %xmm3,(%rsp)
call   1030 <sqrt@plt>
movapd (%rsp),%xmm3
movapd 0x10(%rsp),%xmm8
movapd 0xe19(%rip),%xmm1
andpd  %xmm0,%xmm1
ucomisd 0xe1d(%rip),%xmm1
jbe    1212 <find2_point_depth+0x102>
divsd  %xmm0,%xmm8
unpcklpd %xmm0,%xmm0
divpd  %xmm0,%xmm3
movupd (%r15),%xmm2
movupd (%r12),%xmm0
subpd  %xmm0,%xmm2
movsd  0x10(%r15),%xmm4
subsd  0x10(%r12),%xmm4
movapd %xmm2,%xmm0
mulpd  %xmm2,%xmm0
unpckhpd %xmm0,%xmm0
movapd %xmm2,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm4,%xmm0
mulsd  %xmm4,%xmm0
addsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1262 <find2_point_depth+0x152>
sqrtsd %xmm0,%xmm0
jmp    1297 <find2_point_depth+0x187>
movapd %xmm8,0x10(%rsp)
movapd %xmm4,0x30(%rsp)
movapd %xmm3,(%rsp)
movapd %xmm2,0x20(%rsp)
call   1030 <sqrt@plt>
movapd 0x20(%rsp),%xmm2
movapd (%rsp),%xmm3
movapd 0x30(%rsp),%xmm4
movapd 0x10(%rsp),%xmm8
movapd 0xd61(%rip),%xmm7
movapd 0xd69(%rip),%xmm1
andpd  %xmm0,%xmm1
ucomisd 0xd6d(%rip),%xmm1
jbe    12c1 <find2_point_depth+0x1b1>
divsd  %xmm0,%xmm4
unpcklpd %xmm0,%xmm0
divpd  %xmm0,%xmm2
movapd %xmm3,%xmm0
unpckhpd %xmm3,%xmm0
movapd %xmm3,%xmm1
mulpd  %xmm2,%xmm1
unpckhpd %xmm1,%xmm1
mulsd  %xmm8,%xmm2
addsd  %xmm1,%xmm2
mulsd  %xmm3,%xmm4
addsd  %xmm2,%xmm4
xorpd  %xmm1,%xmm1
ucomisd %xmm4,%xmm1
movapd %xmm3,%xmm2
xorpd  %xmm7,%xmm2
cmpltsd %xmm1,%xmm4
andpd  %xmm4,%xmm2
andnpd %xmm3,%xmm4
orpd   %xmm2,%xmm4
jbe    1312 <find2_point_depth+0x202>
xorpd  %xmm7,%xmm8
xorpd  %xmm7,%xmm0
movsd  (%r15),%xmm9
movsd  0x8(%r15),%xmm2
movsd  (%r12),%xmm3
movsd  0x8(%r12),%xmm1
subsd  %xmm9,%xmm3
subsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm8,%xmm6
mulsd  %xmm3,%xmm6
addsd  %xmm1,%xmm6
movsd  0x10(%r12),%xmm5
movsd  0x10(%r15),%xmm1
subsd  %xmm1,%xmm5
mulsd  %xmm4,%xmm5
addsd  %xmm6,%xmm5
movapd 0xcab(%rip),%xmm6
andpd  %xmm5,%xmm6
xor    %eax,%eax
ucomisd 0xcad(%rip),%xmm6
jbe    1423 <find2_point_depth+0x313>
xorpd  %xmm7,%xmm8
xorpd  %xmm7,%xmm0
xorpd  %xmm7,%xmm4
movsd  0x8(%rbx),%xmm6
mulsd  %xmm0,%xmm6
movsd  (%rbx),%xmm7
mulsd  %xmm8,%xmm7
addsd  %xmm6,%xmm7
movsd  0x10(%rbx),%xmm6
mulsd  %xmm4,%xmm6
addsd  %xmm7,%xmm6
mulsd  %xmm9,%xmm8
subsd  %xmm6,%xmm8
mulsd  %xmm0,%xmm2
addsd  %xmm8,%xmm2
mulsd  %xmm4,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm5,%xmm1
ucomisd 0xc58(%rip),%xmm1
jbe    1423 <find2_point_depth+0x313>
mulsd  %xmm1,%xmm3
addsd  %xmm9,%xmm3
movsd  %xmm3,(%r14)
movsd  0x8(%r15),%xmm0
movsd  0x8(%r12),%xmm2
subsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
movsd  %xmm2,0x8(%r14)
movsd  0x10(%r15),%xmm0
movsd  0x10(%r12),%xmm2
subsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
movsd  %xmm2,0x10(%r14)
mov    $0x1,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @find2_point_depth([3 x double]* %0, double* %1, double* %2, double* %3) {
%5 = alloca [3 x double]*
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca [3 x double]
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca [4 x double]
store [3 x double]* %0, [3 x double]** %5
store double* %1, double** %6
store double* %2, double** %7
store double* %3, double** %8
store i32 0, i32* %11
%18 = load [3 x double]*, [3 x double]** %5
%19 = getelementptr inbounds [3 x double], [3 x double]* %18, i64 1
%20 = getelementptr inbounds [3 x double], [3 x double]* %19, i64 0, i64 1
%21 = load double, double* %20
%22 = load [3 x double]*, [3 x double]** %5
%23 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0
%24 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 1
%25 = load double, double* %24
%26 = fsub double %21, %25
%27 = load [3 x double]*, [3 x double]** %5
%28 = getelementptr inbounds [3 x double], [3 x double]* %27, i64 2
%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]** %5
%32 = getelementptr inbounds [3 x double], [3 x double]* %31, i64 0
%33 = getelementptr inbounds [3 x double], [3 x double]* %32, i64 0, i64 2
%34 = load double, double* %33
%35 = fsub double %30, %34
%36 = load [3 x double]*, [3 x double]** %5
%37 = getelementptr inbounds [3 x double], [3 x double]* %36, i64 2
%38 = getelementptr inbounds [3 x double], [3 x double]* %37, i64 0, i64 1
%39 = load double, double* %38
%40 = load [3 x double]*, [3 x double]** %5
%41 = getelementptr inbounds [3 x double], [3 x double]* %40, i64 0
%42 = getelementptr inbounds [3 x double], [3 x double]* %41, i64 0, i64 1
%43 = load double, double* %42
%44 = fsub double %39, %43
%45 = load [3 x double]*, [3 x double]** %5
%46 = getelementptr inbounds [3 x double], [3 x double]* %45, i64 1
%47 = getelementptr inbounds [3 x double], [3 x double]* %46, i64 0, i64 2
%48 = load double, double* %47
%49 = load [3 x double]*, [3 x double]** %5
%50 = getelementptr inbounds [3 x double], [3 x double]* %49, i64 0
%51 = getelementptr inbounds [3 x double], [3 x double]* %50, i64 0, i64 2
%52 = load double, double* %51
%53 = fsub double %48, %52
%54 = fmul double %44, %53
%55 = fneg double %54
%56 = call double @llvm.fmuladd.f64(double %26, double %35, double %55)
%57 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
store double %56, double* %57
%58 = load [3 x double]*, [3 x double]** %5
%59 = getelementptr inbounds [3 x double], [3 x double]* %58, i64 1
%60 = getelementptr inbounds [3 x double], [3 x double]* %59, i64 0, i64 0
%61 = load double, double* %60
%62 = load [3 x double]*, [3 x double]** %5
%63 = getelementptr inbounds [3 x double], [3 x double]* %62, i64 0
%64 = getelementptr inbounds [3 x double], [3 x double]* %63, i64 0, i64 0
%65 = load double, double* %64
%66 = fsub double %61, %65
%67 = fneg double %66
%68 = load [3 x double]*, [3 x double]** %5
%69 = getelementptr inbounds [3 x double], [3 x double]* %68, i64 2
%70 = getelementptr inbounds [3 x double], [3 x double]* %69, i64 0, i64 2
%71 = load double, double* %70
%72 = load [3 x double]*, [3 x double]** %5
%73 = getelementptr inbounds [3 x double], [3 x double]* %72, i64 0
%74 = getelementptr inbounds [3 x double], [3 x double]* %73, i64 0, i64 2
%75 = load double, double* %74
%76 = fsub double %71, %75
%77 = load [3 x double]*, [3 x double]** %5
%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 = load [3 x double]*, [3 x double]** %5
%82 = getelementptr inbounds [3 x double], [3 x double]* %81, i64 0
%83 = getelementptr inbounds [3 x double], [3 x double]* %82, i64 0, i64 0
%84 = load double, double* %83
%85 = fsub double %80, %84
%86 = load [3 x double]*, [3 x double]** %5
%87 = getelementptr inbounds [3 x double], [3 x double]* %86, i64 1
%88 = getelementptr inbounds [3 x double], [3 x double]* %87, i64 0, i64 2
%89 = load double, double* %88
%90 = load [3 x double]*, [3 x double]** %5
%91 = getelementptr inbounds [3 x double], [3 x double]* %90, i64 0
%92 = getelementptr inbounds [3 x double], [3 x double]* %91, i64 0, i64 2
%93 = load double, double* %92
%94 = fsub double %89, %93
%95 = fmul double %85, %94
%96 = call double @llvm.fmuladd.f64(double %67, double %76, double %95)
%97 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
store double %96, double* %97
%98 = load [3 x double]*, [3 x double]** %5
%99 = getelementptr inbounds [3 x double], [3 x double]* %98, i64 1
%100 = getelementptr inbounds [3 x double], [3 x double]* %99, i64 0, i64 0
%101 = load double, double* %100
%102 = load [3 x double]*, [3 x double]** %5
%103 = getelementptr inbounds [3 x double], [3 x double]* %102, i64 0
%104 = getelementptr inbounds [3 x double], [3 x double]* %103, i64 0, i64 0
%105 = load double, double* %104
%106 = fsub double %101, %105
%107 = load [3 x double]*, [3 x double]** %5
%108 = getelementptr inbounds [3 x double], [3 x double]* %107, i64 2
%109 = getelementptr inbounds [3 x double], [3 x double]* %108, i64 0, i64 1
%110 = load double, double* %109
%111 = load [3 x double]*, [3 x double]** %5
%112 = getelementptr inbounds [3 x double], [3 x double]* %111, i64 0
%113 = getelementptr inbounds [3 x double], [3 x double]* %112, i64 0, i64 1
%114 = load double, double* %113
%115 = fsub double %110, %114
%116 = load [3 x double]*, [3 x double]** %5
%117 = getelementptr inbounds [3 x double], [3 x double]* %116, i64 2
%118 = getelementptr inbounds [3 x double], [3 x double]* %117, i64 0, i64 0
%119 = load double, double* %118
%120 = load [3 x double]*, [3 x double]** %5
%121 = getelementptr inbounds [3 x double], [3 x double]* %120, i64 0
%122 = getelementptr inbounds [3 x double], [3 x double]* %121, i64 0, i64 0
%123 = load double, double* %122
%124 = fsub double %119, %123
%125 = load [3 x double]*, [3 x double]** %5
%126 = getelementptr inbounds [3 x double], [3 x double]* %125, i64 1
%127 = getelementptr inbounds [3 x double], [3 x double]* %126, i64 0, i64 1
%128 = load double, double* %127
%129 = load [3 x double]*, [3 x double]** %5
%130 = getelementptr inbounds [3 x double], [3 x double]* %129, i64 0
%131 = getelementptr inbounds [3 x double], [3 x double]* %130, i64 0, i64 1
%132 = load double, double* %131
%133 = fsub double %128, %132
%134 = fmul double %124, %133
%135 = fneg double %134
%136 = call double @llvm.fmuladd.f64(double %106, double %115, double %135)
%137 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
store double %136, double* %137
%138 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%139 = load double, double* %138
%140 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%141 = load double, double* %140
%142 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
%143 = load double, double* %142
%144 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
%145 = load double, double* %144
%146 = fmul double %143, %145
%147 = call double @llvm.fmuladd.f64(double %139, double %141, double %146)
%148 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
%149 = load double, double* %148
%150 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
%151 = load double, double* %150
%152 = call double @llvm.fmuladd.f64(double %149, double %151, double %147)
%153 = call double @sqrt(double %152)
store double %153, double* %14
%154 = load double, double* %14
%155 = call double @llvm.fabs.f64(double %154)
%156 = fcmp ogt double %155, 1.000000e-08
br i1 %156, label %157, label %172
157: ; preds = %4
store i32 0, i32* %10
br label %158
158: ; preds = %168, %157
%159 = load i32, i32* %10
%160 = icmp slt i32 %159, 3
br i1 %160, label %161, label %171
161: ; preds = %158
%162 = load double, double* %14
%163 = load i32, i32* %10
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 %164
%166 = load double, double* %165
%167 = fdiv double %166, %162
store double %167, double* %165
br label %168
168: ; preds = %161
%169 = load i32, i32* %10
%170 = add nsw i32 %169, 1
store i32 %170, i32* %10
br label %158
171: ; preds = %158
br label %172
172: ; preds = %171, %4
store i32 0, i32* %9
br label %173
173: ; preds = %191, %172
%174 = load i32, i32* %9
%175 = icmp slt i32 %174, 3
br i1 %175, label %176, label %194
176: ; preds = %173
%177 = load double*, double** %7
%178 = load i32, i32* %9
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds double, double* %177, i64 %179
%181 = load double, double* %180
%182 = load double*, double** %6
%183 = load i32, i32* %9
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds double, double* %182, i64 %184
%186 = load double, double* %185
%187 = fsub double %181, %186
%188 = load i32, i32* %9
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 %189
store double %187, double* %190
br label %191
191: ; preds = %176
%192 = load i32, i32* %9
%193 = add nsw i32 %192, 1
store i32 %193, i32* %9
br label %173
194: ; preds = %173
%195 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 0
%196 = load double, double* %195
%197 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 0
%198 = load double, double* %197
%199 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 1
%200 = load double, double* %199
%201 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 1
%202 = load double, double* %201
%203 = fmul double %200, %202
%204 = call double @llvm.fmuladd.f64(double %196, double %198, double %203)
%205 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 2
%206 = load double, double* %205
%207 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 2
%208 = load double, double* %207
%209 = call double @llvm.fmuladd.f64(double %206, double %208, double %204)
%210 = call double @sqrt(double %209)
store double %210, double* %15
%211 = load double, double* %15
%212 = call double @llvm.fabs.f64(double %211)
%213 = fcmp ogt double %212, 1.000000e-08
br i1 %213, label %214, label %229
214: ; preds = %194
store i32 0, i32* %9
br label %215
215: ; preds = %225, %214
%216 = load i32, i32* %9
%217 = icmp slt i32 %216, 3
br i1 %217, label %218, label %228
218: ; preds = %215
%219 = load double, double* %15
%220 = load i32, i32* %9
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 %221
%223 = load double, double* %222
%224 = fdiv double %223, %219
store double %224, double* %222
br label %225
225: ; preds = %218
%226 = load i32, i32* %9
%227 = add nsw i32 %226, 1
store i32 %227, i32* %9
br label %215
228: ; preds = %215
br label %229
229: ; preds = %228, %194
%230 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%231 = load double, double* %230
%232 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 0
%233 = load double, double* %232
%234 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
%235 = load double, double* %234
%236 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 1
%237 = load double, double* %236
%238 = fmul double %235, %237
%239 = call double @llvm.fmuladd.f64(double %231, double %233, double %238)
%240 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
%241 = load double, double* %240
%242 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 2
%243 = load double, double* %242
%244 = call double @llvm.fmuladd.f64(double %241, double %243, double %239)
store double %244, double* %16
%245 = load double, double* %16
%246 = fcmp olt double %245, 0.000000e+00
br i1 %246, label %247, label %264
247: ; preds = %229
store i32 0, i32* %9
br label %248
248: ; preds = %260, %247
%249 = load i32, i32* %9
%250 = icmp slt i32 %249, 3
br i1 %250, label %251, label %263
251: ; preds = %248
%252 = load i32, i32* %9
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 %253
%255 = load double, double* %254
%256 = fneg double %255
%257 = load i32, i32* %9
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 %258
store double %256, double* %259
br label %260
260: ; preds = %251
%261 = load i32, i32* %9
%262 = add nsw i32 %261, 1
store i32 %262, i32* %9
br label %248
263: ; preds = %248
br label %264
264: ; preds = %263, %229
%265 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%266 = load double, double* %265
%267 = fneg double %266
%268 = load [3 x double]*, [3 x double]** %5
%269 = getelementptr inbounds [3 x double], [3 x double]* %268, i64 0
%270 = getelementptr inbounds [3 x double], [3 x double]* %269, i64 0, i64 0
%271 = load double, double* %270
%272 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
%273 = load double, double* %272
%274 = load [3 x double]*, [3 x double]** %5
%275 = getelementptr inbounds [3 x double], [3 x double]* %274, i64 0
%276 = getelementptr inbounds [3 x double], [3 x double]* %275, i64 0, i64 1
%277 = load double, double* %276
%278 = fmul double %273, %277
%279 = fneg double %278
%280 = call double @llvm.fmuladd.f64(double %267, double %271, double %279)
%281 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
%282 = load double, double* %281
%283 = load [3 x double]*, [3 x double]** %5
%284 = getelementptr inbounds [3 x double], [3 x double]* %283, i64 0
%285 = getelementptr inbounds [3 x double], [3 x double]* %284, i64 0, i64 2
%286 = load double, double* %285
%287 = fneg double %282
%288 = call double @llvm.fmuladd.f64(double %287, double %286, double %280)
%289 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 3
store double %288, double* %289
%290 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%291 = load double, double* %290
%292 = load double*, double** %6
%293 = getelementptr inbounds double, double* %292, i64 0
%294 = load double, double* %293
%295 = load double*, double** %7
%296 = getelementptr inbounds double, double* %295, i64 0
%297 = load double, double* %296
%298 = fsub double %294, %297
%299 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
%300 = load double, double* %299
%301 = load double*, double** %6
%302 = getelementptr inbounds double, double* %301, i64 1
%303 = load double, double* %302
%304 = load double*, double** %7
%305 = getelementptr inbounds double, double* %304, i64 1
%306 = load double, double* %305
%307 = fsub double %303, %306
%308 = fmul double %300, %307
%309 = call double @llvm.fmuladd.f64(double %291, double %298, double %308)
%310 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
%311 = load double, double* %310
%312 = load double*, double** %6
%313 = getelementptr inbounds double, double* %312, i64 2
%314 = load double, double* %313
%315 = load double*, double** %7
%316 = getelementptr inbounds double, double* %315, i64 2
%317 = load double, double* %316
%318 = fsub double %314, %317
%319 = call double @llvm.fmuladd.f64(double %311, double %318, double %309)
%320 = call double @llvm.fabs.f64(double %319)
%321 = fcmp ogt double %320, 1.000000e-08
br i1 %321, label %322, label %412
322: ; preds = %264
%323 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 3
%324 = load double, double* %323
%325 = fneg double %324
%326 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%327 = load double, double* %326
%328 = load double*, double** %7
%329 = getelementptr inbounds double, double* %328, i64 0
%330 = load double, double* %329
%331 = fneg double %327
%332 = call double @llvm.fmuladd.f64(double %331, double %330, double %325)
%333 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
%334 = load double, double* %333
%335 = load double*, double** %7
%336 = getelementptr inbounds double, double* %335, i64 1
%337 = load double, double* %336
%338 = fneg double %334
%339 = call double @llvm.fmuladd.f64(double %338, double %337, double %332)
%340 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
%341 = load double, double* %340
%342 = load double*, double** %7
%343 = getelementptr inbounds double, double* %342, i64 2
%344 = load double, double* %343
%345 = fneg double %341
%346 = call double @llvm.fmuladd.f64(double %345, double %344, double %339)
%347 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 0
%348 = load double, double* %347
%349 = load double*, double** %6
%350 = getelementptr inbounds double, double* %349, i64 0
%351 = load double, double* %350
%352 = load double*, double** %7
%353 = getelementptr inbounds double, double* %352, i64 0
%354 = load double, double* %353
%355 = fsub double %351, %354
%356 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 1
%357 = load double, double* %356
%358 = load double*, double** %6
%359 = getelementptr inbounds double, double* %358, i64 1
%360 = load double, double* %359
%361 = load double*, double** %7
%362 = getelementptr inbounds double, double* %361, i64 1
%363 = load double, double* %362
%364 = fsub double %360, %363
%365 = fmul double %357, %364
%366 = call double @llvm.fmuladd.f64(double %348, double %355, double %365)
%367 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 0, i64 2
%368 = load double, double* %367
%369 = load double*, double** %6
%370 = getelementptr inbounds double, double* %369, i64 2
%371 = load double, double* %370
%372 = load double*, double** %7
%373 = getelementptr inbounds double, double* %372, i64 2
%374 = load double, double* %373
%375 = fsub double %371, %374
%376 = call double @llvm.fmuladd.f64(double %368, double %375, double %366)
%377 = fdiv double %346, %376
store double %377, double* %13
%378 = load double, double* %13
%379 = fcmp ogt double %378, -1.000000e-08
br i1 %379, label %380, label %411
380: ; preds = %322
store i32 0, i32* %10
br label %381
381: ; preds = %407, %380
%382 = load i32, i32* %10
%383 = icmp slt i32 %382, 3
br i1 %383, label %384, label %410
384: ; preds = %381
%385 = load double*, double** %7
%386 = load i32, i32* %10
%387 = sext i32 %386 to i64
%388 = getelementptr inbounds double, double* %385, i64 %387
%389 = load double, double* %388
%390 = load double, double* %13
%391 = load double*, double** %6
%392 = load i32, i32* %10
%393 = sext i32 %392 to i64
%394 = getelementptr inbounds double, double* %391, i64 %393
%395 = load double, double* %394
%396 = load double*, double** %7
%397 = load i32, i32* %10
%398 = sext i32 %397 to i64
%399 = getelementptr inbounds double, double* %396, i64 %398
%400 = load double, double* %399
%401 = fsub double %395, %400
%402 = call double @llvm.fmuladd.f64(double %390, double %401, double %389)
%403 = load double*, double** %8
%404 = load i32, i32* %10
%405 = sext i32 %404 to i64
%406 = getelementptr inbounds double, double* %403, i64 %405
store double %402, double* %406
br label %407
407: ; preds = %384
%408 = load i32, i32* %10
%409 = add nsw i32 %408, 1
store i32 %409, i32* %10
br label %381
410: ; preds = %381
store i32 1, i32* %11
br label %411
411: ; preds = %410, %322
br label %412
412: ; preds = %411, %264
%413 = load i32, i32* %11
ret i32 %413
}

LLVM IR (-O2):
define i32 @find2_point_depth([3 x double]* nocapture %0, double* nocapture %1, double* nocapture %2, double* nocapture writeonly %3) {
%5 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 1, i64 1
%6 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 0, i64 1
%7 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 0, i64 2
%8 = bitcast double* %6 to <2 x double>*
%9 = load <2 x double>, <2 x double>* %8
%10 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 2, i64 1
%11 = bitcast double* %10 to <2 x double>*
%12 = load <2 x double>, <2 x double>* %11
%13 = fsub <2 x double> %12, %9
%14 = bitcast double* %5 to <2 x double>*
%15 = load <2 x double>, <2 x double>* %14
%16 = fsub <2 x double> %15, %9
%17 = extractelement <2 x double> %13, i64 0
%18 = fneg double %17
%19 = extractelement <2 x double> %16, i64 1
%20 = fmul double %19, %18
%21 = extractelement <2 x double> %13, i64 1
%22 = extractelement <2 x double> %16, i64 0
%23 = tail call double @llvm.fmuladd.f64(double %22, double %21, double %20)
%24 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 1, i64 0
%25 = load double, double* %24
%26 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 0, i64 0
%27 = load double, double* %26
%28 = fsub double %25, %27
%29 = fneg double %28
%30 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 2, i64 0
%31 = load double, double* %30
%32 = fsub double %31, %27
%33 = fneg double %32
%34 = insertelement <2 x double> poison, double %33, i64 0
%35 = insertelement <2 x double> %34, double %32, i64 1
%36 = fmul <2 x double> %16, %35
%37 = insertelement <2 x double> poison, double %28, i64 0
%38 = insertelement <2 x double> %37, double %29, i64 1
%39 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %38, <2 x double> %13, <2 x double> %36)
%40 = fmul <2 x double> %39, %39
%41 = extractelement <2 x double> %40, i64 1
%42 = tail call double @llvm.fmuladd.f64(double %23, double %23, double %41)
%43 = extractelement <2 x double> %39, i64 0
%44 = tail call double @llvm.fmuladd.f64(double %43, double %43, double %42)
%45 = tail call double @sqrt(double %44)
%46 = tail call double @llvm.fabs.f64(double %45)
%47 = fcmp ogt double %46, 1.000000e-08
br i1 %47, label %48, label %53
48: ; preds = %4
%49 = fdiv double %23, %45
%50 = insertelement <2 x double> poison, double %45, i64 0
%51 = shufflevector <2 x double> %50, <2 x double> poison, <2 x i32> zeroinitializer
%52 = fdiv <2 x double> %39, %51
br label %53
53: ; preds = %48, %4
%54 = phi double [ %49, %48 ], [ %23, %4 ]
%55 = phi <2 x double> [ %52, %48 ], [ %39, %4 ]
%56 = getelementptr inbounds double, double* %2, i64 1
%57 = bitcast double* %2 to <2 x double>*
%58 = load <2 x double>, <2 x double>* %57
%59 = getelementptr inbounds double, double* %1, i64 1
%60 = bitcast double* %1 to <2 x double>*
%61 = load <2 x double>, <2 x double>* %60
%62 = fsub <2 x double> %58, %61
%63 = getelementptr inbounds double, double* %2, i64 2
%64 = load double, double* %63
%65 = getelementptr inbounds double, double* %1, i64 2
%66 = load double, double* %65
%67 = fsub double %64, %66
%68 = fmul <2 x double> %62, %62
%69 = extractelement <2 x double> %68, i64 1
%70 = extractelement <2 x double> %62, i64 0
%71 = tail call double @llvm.fmuladd.f64(double %70, double %70, double %69)
%72 = tail call double @llvm.fmuladd.f64(double %67, double %67, double %71)
%73 = tail call double @sqrt(double %72)
%74 = tail call double @llvm.fabs.f64(double %73)
%75 = fcmp ogt double %74, 1.000000e-08
br i1 %75, label %76, label %81
76: ; preds = %53
%77 = insertelement <2 x double> poison, double %73, i64 0
%78 = shufflevector <2 x double> %77, <2 x double> poison, <2 x i32> zeroinitializer
%79 = fdiv <2 x double> %62, %78
%80 = fdiv double %67, %73
br label %81
81: ; preds = %76, %53
%82 = phi double [ %80, %76 ], [ %67, %53 ]
%83 = phi <2 x double> [ %79, %76 ], [ %62, %53 ]
%84 = extractelement <2 x double> %55, i64 1
%85 = fmul <2 x double> %55, %83
%86 = extractelement <2 x double> %85, i64 1
%87 = extractelement <2 x double> %83, i64 0
%88 = tail call double @llvm.fmuladd.f64(double %54, double %87, double %86)
%89 = extractelement <2 x double> %55, i64 0
%90 = tail call double @llvm.fmuladd.f64(double %89, double %82, double %88)
%91 = fcmp olt double %90, 0.000000e+00
%92 = fneg double %54
%93 = fneg double %84
%94 = fneg double %89
%95 = select i1 %91, double %94, double %89
%96 = select i1 %91, double %93, double %84
%97 = select i1 %91, double %92, double %54
%98 = fneg double %97
%99 = fneg double %96
%100 = fneg double %95
%101 = load double, double* %1
%102 = load double, double* %2
%103 = fsub double %101, %102
%104 = load double, double* %59
%105 = load double, double* %56
%106 = fsub double %104, %105
%107 = fmul double %96, %106
%108 = tail call double @llvm.fmuladd.f64(double %97, double %103, double %107)
%109 = load double, double* %65
%110 = load double, double* %63
%111 = fsub double %109, %110
%112 = tail call double @llvm.fmuladd.f64(double %95, double %111, double %108)
%113 = tail call double @llvm.fabs.f64(double %112)
%114 = fcmp ogt double %113, 1.000000e-08
br i1 %114, label %115, label %140
115: ; preds = %81
%116 = load double, double* %7
%117 = load double, double* %26
%118 = load double, double* %6
%119 = fmul double %118, %99
%120 = tail call double @llvm.fmuladd.f64(double %98, double %117, double %119)
%121 = tail call double @llvm.fmuladd.f64(double %100, double %116, double %120)
%122 = fneg double %121
%123 = tail call double @llvm.fmuladd.f64(double %98, double %102, double %122)
%124 = tail call double @llvm.fmuladd.f64(double %99, double %105, double %123)
%125 = tail call double @llvm.fmuladd.f64(double %100, double %110, double %124)
%126 = fdiv double %125, %112
%127 = fcmp ogt double %126, -1.000000e-08
br i1 %127, label %128, label %140
128: ; preds = %115
%129 = tail call double @llvm.fmuladd.f64(double %126, double %103, double %102)
store double %129, double* %3
%130 = load double, double* %56
%131 = load double, double* %59
%132 = fsub double %131, %130
%133 = tail call double @llvm.fmuladd.f64(double %126, double %132, double %130)
%134 = getelementptr inbounds double, double* %3, i64 1
store double %133, double* %134
%135 = load double, double* %63
%136 = load double, double* %65
%137 = fsub double %136, %135
%138 = tail call double @llvm.fmuladd.f64(double %126, double %137, double %135)
%139 = getelementptr inbounds double, double* %3, i64 2
store double %138, double* %139
br label %140
140: ; preds = %128, %115, %81
%141 = phi i32 [ 0, %115 ], [ 0, %81 ], [ 1, %128 ]
ret i32 %141
}