#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 getCoolingRate(int, int, double const *, int const *, int const *,
                      double const *, double const, double const *, int const,
                      double const, double **, double **, double *,
                      double const *);
double ortho_para_ratio(double const);
double pow(double const, double);
double finestruct_cooling_OA(const double T, const int slabInd,
                             const double ymolThis, const double elecDens,
                             const double HDens, const double H2Dens,
                             const double HpDens, const double *dx,
                             double **popDensFsThis, double **coolingFsThis) {
  const double weights[3 + 1] = {0.0, 5.0, 3.0, 1.0};
  const int lower[3 + 1] = {0, 1, 2, 1};
  const int upper[3 + 1] = {0, 2, 3, 3};
  const double energy[3 + 1] = {0.0, 0e0, 228e0, 326e0};
  const double EinsA[3 + 1] = {0.0, 9.0e-5, 1.7e-5, 1.0e-10};
  const double col_e[3 + 1] = {0.0, 5.8e-12 * pow(T, 0.67),
                               4.1e-12 * pow(T, 0.69), 3.3e-12 * pow(T, 0.71)};
  const double col_Hp[3 + 1] = {0.0, 4.2e-11 * pow(T, 0.5) * exp(-693e0 / T),
                                7.5e-12 * pow(T, 0.5) * exp(-450e0 / T),
                                7.5e-12 * pow(T, 0.5) * exp(-1000e0 / T)};
  const double col_H[3 + 1] = {0.0, 4.2e-12 * pow(T, 0.67),
                               1.5e-11 * pow(T, 0.4), 1.1e-12 * pow(T, 0.44)};
  const double col_paraH2[3 + 1] = {0.0, 3.4e-11 * pow(T, 0.32),
                                    3.34e-15 * pow(T, 1.36),
                                    5.77e-11 * pow(T, 0.30)};
  const double col_orthoH2[3 + 1] = {0.0, 2.45e-11 * pow(T, 0.38),
                                     2.74e-14 * pow(T, 1.06),
                                     4.09e-11 * pow(T, 0.37)};
  int i;
  double CulArr[3 + 1], cool;
  double fraction_ortho, fraction_para;
  fraction_para = ortho_para_ratio(T);
  fraction_ortho = 1e0 - fraction_para;
  for (i = 1; i <= 3; i++)
    CulArr[i] = elecDens * col_e[i] + HpDens * col_Hp[i] + HDens * col_H[i] +
                H2Dens * (fraction_para * col_paraH2[i] +
                          fraction_ortho * col_orthoH2[i]);
  cool = getCoolingRate(3, 3, weights, lower, upper, energy, T, EinsA, slabInd,
                        ymolThis, popDensFsThis, coolingFsThis, CulArr, dx);
  return cool;
}


