#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 atan2(double, double);
double cos(double);
double sin(double);
double sqrt(double);
void palPolmo(double elongm, double phim, double xp, double yp, double *elong,
              double *phi, double *daz) {
  double sel, cel, sph, cph, xm, ym, zm, xnm, ynm, znm, sxp, cxp, syp, cyp, zw,
      xt, yt, zt, xnt, ynt;
  sel = sin(elongm);
  cel = cos(elongm);
  sph = sin(phim);
  cph = cos(phim);
  xm = cel * cph;
  ym = sel * cph;
  zm = sph;
  sxp = sin(xp);
  cxp = cos(xp);
  syp = sin(yp);
  cyp = cos(yp);
  zw = (-ym * syp + zm * cyp);
  xt = xm * cxp - zw * sxp;
  yt = ym * cyp + zm * syp;
  zt = xm * sxp + zw * cxp;
  xnm = -sxp * cyp;
  ynm = syp;
  znm = cxp * cyp;
  cph = sqrt(xt * xt + yt * yt);
  if (cph == 0.0)
    xt = 1.0;
  sel = yt / cph;
  cel = xt / cph;
  if (xt != 0.0 || yt != 0.0) {
    *elong = atan2(yt, xt);
  } else {
    *elong = 0.0;
  }
  *phi = atan2(zt, cph);
  xnt = (xnm * cel + ynm * sel) * zt - znm * cph;
  ynt = -xnm * sel + ynm * cel;
  if (xnt != 0.0 || ynt != 0.0) {
    *daz = atan2(-ynt, -xnt);
  } else {
    *daz = 0.0;
  }
}


