#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 const exp(double const);
double pow(double, double);
double sqrt(double const);
double H2_efficiency(const double T, const double Td) {
  const double mu = 5.0e-3, FF = 1.0e-15, Eh2 = 3.2e2, Ehp = 6.0e2, Ehc = 1.0e4,
               Es = 2.0e2, nuH2 = 3.0e12, nuHc = 1.3e13;
  double bbH2, betal, ksi;
  bbH2 = nuH2 * exp(-Eh2 / Td);
  betal = 2.5e-1 *
          ((1.0e0 + sqrt((Ehc - Es) / (Ehp - Es))) *
           (1.0e0 + sqrt((Ehc - Es) / (Ehp - Es)))) *
          exp(-Es / Td);
  ksi = pow((1.0e0 + nuHc / (2.0e0 * FF) * exp(-1.5e0 * Ehc / Td) *
                         ((1.0e0 + sqrt((Ehc - Es) / (Ehp - Es))) *
                          (1.0e0 + sqrt((Ehc - Es) / (Ehp - Es))))),
            -1.0e0);
  return pow((1.0e0 + mu * FF / (2.0e0 * bbH2) + betal), -1.0e0) * ksi;
}


x86 assembly (clang, -O0):
<H2_efficiency>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xf3b(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xf26(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xf11(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xefc(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xee7(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xed2(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xead(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xeb0(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe9b(%rip),%xmm0
divsd  -0x10(%rbp),%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  0xe7e(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe45(%rip),%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0xe1d(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xe21(%rip),%xmm0
call   1050 <sqrt@plt>
movsd  -0x88(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  0xdf1(%rip),%xmm0
addsd  %xmm2,%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe19(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xe00(%rip),%xmm0
divsd  -0x10(%rbp),%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xdd5(%rip),%xmm0
divsd  -0x10(%rbp),%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  0xdb8(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xd9f(%rip),%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0xd77(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0xd7e(%rip),%xmm0
call   1050 <sqrt@plt>
movsd  -0x78(%rbp),%xmm1
movaps %xmm0,%xmm3
movsd  -0x70(%rbp),%xmm0
movsd  0xd4c(%rip),%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd38(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xd24(%rip),%xmm1
call   1040 <pow@plt>
movsd  %xmm0,-0x68(%rbp)
movsd  0xd2a(%rip),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  0xd15(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  0xd01(%rip),%xmm0
addsd  %xmm1,%xmm0
addsd  -0x60(%rbp),%xmm0
movsd  0xce8(%rip),%xmm1
call   1040 <pow@plt>
mulsd  -0x68(%rbp),%xmm0
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<H2_efficiency>:
sub    $0x18,%rsp
movsd  %xmm1,(%rsp)
movsd  0xedf(%rip),%xmm0
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
mulsd  0xed6(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xed0(%rip),%xmm0
divsd  (%rsp),%xmm0
call   1030 <exp@plt>
mulsd  0xec6(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xec0(%rip),%xmm0
divsd  (%rsp),%xmm0
call   1030 <exp@plt>
mulsd  0xeb6(%rip),%xmm0
mulsd  0xeb6(%rip),%xmm0
movsd  0xeb6(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0x10(%rsp),%xmm3
addsd  %xmm3,%xmm3
movsd  0xea8(%rip),%xmm2
divsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
addsd  0x8(%rsp),%xmm2
unpcklpd %xmm2,%xmm0
movapd 0xe9e(%rip),%xmm1
divpd  %xmm0,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @H2_efficiency(double %0, double %1) {
%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
%14 = alloca double
%15 = alloca double
store double %0, double* %3
store double %1, double* %4
store double 5.000000e-03, double* %5
store double 1.000000e-15, double* %6
store double 3.200000e+02, double* %7
store double 6.000000e+02, double* %8
store double 1.000000e+04, double* %9
store double 2.000000e+02, double* %10
store double 3.000000e+12, double* %11
store double 1.300000e+13, double* %12
%16 = load double, double* %4
%17 = fdiv double -3.200000e+02, %16
%18 = call double @exp(double %17)
%19 = fmul double 3.000000e+12, %18
store double %19, double* %13
%20 = call double @sqrt(double 2.450000e+01)
%21 = fadd double 1.000000e+00, %20
%22 = call double @sqrt(double 2.450000e+01)
%23 = fadd double 1.000000e+00, %22
%24 = fmul double %21, %23
%25 = fmul double 2.500000e-01, %24
%26 = load double, double* %4
%27 = fdiv double -2.000000e+02, %26
%28 = call double @exp(double %27)
%29 = fmul double %25, %28
store double %29, double* %14
%30 = load double, double* %4
%31 = fdiv double -1.500000e+04, %30
%32 = call double @exp(double %31)
%33 = fmul double 0x45B500AC8A0ECB41, %32
%34 = call double @sqrt(double 2.450000e+01)
%35 = fadd double 1.000000e+00, %34
%36 = call double @sqrt(double 2.450000e+01)
%37 = fadd double 1.000000e+00, %36
%38 = fmul double %35, %37
%39 = call double @llvm.fmuladd.f64(double %33, double %38, double 1.000000e+00)
%40 = call double @pow(double %39, double -1.000000e+00)
store double %40, double* %15
%41 = load double, double* %13
%42 = fmul double 2.000000e+00, %41
%43 = fdiv double 5.000000e-18, %42
%44 = fadd double 1.000000e+00, %43
%45 = load double, double* %14
%46 = fadd double %44, %45
%47 = call double @pow(double %46, double -1.000000e+00)
%48 = load double, double* %15
%49 = fmul double %47, %48
ret double %49
}

LLVM IR (-O2):
define double @H2_efficiency(double %0, double %1) {
%3 = fdiv double -3.200000e+02, %1
%4 = tail call double @exp(double %3)
%5 = fmul double %4, 3.000000e+12
%6 = fdiv double -2.000000e+02, %1
%7 = tail call double @exp(double %6)
%8 = fmul double %7, 0x4021B322A66BD515
%9 = fdiv double -1.500000e+04, %1
%10 = tail call double @exp(double %9)
%11 = fmul double %10, 0x45B500AC8A0ECB41
%12 = tail call double @llvm.fmuladd.f64(double %11, double 0x4041B322A66BD515, double 1.000000e+00)
%13 = fmul double %5, 2.000000e+00
%14 = fdiv double 5.000000e-18, %13
%15 = fadd double %14, 1.000000e+00
%16 = fadd double %8, %15
%17 = insertelement <2 x double> poison, double %12, i64 0
%18 = insertelement <2 x double> %17, double %16, i64 1
%19 = fdiv <2 x double> <double 1.000000e+00, double 1.000000e+00>, %18
%20 = shufflevector <2 x double> %19, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%21 = fmul <2 x double> %19, %20
%22 = extractelement <2 x double> %21, i64 0
ret double %22
}