#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 */
int M_PI;
double pmod(double, int);
double prutenic_first_anomaly_sol(double);
double sin(int);
double prutenic_precession(double days_since_epoch) {
  static double precession_radix =
      ((5) + (((32) + (((24) + (((6) + (59) / 60.)) / 60.)) / 60.)) / 60.);
  static double precession_daily =
      ((0) +
       (((0) + (((50) +
                 (((12) + (((5) + (((7) + (54) / 60.)) / 60.)) / 60.)) / 60.)) /
                   60.)) /
           60.) /
      365;
  static double equation_amplitude =
      ((1) + (((11) + (((22) + (30) / 60.)) / 60.)) / 60.);
  double first_anomaly = prutenic_first_anomaly_sol(days_since_epoch);
  double mean_precession =
      pmod(precession_radix + days_since_epoch * precession_daily, 360);
  double precession_equation =
      -equation_amplitude * sin(2 * first_anomaly * M_PI / 180.0);
  double true_precession = mean_precession + precession_equation;
  return true_precession;
}


x86 assembly (clang, -O0):
<prutenic_precession>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1040 <prutenic_first_anomaly_sol@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  0x2ee4(%rip),%xmm1
movsd  -0x8(%rbp),%xmm0
movsd  0x2edf(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    $0x168,%edi
call   1050 <pmod@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  0x2ec8(%rip),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe64(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mov    0x2e38(%rip),%rax
cvtsi2sdl (%rax),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe40(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<prutenic_precession>:
sub    $0x18,%rsp
movsd  %xmm0,0x8(%rsp)
call   1040 <prutenic_first_anomaly_sol@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0xead(%rip),%xmm0
addsd  0xead(%rip),%xmm0
mov    $0x168,%edi
call   1050 <pmod@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm1
addsd  %xmm1,%xmm1
mov    0x2e6c(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax),%xmm0
mulsd  %xmm1,%xmm0
divsd  0xe81(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <sin@plt>
mulsd  0xe78(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
@prutenic_precession.precession_radix = internal global double 0x401628FE3C34C5CD
@prutenic_precession.precession_daily = internal global double 0x3F0407CB4130A405
@prutenic_precession.equation_amplitude = internal global double 0x3FF3088888888888
@M_PI = global i32 0
define double @prutenic_precession(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %2
%7 = load double, double* %2
%8 = call double @prutenic_first_anomaly_sol(double %7)
store double %8, double* %3
%9 = load double, double* @prutenic_precession.precession_radix
%10 = load double, double* %2
%11 = load double, double* @prutenic_precession.precession_daily
%12 = call double @llvm.fmuladd.f64(double %10, double %11, double %9)
%13 = call double @pmod(double %12, i32 360)
store double %13, double* %4
%14 = load double, double* @prutenic_precession.equation_amplitude
%15 = fneg double %14
%16 = load double, double* %3
%17 = fmul double 2.000000e+00, %16
%18 = load i32, i32* @M_PI
%19 = sitofp i32 %18 to double
%20 = fmul double %17, %19
%21 = fdiv double %20, 1.800000e+02
%22 = fptosi double %21 to i32
%23 = call double @sin(i32 %22)
%24 = fmul double %15, %23
store double %24, double* %5
%25 = load double, double* %4
%26 = load double, double* %5
%27 = fadd double %25, %26
store double %27, double* %6
%28 = load double, double* %6
ret double %28
}

LLVM IR (-O2):
@M_PI = global i32 0
define double @prutenic_precession(double %0) {
%2 = tail call double @prutenic_first_anomaly_sol(double %0)
%3 = tail call double @llvm.fmuladd.f64(double %0, double 0x3F0407CB4130A405, double 0x401628FE3C34C5CD)
%4 = tail call double @pmod(double %3, i32 360)
%5 = fmul double %2, 2.000000e+00
%6 = load i32, i32* @M_PI
%7 = sitofp i32 %6 to double
%8 = fmul double %5, %7
%9 = fdiv double %8, 1.800000e+02
%10 = fptosi double %9 to i32
%11 = tail call double @sin(i32 %10)
%12 = fmul double %11, 0x3FF3088888888888
%13 = fsub double %4, %12
ret double %13
}