#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 cos_theta_star(double);
double flux_gaisser(double const, double, double);
double pow(double const, double);
double flux_gccly(double cos_theta, double kinetic_energy, double charge) {
  const double Emu = kinetic_energy + 0.10566;
  const double cs = cos_theta_star(cos_theta);
  return pow(1. + 3.64 / (Emu * pow(cs, 1.29)), -2.7) *
         flux_gaisser(cs, kinetic_energy, charge);
}


x86 assembly (clang, -O0):
<flux_gccly>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  0xed1(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1040 <cos_theta_star@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  0xe99(%rip),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe78(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  0xe64(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  0xe50(%rip),%xmm1
call   1050 <pow@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
call   1030 <flux_gaisser@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<flux_gccly>:
sub    $0x28,%rsp
movsd  %xmm2,0x20(%rsp)
movsd  %xmm1,0x18(%rsp)
movsd  0xeb8(%rip),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
call   1040 <cos_theta_star@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0xea3(%rip),%xmm1
call   1050 <pow@plt>
mulsd  0x8(%rsp),%xmm0
movsd  0xe98(%rip),%xmm2
divsd  %xmm0,%xmm2
addsd  0xe94(%rip),%xmm2
movsd  0xe94(%rip),%xmm1
movapd %xmm2,%xmm0
call   1050 <pow@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
call   1030 <flux_gaisser@plt>
mulsd  0x8(%rsp),%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @flux_gccly(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%9 = load double, double* %5
%10 = fadd double %9, 1.056600e-01
store double %10, double* %7
%11 = load double, double* %4
%12 = call double @cos_theta_star(double %11)
store double %12, double* %8
%13 = load double, double* %7
%14 = load double, double* %8
%15 = call double @pow(double %14, double 1.290000e+00)
%16 = fmul double %13, %15
%17 = fdiv double 3.640000e+00, %16
%18 = fadd double 1.000000e+00, %17
%19 = call double @pow(double %18, double -2.700000e+00)
%20 = load double, double* %8
%21 = load double, double* %5
%22 = load double, double* %6
%23 = call double @flux_gaisser(double %20, double %21, double %22)
%24 = fmul double %19, %23
ret double %24
}

LLVM IR (-O2):
define double @flux_gccly(double %0, double %1, double %2) {
%4 = fadd double %1, 1.056600e-01
%5 = tail call double @cos_theta_star(double %0)
%6 = tail call double @pow(double %5, double 1.290000e+00)
%7 = fmul double %4, %6
%8 = fdiv double 3.640000e+00, %7
%9 = fadd double %8, 1.000000e+00
%10 = tail call double @pow(double %9, double -2.700000e+00)
%11 = tail call double @flux_gaisser(double %5, double %1, double %2)
%12 = fmul double %10, %11
ret double %12
}