#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 sin(double);
void Moon(double RAD, double T, double T2, double LAM0, double R, double M,
          double *F, double *L1, double *OM, double *LAM, double *B, double *DR,
          double *LAMH, double *BH) {
  double T3, M1, D2, SUMR, SUML, DIST;
  T3 = T * T2;
  *F = (93.2721 + 483202 * T - .003403 * T2 - T3 / 3526000) * RAD;
  *L1 = (218.316 + 481268. * T) * RAD;
  *OM = (125.045 - 1934.14 * T + .002071 * T2 + T3 / 450000) * RAD;
  M1 = (134.963 + 477199 * T + .008997 * T2 + T3 / 69700) * RAD;
  D2 = (297.85 + 445267 * T - .00163 * T2 + T3 / 545900) * 2 * RAD;
  SUMR = -20954 * cos(M1) - 3699 * cos(D2 - M1) - 2956 * cos(D2);
  *DR = 385000 + SUMR;
  *B = 5.128 * sin(*F) + .2806 * sin(M1 + *F) + .2777 * sin(M1 - *F) +
       .1732 * sin(D2 - *F);
  SUML = 6.289 * sin(M1) + 1.274 * sin(D2 - M1) + .6583 * sin(D2) +
         .2136 * sin(2 * M1) - .1851 * sin(M) - .1143 * sin(2 * *F);
  *LAM = *L1 + SUML * RAD;
  DIST = *DR / R;
  *LAMH = (LAM0 + 180 + DIST * cos(*B) * sin(LAM0 * RAD - *LAM) / RAD) * RAD;
  *BH = DIST * *B * RAD;
}


