#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 pmod(double, int);
double prutenic_centri_sol(double);
double prutenic_excess_sol(double);
double prutenic_first_anomaly_sol(double);
double prutenic_mean_longitude_sol(double);
double prutenic_orbis_sol(double);
double prutenic_precession(double);
double prutenic_prop_sol(double);
double prutenic_longitude_sol(double days_since_epoch) {
  static double anomaly_radix =
      ((211) + (((39) + (((2) + (((20) + (49) / 60.)) / 60.)) / 60.)) / 60.);
  static double anomaly_daily =
      ((359) +
       (((44) +
         (((23) +
           (((37) + (((16) + (((35) + (59) / 60.)) / 60.)) / 60.)) / 60.)) /
             60.)) /
           60.) /
      365;
  double mean_longitude = prutenic_mean_longitude_sol(days_since_epoch);
  double mean_anomaly =
      pmod(anomaly_radix + days_since_epoch * anomaly_daily, 360);
  double first_anomaly = prutenic_first_anomaly_sol(days_since_epoch);
  double prop = prutenic_prop_sol(first_anomaly);
  double precession = prutenic_precession(days_since_epoch);
  double corrected_anomaly = mean_anomaly + prutenic_centri_sol(first_anomaly);
  double orbis = prutenic_orbis_sol(corrected_anomaly);
  double excess = prutenic_excess_sol(corrected_anomaly);
  double equation = orbis + prop / 60 * excess;
  double true_longitude_1st_aries =
      pmod((mean_anomaly < 180) ? mean_longitude - equation
                                : mean_longitude + equation,
           360);
  double true_longitude = true_longitude_1st_aries + precession;
  return true_longitude;
}


