#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 */
int pow(int, double);
double rec_dTmdlna(double xe, double Tm, double Tr, double H, double fHe,
                   double nH, double energy_rate) {
  double chi_heat;
  if (xe < 1.) {
    chi_heat = 0.996857 * (1. - pow(1. - pow(xe, 0.300134), 1.51035));
    if (chi_heat > 1.)
      chi_heat = 1.;
  } else
    chi_heat = 1.;
  return -2. * Tm +
         4.91466895548409e-22 * Tr * Tr * Tr * Tr * xe / (1. + xe + fHe) *
             (Tr - Tm) / H +
         2. / 3. / 8.617343e-5 * chi_heat / nH * energy_rate / (1. + xe + fHe) /
             H;
}


x86 assembly (clang, -O0):
<rec_dTmdlna>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  0xebd(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    11cb <rec_dTmdlna+0xbb>
cvttsd2si -0x8(%rbp),%edi
movsd  0xebd(%rip),%xmm0
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xe94(%rip),%xmm0
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
movsd  0xe94(%rip),%xmm0
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe73(%rip),%xmm1
subsd  %xmm0,%xmm1
movsd  0xe6f(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  0xe51(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11c6 <rec_dTmdlna+0xb6>
movsd  0xe3f(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    11d8 <rec_dTmdlna+0xc8>
movsd  0xe2d(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  0xe43(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  0xdfa(%rip),%xmm2
addsd  -0x8(%rbp),%xmm2
addsd  -0x28(%rbp),%xmm2
divsd  %xmm2,%xmm0
movsd  -0x18(%rbp),%xmm2
subsd  -0x10(%rbp),%xmm2
mulsd  %xmm2,%xmm0
divsd  -0x20(%rbp),%xmm0
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
movsd  0xde9(%rip),%xmm1
mulsd  -0x40(%rbp),%xmm1
divsd  -0x30(%rbp),%xmm1
mulsd  -0x38(%rbp),%xmm1
movsd  0xdb2(%rip),%xmm2
addsd  -0x8(%rbp),%xmm2
addsd  -0x28(%rbp),%xmm2
divsd  %xmm2,%xmm1
divsd  -0x20(%rbp),%xmm1
addsd  %xmm1,%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rec_dTmdlna>:
sub    $0x38,%rsp
movapd %xmm0,%xmm8
movsd  0xedf(%rip),%xmm0
ucomisd %xmm8,%xmm0
jbe    11cf <rec_dTmdlna+0xbf>
cvttsd2si %xmm8,%edi
movsd  0xecf(%rip),%xmm0
movsd  %xmm2,0x30(%rsp)
movsd  %xmm3,0x28(%rsp)
movsd  %xmm6,0x20(%rsp)
movsd  %xmm5,0x18(%rsp)
movsd  %xmm8,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm4,(%rsp)
call   1030 <pow@plt>
mov    $0x1,%edi
sub    %eax,%edi
movsd  0xe99(%rip),%xmm0
call   1030 <pow@plt>
movsd  (%rsp),%xmm4
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm8
movsd  0x18(%rsp),%xmm5
movsd  0x20(%rsp),%xmm6
movsd  0x28(%rsp),%xmm3
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
movsd  0xe51(%rip),%xmm7
movapd %xmm7,%xmm0
subsd  %xmm2,%xmm0
movsd  0x30(%rsp),%xmm2
mulsd  0xe53(%rip),%xmm0
ucomisd %xmm7,%xmm0
jbe    11cf <rec_dTmdlna+0xbf>
movapd %xmm7,%xmm0
movsd  0xe49(%rip),%xmm7
mulsd  %xmm2,%xmm7
mulsd  %xmm2,%xmm7
mulsd  %xmm2,%xmm7
mulsd  %xmm2,%xmm7
mulsd  %xmm8,%xmm7
addsd  0xe0b(%rip),%xmm8
addsd  %xmm4,%xmm8
divsd  %xmm8,%xmm7
subsd  %xmm1,%xmm2
mulsd  %xmm7,%xmm2
divsd  %xmm3,%xmm2
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm2
mulsd  0xe0d(%rip),%xmm0
divsd  %xmm5,%xmm0
mulsd  %xmm6,%xmm0
divsd  %xmm8,%xmm0
divsd  %xmm3,%xmm0
addsd  %xmm2,%xmm0
add    $0x38,%rsp
ret

LLVM IR (-O0):
define double @rec_dTmdlna(double %0, double %1, double %2, double %3, double %4, double %5, double %6) {
%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* %8
store double %1, double* %9
store double %2, double* %10
store double %3, double* %11
store double %4, double* %12
store double %5, double* %13
store double %6, double* %14
%16 = load double, double* %8
%17 = fcmp olt double %16, 1.000000e+00
br i1 %17, label %18, label %33
18: ; preds = %7
%19 = load double, double* %8
%20 = fptosi double %19 to i32
%21 = call i32 @pow(i32 %20, double 3.001340e-01)
%22 = sitofp i32 %21 to double
%23 = fsub double 1.000000e+00, %22
%24 = fptosi double %23 to i32
%25 = call i32 @pow(i32 %24, double 1.510350e+00)
%26 = sitofp i32 %25 to double
%27 = fsub double 1.000000e+00, %26
%28 = fmul double 0x3FEFE640A6B93CCD, %27
store double %28, double* %15
%29 = load double, double* %15
%30 = fcmp ogt double %29, 1.000000e+00
br i1 %30, label %31, label %32
31: ; preds = %18
store double 1.000000e+00, double* %15
br label %32
32: ; preds = %31, %18
br label %34
33: ; preds = %7
store double 1.000000e+00, double* %15
br label %34
34: ; preds = %33, %32
%35 = load double, double* %9
%36 = load double, double* %10
%37 = fmul double 0x3B82912D18912EF2, %36
%38 = load double, double* %10
%39 = fmul double %37, %38
%40 = load double, double* %10
%41 = fmul double %39, %40
%42 = load double, double* %10
%43 = fmul double %41, %42
%44 = load double, double* %8
%45 = fmul double %43, %44
%46 = load double, double* %8
%47 = fadd double 1.000000e+00, %46
%48 = load double, double* %12
%49 = fadd double %47, %48
%50 = fdiv double %45, %49
%51 = load double, double* %10
%52 = load double, double* %9
%53 = fsub double %51, %52
%54 = fmul double %50, %53
%55 = load double, double* %11
%56 = fdiv double %54, %55
%57 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %35, double %56)
%58 = load double, double* %15
%59 = fmul double 0x40BE38563023F6AA, %58
%60 = load double, double* %13
%61 = fdiv double %59, %60
%62 = load double, double* %14
%63 = fmul double %61, %62
%64 = load double, double* %8
%65 = fadd double 1.000000e+00, %64
%66 = load double, double* %12
%67 = fadd double %65, %66
%68 = fdiv double %63, %67
%69 = load double, double* %11
%70 = fdiv double %68, %69
%71 = fadd double %57, %70
ret double %71
}

LLVM IR (-O2):
define double @rec_dTmdlna(double %0, double %1, double %2, double %3, double %4, double %5, double %6) {
%8 = fcmp olt double %0, 1.000000e+00
br i1 %8, label %9, label %19
9: ; preds = %7
%10 = fptosi double %0 to i32
%11 = tail call i32 @pow(i32 %10, double 3.001340e-01)
%12 = sub i32 1, %11
%13 = tail call i32 @pow(i32 %12, double 1.510350e+00)
%14 = sitofp i32 %13 to double
%15 = fsub double 1.000000e+00, %14
%16 = fmul double %15, 0x3FEFE640A6B93CCD
%17 = fcmp ogt double %16, 1.000000e+00
br i1 %17, label %18, label %19
18: ; preds = %9
br label %19
19: ; preds = %7, %9, %18
%20 = phi double [ 1.000000e+00, %18 ], [ %16, %9 ], [ 1.000000e+00, %7 ]
%21 = fmul double %2, 0x3B82912D18912EF2
%22 = fmul double %21, %2
%23 = fmul double %22, %2
%24 = fmul double %23, %2
%25 = fmul double %24, %0
%26 = fadd double %0, 1.000000e+00
%27 = fadd double %26, %4
%28 = fdiv double %25, %27
%29 = fsub double %2, %1
%30 = fmul double %29, %28
%31 = fdiv double %30, %3
%32 = tail call double @llvm.fmuladd.f64(double %1, double -2.000000e+00, double %31)
%33 = fmul double %20, 0x40BE38563023F6AA
%34 = fdiv double %33, %5
%35 = fmul double %34, %6
%36 = fdiv double %35, %27
%37 = fdiv double %36, %3
%38 = fadd double %32, %37
ret double %38
}