x86 assembly (clang, -O0):
<palPolmo>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
mov    %rdi,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1050 <cos@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1050 <cos@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x48(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
call   1050 <cos@plt>
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
call   1050 <cos@plt>
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0xa0(%rbp),%xmm2
ff
movsd  -0x70(%rbp),%xmm1
mulsd  -0xa8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  -0x98(%rbp),%xmm2
ff
movsd  -0xb0(%rbp),%xmm1
ff
mulsd  -0x90(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movsd  -0xa8(%rbp),%xmm2
ff
movsd  -0x70(%rbp),%xmm1
mulsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  -0x90(%rbp),%xmm2
ff
movsd  -0xb0(%rbp),%xmm1
ff
mulsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0x78(%rbp)
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x80(%rbp)
movsd  -0x98(%rbp),%xmm0
ff
mulsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
movsd  -0xb8(%rbp),%xmm2
ff
movsd  -0xc0(%rbp),%xmm1
ff
mulsd  -0xc0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    139e <palPolmo+0x25e>
jp     139e <palPolmo+0x25e>
movsd  0xc6a(%rip),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
divsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0xb8(%rbp),%xmm0
ff
divsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0xb8(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    13fd <palPolmo+0x2bd>
jp     13fd <palPolmo+0x2bd>
movsd  -0xc0(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    13fd <palPolmo+0x2bd>
jp     13fd <palPolmo+0x2bd>
jmp    141f <palPolmo+0x2df>
movsd  -0xc0(%rbp),%xmm0
ff
movsd  -0xb8(%rbp),%xmm1
ff
call   1030 <atan2@plt>
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    142a <palPolmo+0x2ea>
mov    -0x28(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movsd  -0xc8(%rbp),%xmm0
ff
movsd  -0x58(%rbp),%xmm1
call   1030 <atan2@plt>
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x78(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0xc8(%rbp),%xmm2
ff
movsd  -0x88(%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,-0xd0(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xd0(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1512 <palPolmo+0x3d2>
jp     1512 <palPolmo+0x3d2>
movsd  -0xd8(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1512 <palPolmo+0x3d2>
jp     1512 <palPolmo+0x3d2>
jmp    1562 <palPolmo+0x422>
movsd  -0xd8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0xd0(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
call   1030 <atan2@plt>
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    156d <palPolmo+0x42d>
mov    -0x38(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<palPolmo>:
push   %r15
push   %r14
push   %rbx
sub    $0x80,%rsp
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
movsd  %xmm3,0x10(%rsp)
movsd  %xmm2,0x50(%rsp)
movsd  %xmm1,0x20(%rsp)
movsd  %xmm0,0x8(%rsp)
call   1040 <sin@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x8(%rsp),%xmm0
call   1050 <cos@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,0x40(%rsp)
movsd  0x20(%rsp),%xmm0
call   1050 <cos@plt>
movsd  0x8(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x18(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  0x50(%rsp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,0x20(%rsp)
movsd  0x50(%rsp),%xmm0
call   1050 <cos@plt>
movsd  %xmm0,0x68(%rsp)
movsd  0x10(%rsp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,0x50(%rsp)
movsd  0x10(%rsp),%xmm0
call   1050 <cos@plt>
movapd 0x50(%rsp),%xmm8
movsd  0x40(%rsp),%xmm7
movapd %xmm7,%xmm6
mulsd  %xmm0,%xmm6
movsd  0x18(%rsp),%xmm4
movapd %xmm4,%xmm1
mulsd  %xmm8,%xmm1
subsd  %xmm1,%xmm6
movapd 0x20(%rsp),%xmm9
movapd %xmm9,%xmm1
mulsd  %xmm6,%xmm1
movsd  0x8(%rsp),%xmm3
movapd %xmm3,%xmm5
movsd  0x68(%rsp),%xmm2
mulsd  %xmm2,%xmm5
subsd  %xmm1,%xmm5
mulsd  %xmm8,%xmm7
movsd  %xmm0,0x10(%rsp)
movapd %xmm4,%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm7,%xmm1
mulsd  %xmm2,%xmm6
movapd %xmm3,%xmm0
movapd %xmm9,%xmm3
mulsd  %xmm9,%xmm0
movsd  %xmm0,0x8(%rsp)
xorpd  0xd78(%rip),%xmm3
movapd %xmm3,0x20(%rsp)
movsd  %xmm1,0x18(%rsp)
mulsd  %xmm1,%xmm1
movapd %xmm5,%xmm0
mulsd  %xmm5,%xmm0
addsd  %xmm1,%xmm0
xorpd  %xmm4,%xmm4
ucomisd %xmm4,%xmm0
jb     12b7 <palPolmo+0x177>
xorps  %xmm3,%xmm3
sqrtsd %xmm0,%xmm3
jmp    12dc <palPolmo+0x19c>
movapd %xmm5,0x40(%rsp)
movsd  %xmm6,0x38(%rsp)
call   1060 <sqrt@plt>
movsd  0x38(%rsp),%xmm6
movapd 0x40(%rsp),%xmm5
xorpd  %xmm4,%xmm4
movapd %xmm0,%xmm3
movsd  0x8(%rsp),%xmm0
addsd  %xmm6,%xmm0
movsd  %xmm0,0x8(%rsp)
movapd 0x20(%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
movapd %xmm0,0x20(%rsp)
movapd %xmm3,%xmm1
cmpeqsd %xmm4,%xmm1
movsd  0xd01(%rip),%xmm0
andpd  %xmm1,%xmm0
andnpd %xmm5,%xmm1
orpd   %xmm0,%xmm1
movsd  0x18(%rsp),%xmm0
movapd %xmm0,%xmm2
divsd  %xmm3,%xmm2
movsd  %xmm2,0x38(%rsp)
movapd %xmm1,%xmm2
divsd  %xmm3,%xmm2
movapd %xmm2,0x70(%rsp)
ucomisd %xmm4,%xmm1
movsd  %xmm3,0x40(%rsp)
jne    1357 <palPolmo+0x217>
jp     1357 <palPolmo+0x217>
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm0
jne    1357 <palPolmo+0x217>
jnp    1366 <palPolmo+0x226>
call   1030 <atan2@plt>
movsd  0x40(%rsp),%xmm3
movapd %xmm0,%xmm4
movsd  %xmm4,(%rbx)
movsd  0x8(%rsp),%xmm0
movapd %xmm3,%xmm1
call   1030 <atan2@plt>
movsd  %xmm0,(%r15)
movapd 0x50(%rsp),%xmm3
movapd %xmm3,%xmm0
movsd  0x38(%rsp),%xmm4
mulsd  %xmm4,%xmm0
movapd 0x20(%rsp),%xmm2
movapd %xmm2,%xmm1
movapd 0x70(%rsp),%xmm5
mulsd  %xmm5,%xmm1
addsd  %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
mulsd  0x68(%rsp),%xmm0
mulsd  0x40(%rsp),%xmm0
mulsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  %xmm5,%xmm3
mulsd  %xmm4,%xmm2
subsd  %xmm2,%xmm3
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jne    13ea <palPolmo+0x2aa>
jp     13ea <palPolmo+0x2aa>
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm3
jne    13ea <palPolmo+0x2aa>
jnp    1403 <palPolmo+0x2c3>
movapd 0xc0e(%rip),%xmm0
xorpd  %xmm0,%xmm3
xorpd  %xmm0,%xmm1
movapd %xmm3,%xmm0
call   1030 <atan2@plt>
movsd  %xmm0,(%r14)
add    $0x80,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @palPolmo(double %0, double %1, double %2, double %3, double* %4, double* %5, double* %6) {
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double*
%13 = alloca double*
%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
store double %0, double* %8
store double %1, double* %9
store double %2, double* %10
store double %3, double* %11
store double* %4, double** %12
store double* %5, double** %13
store double* %6, double** %14
%35 = load double, double* %8
%36 = call double @sin(double %35)
store double %36, double* %15
%37 = load double, double* %8
%38 = call double @cos(double %37)
store double %38, double* %16
%39 = load double, double* %9
%40 = call double @sin(double %39)
store double %40, double* %17
%41 = load double, double* %9
%42 = call double @cos(double %41)
store double %42, double* %18
%43 = load double, double* %16
%44 = load double, double* %18
%45 = fmul double %43, %44
store double %45, double* %19
%46 = load double, double* %15
%47 = load double, double* %18
%48 = fmul double %46, %47
store double %48, double* %20
%49 = load double, double* %17
store double %49, double* %21
%50 = load double, double* %10
%51 = call double @sin(double %50)
store double %51, double* %25
%52 = load double, double* %10
%53 = call double @cos(double %52)
store double %53, double* %26
%54 = load double, double* %11
%55 = call double @sin(double %54)
store double %55, double* %27
%56 = load double, double* %11
%57 = call double @cos(double %56)
store double %57, double* %28
%58 = load double, double* %20
%59 = fneg double %58
%60 = load double, double* %27
%61 = load double, double* %21
%62 = load double, double* %28
%63 = fmul double %61, %62
%64 = call double @llvm.fmuladd.f64(double %59, double %60, double %63)
store double %64, double* %29
%65 = load double, double* %19
%66 = load double, double* %26
%67 = load double, double* %29
%68 = load double, double* %25
%69 = fmul double %67, %68
%70 = fneg double %69
%71 = call double @llvm.fmuladd.f64(double %65, double %66, double %70)
store double %71, double* %30
%72 = load double, double* %20
%73 = load double, double* %28
%74 = load double, double* %21
%75 = load double, double* %27
%76 = fmul double %74, %75
%77 = call double @llvm.fmuladd.f64(double %72, double %73, double %76)
store double %77, double* %31
%78 = load double, double* %19
%79 = load double, double* %25
%80 = load double, double* %29
%81 = load double, double* %26
%82 = fmul double %80, %81
%83 = call double @llvm.fmuladd.f64(double %78, double %79, double %82)
store double %83, double* %32
%84 = load double, double* %25
%85 = fneg double %84
%86 = load double, double* %28
%87 = fmul double %85, %86
store double %87, double* %22
%88 = load double, double* %27
store double %88, double* %23
%89 = load double, double* %26
%90 = load double, double* %28
%91 = fmul double %89, %90
store double %91, double* %24
%92 = load double, double* %30
%93 = load double, double* %30
%94 = load double, double* %31
%95 = load double, double* %31
%96 = fmul double %94, %95
%97 = call double @llvm.fmuladd.f64(double %92, double %93, double %96)
%98 = call double @sqrt(double %97)
store double %98, double* %18
%99 = load double, double* %18
%100 = fcmp oeq double %99, 0.000000e+00
br i1 %100, label %101, label %102
101: ; preds = %7
store double 1.000000e+00, double* %30
br label %102
102: ; preds = %101, %7
%103 = load double, double* %31
%104 = load double, double* %18
%105 = fdiv double %103, %104
store double %105, double* %15
%106 = load double, double* %30
%107 = load double, double* %18
%108 = fdiv double %106, %107
store double %108, double* %16
%109 = load double, double* %30
%110 = fcmp une double %109, 0.000000e+00
br i1 %110, label %114, label %111
111: ; preds = %102
%112 = load double, double* %31
%113 = fcmp une double %112, 0.000000e+00
br i1 %113, label %114, label %119
114: ; preds = %111, %102
%115 = load double, double* %31
%116 = load double, double* %30
%117 = call double @atan2(double %115, double %116)
%118 = load double*, double** %12
store double %117, double* %118
br label %121
119: ; preds = %111
%120 = load double*, double** %12
store double 0.000000e+00, double* %120
br label %121
121: ; preds = %119, %114
%122 = load double, double* %32
%123 = load double, double* %18
%124 = call double @atan2(double %122, double %123)
%125 = load double*, double** %13
store double %124, double* %125
%126 = load double, double* %22
%127 = load double, double* %16
%128 = load double, double* %23
%129 = load double, double* %15
%130 = fmul double %128, %129
%131 = call double @llvm.fmuladd.f64(double %126, double %127, double %130)
%132 = load double, double* %32
%133 = load double, double* %24
%134 = load double, double* %18
%135 = fmul double %133, %134
%136 = fneg double %135
%137 = call double @llvm.fmuladd.f64(double %131, double %132, double %136)
store double %137, double* %33
%138 = load double, double* %22
%139 = fneg double %138
%140 = load double, double* %15
%141 = load double, double* %23
%142 = load double, double* %16
%143 = fmul double %141, %142
%144 = call double @llvm.fmuladd.f64(double %139, double %140, double %143)
store double %144, double* %34
%145 = load double, double* %33
%146 = fcmp une double %145, 0.000000e+00
br i1 %146, label %150, label %147
147: ; preds = %121
%148 = load double, double* %34
%149 = fcmp une double %148, 0.000000e+00
br i1 %149, label %150, label %157
150: ; preds = %147, %121
%151 = load double, double* %34
%152 = fneg double %151
%153 = load double, double* %33
%154 = fneg double %153
%155 = call double @atan2(double %152, double %154)
%156 = load double*, double** %14
store double %155, double* %156
br label %159
157: ; preds = %147
%158 = load double*, double** %14
store double 0.000000e+00, double* %158
br label %159
159: ; preds = %157, %150
ret void
}

LLVM IR (-O2):
define void @palPolmo(double %0, double %1, double %2, double %3, double* nocapture writeonly %4, double* nocapture writeonly %5, double* nocapture writeonly %6) {
%8 = tail call double @sin(double %0)
%9 = tail call double @cos(double %0)
%10 = tail call double @sin(double %1)
%11 = tail call double @cos(double %1)
%12 = fmul double %9, %11
%13 = fmul double %8, %11
%14 = tail call double @sin(double %2)
%15 = tail call double @cos(double %2)
%16 = tail call double @sin(double %3)
%17 = tail call double @cos(double %3)
%18 = fneg double %13
%19 = fmul double %10, %17
%20 = tail call double @llvm.fmuladd.f64(double %18, double %16, double %19)
%21 = fneg double %20
%22 = fmul double %14, %21
%23 = tail call double @llvm.fmuladd.f64(double %12, double %15, double %22)
%24 = fmul double %10, %16
%25 = tail call double @llvm.fmuladd.f64(double %13, double %17, double %24)
%26 = fmul double %15, %20
%27 = tail call double @llvm.fmuladd.f64(double %12, double %14, double %26)
%28 = fneg double %14
%29 = fmul double %17, %28
%30 = fmul double %25, %25
%31 = tail call double @llvm.fmuladd.f64(double %23, double %23, double %30)
%32 = tail call double @sqrt(double %31)
%33 = fcmp oeq double %32, 0.000000e+00
%34 = select i1 %33, double 1.000000e+00, double %23
%35 = fdiv double %25, %32
%36 = fdiv double %34, %32
%37 = fcmp une double %34, 0.000000e+00
%38 = fcmp une double %25, 0.000000e+00
%39 = select i1 %37, i1 true, i1 %38
br i1 %39, label %40, label %42
40: ; preds = %7
%41 = tail call double @atan2(double %25, double %34)
br label %42
42: ; preds = %7, %40
%43 = phi double [ %41, %40 ], [ 0.000000e+00, %7 ]
store double %43, double* %4
%44 = tail call double @atan2(double %27, double %32)
store double %44, double* %5
%45 = fmul double %16, %35
%46 = tail call double @llvm.fmuladd.f64(double %29, double %36, double %45)
%47 = fneg double %15
%48 = fmul double %17, %47
%49 = fmul double %48, %32
%50 = tail call double @llvm.fmuladd.f64(double %46, double %27, double %49)
%51 = fneg double %29
%52 = fmul double %16, %36
%53 = tail call double @llvm.fmuladd.f64(double %51, double %35, double %52)
%54 = fcmp une double %50, 0.000000e+00
%55 = fcmp une double %53, 0.000000e+00
%56 = select i1 %54, i1 true, i1 %55
br i1 %56, label %57, label %61
57: ; preds = %42
%58 = fneg double %53
%59 = fneg double %50
%60 = tail call double @atan2(double %58, double %59)
br label %61
61: ; preds = %42, %57
%62 = phi double [ %60, %57 ], [ 0.000000e+00, %42 ]
store double %62, double* %6
ret void
}