x86 assembly (clang, -O0):
<prutenic_longitude_sol>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1090 <prutenic_mean_longitude_sol@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  0x2ebc(%rip),%xmm1
movsd  -0x8(%rbp),%xmm0
movsd  0x2eb7(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    $0x168,%edi
call   10a0 <pmod@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1080 <prutenic_first_anomaly_sol@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1050 <prutenic_prop_sol@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1070 <prutenic_precession@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1060 <prutenic_centri_sol@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1040 <prutenic_orbis_sol@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1030 <prutenic_excess_sol@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
movsd  0xdbe(%rip),%xmm2
divsd  %xmm2,%xmm0
movsd  -0x48(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xd98(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    1287 <prutenic_longitude_sol+0x107>
movsd  -0x10(%rbp),%xmm0
subsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
jmp    1296 <prutenic_longitude_sol+0x116>
movsd  -0x10(%rbp),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
mov    $0x168,%edi
call   10a0 <pmod@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<prutenic_longitude_sol>:
sub    $0x48,%rsp
movsd  %xmm0,(%rsp)
call   1090 <prutenic_mean_longitude_sol@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0xe64(%rip),%xmm0
mulsd  (%rsp),%xmm0
addsd  0xe5f(%rip),%xmm0
mov    $0x168,%edi
call   10a0 <pmod@plt>
movapd %xmm0,0x20(%rsp)
movsd  (%rsp),%xmm0
call   1080 <prutenic_first_anomaly_sol@plt>
movsd  %xmm0,0x8(%rsp)
call   1050 <prutenic_prop_sol@plt>
movaps %xmm0,0x30(%rsp)
movsd  (%rsp),%xmm0
call   1070 <prutenic_precession@plt>
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
call   1060 <prutenic_centri_sol@plt>
addsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
call   1040 <prutenic_orbis_sol@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
call   1030 <prutenic_excess_sol@plt>
movapd 0x30(%rsp),%xmm1
divsd  0xdf3(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x8(%rsp),%xmm1
movapd 0xdf1(%rip),%xmm0
xorpd  %xmm1,%xmm0
movapd %xmm1,%xmm3
movapd 0x20(%rsp),%xmm2
cmpltsd 0xdd2(%rip),%xmm2
movapd %xmm2,%xmm1
andnpd %xmm3,%xmm1
andpd  %xmm0,%xmm2
orpd   %xmm1,%xmm2
addsd  0x18(%rsp),%xmm2
movapd %xmm2,%xmm0
mov    $0x168,%edi
call   10a0 <pmod@plt>
addsd  (%rsp),%xmm0
add    $0x48,%rsp
ret

LLVM IR (-O0):
@prutenic_longitude_sol.anomaly_radix = internal global double 0x406A74D223FE85FF
@prutenic_longitude_sol.anomaly_daily = internal global double 0x3FEF89F16C9CE892
define double @prutenic_longitude_sol(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
store double %0, double* %2
%14 = load double, double* %2
%15 = call double @prutenic_mean_longitude_sol(double %14)
store double %15, double* %3
%16 = load double, double* @prutenic_longitude_sol.anomaly_radix
%17 = load double, double* %2
%18 = load double, double* @prutenic_longitude_sol.anomaly_daily
%19 = call double @llvm.fmuladd.f64(double %17, double %18, double %16)
%20 = call double @pmod(double %19, i32 360)
store double %20, double* %4
%21 = load double, double* %2
%22 = call double @prutenic_first_anomaly_sol(double %21)
store double %22, double* %5
%23 = load double, double* %5
%24 = call double @prutenic_prop_sol(double %23)
store double %24, double* %6
%25 = load double, double* %2
%26 = call double @prutenic_precession(double %25)
store double %26, double* %7
%27 = load double, double* %4
%28 = load double, double* %5
%29 = call double @prutenic_centri_sol(double %28)
%30 = fadd double %27, %29
store double %30, double* %8
%31 = load double, double* %8
%32 = call double @prutenic_orbis_sol(double %31)
store double %32, double* %9
%33 = load double, double* %8
%34 = call double @prutenic_excess_sol(double %33)
store double %34, double* %10
%35 = load double, double* %9
%36 = load double, double* %6
%37 = fdiv double %36, 6.000000e+01
%38 = load double, double* %10
%39 = call double @llvm.fmuladd.f64(double %37, double %38, double %35)
store double %39, double* %11
%40 = load double, double* %4
%41 = fcmp olt double %40, 1.800000e+02
br i1 %41, label %42, label %46
42: ; preds = %1
%43 = load double, double* %3
%44 = load double, double* %11
%45 = fsub double %43, %44
br label %50
46: ; preds = %1
%47 = load double, double* %3
%48 = load double, double* %11
%49 = fadd double %47, %48
br label %50
50: ; preds = %46, %42
%51 = phi double [ %45, %42 ], [ %49, %46 ]
%52 = call double @pmod(double %51, i32 360)
store double %52, double* %12
%53 = load double, double* %12
%54 = load double, double* %7
%55 = fadd double %53, %54
store double %55, double* %13
%56 = load double, double* %13
ret double %56
}

LLVM IR (-O2):
define double @prutenic_longitude_sol(double %0) {
%2 = tail call double @prutenic_mean_longitude_sol(double %0)
%3 = tail call double @llvm.fmuladd.f64(double %0, double 0x3FEF89F16C9CE892, double 0x406A74D223FE85FF)
%4 = tail call double @pmod(double %3, i32 360)
%5 = tail call double @prutenic_first_anomaly_sol(double %0)
%6 = tail call double @prutenic_prop_sol(double %5)
%7 = tail call double @prutenic_precession(double %0)
%8 = tail call double @prutenic_centri_sol(double %5)
%9 = fadd double %4, %8
%10 = tail call double @prutenic_orbis_sol(double %9)
%11 = tail call double @prutenic_excess_sol(double %9)
%12 = fdiv double %6, 6.000000e+01
%13 = tail call double @llvm.fmuladd.f64(double %12, double %11, double %10)
%14 = fcmp olt double %4, 1.800000e+02
%15 = fneg double %13
%16 = select i1 %14, double %15, double %13
%17 = fadd double %2, %16
%18 = tail call double @pmod(double %17, i32 360)
%19 = fadd double %7, %18
ret double %19
}