void angle_Phi(x1, y1, z1, x2, y2, z2, x3, y3, z3, x0, y0, z0, Phi) double x1,
    y1, z1, x2, y2, z2, x3, y3, z3, x0, y0, z0, *Phi;
{
  double p1x, p1y, p1z, p2x, p2y, p2z, dx, dy, dz;
  double n1x, n2x, n1y, n2y, n1z, n2z, n1, n2, cosinus;
  double px, py, pz, cs;
  p1x = x0 - x2;
  p1y = y0 - y2;
  p1z = z0 - z2;
  dx = x3 - x2;
  dy = y3 - y2;
  dz = z3 - z2;
  p2x = x3 - x1;
  p2y = y3 - y1;
  p2z = z3 - z1;
  n1x = dy * p1z - dz * p1y;
  n1y = dz * p1x - dx * p1z;
  n1z = dx * p1y - dy * p1x;
  n1 = sqrt(n1x * n1x + n1y * n1y + n1z * n1z);
  n2x = dy * p2z - dz * p2y;
  n2y = dz * p2x - dx * p2z;
  n2z = dx * p2y - dy * p2x;
  n2 = sqrt(n2x * n2x + n2y * n2y + n2z * n2z);
  cosinus = (n1x * n2x + n1y * n2y + n1z * n2z) / (n1 * n2);
  *Phi = acos(cosinus) * 90. / acos(0.);
  px = -n1y * n2z + n1z * n2y;
  py = -n1z * n2x + n1x * n2z;
  pz = -n1x * n2y + n1y * n2x;
  cs = px * dx + py * dy + pz * dz;
  if (cs < 0.)
    *Phi = 360. - *Phi;
}


