#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 range_degrees(double);
double get_mean_sidereal_time(double JD) {
  double sidereal;
  double T;
  T = (JD - 2451545.0) / 36525.0;
  sidereal = 280.46061837 + (360.98564736629 * (JD - 2451545.0)) +
             (0.000387933 * T * T) - (T * T * T / 38710000.0);
  sidereal = range_degrees(sidereal);
  return sidereal;
}


x86 assembly (clang, -O0):
<get_mean_sidereal_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xef6(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xef2(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  0xed4(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xeb8(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xeb4(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xe98(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  0xe67(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1030 <range_degrees@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_mean_sidereal_time>:
addsd  0xee8(%rip),%xmm0
movapd %xmm0,%xmm1
divsd  0xee4(%rip),%xmm1
mulsd  0xee4(%rip),%xmm0
addsd  0xee4(%rip),%xmm0
movsd  0xee4(%rip),%xmm2
mulsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm2,%xmm0
movapd %xmm1,%xmm2
mulsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
divsd  0xecc(%rip),%xmm2
addsd  %xmm2,%xmm0
jmp    1030 <range_degrees@plt>

LLVM IR (-O0):
define double @get_mean_sidereal_time(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
store double %0, double* %2
%5 = load double, double* %2
%6 = fsub double %5, 0x4142B42C80000000
%7 = fdiv double %6, 3.652500e+04
store double %7, double* %4
%8 = load double, double* %2
%9 = fsub double %8, 0x4142B42C80000000
%10 = call double @llvm.fmuladd.f64(double 0x40768FC5362C39AA, double %9, double 0x4071875EB15E3164)
%11 = load double, double* %4
%12 = fmul double 3.879330e-04, %11
%13 = load double, double* %4
%14 = call double @llvm.fmuladd.f64(double %12, double %13, double %10)
%15 = load double, double* %4
%16 = load double, double* %4
%17 = fmul double %15, %16
%18 = load double, double* %4
%19 = fmul double %17, %18
%20 = fdiv double %19, 3.871000e+07
%21 = fsub double %14, %20
store double %21, double* %3
%22 = load double, double* %3
%23 = call double @range_degrees(double %22)
store double %23, double* %3
%24 = load double, double* %3
ret double %24
}

LLVM IR (-O2):
define double @get_mean_sidereal_time(double %0) {
%2 = fadd double %0, 0xC142B42C80000000
%3 = fdiv double %2, 3.652500e+04
%4 = tail call double @llvm.fmuladd.f64(double %2, double 0x40768FC5362C39AA, double 0x4071875EB15E3164)
%5 = fmul double %3, 3.879330e-04
%6 = tail call double @llvm.fmuladd.f64(double %5, double %3, double %4)
%7 = fmul double %3, %3
%8 = fmul double %3, %7
%9 = fdiv double %8, 3.871000e+07
%10 = fsub double %6, %9
%11 = tail call double @range_degrees(double %10)
ret double %11
}