#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 computeMetastableCoolingRate(int, int, double const *, int const *,
                                    int const *, double const *, double const *,
                                    double const *, double const *,
                                    double const, double const, double const,
                                    double const);
double metastable_cooling_SiII(const double densThis, const double Hdens,
                               const double elecDens, const double T) {
  const double weights[2 + 1] = {0.0, 12.0, 6.0};
  const int lower[1 + 1] = {0, 1};
  const int upper[1 + 1] = {0, 2};
  const double energy[1 + 1] = {0.0, 6.2e4};
  const double EinsA[1 + 1] = {0.0, 6.4e3};
  const double elec_a[1 + 1] = {0.0, 3.9e-8};
  const double elec_b[1 + 1] = {0.0, -0.50};
  return computeMetastableCoolingRate(2, 1, weights, lower, upper, energy,
                                      EinsA, elec_a, elec_b, densThis, Hdens,
                                      elecDens, T);
}


x86 assembly (clang, -O0):
<metastable_cooling_SiII>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xec1(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xebe(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xec3(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xec0(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xebd(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xeba(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0xeb7(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0xeb4(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    0xeb1(%rip),%rax
mov    %rax,-0x90(%rbp)
mov    0xeab(%rip),%rax
mov    %rax,-0x88(%rbp)
lea    -0x40(%rbp),%rdx
lea    -0x48(%rbp),%rcx
lea    -0x50(%rbp),%r8
lea    -0x60(%rbp),%r9
lea    -0x70(%rbp),%r11
lea    -0x80(%rbp),%r10
lea    -0x90(%rbp),%rax
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
mov    $0x2,%edi
mov    $0x1,%esi
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <computeMetastableCoolingRate@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<metastable_cooling_SiII>:
sub    $0x68,%rsp
mov    0xef5(%rip),%rax
mov    %rax,0x60(%rsp)
movaps 0xed9(%rip),%xmm4
movaps %xmm4,0x50(%rsp)
movabs $0x100000000,%rax
mov    %rax,0x8(%rsp)
movabs $0x200000000,%rax
mov    %rax,(%rsp)
movaps 0xed0(%rip),%xmm4
movaps %xmm4,0x40(%rsp)
movaps 0xed4(%rip),%xmm4
movaps %xmm4,0x30(%rsp)
movaps 0xed8(%rip),%xmm4
movaps %xmm4,0x20(%rsp)
movaps 0xedc(%rip),%xmm4
movaps %xmm4,0x10(%rsp)
sub    $0x8,%rsp
lea    0x18(%rsp),%rax
lea    0x28(%rsp),%r10
lea    0x38(%rsp),%r11
lea    0x58(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0x8(%rsp),%r8
lea    0x48(%rsp),%r9
mov    $0x2,%edi
mov    $0x1,%esi
push   %rax
push   %r10
push   %r11
call   1030 <computeMetastableCoolingRate@plt>
add    $0x88,%rsp
ret

LLVM IR (-O0):
@__const.metastable_cooling_SiII.weights = [3 x double] [double 0.000000e+00, double 1.200000e+01, double 6.000000e+00]
@__const.metastable_cooling_SiII.lower = [2 x i32] [i32 0, i32 1]
@__const.metastable_cooling_SiII.upper = [2 x i32] [i32 0, i32 2]
@__const.metastable_cooling_SiII.energy = [2 x double] [double 0.000000e+00, double 6.200000e+04]
@__const.metastable_cooling_SiII.EinsA = [2 x double] [double 0.000000e+00, double 6.400000e+03]
@__const.metastable_cooling_SiII.elec_a = [2 x double] [double 0.000000e+00, double 3.900000e-08]
@__const.metastable_cooling_SiII.elec_b = [2 x double] [double 0.000000e+00, double -5.000000e-01]
define double @metastable_cooling_SiII(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca [3 x double]
%10 = alloca [2 x i32]
%11 = alloca [2 x i32]
%12 = alloca [2 x double]
%13 = alloca [2 x double]
%14 = alloca [2 x double]
%15 = alloca [2 x double]
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%16 = bitcast [3 x double]* %9 to i8*
%17 = bitcast [2 x i32]* %10 to i8*
%18 = bitcast [2 x i32]* %11 to i8*
%19 = bitcast [2 x double]* %12 to i8*
%20 = bitcast [2 x double]* %13 to i8*
%21 = bitcast [2 x double]* %14 to i8*
%22 = bitcast [2 x double]* %15 to i8*
%23 = getelementptr inbounds [3 x double], [3 x double]* %9, i64 0, i64 0
%24 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
%25 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%26 = getelementptr inbounds [2 x double], [2 x double]* %12, i64 0, i64 0
%27 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 0
%28 = getelementptr inbounds [2 x double], [2 x double]* %14, i64 0, i64 0
%29 = getelementptr inbounds [2 x double], [2 x double]* %15, i64 0, i64 0
%30 = load double, double* %5
%31 = load double, double* %6
%32 = load double, double* %7
%33 = load double, double* %8
%34 = call double @computeMetastableCoolingRate(i32 2, i32 1, double* %23, i32* %24, i32* %25, double* %26, double* %27, double* %28, double* %29, double %30, double %31, double %32, double %33)
ret double %34
}

LLVM IR (-O2):
@__const.metastable_cooling_SiII.weights = [3 x double] [double 0.000000e+00, double 1.200000e+01, double 6.000000e+00]
@__const.metastable_cooling_SiII.energy = [2 x double] [double 0.000000e+00, double 6.200000e+04]
@__const.metastable_cooling_SiII.EinsA = [2 x double] [double 0.000000e+00, double 6.400000e+03]
@__const.metastable_cooling_SiII.elec_a = [2 x double] [double 0.000000e+00, double 3.900000e-08]
@__const.metastable_cooling_SiII.elec_b = [2 x double] [double 0.000000e+00, double -5.000000e-01]
define double @metastable_cooling_SiII(double %0, double %1, double %2, double %3) {
%5 = alloca [3 x double]
%6 = alloca i64
%7 = alloca i64
%8 = alloca [2 x double]
%9 = alloca [2 x double]
%10 = alloca [2 x double]
%11 = alloca [2 x double]
%12 = bitcast [3 x double]* %5 to i8*
%13 = bitcast i64* %6 to i8*
store i64 4294967296, i64* %6
%14 = bitcast i64* %7 to i8*
store i64 8589934592, i64* %7
%15 = bitcast [2 x double]* %8 to i8*
%16 = bitcast [2 x double]* %9 to i8*
%17 = bitcast [2 x double]* %10 to i8*
%18 = bitcast [2 x double]* %11 to i8*
%19 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0, i64 0
%20 = bitcast i64* %6 to i32*
%21 = bitcast i64* %7 to i32*
%22 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 0
%23 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 0
%24 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 0
%25 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 0
%26 = call double @computeMetastableCoolingRate(i32 2, i32 1, double* %19, i32* %20, i32* %21, double* %22, double* %23, double* %24, double* %25, double %0, double %1, double %2, double %3)
ret double %26
}