#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 calcGeomMeanAnomalySun(double);
double degToRad(double);
double sin(double);
double calcSunEqOfCenter(double t) {
  double m = calcGeomMeanAnomalySun(t);
  double mrad = degToRad(m);
  double sinm = sin(mrad);
  double sin2m = sin(mrad + mrad);
  double sin3m = sin(mrad + mrad + mrad);
  double C = sinm * (1.914602 - t * (0.004817 + 0.000014 * t)) +
             sin2m * (0.019993 - 0.000101 * t) + sin3m * 0.000289;
  return C;
}


x86 assembly (clang, -O0):
<calcSunEqOfCenter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <calcGeomMeanAnomalySun@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1050 <degToRad@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm2
movsd  -0x8(%rbp),%xmm0
movsd  0xe72(%rip),%xmm3
mulsd  %xmm3,%xmm0
movsd  0xe6e(%rip),%xmm3
addsd  %xmm3,%xmm0
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm0,%xmm2
movsd  0xe37(%rip),%xmm0
addsd  %xmm0,%xmm2
movsd  -0x28(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm3
movsd  0xe11(%rip),%xmm4
mulsd  %xmm4,%xmm3
movsd  0xe0d(%rip),%xmm4
addsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
movsd  0xde0(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calcSunEqOfCenter>:
sub    $0x28,%rsp
movsd  %xmm0,0x18(%rsp)
call   1030 <calcGeomMeanAnomalySun@plt>
call   1050 <degToRad@plt>
movsd  %xmm0,(%rsp)
call   1040 <sin@plt>
movsd  %xmm0,0x20(%rsp)
movsd  (%rsp),%xmm0
addsd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
call   1040 <sin@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
call   1040 <sin@plt>
movsd  0xe7a(%rip),%xmm1
movsd  0x18(%rsp),%xmm3
mulsd  %xmm3,%xmm1
addsd  0xe70(%rip),%xmm1
mulsd  %xmm3,%xmm1
movsd  0xe6c(%rip),%xmm2
subsd  %xmm1,%xmm2
mulsd  0xe68(%rip),%xmm3
addsd  0xe68(%rip),%xmm3
mulsd  0x10(%rsp),%xmm3
mulsd  0x20(%rsp),%xmm2
addsd  %xmm3,%xmm2
mulsd  0xe58(%rip),%xmm0
addsd  %xmm2,%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @calcSunEqOfCenter(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %2
%9 = load double, double* %2
%10 = call double @calcGeomMeanAnomalySun(double %9)
store double %10, double* %3
%11 = load double, double* %3
%12 = call double @degToRad(double %11)
store double %12, double* %4
%13 = load double, double* %4
%14 = call double @sin(double %13)
store double %14, double* %5
%15 = load double, double* %4
%16 = load double, double* %4
%17 = fadd double %15, %16
%18 = call double @sin(double %17)
store double %18, double* %6
%19 = load double, double* %4
%20 = load double, double* %4
%21 = fadd double %19, %20
%22 = load double, double* %4
%23 = fadd double %21, %22
%24 = call double @sin(double %23)
store double %24, double* %7
%25 = load double, double* %5
%26 = load double, double* %2
%27 = load double, double* %2
%28 = call double @llvm.fmuladd.f64(double 1.400000e-05, double %27, double 4.817000e-03)
%29 = fneg double %26
%30 = call double @llvm.fmuladd.f64(double %29, double %28, double 0x3FFEA235B4EDB2F6)
%31 = load double, double* %6
%32 = load double, double* %2
%33 = call double @llvm.fmuladd.f64(double -1.010000e-04, double %32, double 1.999300e-02)
%34 = fmul double %31, %33
%35 = call double @llvm.fmuladd.f64(double %25, double %30, double %34)
%36 = load double, double* %7
%37 = call double @llvm.fmuladd.f64(double %36, double 2.890000e-04, double %35)
store double %37, double* %8
%38 = load double, double* %8
ret double %38
}

LLVM IR (-O2):
define double @calcSunEqOfCenter(double %0) {
%2 = tail call double @calcGeomMeanAnomalySun(double %0)
%3 = tail call double @degToRad(double %2)
%4 = tail call double @sin(double %3)
%5 = fadd double %3, %3
%6 = tail call double @sin(double %5)
%7 = fadd double %3, %5
%8 = tail call double @sin(double %7)
%9 = tail call double @llvm.fmuladd.f64(double %0, double 1.400000e-05, double 4.817000e-03)
%10 = fneg double %0
%11 = tail call double @llvm.fmuladd.f64(double %10, double %9, double 0x3FFEA235B4EDB2F6)
%12 = tail call double @llvm.fmuladd.f64(double %0, double -1.010000e-04, double 1.999300e-02)
%13 = fmul double %12, %6
%14 = tail call double @llvm.fmuladd.f64(double %4, double %11, double %13)
%15 = tail call double @llvm.fmuladd.f64(double %8, double 2.890000e-04, double %14)
ret double %15
}