#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_SII(const double densThis, const double Hdens,
                              const double elecDens, const double T) {
  const double weights[3 + 1] = {0.0, 6.0, 4.0, 4.0};
  const int lower[3 + 1] = {0, 2, 1, 1};
  const int upper[3 + 1] = {0, 3, 2, 3};
  const double energy[3 + 1] = {0.0, 2.1e4, 4.5e1, 2.1e4};
  const double EinsA[3 + 1] = {0.0, 1.8e-3, 3.3e-7, 4.7e-4};
  const double elec_a[3 + 1] = {0.0, 5.6e-8, 8e-8, 5.6e-8};
  const double elec_b[3 + 1] = {0.0, -0.5, -0.5, -0.5};
  return computeMetastableCoolingRate(3, 3, weights, lower, upper, energy,
                                      EinsA, elec_a, elec_b, densThis, Hdens,
                                      elecDens, T);
}


x86 assembly (clang, -O0):
<metastable_cooling_SII>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%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,-0x28(%rbp)
mov    0xf3e(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xf3b(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xf38(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xf35(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xe92(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0xe8f(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    0xe8c(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xe89(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0xe86(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0xe80(%rip),%rax
mov    %rax,-0x98(%rbp)
mov    0xe7a(%rip),%rax
mov    %rax,-0x90(%rbp)
mov    0xe74(%rip),%rax
mov    %rax,-0x88(%rbp)
mov    0xe6e(%rip),%rax
mov    %rax,-0xc0(%rbp)
mov    0xe68(%rip),%rax
mov    %rax,-0xb8(%rbp)
mov    0xe62(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0xe5c(%rip),%rax
mov    %rax,-0xa8(%rbp)
mov    0xe56(%rip),%rax
mov    %rax,-0xe0(%rbp)
mov    0xe50(%rip),%rax
mov    %rax,-0xd8(%rbp)
mov    0xe4a(%rip),%rax
mov    %rax,-0xd0(%rbp)
mov    0xe44(%rip),%rax
mov    %rax,-0xc8(%rbp)
lea    -0x40(%rbp),%rdx
lea    -0x50(%rbp),%rcx
lea    -0x60(%rbp),%r8
lea    -0x80(%rbp),%r9
lea    -0xa0(%rbp),%r11
lea    -0xc0(%rbp),%r10
lea    -0xe0(%rbp),%rax
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
mov    $0x3,%esi
mov    %esi,%edi
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <computeMetastableCoolingRate@plt>
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<metastable_cooling_SII>:
sub    $0xc8,%rsp
movaps 0xef2(%rip),%xmm4
movaps %xmm4,0xb0(%rsp)
movaps 0xed3(%rip),%xmm4
movaps %xmm4,0xa0(%rsp)
movaps 0xf64(%rip),%xmm4
movaps %xmm4,0x10(%rsp)
movaps 0xf68(%rip),%xmm4
movaps %xmm4,(%rsp)
movaps 0xedd(%rip),%xmm4
movaps %xmm4,0x90(%rsp)
movaps 0xebe(%rip),%xmm4
movaps %xmm4,0x80(%rsp)
movaps 0xedf(%rip),%xmm4
movaps %xmm4,0x70(%rsp)
movaps 0xec3(%rip),%xmm4
movaps %xmm4,0x60(%rsp)
movaps 0xee7(%rip),%xmm4
movaps %xmm4,0x50(%rsp)
movaps 0xecb(%rip),%xmm4
movaps %xmm4,0x40(%rsp)
movaps 0xeef(%rip),%xmm4
movaps %xmm4,0x30(%rsp)
movaps 0xed3(%rip),%xmm4
movaps %xmm4,0x20(%rsp)
sub    $0x8,%rsp
lea    0x28(%rsp),%rax
lea    0x48(%rsp),%r10
lea    0x68(%rsp),%r11
lea    0xa8(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0x8(%rsp),%r8
lea    0x88(%rsp),%r9
mov    $0x3,%edi
mov    $0x3,%esi
push   %rax
push   %r10
push   %r11
call   1030 <computeMetastableCoolingRate@plt>
add    $0xe8,%rsp
ret

LLVM IR (-O0):
@__const.metastable_cooling_SII.weights = [4 x double] [double 0.000000e+00, double 6.000000e+00, double 4.000000e+00, double 4.000000e+00]
@__const.metastable_cooling_SII.lower = [4 x i32] [i32 0, i32 2, i32 1, i32 1]
@__const.metastable_cooling_SII.upper = [4 x i32] [i32 0, i32 3, i32 2, i32 3]
@__const.metastable_cooling_SII.energy = [4 x double] [double 0.000000e+00, double 2.100000e+04, double 4.500000e+01, double 2.100000e+04]
@__const.metastable_cooling_SII.EinsA = [4 x double] [double 0.000000e+00, double 1.800000e-03, double 3.300000e-07, double 4.700000e-04]
@__const.metastable_cooling_SII.elec_a = [4 x double] [double 0.000000e+00, double 0x3E6E1094D643F784, double 8.000000e-08, double 0x3E6E1094D643F784]
@__const.metastable_cooling_SII.elec_b = [4 x double] [double 0.000000e+00, double -5.000000e-01, double -5.000000e-01, double -5.000000e-01]
define double @metastable_cooling_SII(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca [4 x double]
%10 = alloca [4 x i32]
%11 = alloca [4 x i32]
%12 = alloca [4 x double]
%13 = alloca [4 x double]
%14 = alloca [4 x double]
%15 = alloca [4 x double]
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%16 = bitcast [4 x double]* %9 to i8*
%17 = bitcast [4 x i32]* %10 to i8*
%18 = bitcast [4 x i32]* %11 to i8*
%19 = bitcast [4 x double]* %12 to i8*
%20 = bitcast [4 x double]* %13 to i8*
%21 = bitcast [4 x double]* %14 to i8*
%22 = bitcast [4 x double]* %15 to i8*
%23 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 0
%24 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 0
%25 = getelementptr inbounds [4 x i32], [4 x i32]* %11, i64 0, i64 0
%26 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 0
%27 = getelementptr inbounds [4 x double], [4 x double]* %13, i64 0, i64 0
%28 = getelementptr inbounds [4 x double], [4 x double]* %14, i64 0, i64 0
%29 = getelementptr inbounds [4 x double], [4 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 3, i32 3, 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_SII.weights = [4 x double] [double 0.000000e+00, double 6.000000e+00, double 4.000000e+00, double 4.000000e+00]
@__const.metastable_cooling_SII.lower = [4 x i32] [i32 0, i32 2, i32 1, i32 1]
@__const.metastable_cooling_SII.upper = [4 x i32] [i32 0, i32 3, i32 2, i32 3]
@__const.metastable_cooling_SII.energy = [4 x double] [double 0.000000e+00, double 2.100000e+04, double 4.500000e+01, double 2.100000e+04]
@__const.metastable_cooling_SII.EinsA = [4 x double] [double 0.000000e+00, double 1.800000e-03, double 3.300000e-07, double 4.700000e-04]
@__const.metastable_cooling_SII.elec_a = [4 x double] [double 0.000000e+00, double 0x3E6E1094D643F784, double 8.000000e-08, double 0x3E6E1094D643F784]
@__const.metastable_cooling_SII.elec_b = [4 x double] [double 0.000000e+00, double -5.000000e-01, double -5.000000e-01, double -5.000000e-01]
define double @metastable_cooling_SII(double %0, double %1, double %2, double %3) {
%5 = alloca [4 x double]
%6 = alloca [4 x i32]
%7 = alloca [4 x i32]
%8 = alloca [4 x double]
%9 = alloca [4 x double]
%10 = alloca [4 x double]
%11 = alloca [4 x double]
%12 = bitcast [4 x double]* %5 to i8*
%13 = bitcast [4 x i32]* %6 to i8*
%14 = bitcast [4 x i32]* %7 to i8*
%15 = bitcast [4 x double]* %8 to i8*
%16 = bitcast [4 x double]* %9 to i8*
%17 = bitcast [4 x double]* %10 to i8*
%18 = bitcast [4 x double]* %11 to i8*
%19 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 0, i64 0
%20 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%21 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 0
%22 = getelementptr inbounds [4 x double], [4 x double]* %8, i64 0, i64 0
%23 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 0
%24 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 0
%25 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 0
%26 = call double @computeMetastableCoolingRate(i32 3, i32 3, 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
}