#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 exp(double);
int sqrt(int);
double rec_saha_xe_H(double nH0, double T0, double z) {
  double xeSaha, s, Tr, nH, ainv;
  Tr = T0 * (ainv = 1. + z);
  nH = nH0 * ainv * ainv * ainv;
  s = 2.4127161187130e21 * Tr * sqrt(Tr) * exp(-157801.37882 / Tr) / nH;
  xeSaha = 2. / (1. + sqrt(1. + 4. / s));
  return (xeSaha);
}


x86 assembly (clang, -O0):
<rec_saha_xe_H>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xec4(%rip),%xmm1
addsd  -0x18(%rbp),%xmm1
movsd  %xmm1,-0x40(%rbp)
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xea8(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
cvttsd2si -0x30(%rbp),%edi
call   1040 <sqrt@plt>
movsd  -0x50(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xe72(%rip),%xmm0
divsd  -0x30(%rbp),%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm1,%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe42(%rip),%xmm1
divsd  -0x28(%rbp),%xmm1
movsd  0xe2d(%rip),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <sqrt@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe14(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0xe00(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rec_saha_xe_H>:
sub    $0x38,%rsp
addsd  0xed4(%rip),%xmm2
movapd %xmm2,0x10(%rsp)
mulsd  %xmm2,%xmm1
movapd %xmm1,0x20(%rsp)
movapd %xmm1,%xmm3
unpcklpd %xmm2,%xmm3
movapd 0xed4(%rip),%xmm2
unpcklpd %xmm0,%xmm2
mulpd  %xmm3,%xmm2
movapd %xmm2,(%rsp)
cvttsd2si %xmm1,%edi
call   1040 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
unpcklpd 0x10(%rsp),%xmm0
mulpd  (%rsp),%xmm0
movapd %xmm0,(%rsp)
movsd  0xe87(%rip),%xmm0
divsd  0x20(%rsp),%xmm0
call   1030 <exp@plt>
unpcklpd 0x10(%rsp),%xmm0
mulpd  (%rsp),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
divsd  %xmm1,%xmm0
movsd  0xe65(%rip),%xmm1
divsd  %xmm0,%xmm1
addsd  0xe49(%rip),%xmm1
cvttsd2si %xmm1,%edi
call   1040 <sqrt@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
addsd  0xe31(%rip),%xmm1
movsd  0xe41(%rip),%xmm0
divsd  %xmm1,%xmm0
add    $0x38,%rsp
ret

LLVM IR (-O0):
define double @rec_saha_xe_H(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%12 = load double, double* %5
%13 = load double, double* %6
%14 = fadd double 1.000000e+00, %13
store double %14, double* %11
%15 = fmul double %12, %14
store double %15, double* %9
%16 = load double, double* %4
%17 = load double, double* %11
%18 = fmul double %16, %17
%19 = load double, double* %11
%20 = fmul double %18, %19
%21 = load double, double* %11
%22 = fmul double %20, %21
store double %22, double* %10
%23 = load double, double* %9
%24 = fmul double 0x4460596531DB4072, %23
%25 = load double, double* %9
%26 = fptosi double %25 to i32
%27 = call i32 @sqrt(i32 %26)
%28 = sitofp i32 %27 to double
%29 = fmul double %24, %28
%30 = load double, double* %9
%31 = fdiv double 0xC103434B07D2C7B9, %30
%32 = call double @exp(double %31)
%33 = fmul double %29, %32
%34 = load double, double* %10
%35 = fdiv double %33, %34
store double %35, double* %8
%36 = load double, double* %8
%37 = fdiv double 4.000000e+00, %36
%38 = fadd double 1.000000e+00, %37
%39 = fptosi double %38 to i32
%40 = call i32 @sqrt(i32 %39)
%41 = sitofp i32 %40 to double
%42 = fadd double 1.000000e+00, %41
%43 = fdiv double 2.000000e+00, %42
store double %43, double* %7
%44 = load double, double* %7
ret double %44
}

LLVM IR (-O2):
define double @rec_saha_xe_H(double %0, double %1, double %2) {
%4 = fadd double %2, 1.000000e+00
%5 = fmul double %4, %1
%6 = insertelement <2 x double> poison, double %5, i64 0
%7 = insertelement <2 x double> %6, double %4, i64 1
%8 = insertelement <2 x double> <double 0x4460596531DB4072, double poison>, double %0, i64 1
%9 = fmul <2 x double> %7, %8
%10 = fptosi double %5 to i32
%11 = tail call i32 @sqrt(i32 %10)
%12 = sitofp i32 %11 to double
%13 = insertelement <2 x double> poison, double %12, i64 0
%14 = insertelement <2 x double> %13, double %4, i64 1
%15 = fmul <2 x double> %9, %14
%16 = fdiv double 0xC103434B07D2C7B9, %5
%17 = tail call double @exp(double %16)
%18 = insertelement <2 x double> poison, double %17, i64 0
%19 = insertelement <2 x double> %18, double %4, i64 1
%20 = fmul <2 x double> %19, %15
%21 = extractelement <2 x double> %20, i64 0
%22 = extractelement <2 x double> %20, i64 1
%23 = fdiv double %21, %22
%24 = fdiv double 4.000000e+00, %23
%25 = fadd double %24, 1.000000e+00
%26 = fptosi double %25 to i32
%27 = tail call i32 @sqrt(i32 %26)
%28 = sitofp i32 %27 to double
%29 = fadd double %28, 1.000000e+00
%30 = fdiv double 2.000000e+00, %29
ret double %30
}