#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 calcEquationOfTime(double);
double calcJDFromJulianCent(double const);
double calcTimeJulianCent(double const);
double calcSolNoonUTC(const double t, const double longitude) {
  double tnoon;
  double eqTime;
  double solNoonUTC;
  double newt;
  tnoon = calcTimeJulianCent(calcJDFromJulianCent(t) + longitude / 360.0);
  eqTime = calcEquationOfTime(tnoon);
  solNoonUTC = 720 + (longitude * 4) - eqTime;
  newt =
      calcTimeJulianCent(calcJDFromJulianCent(t) - 0.5 + solNoonUTC / 1440.0);
  eqTime = calcEquationOfTime(newt);
  solNoonUTC = 720 + (longitude * 4) - eqTime;
  return solNoonUTC;
}


x86 assembly (clang, -O0):
<calcSolNoonUTC>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <calcJDFromJulianCent@plt>
movsd  -0x10(%rbp),%xmm1
movsd  0xec7(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
call   1050 <calcTimeJulianCent@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <calcEquationOfTime@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe79(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe75(%rip),%xmm1
addsd  %xmm1,%xmm0
subsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <calcJDFromJulianCent@plt>
movsd  0xe65(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  0xe4c(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
call   1050 <calcTimeJulianCent@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1040 <calcEquationOfTime@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe0e(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe0a(%rip),%xmm1
addsd  %xmm1,%xmm0
subsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calcSolNoonUTC>:
sub    $0x18,%rsp
movsd  %xmm1,(%rsp)
movsd  %xmm0,0x10(%rsp)
call   1030 <calcJDFromJulianCent@plt>
movsd  (%rsp),%xmm1
divsd  0xeaf(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1050 <calcTimeJulianCent@plt>
call   1040 <calcEquationOfTime@plt>
movsd  (%rsp),%xmm1
mulsd  0xe9c(%rip),%xmm1
addsd  0xe9c(%rip),%xmm1
movsd  %xmm1,(%rsp)
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
call   1030 <calcJDFromJulianCent@plt>
addsd  0xe82(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
divsd  0xe7c(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1050 <calcTimeJulianCent@plt>
call   1040 <calcEquationOfTime@plt>
movsd  (%rsp),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @calcSolNoonUTC(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %3
store double %1, double* %4
%9 = load double, double* %3
%10 = call double @calcJDFromJulianCent(double %9)
%11 = load double, double* %4
%12 = fdiv double %11, 3.600000e+02
%13 = fadd double %10, %12
%14 = call double @calcTimeJulianCent(double %13)
store double %14, double* %5
%15 = load double, double* %5
%16 = call double @calcEquationOfTime(double %15)
store double %16, double* %6
%17 = load double, double* %4
%18 = call double @llvm.fmuladd.f64(double %17, double 4.000000e+00, double 7.200000e+02)
%19 = load double, double* %6
%20 = fsub double %18, %19
store double %20, double* %7
%21 = load double, double* %3
%22 = call double @calcJDFromJulianCent(double %21)
%23 = fsub double %22, 5.000000e-01
%24 = load double, double* %7
%25 = fdiv double %24, 1.440000e+03
%26 = fadd double %23, %25
%27 = call double @calcTimeJulianCent(double %26)
store double %27, double* %8
%28 = load double, double* %8
%29 = call double @calcEquationOfTime(double %28)
store double %29, double* %6
%30 = load double, double* %4
%31 = call double @llvm.fmuladd.f64(double %30, double 4.000000e+00, double 7.200000e+02)
%32 = load double, double* %6
%33 = fsub double %31, %32
store double %33, double* %7
%34 = load double, double* %7
ret double %34
}

LLVM IR (-O2):
define double @calcSolNoonUTC(double %0, double %1) {
%3 = tail call double @calcJDFromJulianCent(double %0)
%4 = fdiv double %1, 3.600000e+02
%5 = fadd double %4, %3
%6 = tail call double @calcTimeJulianCent(double %5)
%7 = tail call double @calcEquationOfTime(double %6)
%8 = tail call double @llvm.fmuladd.f64(double %1, double 4.000000e+00, double 7.200000e+02)
%9 = fsub double %8, %7
%10 = tail call double @calcJDFromJulianCent(double %0)
%11 = fadd double %10, -5.000000e-01
%12 = fdiv double %9, 1.440000e+03
%13 = fadd double %11, %12
%14 = tail call double @calcTimeJulianCent(double %13)
%15 = tail call double @calcEquationOfTime(double %14)
%16 = fsub double %8, %15
ret double %16
}