#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 cos(double);
double pow(int, double);
double sin(double);
void w3fb11(double alat, double elon, double alat1, double elon1, double dx,
            double elonv, double alatan, double *xi, double *xj) {
  double radpd, rebydx, alatn1, an, cosltn, elon1l;
  double ala1, rmll, elo1, arg, polei, polej, ala, rm, elo;
  double elonl, elonvr;
  double h;
  h = (alatan > 0) ? 1 : -1;
  radpd = 3.14159 / 180.0;
  rebydx = 6.3712E+6 / dx;
  alatn1 = alatan * radpd;
  an = h * sin(alatn1);
  cosltn = cos(alatn1);
  elon1l = elon1;
  if ((elon1 - elonv) > 180.)
    elon1l = elon1 - 360.;
  if ((elon1 - elonv) < -180.)
    elon1l = elon1 + 360.;
  elonl = elon;
  if ((elon - elonv) > 180.)
    elonl = elon - 360.;
  if ((elon - elonv) < -180.)
    elonl = elon + 360.;
  elonvr = elonv * radpd;
  ala1 = alat1 * radpd;
  rmll = rebydx * pow(cosltn, 1. - an) * pow(1. + an, an) *
         pow(cos(ala1) / (1. + h * sin(ala1)), an) / an;
  elo1 = elon1l * radpd;
  arg = an * (elo1 - elonvr);
  polei = 1. - h * rmll * sin(arg);
  polej = 1. + rmll * cos(arg);
  ala = alat * radpd;
  rm = rebydx * pow(cosltn, (1. - an)) * pow((1. + an), an) *
       pow(cos(ala) / (1. + h * sin(ala)), an) / an;
  elo = elonl * radpd;
  arg = an * (elo - elonvr);
  *xi = polei + h * rm * sin(arg);
  *xj = polej - rm * cos(arg);
  return;
}


