#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(int);
double pow(int, int);
double sqrt(double);
double L_Vib_H2(double T, double H2dens) {
  double Llte, L0, L;
  Llte = 1.10e-18 * exp(-6744e0 / T);
  L0 = 1.19e-24 * sqrt(T) * exp(-18100e0 / (T + 1190e0)) * exp(-5987e0 / T);
  L = pow(1e0 / L0 + H2dens / Llte, -1e0);
  return L;
}


x86 assembly (clang, -O0):
<L_Vib_H2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xee6(%rip),%xmm0
divsd  -0x8(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  0xec5(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0xe9f(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe86(%rip),%xmm1
addsd  -0x8(%rbp),%xmm1
movsd  0xe71(%rip),%xmm0
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe43(%rip),%xmm0
divsd  -0x8(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe14(%rip),%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
divsd  -0x18(%rbp),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
mov    $0xffffffff,%esi
call   1040 <pow@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<L_Vib_H2>:
sub    $0x48,%rsp
movaps %xmm1,0x30(%rsp)
movsd  %xmm0,0x8(%rsp)
movsd  0xeb9(%rip),%xmm1
divsd  %xmm0,%xmm1
cvttsd2si %xmm1,%edi
call   1030 <exp@plt>
movapd %xmm0,0x20(%rsp)
xorpd  %xmm0,%xmm0
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jb     1176 <L_Vib_H2+0x46>
movsd  0x8(%rsp),%xmm0
sqrtsd %xmm0,%xmm0
jmp    1181 <L_Vib_H2+0x51>
movsd  0x8(%rsp),%xmm0
call   1050 <sqrt@plt>
mulsd  0xe7f(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xe79(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  0xe73(%rip),%xmm1
divsd  %xmm0,%xmm1
cvttsd2si %xmm1,%edi
call   1030 <exp@plt>
mulsd  0x10(%rsp),%xmm0
movapd %xmm0,0x10(%rsp)
movsd  0xe5a(%rip),%xmm0
divsd  0x8(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <exp@plt>
movapd 0xe53(%rip),%xmm1
unpcklpd 0x10(%rsp),%xmm1
movapd 0x20(%rsp),%xmm2
unpcklpd %xmm0,%xmm2
mulpd  %xmm1,%xmm2
movapd 0x30(%rsp),%xmm1
shufpd $0x2,0xe40(%rip),%xmm1
divpd  %xmm2,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
mov    $0xffffffff,%esi
add    $0x48,%rsp
jmp    1040 <pow@plt>

LLVM IR (-O0):
define double @L_Vib_H2(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double %0, double* %3
store double %1, double* %4
%8 = load double, double* %3
%9 = fdiv double -6.744000e+03, %8
%10 = fptosi double %9 to i32
%11 = call double @exp(i32 %10)
%12 = fmul double 1.100000e-18, %11
store double %12, double* %5
%13 = load double, double* %3
%14 = call double @sqrt(double %13)
%15 = fmul double 1.190000e-24, %14
%16 = load double, double* %3
%17 = fadd double %16, 1.190000e+03
%18 = fdiv double -1.810000e+04, %17
%19 = fptosi double %18 to i32
%20 = call double @exp(i32 %19)
%21 = fmul double %15, %20
%22 = load double, double* %3
%23 = fdiv double -5.987000e+03, %22
%24 = fptosi double %23 to i32
%25 = call double @exp(i32 %24)
%26 = fmul double %21, %25
store double %26, double* %6
%27 = load double, double* %6
%28 = fdiv double 1.000000e+00, %27
%29 = load double, double* %4
%30 = load double, double* %5
%31 = fdiv double %29, %30
%32 = fadd double %28, %31
%33 = fptosi double %32 to i32
%34 = call double @pow(i32 %33, i32 -1)
store double %34, double* %7
%35 = load double, double* %7
ret double %35
}

LLVM IR (-O2):
define double @L_Vib_H2(double %0, double %1) {
%3 = fdiv double -6.744000e+03, %0
%4 = fptosi double %3 to i32
%5 = tail call double @exp(i32 %4)
%6 = tail call double @sqrt(double %0)
%7 = fmul double %6, 1.190000e-24
%8 = fadd double %0, 1.190000e+03
%9 = fdiv double -1.810000e+04, %8
%10 = fptosi double %9 to i32
%11 = tail call double @exp(i32 %10)
%12 = fmul double %7, %11
%13 = fdiv double -5.987000e+03, %0
%14 = fptosi double %13 to i32
%15 = tail call double @exp(i32 %14)
%16 = insertelement <2 x double> <double 1.100000e-18, double poison>, double %12, i64 1
%17 = insertelement <2 x double> poison, double %5, i64 0
%18 = insertelement <2 x double> %17, double %15, i64 1
%19 = fmul <2 x double> %16, %18
%20 = insertelement <2 x double> <double poison, double 1.000000e+00>, double %1, i64 0
%21 = fdiv <2 x double> %20, %19
%22 = shufflevector <2 x double> %21, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%23 = fadd <2 x double> %21, %22
%24 = extractelement <2 x double> %23, i64 0
%25 = fptosi double %24 to i32
%26 = tail call double @pow(i32 %25, i32 -1)
ret double %26
}