x86 assembly (clang, -O0):
<finestruct_cooling_OA>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x208,%rsp
movsd  %xmm0,-0x20(%rbp)
mov    %edi,-0x24(%rbp)
movsd  %xmm1,-0x30(%rbp)
movsd  %xmm2,-0x38(%rbp)
movsd  %xmm3,-0x40(%rbp)
movsd  %xmm4,-0x48(%rbp)
movsd  %xmm5,-0x50(%rbp)
mov    %rsi,-0x58(%rbp)
mov    %rdx,-0x60(%rbp)
mov    %rcx,-0x68(%rbp)
mov    0xf6c(%rip),%rax
mov    %rax,-0x90(%rbp)
mov    0xf66(%rip),%rax
mov    %rax,-0x88(%rbp)
mov    0xf60(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0xf5d(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    0xf9a(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0xf94(%rip),%rax
mov    %rax,-0x98(%rbp)
mov    0xf8e(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0xf88(%rip),%rax
mov    %rax,-0xa8(%rbp)
mov    0xf22(%rip),%rax
mov    %rax,-0xd0(%rbp)
mov    0xf1c(%rip),%rax
mov    %rax,-0xc8(%rbp)
mov    0xf16(%rip),%rax
mov    %rax,-0xc0(%rbp)
mov    0xf10(%rip),%rax
mov    %rax,-0xb8(%rbp)
mov    0xf0a(%rip),%rax
mov    %rax,-0xf0(%rbp)
mov    0xf04(%rip),%rax
mov    %rax,-0xe8(%rbp)
mov    0xefe(%rip),%rax
mov    %rax,-0xe0(%rbp)
mov    0xef8(%rip),%rax
mov    %rax,-0xd8(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  0xe21(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe69(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  0xe48(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe30(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  0xe0f(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xdf7(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  0xdb3(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xdbb(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1f0(%rbp)
ff
movsd  0xd9f(%rip),%xmm0
divsd  -0x20(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x1f0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  0xd5d(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xd45(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1e8(%rbp)
ff
movsd  0xd41(%rip),%xmm0
divsd  -0x20(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x1e8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  0xd07(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xcef(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1e0(%rbp)
ff
movsd  0xcd3(%rip),%xmm0
divsd  -0x20(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x1e0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x150(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  0xc8e(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xc76(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x148(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  0xc55(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xc3d(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  0xc1c(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xc04(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x170(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  0xbd8(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xbc0(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x168(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  0xb9f(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xb87(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x160(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  0xb66(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xb4e(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x158(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x190(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xb22(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xb0a(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x188(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  0xae9(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xad1(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x180(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  0xab0(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xa98(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x178(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
call   1030 <ortho_para_ratio@plt>
movsd  %xmm0,-0x1d8(%rbp)
ff
movsd  0xa6a(%rip),%xmm0
subsd  -0x1d8(%rbp),%xmm0
ff
movsd  %xmm0,-0x1d0(%rbp)
ff
movl   $0x1,-0x194(%rbp)
cmpl   $0x3,-0x194(%rbp)
jg     1675 <finestruct_cooling_OA+0x535>
movsd  -0x38(%rbp),%xmm0
movslq -0x194(%rbp),%rax
movsd  -0x110(%rbp,%rax,8),%xmm2
ff ff
movsd  -0x50(%rbp),%xmm1
movslq -0x194(%rbp),%rax
mulsd  -0x130(%rbp,%rax,8),%xmm1
ff ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
movslq -0x194(%rbp),%rax
movsd  -0x150(%rbp,%rax,8),%xmm2
ff ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
movsd  -0x1d8(%rbp),%xmm2
ff
movslq -0x194(%rbp),%rax
movsd  -0x170(%rbp,%rax,8),%xmm4
ff ff
movsd  -0x1d0(%rbp),%xmm3
ff
movslq -0x194(%rbp),%rax
mulsd  -0x190(%rbp,%rax,8),%xmm3
ff ff
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x194(%rbp),%rax
movsd  %xmm0,-0x1c0(%rbp,%rax,8)
ff ff
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    15b0 <finestruct_cooling_OA+0x470>
lea    -0x90(%rbp),%rdx
lea    -0xa0(%rbp),%rcx
lea    -0xb0(%rbp),%r8
lea    -0xd0(%rbp),%r9
movsd  -0x20(%rbp),%xmm0
lea    -0xf0(%rbp),%r15
mov    -0x24(%rbp),%r14d
movsd  -0x30(%rbp),%xmm1
mov    -0x60(%rbp),%rbx
mov    -0x68(%rbp),%r11
lea    -0x1c0(%rbp),%r10
mov    -0x58(%rbp),%rax
mov    $0x3,%esi
mov    %esi,%edi
mov    %r15,(%rsp)
mov    %r14d,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1050 <getCoolingRate@plt>
movsd  %xmm0,-0x1c8(%rbp)
ff
movsd  -0x1c8(%rbp),%xmm0
ff
add    $0x208,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<finestruct_cooling_OA>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x170,%rsp
mov    %rcx,%r15
mov    %rdx,%r14
mov    %rsi,%r13
movaps %xmm5,0x90(%rsp)
movaps %xmm4,0xc0(%rsp)
movaps %xmm3,0xb0(%rsp)
movaps %xmm2,0xa0(%rsp)
movsd  %xmm1,0x88(%rsp)
mov    %edi,%r12d
movsd  %xmm0,0x8(%rsp)
movaps 0xf9e(%rip),%xmm1
movaps %xmm1,0x160(%rsp)
movaps 0xf7f(%rip),%xmm1
movaps %xmm1,0x150(%rsp)
movaps 0xf50(%rip),%xmm1
movaps %xmm1,0xe0(%rsp)
movaps 0xf51(%rip),%xmm1
movaps %xmm1,0xd0(%rsp)
movaps 0xf82(%rip),%xmm1
movaps %xmm1,0x140(%rsp)
movaps 0xf63(%rip),%xmm1
movaps %xmm1,0x130(%rsp)
movaps 0xf84(%rip),%xmm1
movaps %xmm1,0x120(%rsp)
movaps 0xf65(%rip),%xmm1
movaps %xmm1,0x110(%rsp)
movsd  0xdf5(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,0x50(%rsp)
movsd  0xdeb(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1060 <pow@plt>
movapd 0x50(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0xe76(%rip),%xmm1
movapd %xmm1,0x50(%rsp)
movsd  0xdc8(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1060 <pow@plt>
mulsd  0xdbd(%rip),%xmm0
movsd  %xmm0,0x80(%rsp)
movsd  0xdb4(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1060 <pow@plt>
movaps %xmm0,0x10(%rsp)
movsd  0xda4(%rip),%xmm0
divsd  0x8(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <exp@plt>
movapd %xmm0,0x40(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xd79(%rip),%xmm1
call   1060 <pow@plt>
movapd 0x10(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0xe02(%rip),%xmm1
movapd %xmm1,0x10(%rsp)
movsd  0xd64(%rip),%xmm0
divsd  0x8(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <exp@plt>
movapd 0x40(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0x10(%rsp),%xmm1
movapd %xmm1,0x40(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xd21(%rip),%xmm1
call   1060 <pow@plt>
mulsd  0xd2c(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xd26(%rip),%xmm0
divsd  0x8(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <exp@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x78(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xcbd(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,0x30(%rsp)
movsd  0xcf3(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1060 <pow@plt>
movapd 0x30(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0xd5e(%rip),%xmm1
movapd %xmm1,0x30(%rsp)
movsd  0xcd0(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1060 <pow@plt>
mulsd  0xcc5(%rip),%xmm0
movsd  %xmm0,0x70(%rsp)
movsd  0xcbf(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1060 <pow@plt>
movaps %xmm0,0x10(%rsp)
movsd  0xcaf(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1060 <pow@plt>
movapd 0x10(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0xd0a(%rip),%xmm1
movapd %xmm1,0x10(%rsp)
movsd  0xc8c(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1060 <pow@plt>
mulsd  0xc81(%rip),%xmm0
movsd  %xmm0,0x68(%rsp)
movsd  0xc7b(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1060 <pow@plt>
movaps %xmm0,0x20(%rsp)
movsd  0xc6b(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1060 <pow@plt>
movapd 0x20(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0xcb6(%rip),%xmm1
movapd %xmm1,0x20(%rsp)
movsd  0xc48(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1060 <pow@plt>
mulsd  0xc3d(%rip),%xmm0
movsd  %xmm0,0x60(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <ortho_para_ratio@plt>
movapd 0x90(%rsp),%xmm8
movapd %xmm8,%xmm1
unpcklpd %xmm8,%xmm1
mulpd  0x40(%rsp),%xmm1
movapd 0xa0(%rsp),%xmm7
movapd %xmm7,%xmm3
unpcklpd %xmm7,%xmm3
mulpd  0x50(%rsp),%xmm3
addpd  %xmm1,%xmm3
movapd 0xb0(%rsp),%xmm6
movapd %xmm6,%xmm2
unpcklpd %xmm6,%xmm2
mulpd  0x30(%rsp),%xmm2
movsd  0xbe0(%rip),%xmm1
subsd  %xmm0,%xmm1
addpd  %xmm3,%xmm2
movapd %xmm1,%xmm3
unpcklpd %xmm1,%xmm3
mulpd  0x20(%rsp),%xmm3
movsd  0x68(%rsp),%xmm5
mulsd  %xmm0,%xmm5
unpcklpd %xmm0,%xmm0
mulpd  0x10(%rsp),%xmm0
addpd  %xmm3,%xmm0
movapd 0xc0(%rsp),%xmm4
movapd %xmm4,%xmm3
unpcklpd %xmm4,%xmm3
mulpd  %xmm0,%xmm3
addpd  %xmm2,%xmm3
movupd %xmm3,0xf8(%rsp)
movsd  0x78(%rsp),%xmm2
mulsd  %xmm8,%xmm2
movsd  0x80(%rsp),%xmm0
mulsd  %xmm7,%xmm0
addsd  %xmm2,%xmm0
movsd  0x70(%rsp),%xmm2
mulsd  %xmm6,%xmm2
addsd  %xmm0,%xmm2
mulsd  0x60(%rsp),%xmm1
movapd %xmm5,%xmm0
addsd  %xmm1,%xmm0
mulsd  %xmm4,%xmm0
addsd  %xmm2,%xmm0
movsd  %xmm0,0x108(%rsp)
lea    0xf0(%rsp),%rax
lea    0x110(%rsp),%rbx
lea    0x150(%rsp),%rdx
lea    0xe0(%rsp),%rcx
lea    0xd0(%rsp),%r8
lea    0x130(%rsp),%r9
mov    $0x3,%edi
mov    $0x3,%esi
movsd  0x8(%rsp),%xmm0
movsd  0x88(%rsp),%xmm1
push   %r13
push   %rax
push   %r15
push   %r14
push   %r12
push   %rbx
call   1050 <getCoolingRate@plt>
add    $0x1a0,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.finestruct_cooling_OA.weights = [4 x double] [double 0.000000e+00, double 5.000000e+00, double 3.000000e+00, double 1.000000e+00]
@__const.finestruct_cooling_OA.lower = [4 x i32] [i32 0, i32 1, i32 2, i32 1]
@__const.finestruct_cooling_OA.upper = [4 x i32] [i32 0, i32 2, i32 3, i32 3]
@__const.finestruct_cooling_OA.energy = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 2.280000e+02, double 3.260000e+02]
@__const.finestruct_cooling_OA.EinsA = [4 x double] [double 0.000000e+00, double 9.000000e-05, double 1.700000e-05, double 1.000000e-10]
define double @finestruct_cooling_OA(double %0, i32 %1, double %2, double %3, double %4, double %5, double %6, double* %7, double** %8, double** %9) {
%11 = alloca double
%12 = alloca i32
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double*
%19 = alloca double**
%20 = alloca double**
%21 = alloca [4 x double]
%22 = alloca [4 x i32]
%23 = alloca [4 x i32]
%24 = alloca [4 x double]
%25 = alloca [4 x double]
%26 = alloca [4 x double]
%27 = alloca [4 x double]
%28 = alloca [4 x double]
%29 = alloca [4 x double]
%30 = alloca [4 x double]
%31 = alloca i32
%32 = alloca [4 x double]
%33 = alloca double
%34 = alloca double
%35 = alloca double
store double %0, double* %11
store i32 %1, i32* %12
store double %2, double* %13
store double %3, double* %14
store double %4, double* %15
store double %5, double* %16
store double %6, double* %17
store double* %7, double** %18
store double** %8, double*** %19
store double** %9, double*** %20
%36 = bitcast [4 x double]* %21 to i8*
%37 = bitcast [4 x i32]* %22 to i8*
%38 = bitcast [4 x i32]* %23 to i8*
%39 = bitcast [4 x double]* %24 to i8*
%40 = bitcast [4 x double]* %25 to i8*
%41 = getelementptr inbounds [4 x double], [4 x double]* %26, i64 0, i64 0
store double 0.000000e+00, double* %41
%42 = getelementptr inbounds double, double* %41, i64 1
%43 = load double, double* %11
%44 = call double @pow(double %43, double 6.700000e-01)
%45 = fmul double 5.800000e-12, %44
store double %45, double* %42
%46 = getelementptr inbounds double, double* %42, i64 1
%47 = load double, double* %11
%48 = call double @pow(double %47, double 6.900000e-01)
%49 = fmul double 4.100000e-12, %48
store double %49, double* %46
%50 = getelementptr inbounds double, double* %46, i64 1
%51 = load double, double* %11
%52 = call double @pow(double %51, double 7.100000e-01)
%53 = fmul double 3.300000e-12, %52
store double %53, double* %50
%54 = getelementptr inbounds [4 x double], [4 x double]* %27, i64 0, i64 0
store double 0.000000e+00, double* %54
%55 = getelementptr inbounds double, double* %54, i64 1
%56 = load double, double* %11
%57 = call double @pow(double %56, double 5.000000e-01)
%58 = fmul double 4.200000e-11, %57
%59 = load double, double* %11
%60 = fdiv double -6.930000e+02, %59
%61 = fptosi double %60 to i32
%62 = call double @exp(i32 %61)
%63 = fmul double %58, %62
store double %63, double* %55
%64 = getelementptr inbounds double, double* %55, i64 1
%65 = load double, double* %11
%66 = call double @pow(double %65, double 5.000000e-01)
%67 = fmul double 0x3DA07E1FE91B0B70, %66
%68 = load double, double* %11
%69 = fdiv double -4.500000e+02, %68
%70 = fptosi double %69 to i32
%71 = call double @exp(i32 %70)
%72 = fmul double %67, %71
store double %72, double* %64
%73 = getelementptr inbounds double, double* %64, i64 1
%74 = load double, double* %11
%75 = call double @pow(double %74, double 5.000000e-01)
%76 = fmul double 0x3DA07E1FE91B0B70, %75
%77 = load double, double* %11
%78 = fdiv double -1.000000e+03, %77
%79 = fptosi double %78 to i32
%80 = call double @exp(i32 %79)
%81 = fmul double %76, %80
store double %81, double* %73
%82 = getelementptr inbounds [4 x double], [4 x double]* %28, i64 0, i64 0
store double 0.000000e+00, double* %82
%83 = getelementptr inbounds double, double* %82, i64 1
%84 = load double, double* %11
%85 = call double @pow(double %84, double 6.700000e-01)
%86 = fmul double 4.200000e-12, %85
store double %86, double* %83
%87 = getelementptr inbounds double, double* %83, i64 1
%88 = load double, double* %11
%89 = call double @pow(double %88, double 4.000000e-01)
%90 = fmul double 1.500000e-11, %89
store double %90, double* %87
%91 = getelementptr inbounds double, double* %87, i64 1
%92 = load double, double* %11
%93 = call double @pow(double %92, double 4.400000e-01)
%94 = fmul double 1.100000e-12, %93
store double %94, double* %91
%95 = getelementptr inbounds [4 x double], [4 x double]* %29, i64 0, i64 0
store double 0.000000e+00, double* %95
%96 = getelementptr inbounds double, double* %95, i64 1
%97 = load double, double* %11
%98 = call double @pow(double %97, double 3.200000e-01)
%99 = fmul double 3.400000e-11, %98
store double %99, double* %96
%100 = getelementptr inbounds double, double* %96, i64 1
%101 = load double, double* %11
%102 = call double @pow(double %101, double 1.360000e+00)
%103 = fmul double 3.340000e-15, %102
store double %103, double* %100
%104 = getelementptr inbounds double, double* %100, i64 1
%105 = load double, double* %11
%106 = call double @pow(double %105, double 3.000000e-01)
%107 = fmul double 5.770000e-11, %106
store double %107, double* %104
%108 = getelementptr inbounds [4 x double], [4 x double]* %30, i64 0, i64 0
store double 0.000000e+00, double* %108
%109 = getelementptr inbounds double, double* %108, i64 1
%110 = load double, double* %11
%111 = call double @pow(double %110, double 3.800000e-01)
%112 = fmul double 2.450000e-11, %111
store double %112, double* %109
%113 = getelementptr inbounds double, double* %109, i64 1
%114 = load double, double* %11
%115 = call double @pow(double %114, double 1.060000e+00)
%116 = fmul double 2.740000e-14, %115
store double %116, double* %113
%117 = getelementptr inbounds double, double* %113, i64 1
%118 = load double, double* %11
%119 = call double @pow(double %118, double 3.700000e-01)
%120 = fmul double 4.090000e-11, %119
store double %120, double* %117
%121 = load double, double* %11
%122 = call double @ortho_para_ratio(double %121)
store double %122, double* %35
%123 = load double, double* %35
%124 = fsub double 1.000000e+00, %123
store double %124, double* %34
store i32 1, i32* %31
br label %125
125: ; preds = %164, %10
%126 = load i32, i32* %31
%127 = icmp sle i32 %126, 3
br i1 %127, label %128, label %167
128: ; preds = %125
%129 = load double, double* %14
%130 = load i32, i32* %31
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [4 x double], [4 x double]* %26, i64 0, i64 %131
%133 = load double, double* %132
%134 = load double, double* %17
%135 = load i32, i32* %31
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [4 x double], [4 x double]* %27, i64 0, i64 %136
%138 = load double, double* %137
%139 = fmul double %134, %138
%140 = call double @llvm.fmuladd.f64(double %129, double %133, double %139)
%141 = load double, double* %15
%142 = load i32, i32* %31
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [4 x double], [4 x double]* %28, i64 0, i64 %143
%145 = load double, double* %144
%146 = call double @llvm.fmuladd.f64(double %141, double %145, double %140)
%147 = load double, double* %16
%148 = load double, double* %35
%149 = load i32, i32* %31
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds [4 x double], [4 x double]* %29, i64 0, i64 %150
%152 = load double, double* %151
%153 = load double, double* %34
%154 = load i32, i32* %31
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [4 x double], [4 x double]* %30, i64 0, i64 %155
%157 = load double, double* %156
%158 = fmul double %153, %157
%159 = call double @llvm.fmuladd.f64(double %148, double %152, double %158)
%160 = call double @llvm.fmuladd.f64(double %147, double %159, double %146)
%161 = load i32, i32* %31
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds [4 x double], [4 x double]* %32, i64 0, i64 %162
store double %160, double* %163
br label %164
164: ; preds = %128
%165 = load i32, i32* %31
%166 = add nsw i32 %165, 1
store i32 %166, i32* %31
br label %125
167: ; preds = %125
%168 = getelementptr inbounds [4 x double], [4 x double]* %21, i64 0, i64 0
%169 = getelementptr inbounds [4 x i32], [4 x i32]* %22, i64 0, i64 0
%170 = getelementptr inbounds [4 x i32], [4 x i32]* %23, i64 0, i64 0
%171 = getelementptr inbounds [4 x double], [4 x double]* %24, i64 0, i64 0
%172 = load double, double* %11
%173 = getelementptr inbounds [4 x double], [4 x double]* %25, i64 0, i64 0
%174 = load i32, i32* %12
%175 = load double, double* %13
%176 = load double**, double*** %19
%177 = load double**, double*** %20
%178 = getelementptr inbounds [4 x double], [4 x double]* %32, i64 0, i64 0
%179 = load double*, double** %18
%180 = call double @getCoolingRate(i32 3, i32 3, double* %168, i32* %169, i32* %170, double* %171, double %172, double* %173, i32 %174, double %175, double** %176, double** %177, double* %178, double* %179)
store double %180, double* %33
%181 = load double, double* %33
ret double %181
}

LLVM IR (-O2):
@__const.finestruct_cooling_OA.weights = [4 x double] [double 0.000000e+00, double 5.000000e+00, double 3.000000e+00, double 1.000000e+00]
@__const.finestruct_cooling_OA.lower = [4 x i32] [i32 0, i32 1, i32 2, i32 1]
@__const.finestruct_cooling_OA.upper = [4 x i32] [i32 0, i32 2, i32 3, i32 3]
@__const.finestruct_cooling_OA.energy = [4 x double] [double 0.000000e+00, double 0.000000e+00, double 2.280000e+02, double 3.260000e+02]
@__const.finestruct_cooling_OA.EinsA = [4 x double] [double 0.000000e+00, double 9.000000e-05, double 1.700000e-05, double 1.000000e-10]
define double @finestruct_cooling_OA(double %0, i32 %1, double %2, double %3, double %4, double %5, double %6, double* %7, double** %8, double** %9) {
%11 = alloca [4 x double]
%12 = alloca [4 x i32]
%13 = alloca [4 x i32]
%14 = alloca [4 x double]
%15 = alloca [4 x double]
%16 = alloca [4 x double]
%17 = bitcast [4 x double]* %11 to i8*
%18 = bitcast [4 x i32]* %12 to i8*
%19 = bitcast [4 x i32]* %13 to i8*
%20 = bitcast [4 x double]* %14 to i8*
%21 = bitcast [4 x double]* %15 to i8*
%22 = tail call double @pow(double %0, double 6.700000e-01)
%23 = tail call double @pow(double %0, double 6.900000e-01)
%24 = insertelement <2 x double> poison, double %22, i64 0
%25 = insertelement <2 x double> %24, double %23, i64 1
%26 = fmul <2 x double> %25, <double 5.800000e-12, double 4.100000e-12>
%27 = tail call double @pow(double %0, double 7.100000e-01)
%28 = fmul double %27, 3.300000e-12
%29 = tail call double @pow(double %0, double 5.000000e-01)
%30 = fdiv double -6.930000e+02, %0
%31 = fptosi double %30 to i32
%32 = tail call double @exp(i32 %31)
%33 = tail call double @pow(double %0, double 5.000000e-01)
%34 = insertelement <2 x double> poison, double %29, i64 0
%35 = insertelement <2 x double> %34, double %33, i64 1
%36 = fmul <2 x double> %35, <double 4.200000e-11, double 0x3DA07E1FE91B0B70>
%37 = fdiv double -4.500000e+02, %0
%38 = fptosi double %37 to i32
%39 = tail call double @exp(i32 %38)
%40 = insertelement <2 x double> poison, double %32, i64 0
%41 = insertelement <2 x double> %40, double %39, i64 1
%42 = fmul <2 x double> %36, %41
%43 = tail call double @pow(double %0, double 5.000000e-01)
%44 = fmul double %43, 0x3DA07E1FE91B0B70
%45 = fdiv double -1.000000e+03, %0
%46 = fptosi double %45 to i32
%47 = tail call double @exp(i32 %46)
%48 = fmul double %44, %47
%49 = tail call double @pow(double %0, double 6.700000e-01)
%50 = tail call double @pow(double %0, double 4.000000e-01)
%51 = insertelement <2 x double> poison, double %49, i64 0
%52 = insertelement <2 x double> %51, double %50, i64 1
%53 = fmul <2 x double> %52, <double 4.200000e-12, double 1.500000e-11>
%54 = tail call double @pow(double %0, double 4.400000e-01)
%55 = fmul double %54, 1.100000e-12
%56 = tail call double @pow(double %0, double 3.200000e-01)
%57 = tail call double @pow(double %0, double 1.360000e+00)
%58 = insertelement <2 x double> poison, double %56, i64 0
%59 = insertelement <2 x double> %58, double %57, i64 1
%60 = fmul <2 x double> %59, <double 3.400000e-11, double 3.340000e-15>
%61 = tail call double @pow(double %0, double 3.000000e-01)
%62 = fmul double %61, 5.770000e-11
%63 = tail call double @pow(double %0, double 3.800000e-01)
%64 = tail call double @pow(double %0, double 1.060000e+00)
%65 = insertelement <2 x double> poison, double %63, i64 0
%66 = insertelement <2 x double> %65, double %64, i64 1
%67 = fmul <2 x double> %66, <double 2.450000e-11, double 2.740000e-14>
%68 = tail call double @pow(double %0, double 3.700000e-01)
%69 = fmul double %68, 4.090000e-11
%70 = bitcast [4 x double]* %16 to i8*
%71 = tail call double @ortho_para_ratio(double %0)
%72 = fsub double 1.000000e+00, %71
%73 = getelementptr inbounds [4 x double], [4 x double]* %16, i64 0, i64 1
%74 = insertelement <2 x double> poison, double %6, i64 0
%75 = shufflevector <2 x double> %74, <2 x double> poison, <2 x i32> zeroinitializer
%76 = fmul <2 x double> %42, %75
%77 = insertelement <2 x double> poison, double %3, i64 0
%78 = shufflevector <2 x double> %77, <2 x double> poison, <2 x i32> zeroinitializer
%79 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %78, <2 x double> %26, <2 x double> %76)
%80 = insertelement <2 x double> poison, double %4, i64 0
%81 = shufflevector <2 x double> %80, <2 x double> poison, <2 x i32> zeroinitializer
%82 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %81, <2 x double> %53, <2 x double> %79)
%83 = insertelement <2 x double> poison, double %72, i64 0
%84 = shufflevector <2 x double> %83, <2 x double> poison, <2 x i32> zeroinitializer
%85 = fmul <2 x double> %84, %67
%86 = insertelement <2 x double> poison, double %71, i64 0
%87 = shufflevector <2 x double> %86, <2 x double> poison, <2 x i32> zeroinitializer
%88 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %87, <2 x double> %60, <2 x double> %85)
%89 = insertelement <2 x double> poison, double %5, i64 0
%90 = shufflevector <2 x double> %89, <2 x double> poison, <2 x i32> zeroinitializer
%91 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %90, <2 x double> %88, <2 x double> %82)
%92 = bitcast double* %73 to <2 x double>*
store <2 x double> %91, <2 x double>* %92
%93 = fmul double %48, %6
%94 = tail call double @llvm.fmuladd.f64(double %3, double %28, double %93)
%95 = tail call double @llvm.fmuladd.f64(double %4, double %55, double %94)
%96 = fmul double %72, %69
%97 = tail call double @llvm.fmuladd.f64(double %71, double %62, double %96)
%98 = tail call double @llvm.fmuladd.f64(double %5, double %97, double %95)
%99 = getelementptr inbounds [4 x double], [4 x double]* %16, i64 0, i64 3
store double %98, double* %99
%100 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 0
%101 = getelementptr inbounds [4 x i32], [4 x i32]* %12, i64 0, i64 0
%102 = getelementptr inbounds [4 x i32], [4 x i32]* %13, i64 0, i64 0
%103 = getelementptr inbounds [4 x double], [4 x double]* %14, i64 0, i64 0
%104 = getelementptr inbounds [4 x double], [4 x double]* %15, i64 0, i64 0
%105 = getelementptr inbounds [4 x double], [4 x double]* %16, i64 0, i64 0
%106 = call double @getCoolingRate(i32 3, i32 3, double* %100, i32* %101, i32* %102, double* %103, double %0, double* %104, i32 %1, double %2, double** %8, double** %9, double* %105, double* %7)
ret double %106
}