x86 assembly (clang, -O0):
<Moon>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
mov    %rdi,-0x38(%rbp)
mov    %rsi,-0x40(%rbp)
mov    %rdx,-0x48(%rbp)
mov    %rcx,-0x50(%rbp)
mov    %r8,-0x58(%rbp)
mov    %r9,-0x60(%rbp)
movsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  0xf7b(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xf77(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xf56(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  0xf39(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
mulsd  -0x8(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x10(%rbp),%xmm0
movsd  0xf07(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xf03(%rip),%xmm1
addsd  %xmm1,%xmm0
mulsd  -0x8(%rbp),%xmm0
mov    -0x40(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x10(%rbp),%xmm1
movsd  0xecd(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xec9(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xea8(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  0xe8b(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
mulsd  -0x8(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x10(%rbp),%xmm1
movsd  0xe59(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe55(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xe34(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  0xe17(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  0xde8(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xde4(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xdc3(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  0xda6(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  0xd26(%rip),%xmm1
mulsd  %xmm1,%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x70(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
subsd  -0x70(%rbp),%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm2
movsd  -0xf8(%rbp),%xmm0
ff
movsd  0xd4c(%rip),%xmm1
mulsd  %xmm2,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xd21(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0xf0(%rbp),%xmm1
ff
movsd  0xcef(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xcd2(%rip),%xmm0
addsd  -0x80(%rbp),%xmm0
mov    -0x60(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
mov    -0x38(%rbp),%rax
addsd  (%rax),%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm2
movsd  -0xe8(%rbp),%xmm0
ff
movsd  0xc83(%rip),%xmm1
mulsd  %xmm2,%xmm1
movsd  0xc6f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
mov    -0x38(%rbp),%rax
subsd  (%rax),%xmm0
call   1030 <sin@plt>
movsd  -0xe0(%rbp),%xmm1
ff
movsd  0xc35(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
mov    -0x38(%rbp),%rax
subsd  (%rax),%xmm0
call   1030 <sin@plt>
movsd  -0xd8(%rbp),%xmm1
ff
movsd  0xbfb(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x70(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
subsd  -0x70(%rbp),%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm2
movsd  -0xd0(%rbp),%xmm0
ff
movsd  0xbaf(%rip),%xmm1
mulsd  %xmm2,%xmm1
movsd  0xb9b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0xc8(%rbp),%xmm1
ff
movsd  0xb69(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  0xb39(%rip),%xmm0
mulsd  -0x70(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0xc0(%rbp),%xmm1
ff
movsd  0xb2f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0xb8(%rbp),%xmm1
ff
movsd  0xafd(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
mov    -0x38(%rbp),%rax
movsd  0xad9(%rip),%xmm0
mulsd  (%rax),%xmm0
call   1030 <sin@plt>
movsd  -0xb0(%rbp),%xmm1
ff
movsd  0xab8(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x88(%rbp),%xmm0
ff
movsd  -0x8(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x50(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x60(%rbp),%rax
movsd  (%rax),%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xa5e(%rip),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm2
mov    -0x50(%rbp),%rax
movsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <sin@plt>
movsd  -0xa0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x98(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  -0x8(%rbp),%xmm1
addsd  %xmm1,%xmm0
mulsd  -0x8(%rbp),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x90(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
mulsd  (%rax),%xmm0
mulsd  -0x8(%rbp),%xmm0
mov    0x18(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Moon>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r9,%r15
mov    %r8,%r13
mov    %rcx,%r14
mov    %rsi,%r12
mov    %rdi,%rbx
movsd  %xmm5,0x38(%rsp)
movsd  %xmm4,0x40(%rsp)
movsd  %xmm3,0x28(%rsp)
mov    0x80(%rsp),%rbp
movapd %xmm1,%xmm5
mulsd  %xmm2,%xmm5
movsd  0xe99(%rip),%xmm4
mulsd  %xmm1,%xmm4
addsd  0xe95(%rip),%xmm4
movsd  0xe95(%rip),%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm4,%xmm3
movapd %xmm5,%xmm4
divsd  0xe89(%rip),%xmm4
addsd  %xmm3,%xmm4
movapd %xmm0,%xmm3
mulsd  %xmm0,%xmm4
movsd  %xmm4,(%rdi)
movsd  0xe79(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xe75(%rip),%xmm0
mulsd  %xmm3,%xmm0
movapd %xmm3,%xmm4
movsd  0xe6d(%rip),%xmm3
mulsd  %xmm1,%xmm3
addsd  0xe69(%rip),%xmm3
movsd  %xmm0,(%rsi)
movsd  0xe65(%rip),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm3,%xmm0
movapd %xmm5,%xmm3
divsd  0xe59(%rip),%xmm3
addsd  %xmm0,%xmm3
mulsd  %xmm4,%xmm3
movsd  0xe51(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xe4d(%rip),%xmm0
movsd  %xmm3,(%rdx)
movsd  0xe49(%rip),%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm0,%xmm3
movapd %xmm5,%xmm0
divsd  0xe3d(%rip),%xmm0
addsd  %xmm3,%xmm0
movsd  %xmm4,0x20(%rsp)
mulsd  %xmm4,%xmm0
movsd  %xmm0,0x10(%rsp)
mulsd  0xe29(%rip),%xmm1
addsd  0xe29(%rip),%xmm1
mulsd  0xe29(%rip),%xmm2
divsd  0xe29(%rip),%xmm5
addsd  %xmm1,%xmm2
addsd  %xmm2,%xmm5
addsd  %xmm5,%xmm5
mulsd  %xmm4,%xmm5
movsd  %xmm5,0x18(%rsp)
call   1040 <cos@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
subsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
call   1040 <cos@plt>
mulsd  0xdf1(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  0xdeb(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
call   1040 <cos@plt>
mulsd  0xdd6(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
addsd  0xdd0(%rip),%xmm0
movsd  %xmm0,(%r15)
movsd  (%rbx),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,0x8(%rsp)
movsd  (%rbx),%xmm0
addsd  0x10(%rsp),%xmm0
call   1030 <sin@plt>
mulsd  0xdad(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  0xda7(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
subsd  (%rbx),%xmm0
call   1030 <sin@plt>
mulsd  0xd8e(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
subsd  (%rbx),%xmm0
call   1030 <sin@plt>
mulsd  0xd73(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x0(%r13)
movsd  0x10(%rsp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x30(%rsp),%xmm0
call   1030 <sin@plt>
mulsd  0xd4b(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  0xd45(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
call   1030 <sin@plt>
mulsd  0xd30(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x10(%rsp),%xmm0
addsd  %xmm0,%xmm0
call   1030 <sin@plt>
mulsd  0xd15(%rip),%xmm0
addsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x38(%rsp),%xmm0
call   1030 <sin@plt>
mulsd  0xcfe(%rip),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  (%rbx),%xmm0
addsd  %xmm0,%xmm0
call   1030 <sin@plt>
mulsd  0xce5(%rip),%xmm0
addsd  0x10(%rsp),%xmm0
mulsd  0x20(%rsp),%xmm0
addsd  (%r12),%xmm0
movsd  %xmm0,(%r14)
movsd  (%r15),%xmm0
divsd  0x40(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xcbd(%rip),%xmm0
addsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x0(%r13),%xmm0
call   1040 <cos@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x28(%rsp),%xmm0
mulsd  0x20(%rsp),%xmm0
subsd  (%r14),%xmm0
call   1030 <sin@plt>
mulsd  0x8(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
divsd  %xmm1,%xmm0
addsd  0x18(%rsp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%rbp)
movsd  0x10(%rsp),%xmm0
mulsd  0x0(%r13),%xmm0
mulsd  %xmm1,%xmm0
mov    0x88(%rsp),%rax
movsd  %xmm0,(%rax)
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @Moon(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, double* %13) {
%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* %15
store double %1, double* %16
store double %2, double* %17
store double %3, double* %18
store double %4, double* %19
store double %5, double* %20
store double* %6, double** %21
store double* %7, double** %22
store double* %8, double** %23
store double* %9, double** %24
store double* %10, double** %25
store double* %11, double** %26
store double* %12, double** %27
store double* %13, double** %28
%35 = load double, double* %16
%36 = load double, double* %17
%37 = fmul double %35, %36
store double %37, double* %29
%38 = load double, double* %16
%39 = call double @llvm.fmuladd.f64(double 4.832020e+05, double %38, double 0x4057516A161E4F76)
%40 = load double, double* %17
%41 = call double @llvm.fmuladd.f64(double -3.403000e-03, double %40, double %39)
%42 = load double, double* %29
%43 = fdiv double %42, 3.526000e+06
%44 = fsub double %41, %43
%45 = load double, double* %15
%46 = fmul double %44, %45
%47 = load double*, double** %21
store double %46, double* %47
%48 = load double, double* %16
%49 = call double @llvm.fmuladd.f64(double 4.812680e+05, double %48, double 2.183160e+02)
%50 = load double, double* %15
%51 = fmul double %49, %50
%52 = load double*, double** %22
store double %51, double* %52
%53 = load double, double* %16
%54 = call double @llvm.fmuladd.f64(double -1.934140e+03, double %53, double 1.250450e+02)
%55 = load double, double* %17
%56 = call double @llvm.fmuladd.f64(double 2.071000e-03, double %55, double %54)
%57 = load double, double* %29
%58 = fdiv double %57, 4.500000e+05
%59 = fadd double %56, %58
%60 = load double, double* %15
%61 = fmul double %59, %60
%62 = load double*, double** %23
store double %61, double* %62
%63 = load double, double* %16
%64 = call double @llvm.fmuladd.f64(double 4.771990e+05, double %63, double 1.349630e+02)
%65 = load double, double* %17
%66 = call double @llvm.fmuladd.f64(double 0x3F826D04E618CE2D, double %65, double %64)
%67 = load double, double* %29
%68 = fdiv double %67, 6.970000e+04
%69 = fadd double %66, %68
%70 = load double, double* %15
%71 = fmul double %69, %70
store double %71, double* %30
%72 = load double, double* %16
%73 = call double @llvm.fmuladd.f64(double 4.452670e+05, double %72, double 2.978500e+02)
%74 = load double, double* %17
%75 = call double @llvm.fmuladd.f64(double -1.630000e-03, double %74, double %73)
%76 = load double, double* %29
%77 = fdiv double %76, 5.459000e+05
%78 = fadd double %75, %77
%79 = fmul double %78, 2.000000e+00
%80 = load double, double* %15
%81 = fmul double %79, %80
store double %81, double* %31
%82 = load double, double* %30
%83 = call double @cos(double %82)
%84 = load double, double* %31
%85 = load double, double* %30
%86 = fsub double %84, %85
%87 = call double @cos(double %86)
%88 = fmul double 3.699000e+03, %87
%89 = fneg double %88
%90 = call double @llvm.fmuladd.f64(double -2.095400e+04, double %83, double %89)
%91 = load double, double* %31
%92 = call double @cos(double %91)
%93 = call double @llvm.fmuladd.f64(double -2.956000e+03, double %92, double %90)
store double %93, double* %32
%94 = load double, double* %32
%95 = fadd double 3.850000e+05, %94
%96 = load double*, double** %26
store double %95, double* %96
%97 = load double*, double** %21
%98 = load double, double* %97
%99 = call double @sin(double %98)
%100 = load double, double* %30
%101 = load double*, double** %21
%102 = load double, double* %101
%103 = fadd double %100, %102
%104 = call double @sin(double %103)
%105 = fmul double 2.806000e-01, %104
%106 = call double @llvm.fmuladd.f64(double 5.128000e+00, double %99, double %105)
%107 = load double, double* %30
%108 = load double*, double** %21
%109 = load double, double* %108
%110 = fsub double %107, %109
%111 = call double @sin(double %110)
%112 = call double @llvm.fmuladd.f64(double 2.777000e-01, double %111, double %106)
%113 = load double, double* %31
%114 = load double*, double** %21
%115 = load double, double* %114
%116 = fsub double %113, %115
%117 = call double @sin(double %116)
%118 = call double @llvm.fmuladd.f64(double 1.732000e-01, double %117, double %112)
%119 = load double*, double** %25
store double %118, double* %119
%120 = load double, double* %30
%121 = call double @sin(double %120)
%122 = load double, double* %31
%123 = load double, double* %30
%124 = fsub double %122, %123
%125 = call double @sin(double %124)
%126 = fmul double 1.274000e+00, %125
%127 = call double @llvm.fmuladd.f64(double 6.289000e+00, double %121, double %126)
%128 = load double, double* %31
%129 = call double @sin(double %128)
%130 = call double @llvm.fmuladd.f64(double 6.583000e-01, double %129, double %127)
%131 = load double, double* %30
%132 = fmul double 2.000000e+00, %131
%133 = call double @sin(double %132)
%134 = call double @llvm.fmuladd.f64(double 2.136000e-01, double %133, double %130)
%135 = load double, double* %20
%136 = call double @sin(double %135)
%137 = call double @llvm.fmuladd.f64(double -1.851000e-01, double %136, double %134)
%138 = load double*, double** %21
%139 = load double, double* %138
%140 = fmul double 2.000000e+00, %139
%141 = call double @sin(double %140)
%142 = call double @llvm.fmuladd.f64(double -1.143000e-01, double %141, double %137)
store double %142, double* %33
%143 = load double*, double** %22
%144 = load double, double* %143
%145 = load double, double* %33
%146 = load double, double* %15
%147 = call double @llvm.fmuladd.f64(double %145, double %146, double %144)
%148 = load double*, double** %24
store double %147, double* %148
%149 = load double*, double** %26
%150 = load double, double* %149
%151 = load double, double* %19
%152 = fdiv double %150, %151
store double %152, double* %34
%153 = load double, double* %18
%154 = fadd double %153, 1.800000e+02
%155 = load double, double* %34
%156 = load double*, double** %25
%157 = load double, double* %156
%158 = call double @cos(double %157)
%159 = fmul double %155, %158
%160 = load double, double* %18
%161 = load double, double* %15
%162 = load double*, double** %24
%163 = load double, double* %162
%164 = fneg double %163
%165 = call double @llvm.fmuladd.f64(double %160, double %161, double %164)
%166 = call double @sin(double %165)
%167 = fmul double %159, %166
%168 = load double, double* %15
%169 = fdiv double %167, %168
%170 = fadd double %154, %169
%171 = load double, double* %15
%172 = fmul double %170, %171
%173 = load double*, double** %27
store double %172, double* %173
%174 = load double, double* %34
%175 = load double*, double** %25
%176 = load double, double* %175
%177 = fmul double %174, %176
%178 = load double, double* %15
%179 = fmul double %177, %178
%180 = load double*, double** %28
store double %179, double* %180
ret void
}

LLVM IR (-O2):
define void @Moon(double %0, double %1, double %2, double %3, double %4, double %5, double* nocapture %6, double* nocapture %7, double* nocapture writeonly %8, double* nocapture %9, double* nocapture %10, double* nocapture %11, double* nocapture writeonly %12, double* nocapture writeonly %13) {
%15 = fmul double %1, %2
%16 = tail call double @llvm.fmuladd.f64(double %1, double 4.832020e+05, double 0x4057516A161E4F76)
%17 = tail call double @llvm.fmuladd.f64(double %2, double -3.403000e-03, double %16)
%18 = fdiv double %15, 3.526000e+06
%19 = fsub double %17, %18
%20 = fmul double %19, %0
store double %20, double* %6
%21 = tail call double @llvm.fmuladd.f64(double %1, double 4.812680e+05, double 2.183160e+02)
%22 = fmul double %21, %0
store double %22, double* %7
%23 = tail call double @llvm.fmuladd.f64(double %1, double -1.934140e+03, double 1.250450e+02)
%24 = tail call double @llvm.fmuladd.f64(double %2, double 2.071000e-03, double %23)
%25 = fdiv double %15, 4.500000e+05
%26 = fadd double %24, %25
%27 = fmul double %26, %0
store double %27, double* %8
%28 = tail call double @llvm.fmuladd.f64(double %1, double 4.771990e+05, double 1.349630e+02)
%29 = tail call double @llvm.fmuladd.f64(double %2, double 0x3F826D04E618CE2D, double %28)
%30 = fdiv double %15, 6.970000e+04
%31 = fadd double %29, %30
%32 = fmul double %31, %0
%33 = tail call double @llvm.fmuladd.f64(double %1, double 4.452670e+05, double 2.978500e+02)
%34 = tail call double @llvm.fmuladd.f64(double %2, double -1.630000e-03, double %33)
%35 = fdiv double %15, 5.459000e+05
%36 = fadd double %34, %35
%37 = fmul double %36, 2.000000e+00
%38 = fmul double %37, %0
%39 = tail call double @cos(double %32)
%40 = fsub double %38, %32
%41 = tail call double @cos(double %40)
%42 = fmul double %41, -3.699000e+03
%43 = tail call double @llvm.fmuladd.f64(double %39, double -2.095400e+04, double %42)
%44 = tail call double @cos(double %38)
%45 = tail call double @llvm.fmuladd.f64(double %44, double -2.956000e+03, double %43)
%46 = fadd double %45, 3.850000e+05
store double %46, double* %11
%47 = load double, double* %6
%48 = tail call double @sin(double %47)
%49 = load double, double* %6
%50 = fadd double %32, %49
%51 = tail call double @sin(double %50)
%52 = fmul double %51, 2.806000e-01
%53 = tail call double @llvm.fmuladd.f64(double %48, double 5.128000e+00, double %52)
%54 = load double, double* %6
%55 = fsub double %32, %54
%56 = tail call double @sin(double %55)
%57 = tail call double @llvm.fmuladd.f64(double %56, double 2.777000e-01, double %53)
%58 = load double, double* %6
%59 = fsub double %38, %58
%60 = tail call double @sin(double %59)
%61 = tail call double @llvm.fmuladd.f64(double %60, double 1.732000e-01, double %57)
store double %61, double* %10
%62 = tail call double @sin(double %32)
%63 = tail call double @sin(double %40)
%64 = fmul double %63, 1.274000e+00
%65 = tail call double @llvm.fmuladd.f64(double %62, double 6.289000e+00, double %64)
%66 = tail call double @sin(double %38)
%67 = tail call double @llvm.fmuladd.f64(double %66, double 6.583000e-01, double %65)
%68 = fmul double %32, 2.000000e+00
%69 = tail call double @sin(double %68)
%70 = tail call double @llvm.fmuladd.f64(double %69, double 2.136000e-01, double %67)
%71 = tail call double @sin(double %5)
%72 = tail call double @llvm.fmuladd.f64(double %71, double -1.851000e-01, double %70)
%73 = load double, double* %6
%74 = fmul double %73, 2.000000e+00
%75 = tail call double @sin(double %74)
%76 = tail call double @llvm.fmuladd.f64(double %75, double -1.143000e-01, double %72)
%77 = load double, double* %7
%78 = tail call double @llvm.fmuladd.f64(double %76, double %0, double %77)
store double %78, double* %9
%79 = load double, double* %11
%80 = fdiv double %79, %4
%81 = fadd double %3, 1.800000e+02
%82 = load double, double* %10
%83 = tail call double @cos(double %82)
%84 = fmul double %80, %83
%85 = load double, double* %9
%86 = fneg double %85
%87 = tail call double @llvm.fmuladd.f64(double %3, double %0, double %86)
%88 = tail call double @sin(double %87)
%89 = fmul double %84, %88
%90 = fdiv double %89, %0
%91 = fadd double %81, %90
%92 = fmul double %91, %0
store double %92, double* %12
%93 = load double, double* %10
%94 = fmul double %80, %93
%95 = fmul double %94, %0
store double %95, double* %13
ret void
}