#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 M_PI;
double cos(double);
double sunmodel_mean_obliquity_of_ecliptic(double);
double sunmodel_obliquity_correction(double t) {
  double e0, omega, e;
  e0 = sunmodel_mean_obliquity_of_ecliptic(t);
  omega = (M_PI * (125.04 - 1934.136 * t) / 180.0);
  e = e0 + (M_PI * (0.00256 * cos(omega)) / 180.0);
  return e;
}


x86 assembly (clang, -O0):
<sunmodel_obliquity_correction>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <sunmodel_mean_obliquity_of_ecliptic@plt>
movsd  %xmm0,-0x10(%rbp)
mov    0x2ea5(%rip),%rax
movsd  (%rax),%xmm0
movsd  -0x8(%rbp),%xmm1
movsd  0xebc(%rip),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xeb8(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe90(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    0x2e5e(%rip),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x30(%rbp),%xmm1
movaps %xmm0,%xmm3
movsd  -0x28(%rbp),%xmm0
movsd  0xe56(%rip),%xmm2
mulsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
movsd  0xe3e(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sunmodel_obliquity_correction>:
sub    $0x18,%rsp
movsd  %xmm0,0x8(%rsp)
call   1030 <sunmodel_mean_obliquity_of_ecliptic@plt>
movsd  %xmm0,0x10(%rsp)
mov    0x2eac(%rip),%rax
movsd  0x8(%rsp),%xmm0
mulsd  0xeb6(%rip),%xmm0
addsd  0xeb6(%rip),%xmm0
movsd  (%rax),%xmm1
movsd  %xmm1,0x8(%rsp)
mulsd  %xmm1,%xmm0
divsd  0xea8(%rip),%xmm0
call   1040 <cos@plt>
mulsd  0xea3(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
divsd  0xe8d(%rip),%xmm0
addsd  0x10(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
@M_PI = global double 0.000000e+00
define double @sunmodel_obliquity_correction(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %2
%6 = load double, double* %2
%7 = call double @sunmodel_mean_obliquity_of_ecliptic(double %6)
store double %7, double* %3
%8 = load double, double* @M_PI
%9 = load double, double* %2
%10 = call double @llvm.fmuladd.f64(double 0xC09E388B43958106, double %9, double 1.250400e+02)
%11 = fmul double %8, %10
%12 = fdiv double %11, 1.800000e+02
store double %12, double* %4
%13 = load double, double* %3
%14 = load double, double* @M_PI
%15 = load double, double* %4
%16 = call double @cos(double %15)
%17 = fmul double 2.560000e-03, %16
%18 = fmul double %14, %17
%19 = fdiv double %18, 1.800000e+02
%20 = fadd double %13, %19
store double %20, double* %5
%21 = load double, double* %5
ret double %21
}

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
define double @sunmodel_obliquity_correction(double %0) {
%2 = tail call double @sunmodel_mean_obliquity_of_ecliptic(double %0)
%3 = load double, double* @M_PI
%4 = tail call double @llvm.fmuladd.f64(double %0, double 0xC09E388B43958106, double 1.250400e+02)
%5 = fmul double %4, %3
%6 = fdiv double %5, 1.800000e+02
%7 = tail call double @cos(double %6)
%8 = fmul double %7, 2.560000e-03
%9 = fmul double %3, %8
%10 = fdiv double %9, 1.800000e+02
%11 = fadd double %2, %10
ret double %11
}