x86 assembly (clang, -O0):
<angle_Phi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movsd  0x28(%rbp),%xmm8
movsd  0x20(%rbp),%xmm8
movsd  0x18(%rbp),%xmm8
movsd  0x10(%rbp),%xmm8
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
mov    %rdi,-0x48(%rbp)
movsd  0x18(%rbp),%xmm0
subsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0x20(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0x28(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x38(%rbp),%xmm0
subsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x40(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0x10(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
subsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0x10(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x88(%rbp),%xmm0
ff
movsd  -0x60(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
mulsd  -0x58(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x50(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  -0x60(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
mulsd  -0x50(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x98(%rbp),%xmm1
ff
movsd  -0x98(%rbp),%xmm2
ff
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  -0xa8(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
movsd  -0xb8(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1040 <sqrt@plt>
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  -0x78(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
mulsd  -0x70(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x68(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  -0x78(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
mulsd  -0x68(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xa0(%rbp),%xmm1
ff
movsd  -0xa0(%rbp),%xmm2
ff
movsd  -0xb0(%rbp),%xmm0
ff
mulsd  -0xb0(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xc0(%rbp),%xmm0
ff
movsd  -0xc0(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1040 <sqrt@plt>
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x98(%rbp),%xmm1
ff
movsd  -0xa0(%rbp),%xmm2
ff
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  -0xb0(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
movsd  -0xc0(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0xc8(%rbp),%xmm1
ff
mulsd  -0xd0(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
call   1030 <acos@plt>
movsd  0xb7f(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
xorps  %xmm0,%xmm0
call   1030 <acos@plt>
movaps %xmm0,%xmm1
movsd  -0x100(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0xa8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0xc0(%rbp),%xmm2
ff
movsd  -0xb8(%rbp),%xmm1
ff
mulsd  -0xb0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0xa0(%rbp),%xmm2
ff
movsd  -0x98(%rbp),%xmm1
ff
mulsd  -0xc0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0xb0(%rbp),%xmm2
ff
movsd  -0xa8(%rbp),%xmm1
ff
mulsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xe0(%rbp),%xmm1
ff
movsd  -0x80(%rbp),%xmm2
movsd  -0xe8(%rbp),%xmm0
ff
mulsd  -0x88(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xf0(%rbp),%xmm0
ff
movsd  -0x90(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
xorps  %xmm0,%xmm0
ucomisd -0xf8(%rbp),%xmm0
ff
jbe    15ef <angle_Phi+0x4cf>
mov    -0x48(%rbp),%rax
movsd  0xa25(%rip),%xmm0
subsd  (%rax),%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<angle_Phi>:
push   %rbx
sub    $0xa0,%rsp
mov    %rdi,%rbx
movapd %xmm6,%xmm8
subsd  %xmm3,%xmm8
movapd %xmm7,%xmm9
movhpd 0xb0(%rsp),%xmm9
unpcklpd %xmm4,%xmm0
unpcklpd %xmm5,%xmm4
subpd  %xmm4,%xmm9
movhpd 0xc0(%rsp),%xmm6
subpd  %xmm0,%xmm6
movhpd 0xc8(%rsp),%xmm7
unpcklpd %xmm5,%xmm1
subpd  %xmm1,%xmm7
movapd 0xb0(%rsp),%xmm0
unpcklpd %xmm3,%xmm2
subpd  %xmm2,%xmm0
movapd %xmm9,%xmm1
unpckhpd %xmm9,%xmm1
movapd %xmm1,0x70(%rsp)
movapd %xmm9,%xmm5
shufpd $0x1,%xmm8,%xmm5
movapd 0xe5d(%rip),%xmm2
movapd %xmm5,%xmm1
xorpd  %xmm2,%xmm1
xorpd  %xmm9,%xmm2
movapd %xmm8,0x90(%rsp)
unpcklpd %xmm9,%xmm8
mulpd  %xmm7,%xmm8
mulpd  %xmm5,%xmm7
movapd %xmm9,0x80(%rsp)
mulpd  %xmm0,%xmm9
subpd  %xmm7,%xmm9
movapd %xmm9,(%rsp)
movapd %xmm9,%xmm3
unpckhpd %xmm9,%xmm3
movapd %xmm3,0x60(%rsp)
mulsd  %xmm3,%xmm3
movapd %xmm2,%xmm4
unpcklpd %xmm1,%xmm4
mulpd  %xmm6,%xmm4
addpd  %xmm4,%xmm8
movapd %xmm8,0x10(%rsp)
movapd %xmm8,%xmm4
unpckhpd %xmm8,%xmm4
movapd %xmm4,0x50(%rsp)
mulsd  %xmm4,%xmm4
addsd  %xmm3,%xmm4
shufpd $0x1,%xmm2,%xmm1
mulpd  %xmm0,%xmm1
mulpd  %xmm6,%xmm5
addpd  %xmm1,%xmm5
movapd %xmm5,0x20(%rsp)
movapd %xmm5,%xmm0
unpckhpd %xmm5,%xmm0
movapd %xmm0,0x40(%rsp)
mulsd  %xmm0,%xmm0
addsd  %xmm4,%xmm0
xorpd  %xmm3,%xmm3
ucomisd %xmm3,%xmm0
jb     1266 <angle_Phi+0x146>
xorps  %xmm2,%xmm2
sqrtsd %xmm0,%xmm2
jmp    1273 <angle_Phi+0x153>
call   1040 <sqrt@plt>
xorpd  %xmm3,%xmm3
movapd %xmm0,%xmm2
movapd 0x20(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movapd (%rsp),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movapd 0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
ucomisd %xmm3,%xmm0
jb     12a4 <angle_Phi+0x184>
sqrtsd %xmm0,%xmm0
jmp    12b5 <angle_Phi+0x195>
movsd  %xmm2,0x38(%rsp)
call   1040 <sqrt@plt>
movsd  0x38(%rsp),%xmm2
mulsd  %xmm0,%xmm2
movapd 0x20(%rsp),%xmm0
mulsd  0x60(%rsp),%xmm0
movapd 0x50(%rsp),%xmm1
mulsd  (%rsp),%xmm1
addsd  %xmm0,%xmm1
movapd 0x40(%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  %xmm1,%xmm0
divsd  %xmm2,%xmm0
call   1030 <acos@plt>
mulsd  0xd1b(%rip),%xmm0
divsd  0xd1b(%rip),%xmm0
movapd 0x20(%rsp),%xmm4
movapd %xmm4,%xmm1
movapd 0x40(%rsp),%xmm7
mulsd  %xmm7,%xmm1
movapd 0x60(%rsp),%xmm3
movapd %xmm3,%xmm2
movapd 0x10(%rsp),%xmm5
mulsd  %xmm5,%xmm2
subsd  %xmm2,%xmm1
movapd 0x50(%rsp),%xmm2
mulsd  %xmm2,%xmm5
movapd (%rsp),%xmm6
mulsd  %xmm6,%xmm7
subsd  %xmm7,%xmm5
mulsd  %xmm6,%xmm3
mulsd  %xmm4,%xmm2
subsd  %xmm2,%xmm3
movapd 0x80(%rsp),%xmm2
mulsd  %xmm5,%xmm2
mulsd  0x90(%rsp),%xmm1
addsd  %xmm2,%xmm1
mulsd  0x70(%rsp),%xmm3
addsd  %xmm1,%xmm3
movsd  0xca8(%rip),%xmm1
subsd  %xmm0,%xmm1
xorpd  %xmm2,%xmm2
cmpltsd %xmm2,%xmm3
movapd %xmm3,%xmm2
andnpd %xmm0,%xmm2
andpd  %xmm1,%xmm3
orpd   %xmm2,%xmm3
movlpd %xmm3,(%rbx)
add    $0xa0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @angle_Phi(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10, double %11, double* %12) {
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double*
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca double
%33 = alloca double
%34 = alloca double
%35 = alloca double
%36 = alloca double
%37 = alloca double
%38 = alloca double
%39 = alloca double
%40 = alloca double
%41 = alloca double
%42 = alloca double
%43 = alloca double
%44 = alloca double
%45 = alloca double
%46 = alloca double
%47 = alloca double
%48 = alloca double
store double %0, double* %14
store double %1, double* %15
store double %2, double* %16
store double %3, double* %17
store double %4, double* %18
store double %5, double* %19
store double %6, double* %20
store double %7, double* %21
store double %8, double* %22
store double %9, double* %23
store double %10, double* %24
store double %11, double* %25
store double* %12, double** %26
%49 = load double, double* %23
%50 = load double, double* %17
%51 = fsub double %49, %50
store double %51, double* %27
%52 = load double, double* %24
%53 = load double, double* %18
%54 = fsub double %52, %53
store double %54, double* %28
%55 = load double, double* %25
%56 = load double, double* %19
%57 = fsub double %55, %56
store double %57, double* %29
%58 = load double, double* %20
%59 = load double, double* %17
%60 = fsub double %58, %59
store double %60, double* %33
%61 = load double, double* %21
%62 = load double, double* %18
%63 = fsub double %61, %62
store double %63, double* %34
%64 = load double, double* %22
%65 = load double, double* %19
%66 = fsub double %64, %65
store double %66, double* %35
%67 = load double, double* %20
%68 = load double, double* %14
%69 = fsub double %67, %68
store double %69, double* %30
%70 = load double, double* %21
%71 = load double, double* %15
%72 = fsub double %70, %71
store double %72, double* %31
%73 = load double, double* %22
%74 = load double, double* %16
%75 = fsub double %73, %74
store double %75, double* %32
%76 = load double, double* %34
%77 = load double, double* %29
%78 = load double, double* %35
%79 = load double, double* %28
%80 = fmul double %78, %79
%81 = fneg double %80
%82 = call double @llvm.fmuladd.f64(double %76, double %77, double %81)
store double %82, double* %36
%83 = load double, double* %35
%84 = load double, double* %27
%85 = load double, double* %33
%86 = load double, double* %29
%87 = fmul double %85, %86
%88 = fneg double %87
%89 = call double @llvm.fmuladd.f64(double %83, double %84, double %88)
store double %89, double* %38
%90 = load double, double* %33
%91 = load double, double* %28
%92 = load double, double* %34
%93 = load double, double* %27
%94 = fmul double %92, %93
%95 = fneg double %94
%96 = call double @llvm.fmuladd.f64(double %90, double %91, double %95)
store double %96, double* %40
%97 = load double, double* %36
%98 = load double, double* %36
%99 = load double, double* %38
%100 = load double, double* %38
%101 = fmul double %99, %100
%102 = call double @llvm.fmuladd.f64(double %97, double %98, double %101)
%103 = load double, double* %40
%104 = load double, double* %40
%105 = call double @llvm.fmuladd.f64(double %103, double %104, double %102)
%106 = call double @sqrt(double %105)
store double %106, double* %42
%107 = load double, double* %34
%108 = load double, double* %32
%109 = load double, double* %35
%110 = load double, double* %31
%111 = fmul double %109, %110
%112 = fneg double %111
%113 = call double @llvm.fmuladd.f64(double %107, double %108, double %112)
store double %113, double* %37
%114 = load double, double* %35
%115 = load double, double* %30
%116 = load double, double* %33
%117 = load double, double* %32
%118 = fmul double %116, %117
%119 = fneg double %118
%120 = call double @llvm.fmuladd.f64(double %114, double %115, double %119)
store double %120, double* %39
%121 = load double, double* %33
%122 = load double, double* %31
%123 = load double, double* %34
%124 = load double, double* %30
%125 = fmul double %123, %124
%126 = fneg double %125
%127 = call double @llvm.fmuladd.f64(double %121, double %122, double %126)
store double %127, double* %41
%128 = load double, double* %37
%129 = load double, double* %37
%130 = load double, double* %39
%131 = load double, double* %39
%132 = fmul double %130, %131
%133 = call double @llvm.fmuladd.f64(double %128, double %129, double %132)
%134 = load double, double* %41
%135 = load double, double* %41
%136 = call double @llvm.fmuladd.f64(double %134, double %135, double %133)
%137 = call double @sqrt(double %136)
store double %137, double* %43
%138 = load double, double* %36
%139 = load double, double* %37
%140 = load double, double* %38
%141 = load double, double* %39
%142 = fmul double %140, %141
%143 = call double @llvm.fmuladd.f64(double %138, double %139, double %142)
%144 = load double, double* %40
%145 = load double, double* %41
%146 = call double @llvm.fmuladd.f64(double %144, double %145, double %143)
%147 = load double, double* %42
%148 = load double, double* %43
%149 = fmul double %147, %148
%150 = fdiv double %146, %149
store double %150, double* %44
%151 = load double, double* %44
%152 = call double @acos(double %151)
%153 = fmul double %152, 9.000000e+01
%154 = call double @acos(double 0.000000e+00)
%155 = fdiv double %153, %154
%156 = load double*, double** %26
store double %155, double* %156
%157 = load double, double* %38
%158 = fneg double %157
%159 = load double, double* %41
%160 = load double, double* %40
%161 = load double, double* %39
%162 = fmul double %160, %161
%163 = call double @llvm.fmuladd.f64(double %158, double %159, double %162)
store double %163, double* %45
%164 = load double, double* %40
%165 = fneg double %164
%166 = load double, double* %37
%167 = load double, double* %36
%168 = load double, double* %41
%169 = fmul double %167, %168
%170 = call double @llvm.fmuladd.f64(double %165, double %166, double %169)
store double %170, double* %46
%171 = load double, double* %36
%172 = fneg double %171
%173 = load double, double* %39
%174 = load double, double* %38
%175 = load double, double* %37
%176 = fmul double %174, %175
%177 = call double @llvm.fmuladd.f64(double %172, double %173, double %176)
store double %177, double* %47
%178 = load double, double* %45
%179 = load double, double* %33
%180 = load double, double* %46
%181 = load double, double* %34
%182 = fmul double %180, %181
%183 = call double @llvm.fmuladd.f64(double %178, double %179, double %182)
%184 = load double, double* %47
%185 = load double, double* %35
%186 = call double @llvm.fmuladd.f64(double %184, double %185, double %183)
store double %186, double* %48
%187 = load double, double* %48
%188 = fcmp olt double %187, 0.000000e+00
br i1 %188, label %189, label %194
189: ; preds = %13
%190 = load double*, double** %26
%191 = load double, double* %190
%192 = fsub double 3.600000e+02, %191
%193 = load double*, double** %26
store double %192, double* %193
br label %194
194: ; preds = %189, %13
ret void
}

LLVM IR (-O2):
define void @angle_Phi(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10, double %11, double* nocapture writeonly %12) {
%14 = fsub double %6, %3
%15 = insertelement <2 x double> poison, double %7, i64 0
%16 = insertelement <2 x double> %15, double %8, i64 1
%17 = insertelement <2 x double> poison, double %4, i64 0
%18 = insertelement <2 x double> %17, double %5, i64 1
%19 = fsub <2 x double> %16, %18
%20 = insertelement <2 x double> poison, double %6, i64 0
%21 = insertelement <2 x double> %20, double %10, i64 1
%22 = insertelement <2 x double> poison, double %0, i64 0
%23 = insertelement <2 x double> %22, double %4, i64 1
%24 = fsub <2 x double> %21, %23
%25 = insertelement <2 x double> %15, double %11, i64 1
%26 = insertelement <2 x double> poison, double %1, i64 0
%27 = insertelement <2 x double> %26, double %5, i64 1
%28 = fsub <2 x double> %25, %27
%29 = insertelement <2 x double> poison, double %8, i64 0
%30 = insertelement <2 x double> %29, double %9, i64 1
%31 = insertelement <2 x double> poison, double %2, i64 0
%32 = insertelement <2 x double> %31, double %3, i64 1
%33 = fsub <2 x double> %30, %32
%34 = extractelement <2 x double> %19, i64 1
%35 = insertelement <2 x double> poison, double %34, i64 0
%36 = insertelement <2 x double> %35, double %14, i64 1
%37 = fneg <2 x double> %36
%38 = extractelement <2 x double> %19, i64 0
%39 = fneg double %38
%40 = fmul <2 x double> %28, %37
%41 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %19, <2 x double> %33, <2 x double> %40)
%42 = extractelement <2 x double> %41, i64 1
%43 = fmul double %42, %42
%44 = insertelement <2 x double> poison, double %39, i64 0
%45 = shufflevector <2 x double> %44, <2 x double> %37, <2 x i32> <i32 0, i32 2>
%46 = fmul <2 x double> %24, %45
%47 = insertelement <2 x double> poison, double %14, i64 0
%48 = shufflevector <2 x double> %47, <2 x double> %19, <2 x i32> <i32 0, i32 2>
%49 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %48, <2 x double> %28, <2 x double> %46)
%50 = extractelement <2 x double> %49, i64 1
%51 = tail call double @llvm.fmuladd.f64(double %50, double %50, double %43)
%52 = extractelement <2 x double> %37, i64 1
%53 = insertelement <2 x double> poison, double %52, i64 0
%54 = insertelement <2 x double> %53, double %39, i64 1
%55 = fmul <2 x double> %33, %54
%56 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %36, <2 x double> %24, <2 x double> %55)
%57 = extractelement <2 x double> %56, i64 1
%58 = tail call double @llvm.fmuladd.f64(double %57, double %57, double %51)
%59 = tail call double @sqrt(double %58)
%60 = extractelement <2 x double> %56, i64 0
%61 = fmul <2 x double> %56, %56
%62 = extractelement <2 x double> %61, i64 0
%63 = extractelement <2 x double> %41, i64 0
%64 = tail call double @llvm.fmuladd.f64(double %63, double %63, double %62)
%65 = extractelement <2 x double> %49, i64 0
%66 = tail call double @llvm.fmuladd.f64(double %65, double %65, double %64)
%67 = tail call double @sqrt(double %66)
%68 = fmul double %60, %42
%69 = tail call double @llvm.fmuladd.f64(double %50, double %63, double %68)
%70 = tail call double @llvm.fmuladd.f64(double %57, double %65, double %69)
%71 = fmul double %59, %67
%72 = fdiv double %70, %71
%73 = tail call double @acos(double %72)
%74 = fmul double %73, 9.000000e+01
%75 = fdiv double %74, 0x3FF921FB54442D18
%76 = fneg double %42
%77 = fmul double %60, %57
%78 = tail call double @llvm.fmuladd.f64(double %76, double %65, double %77)
%79 = fneg double %57
%80 = fmul double %65, %50
%81 = tail call double @llvm.fmuladd.f64(double %79, double %63, double %80)
%82 = fneg double %50
%83 = fmul double %63, %42
%84 = tail call double @llvm.fmuladd.f64(double %82, double %60, double %83)
%85 = fmul double %38, %81
%86 = tail call double @llvm.fmuladd.f64(double %78, double %14, double %85)
%87 = tail call double @llvm.fmuladd.f64(double %84, double %34, double %86)
%88 = fcmp olt double %87, 0.000000e+00
%89 = fsub double 3.600000e+02, %75
%90 = select i1 %88, double %89, double %75
store double %90, double* %12
ret void
}