x86 assembly (clang, -O0):
<w3fb11>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
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)
mov    %rdi,-0x40(%rbp)
mov    %rsi,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
xorps  %xmm1,%xmm1
mov    $0xffffffff,%eax
mov    $0x1,%ecx
ucomisd %xmm1,%xmm0
cmova  %ecx,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  0xe7d(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe68(%rip),%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x60(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x20(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  0xdee(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1232 <w3fb11+0x102>
movsd  -0x20(%rbp),%xmm0
movsd  0xdef(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x20(%rbp),%xmm1
subsd  -0x30(%rbp),%xmm1
movsd  0xddc(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1260 <w3fb11+0x130>
movsd  0xdc2(%rip),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  0xd81(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    12a2 <w3fb11+0x172>
movsd  -0x10(%rbp),%xmm0
movsd  0xd82(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x10(%rbp),%xmm1
subsd  -0x30(%rbp),%xmm1
movsd  0xd6c(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    12d3 <w3fb11+0x1a3>
movsd  0xd52(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x160(%rbp)
cvttsd2si -0x70(%rbp),%edi
movsd  0xd1a(%rip),%xmm0
subsd  -0x68(%rbp),%xmm0
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x160(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x158(%rbp)
ff
movsd  0xcf1(%rip),%xmm0
addsd  -0x68(%rbp),%xmm0
cvttsd2si %xmm0,%edi
movsd  -0x68(%rbp),%xmm0
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x158(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x148(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0x150(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0x150(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x148(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
movsd  0xc7c(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
movsd  -0x68(%rbp),%xmm0
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x140(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
divsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movsd  -0x90(%rbp),%xmm1
ff
subsd  -0xd0(%rbp),%xmm1
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
mulsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x138(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x138(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xbc4(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x130(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  0xb84(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
cvttsd2si -0x70(%rbp),%edi
movsd  0xb4c(%rip),%xmm0
subsd  -0x68(%rbp),%xmm0
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x128(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  0xb23(%rip),%xmm0
addsd  -0x68(%rbp),%xmm0
cvttsd2si %xmm0,%edi
movsd  -0x68(%rbp),%xmm0
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x120(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
call   1040 <cos@plt>
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
call   1030 <sin@plt>
movsd  -0x118(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x110(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
movsd  0xaa8(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
movsd  -0x68(%rbp),%xmm0
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x108(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
divsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xc8(%rbp),%xmm0
ff
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movsd  -0xc0(%rbp),%xmm1
ff
subsd  -0xd0(%rbp),%xmm1
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
mulsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
call   1030 <sin@plt>
movsd  -0x100(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xf8(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
call   1040 <cos@plt>
movsd  -0xf0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xe8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<w3fb11>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x78,%rsp
mov    %rsi,%r14
mov    %rdi,%r15
movsd  %xmm5,0x50(%rsp)
movaps %xmm3,0x30(%rsp)
movsd  %xmm2,0x8(%rsp)
movaps %xmm1,0x60(%rsp)
movsd  %xmm0,0x20(%rsp)
xorpd  %xmm0,%xmm0
xor    %eax,%eax
ucomisd %xmm0,%xmm6
seta   %al
lea    0xe90(%rip),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0xe8d(%rip),%xmm0
divsd  %xmm4,%xmm0
movsd  %xmm0,0x48(%rsp)
mulsd  0xe83(%rip),%xmm6
movsd  %xmm6,0x58(%rsp)
movapd %xmm6,%xmm0
call   1030 <sin@plt>
mulsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x58(%rsp),%xmm0
call   1040 <cos@plt>
movapd 0x30(%rsp),%xmm7
movapd %xmm7,%xmm6
movsd  0x50(%rsp),%xmm5
subsd  %xmm5,%xmm6
movsd  0xe49(%rip),%xmm2
movapd %xmm7,%xmm3
addsd  %xmm2,%xmm3
movsd  0xe41(%rip),%xmm1
movapd %xmm1,%xmm4
cmpltsd %xmm6,%xmm4
andpd  %xmm4,%xmm3
andnpd %xmm7,%xmm4
orpd   %xmm3,%xmm4
movsd  0xe2b(%rip),%xmm8
addsd  %xmm8,%xmm7
movsd  0xe26(%rip),%xmm3
cmpltsd %xmm3,%xmm6
andpd  %xmm6,%xmm7
andnpd %xmm4,%xmm6
orpd   %xmm7,%xmm6
movapd %xmm6,0x30(%rsp)
movapd 0x60(%rsp),%xmm7
movapd %xmm7,%xmm6
movapd %xmm5,%xmm4
subsd  %xmm5,%xmm6
addsd  %xmm7,%xmm2
cmpltsd %xmm6,%xmm1
andpd  %xmm1,%xmm2
andnpd %xmm7,%xmm1
orpd   %xmm2,%xmm1
addsd  %xmm8,%xmm7
cmpltsd %xmm3,%xmm6
andpd  %xmm6,%xmm7
andnpd %xmm1,%xmm6
orpd   %xmm7,%xmm6
movapd %xmm6,0x60(%rsp)
movsd  0xda4(%rip),%xmm1
mulsd  %xmm1,%xmm4
movsd  %xmm4,0x50(%rsp)
movsd  0x8(%rsp),%xmm2
mulsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
cvttsd2si %xmm0,%ebp
movsd  0xda6(%rip),%xmm0
subsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x58(%rsp)
mov    %ebp,%edi
call   1050 <pow@plt>
mulsd  0x48(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0x10(%rsp),%xmm0
movapd %xmm0,%xmm1
addsd  0xd75(%rip),%xmm1
cvttsd2si %xmm1,%ebx
mov    %ebx,%edi
call   1050 <pow@plt>
mulsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0x8(%rsp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x70(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <sin@plt>
mulsd  0x18(%rsp),%xmm0
addsd  0xd34(%rip),%xmm0
movsd  0x70(%rsp),%xmm1
divsd  %xmm0,%xmm1
cvttsd2si %xmm1,%edi
movsd  0x10(%rsp),%xmm0
call   1050 <pow@plt>
mulsd  0x28(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movapd 0x30(%rsp),%xmm0
mulsd  0xccf(%rip),%xmm0
subsd  0x50(%rsp),%xmm0
mulsd  %xmm1,%xmm0
movapd %xmm0,0x30(%rsp)
call   1030 <sin@plt>
movsd  0x8(%rsp),%xmm1
mulsd  0x18(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0xcca(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x28(%rsp)
movapd 0x30(%rsp),%xmm0
call   1040 <cos@plt>
mulsd  0x8(%rsp),%xmm0
addsd  0xca7(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
mulsd  0xc6b(%rip),%xmm0
movsd  %xmm0,0x20(%rsp)
mov    %ebp,%edi
movsd  0x58(%rsp),%xmm0
call   1050 <pow@plt>
mulsd  0x48(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
mov    %ebx,%edi
movsd  0x10(%rsp),%xmm0
call   1050 <pow@plt>
mulsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x20(%rsp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x48(%rsp)
movsd  0x20(%rsp),%xmm0
call   1030 <sin@plt>
mulsd  0x18(%rsp),%xmm0
addsd  0xc31(%rip),%xmm0
movsd  0x48(%rsp),%xmm1
divsd  %xmm0,%xmm1
cvttsd2si %xmm1,%edi
movsd  0x10(%rsp),%xmm0
call   1050 <pow@plt>
movapd %xmm0,%xmm2
mulsd  0x30(%rsp),%xmm2
movsd  0x10(%rsp),%xmm0
divsd  %xmm0,%xmm2
movsd  %xmm2,0x20(%rsp)
movapd 0x60(%rsp),%xmm1
mulsd  0xbc8(%rip),%xmm1
subsd  0x50(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm1,0x60(%rsp)
movsd  0x18(%rsp),%xmm0
mulsd  %xmm2,%xmm0
movsd  %xmm0,0x18(%rsp)
movapd %xmm1,%xmm0
call   1030 <sin@plt>
mulsd  0x18(%rsp),%xmm0
addsd  0x28(%rsp),%xmm0
movsd  %xmm0,(%r15)
movapd 0x60(%rsp),%xmm0
call   1040 <cos@plt>
mulsd  0x20(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%r14)
add    $0x78,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @w3fb11(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double* nocapture writeonly %7, double* nocapture writeonly %8) {
%10 = fcmp ogt double %6, 0.000000e+00
%11 = select i1 %10, double 1.000000e+00, double -1.000000e+00
%12 = fdiv double 6.371200e+06, %4
%13 = fmul double %6, 0x3F91DF45A50DE270
%14 = tail call double @sin(double %13)
%15 = fmul double %11, %14
%16 = tail call double @cos(double %13)
%17 = fsub double %3, %5
%18 = fcmp ogt double %17, 1.800000e+02
%19 = fadd double %3, -3.600000e+02
%20 = select i1 %18, double %19, double %3
%21 = fcmp olt double %17, -1.800000e+02
%22 = fadd double %3, 3.600000e+02
%23 = select i1 %21, double %22, double %20
%24 = fsub double %1, %5
%25 = fcmp ogt double %24, 1.800000e+02
%26 = fadd double %1, -3.600000e+02
%27 = select i1 %25, double %26, double %1
%28 = fcmp olt double %24, -1.800000e+02
%29 = fadd double %1, 3.600000e+02
%30 = select i1 %28, double %29, double %27
%31 = fmul double %5, 0x3F91DF45A50DE270
%32 = fmul double %2, 0x3F91DF45A50DE270
%33 = fptosi double %16 to i32
%34 = fsub double 1.000000e+00, %15
%35 = tail call double @pow(i32 %33, double %34)
%36 = fmul double %12, %35
%37 = fadd double %15, 1.000000e+00
%38 = fptosi double %37 to i32
%39 = tail call double @pow(i32 %38, double %15)
%40 = fmul double %36, %39
%41 = tail call double @cos(double %32)
%42 = tail call double @sin(double %32)
%43 = tail call double @llvm.fmuladd.f64(double %11, double %42, double 1.000000e+00)
%44 = fdiv double %41, %43
%45 = fptosi double %44 to i32
%46 = tail call double @pow(i32 %45, double %15)
%47 = fmul double %40, %46
%48 = fdiv double %47, %15
%49 = fmul double %23, 0x3F91DF45A50DE270
%50 = fsub double %49, %31
%51 = fmul double %50, %15
%52 = tail call double @sin(double %51)
%53 = fneg double %11
%54 = fmul double %48, %53
%55 = tail call double @llvm.fmuladd.f64(double %54, double %52, double 1.000000e+00)
%56 = tail call double @cos(double %51)
%57 = tail call double @llvm.fmuladd.f64(double %48, double %56, double 1.000000e+00)
%58 = fmul double %0, 0x3F91DF45A50DE270
%59 = tail call double @pow(i32 %33, double %34)
%60 = fmul double %12, %59
%61 = tail call double @pow(i32 %38, double %15)
%62 = fmul double %60, %61
%63 = tail call double @cos(double %58)
%64 = tail call double @sin(double %58)
%65 = tail call double @llvm.fmuladd.f64(double %11, double %64, double 1.000000e+00)
%66 = fdiv double %63, %65
%67 = fptosi double %66 to i32
%68 = tail call double @pow(i32 %67, double %15)
%69 = fmul double %62, %68
%70 = fdiv double %69, %15
%71 = fmul double %30, 0x3F91DF45A50DE270
%72 = fsub double %71, %31
%73 = fmul double %72, %15
%74 = fmul double %11, %70
%75 = tail call double @sin(double %73)
%76 = tail call double @llvm.fmuladd.f64(double %74, double %75, double %55)
store double %76, double* %7
%77 = tail call double @cos(double %73)
%78 = fneg double %70
%79 = tail call double @llvm.fmuladd.f64(double %78, double %77, double %57)
store double %79, double* %8
ret void
}