#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 */
int boltzmann(double, int, int);
int /*<<< orphan*/ derivs_one(double const *, double *, double const *);
void derivs_four(const double *y, double *dydt, const double *p,
                 const double *kij) {
  int i;
  double bm_factor[4], V[4];
  for (i = 0; i < 4; i++) {
    V[i] = y[i * 5];
    derivs_one(y + i * 5, dydt + i * 5, p);
    bm_factor[i] = boltzmann(V[i], -30., 1.) / 1.;
  }
  dydt[0] += (-62.5 - V[0]) * (kij[0] * bm_factor[1] + kij[1] * bm_factor[2] +
                               kij[2] * bm_factor[3]);
  dydt[5] += (-62.5 - V[1]) * (kij[3] * bm_factor[0] + kij[4] * bm_factor[2] +
                               kij[5] * bm_factor[3]);
  dydt[2 * 5] +=
      (-62.5 - V[2]) *
      (kij[6] * bm_factor[0] + kij[7] * bm_factor[1] + kij[8] * bm_factor[3]);
  dydt[3 * 5] +=
      (-62.5 - V[3]) *
      (kij[9] * bm_factor[0] + kij[10] * bm_factor[1] + kij[11] * bm_factor[2]);
  dydt[0] += (kij[12] * (V[1] - V[0]) + kij[13] * (V[2] - V[0]) +
              kij[14] * (V[3] - V[0])) /
             1.;
  dydt[5] += (kij[12] * (V[0] - V[1]) + kij[15] * (V[2] - V[1]) +
              kij[16] * (V[3] - V[1])) /
             1.;
  dydt[2 * 5] += (kij[13] * (V[0] - V[2]) + kij[15] * (V[1] - V[2]) +
                  kij[17] * (V[3] - V[2])) /
                 1.;
  dydt[3 * 5] += (kij[14] * (V[0] - V[3]) + kij[16] * (V[1] - V[3]) +
                  kij[17] * (V[2] - V[3])) /
                 1.;
}


x86 assembly (clang, -O0):
<derivs_four>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jge    11cf <derivs_four+0xaf>
mov    -0x8(%rbp),%rax
imul   $0x5,-0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x24(%rbp),%rax
movsd  %xmm0,-0x70(%rbp,%rax,8)
mov    -0x8(%rbp),%rdi
imul   $0x5,-0x24(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%rdi
mov    -0x10(%rbp),%rsi
imul   $0x5,-0x24(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x18(%rbp),%rdx
call   1040 <derivs_one@plt>
movslq -0x24(%rbp),%rax
movsd  -0x70(%rbp,%rax,8),%xmm0
mov    $0xffffffe2,%edi
mov    $0x1,%esi
call   1030 <boltzmann@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe4d(%rip),%xmm1
divsd  %xmm1,%xmm0
movslq -0x24(%rbp),%rax
movsd  %xmm0,-0x50(%rbp,%rax,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    113f <derivs_four+0x1f>
movsd  0xe31(%rip),%xmm0
subsd  -0x70(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x48(%rbp),%xmm3
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm2
mulsd  -0x40(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm2
movsd  -0x38(%rbp),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
movsd  0xdd7(%rip),%xmm0
subsd  -0x68(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm1
movsd  -0x50(%rbp),%xmm3
mov    -0x20(%rbp),%rax
movsd  0x20(%rax),%xmm2
mulsd  -0x40(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mov    -0x20(%rbp),%rax
movsd  0x28(%rax),%xmm2
movsd  -0x38(%rbp),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x28(%rax)
movsd  0xd7a(%rip),%xmm0
subsd  -0x60(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x30(%rax),%xmm1
movsd  -0x50(%rbp),%xmm3
mov    -0x20(%rbp),%rax
movsd  0x38(%rax),%xmm2
mulsd  -0x48(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mov    -0x20(%rbp),%rax
movsd  0x40(%rax),%xmm2
movsd  -0x38(%rbp),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
mov    -0x10(%rbp),%rax
movsd  0x50(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x50(%rax)
movsd  0xd1d(%rip),%xmm0
subsd  -0x58(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x48(%rax),%xmm1
movsd  -0x50(%rbp),%xmm3
mov    -0x20(%rbp),%rax
movsd  0x50(%rax),%xmm2
mulsd  -0x48(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mov    -0x20(%rbp),%rax
movsd  0x58(%rax),%xmm2
movsd  -0x40(%rbp),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
mov    -0x10(%rbp),%rax
movsd  0x78(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x78(%rax)
mov    -0x20(%rbp),%rax
movsd  0x60(%rax),%xmm1
movsd  -0x68(%rbp),%xmm2
subsd  -0x70(%rbp),%xmm2
mov    -0x20(%rbp),%rax
movsd  0x68(%rax),%xmm0
movsd  -0x60(%rbp),%xmm3
subsd  -0x70(%rbp),%xmm3
mulsd  %xmm3,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
movsd  0x70(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
subsd  -0x70(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xc6b(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  0x60(%rax),%xmm1
movsd  -0x70(%rbp),%xmm2
subsd  -0x68(%rbp),%xmm2
mov    -0x20(%rbp),%rax
movsd  0x78(%rax),%xmm0
movsd  -0x60(%rbp),%xmm3
subsd  -0x68(%rbp),%xmm3
mulsd  %xmm3,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
movsd  0x80(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
subsd  -0x68(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xc03(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
addsd  0x28(%rax),%xmm0
movsd  %xmm0,0x28(%rax)
mov    -0x20(%rbp),%rax
movsd  0x68(%rax),%xmm1
movsd  -0x70(%rbp),%xmm2
subsd  -0x60(%rbp),%xmm2
mov    -0x20(%rbp),%rax
movsd  0x78(%rax),%xmm0
movsd  -0x68(%rbp),%xmm3
subsd  -0x60(%rbp),%xmm3
mulsd  %xmm3,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
movsd  0x88(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
subsd  -0x60(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xb99(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
addsd  0x50(%rax),%xmm0
movsd  %xmm0,0x50(%rax)
mov    -0x20(%rbp),%rax
movsd  0x70(%rax),%xmm1
movsd  -0x70(%rbp),%xmm2
subsd  -0x58(%rbp),%xmm2
mov    -0x20(%rbp),%rax
movsd  0x80(%rax),%xmm0
movsd  -0x68(%rbp),%xmm3
subsd  -0x58(%rbp),%xmm3
mulsd  %xmm3,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
movsd  0x88(%rax),%xmm0
movsd  -0x60(%rbp),%xmm2
subsd  -0x58(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xb2c(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
addsd  0x78(%rax),%xmm0
movsd  %xmm0,0x78(%rax)
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<derivs_four>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rcx,%r12
mov    %rdx,%r15
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  (%rdi),%xmm0
movsd  %xmm0,(%rsp)
call   1040 <derivs_one@plt>
movsd  (%rsp),%xmm0
mov    $0xffffffe2,%edi
mov    $0x1,%esi
call   1030 <boltzmann@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x30(%rsp)
lea    0x28(%rbx),%rdi
movsd  0x28(%rbx),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0x28(%r14),%rsi
mov    %r15,%rdx
call   1040 <derivs_one@plt>
movsd  0x8(%rsp),%xmm0
mov    $0xffffffe2,%edi
mov    $0x1,%esi
call   1030 <boltzmann@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x28(%rsp)
lea    0x50(%rbx),%rdi
movsd  0x50(%rbx),%xmm0
movsd  %xmm0,0x10(%rsp)
lea    0x50(%r14),%rsi
mov    %r15,%rdx
call   1040 <derivs_one@plt>
movsd  0x10(%rsp),%xmm0
mov    $0xffffffe2,%edi
mov    $0x1,%esi
call   1030 <boltzmann@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x78(%rbx),%xmm0
movsd  %xmm0,0x18(%rsp)
add    $0x78,%rbx
lea    0x78(%r14),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
call   1040 <derivs_one@plt>
movsd  0x18(%rsp),%xmm0
mov    $0xffffffe2,%edi
mov    $0x1,%esi
call   1030 <boltzmann@plt>
cvtsi2sd %eax,%xmm8
movsd  0xde0(%rip),%xmm3
movapd %xmm3,%xmm2
movsd  (%rsp),%xmm10
subsd  %xmm10,%xmm2
movsd  0x8(%r12),%xmm1
movsd  0x20(%rsp),%xmm13
mulsd  %xmm13,%xmm1
movsd  (%r12),%xmm4
movsd  0x28(%rsp),%xmm9
mulsd  %xmm9,%xmm4
addsd  %xmm1,%xmm4
movsd  0x10(%r12),%xmm1
mulsd  %xmm8,%xmm1
addsd  %xmm4,%xmm1
mulsd  %xmm2,%xmm1
addsd  (%r14),%xmm1
movsd  %xmm1,(%r14)
movapd %xmm3,%xmm4
movsd  0x8(%rsp),%xmm0
subsd  %xmm0,%xmm4
movsd  0x20(%r12),%xmm2
mulsd  %xmm13,%xmm2
movsd  0x18(%r12),%xmm5
movsd  0x30(%rsp),%xmm7
mulsd  %xmm7,%xmm5
addsd  %xmm2,%xmm5
movsd  0x28(%r12),%xmm2
mulsd  %xmm8,%xmm2
addsd  %xmm5,%xmm2
mulsd  %xmm4,%xmm2
addsd  0x28(%r14),%xmm2
movsd  %xmm2,0x28(%r14)
movapd %xmm3,%xmm4
movsd  0x10(%rsp),%xmm12
subsd  %xmm12,%xmm4
movsd  0x38(%r12),%xmm5
mulsd  %xmm9,%xmm5
movsd  0x30(%r12),%xmm6
mulsd  %xmm7,%xmm6
addsd  %xmm5,%xmm6
mulsd  0x40(%r12),%xmm8
addsd  %xmm6,%xmm8
mulsd  %xmm4,%xmm8
addsd  0x50(%r14),%xmm8
movsd  %xmm8,0x50(%r14)
movapd %xmm9,%xmm5
mulsd  0x50(%r12),%xmm5
movapd %xmm7,%xmm4
mulsd  0x48(%r12),%xmm4
movsd  0x18(%rsp),%xmm11
subsd  %xmm11,%xmm3
addsd  %xmm5,%xmm4
movapd %xmm13,%xmm7
mulsd  0x58(%r12),%xmm7
addsd  %xmm4,%xmm7
mulsd  %xmm3,%xmm7
addsd  0x78(%r14),%xmm7
movsd  %xmm7,0x78(%r14)
movapd %xmm0,%xmm3
movapd %xmm0,%xmm9
movapd %xmm10,%xmm6
subsd  %xmm10,%xmm3
movapd %xmm12,%xmm4
subsd  %xmm10,%xmm4
mulsd  0x68(%r12),%xmm4
mulsd  0x60(%r12),%xmm3
movapd %xmm11,%xmm5
subsd  %xmm10,%xmm5
mulsd  0x70(%r12),%xmm5
addsd  %xmm4,%xmm3
addsd  %xmm3,%xmm5
addsd  %xmm1,%xmm5
movsd  %xmm5,(%r14)
movapd %xmm10,%xmm1
movapd %xmm0,%xmm4
subsd  %xmm9,%xmm1
movapd %xmm12,%xmm3
subsd  %xmm9,%xmm3
mulsd  0x78(%r12),%xmm3
mulsd  0x60(%r12),%xmm1
addsd  %xmm3,%xmm1
movapd %xmm11,%xmm3
subsd  %xmm9,%xmm3
mulsd  0x80(%r12),%xmm3
addsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  %xmm3,0x28(%r14)
movapd %xmm10,%xmm1
movapd %xmm9,%xmm2
subsd  %xmm12,%xmm2
mulsd  0x78(%r12),%xmm2
subsd  %xmm12,%xmm1
mulsd  0x68(%r12),%xmm1
addsd  %xmm2,%xmm1
movapd %xmm11,%xmm2
subsd  %xmm12,%xmm2
mulsd  0x88(%r12),%xmm2
addsd  %xmm1,%xmm2
addsd  %xmm8,%xmm2
movsd  %xmm2,0x50(%r14)
subsd  %xmm11,%xmm6
subsd  %xmm11,%xmm4
mulsd  0x80(%r12),%xmm4
mulsd  0x70(%r12),%xmm6
movapd %xmm12,%xmm0
subsd  %xmm11,%xmm0
mulsd  0x88(%r12),%xmm0
addsd  %xmm4,%xmm6
addsd  %xmm6,%xmm0
addsd  %xmm7,%xmm0
movsd  %xmm0,0x78(%r14)
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @derivs_four(double* %0, double* %1, double* %2, double* %3) {
%5 = alloca double*
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca i32
%10 = alloca [4 x double]
%11 = alloca [4 x double]
store double* %0, double** %5
store double* %1, double** %6
store double* %2, double** %7
store double* %3, double** %8
store i32 0, i32* %9
br label %12
12: ; preds = %47, %4
%13 = load i32, i32* %9
%14 = icmp slt i32 %13, 4
br i1 %14, label %15, label %50
15: ; preds = %12
%16 = load double*, double** %5
%17 = load i32, i32* %9
%18 = mul nsw i32 %17, 5
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds double, double* %16, i64 %19
%21 = load double, double* %20
%22 = load i32, i32* %9
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 %23
store double %21, double* %24
%25 = load double*, double** %5
%26 = load i32, i32* %9
%27 = mul nsw i32 %26, 5
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds double, double* %25, i64 %28
%30 = load double*, double** %6
%31 = load i32, i32* %9
%32 = mul nsw i32 %31, 5
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, double* %30, i64 %33
%35 = load double*, double** %7
%36 = call i32 @derivs_one(double* %29, double* %34, double* %35)
%37 = load i32, i32* %9
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 %38
%40 = load double, double* %39
%41 = call i32 @boltzmann(double %40, i32 -30, i32 1)
%42 = sitofp i32 %41 to double
%43 = fdiv double %42, 1.000000e+00
%44 = load i32, i32* %9
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 %45
store double %43, double* %46
br label %47
47: ; preds = %15
%48 = load i32, i32* %9
%49 = add nsw i32 %48, 1
store i32 %49, i32* %9
br label %12
50: ; preds = %12
%51 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 0
%52 = load double, double* %51
%53 = fsub double -6.250000e+01, %52
%54 = load double*, double** %8
%55 = getelementptr inbounds double, double* %54, i64 0
%56 = load double, double* %55
%57 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 1
%58 = load double, double* %57
%59 = load double*, double** %8
%60 = getelementptr inbounds double, double* %59, i64 1
%61 = load double, double* %60
%62 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 2
%63 = load double, double* %62
%64 = fmul double %61, %63
%65 = call double @llvm.fmuladd.f64(double %56, double %58, double %64)
%66 = load double*, double** %8
%67 = getelementptr inbounds double, double* %66, i64 2
%68 = load double, double* %67
%69 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 3
%70 = load double, double* %69
%71 = call double @llvm.fmuladd.f64(double %68, double %70, double %65)
%72 = load double*, double** %6
%73 = getelementptr inbounds double, double* %72, i64 0
%74 = load double, double* %73
%75 = call double @llvm.fmuladd.f64(double %53, double %71, double %74)
store double %75, double* %73
%76 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 1
%77 = load double, double* %76
%78 = fsub double -6.250000e+01, %77
%79 = load double*, double** %8
%80 = getelementptr inbounds double, double* %79, i64 3
%81 = load double, double* %80
%82 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 0
%83 = load double, double* %82
%84 = load double*, double** %8
%85 = getelementptr inbounds double, double* %84, i64 4
%86 = load double, double* %85
%87 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 2
%88 = load double, double* %87
%89 = fmul double %86, %88
%90 = call double @llvm.fmuladd.f64(double %81, double %83, double %89)
%91 = load double*, double** %8
%92 = getelementptr inbounds double, double* %91, i64 5
%93 = load double, double* %92
%94 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 3
%95 = load double, double* %94
%96 = call double @llvm.fmuladd.f64(double %93, double %95, double %90)
%97 = load double*, double** %6
%98 = getelementptr inbounds double, double* %97, i64 5
%99 = load double, double* %98
%100 = call double @llvm.fmuladd.f64(double %78, double %96, double %99)
store double %100, double* %98
%101 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 2
%102 = load double, double* %101
%103 = fsub double -6.250000e+01, %102
%104 = load double*, double** %8
%105 = getelementptr inbounds double, double* %104, i64 6
%106 = load double, double* %105
%107 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 0
%108 = load double, double* %107
%109 = load double*, double** %8
%110 = getelementptr inbounds double, double* %109, i64 7
%111 = load double, double* %110
%112 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 1
%113 = load double, double* %112
%114 = fmul double %111, %113
%115 = call double @llvm.fmuladd.f64(double %106, double %108, double %114)
%116 = load double*, double** %8
%117 = getelementptr inbounds double, double* %116, i64 8
%118 = load double, double* %117
%119 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 3
%120 = load double, double* %119
%121 = call double @llvm.fmuladd.f64(double %118, double %120, double %115)
%122 = load double*, double** %6
%123 = getelementptr inbounds double, double* %122, i64 10
%124 = load double, double* %123
%125 = call double @llvm.fmuladd.f64(double %103, double %121, double %124)
store double %125, double* %123
%126 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 3
%127 = load double, double* %126
%128 = fsub double -6.250000e+01, %127
%129 = load double*, double** %8
%130 = getelementptr inbounds double, double* %129, i64 9
%131 = load double, double* %130
%132 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 0
%133 = load double, double* %132
%134 = load double*, double** %8
%135 = getelementptr inbounds double, double* %134, i64 10
%136 = load double, double* %135
%137 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 1
%138 = load double, double* %137
%139 = fmul double %136, %138
%140 = call double @llvm.fmuladd.f64(double %131, double %133, double %139)
%141 = load double*, double** %8
%142 = getelementptr inbounds double, double* %141, i64 11
%143 = load double, double* %142
%144 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 2
%145 = load double, double* %144
%146 = call double @llvm.fmuladd.f64(double %143, double %145, double %140)
%147 = load double*, double** %6
%148 = getelementptr inbounds double, double* %147, i64 15
%149 = load double, double* %148
%150 = call double @llvm.fmuladd.f64(double %128, double %146, double %149)
store double %150, double* %148
%151 = load double*, double** %8
%152 = getelementptr inbounds double, double* %151, i64 12
%153 = load double, double* %152
%154 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 1
%155 = load double, double* %154
%156 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 0
%157 = load double, double* %156
%158 = fsub double %155, %157
%159 = load double*, double** %8
%160 = getelementptr inbounds double, double* %159, i64 13
%161 = load double, double* %160
%162 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 2
%163 = load double, double* %162
%164 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 0
%165 = load double, double* %164
%166 = fsub double %163, %165
%167 = fmul double %161, %166
%168 = call double @llvm.fmuladd.f64(double %153, double %158, double %167)
%169 = load double*, double** %8
%170 = getelementptr inbounds double, double* %169, i64 14
%171 = load double, double* %170
%172 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 3
%173 = load double, double* %172
%174 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 0
%175 = load double, double* %174
%176 = fsub double %173, %175
%177 = call double @llvm.fmuladd.f64(double %171, double %176, double %168)
%178 = fdiv double %177, 1.000000e+00
%179 = load double*, double** %6
%180 = getelementptr inbounds double, double* %179, i64 0
%181 = load double, double* %180
%182 = fadd double %181, %178
store double %182, double* %180
%183 = load double*, double** %8
%184 = getelementptr inbounds double, double* %183, i64 12
%185 = load double, double* %184
%186 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 0
%187 = load double, double* %186
%188 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 1
%189 = load double, double* %188
%190 = fsub double %187, %189
%191 = load double*, double** %8
%192 = getelementptr inbounds double, double* %191, i64 15
%193 = load double, double* %192
%194 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 2
%195 = load double, double* %194
%196 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 1
%197 = load double, double* %196
%198 = fsub double %195, %197
%199 = fmul double %193, %198
%200 = call double @llvm.fmuladd.f64(double %185, double %190, double %199)
%201 = load double*, double** %8
%202 = getelementptr inbounds double, double* %201, i64 16
%203 = load double, double* %202
%204 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 3
%205 = load double, double* %204
%206 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 1
%207 = load double, double* %206
%208 = fsub double %205, %207
%209 = call double @llvm.fmuladd.f64(double %203, double %208, double %200)
%210 = fdiv double %209, 1.000000e+00
%211 = load double*, double** %6
%212 = getelementptr inbounds double, double* %211, i64 5
%213 = load double, double* %212
%214 = fadd double %213, %210
store double %214, double* %212
%215 = load double*, double** %8
%216 = getelementptr inbounds double, double* %215, i64 13
%217 = load double, double* %216
%218 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 0
%219 = load double, double* %218
%220 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 2
%221 = load double, double* %220
%222 = fsub double %219, %221
%223 = load double*, double** %8
%224 = getelementptr inbounds double, double* %223, i64 15
%225 = load double, double* %224
%226 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 1
%227 = load double, double* %226
%228 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 2
%229 = load double, double* %228
%230 = fsub double %227, %229
%231 = fmul double %225, %230
%232 = call double @llvm.fmuladd.f64(double %217, double %222, double %231)
%233 = load double*, double** %8
%234 = getelementptr inbounds double, double* %233, i64 17
%235 = load double, double* %234
%236 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 3
%237 = load double, double* %236
%238 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 2
%239 = load double, double* %238
%240 = fsub double %237, %239
%241 = call double @llvm.fmuladd.f64(double %235, double %240, double %232)
%242 = fdiv double %241, 1.000000e+00
%243 = load double*, double** %6
%244 = getelementptr inbounds double, double* %243, i64 10
%245 = load double, double* %244
%246 = fadd double %245, %242
store double %246, double* %244
%247 = load double*, double** %8
%248 = getelementptr inbounds double, double* %247, i64 14
%249 = load double, double* %248
%250 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 0
%251 = load double, double* %250
%252 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 3
%253 = load double, double* %252
%254 = fsub double %251, %253
%255 = load double*, double** %8
%256 = getelementptr inbounds double, double* %255, i64 16
%257 = load double, double* %256
%258 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 1
%259 = load double, double* %258
%260 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 3
%261 = load double, double* %260
%262 = fsub double %259, %261
%263 = fmul double %257, %262
%264 = call double @llvm.fmuladd.f64(double %249, double %254, double %263)
%265 = load double*, double** %8
%266 = getelementptr inbounds double, double* %265, i64 17
%267 = load double, double* %266
%268 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 2
%269 = load double, double* %268
%270 = getelementptr inbounds [4 x double], [4 x double]* %11, i64 0, i64 3
%271 = load double, double* %270
%272 = fsub double %269, %271
%273 = call double @llvm.fmuladd.f64(double %267, double %272, double %264)
%274 = fdiv double %273, 1.000000e+00
%275 = load double*, double** %6
%276 = getelementptr inbounds double, double* %275, i64 15
%277 = load double, double* %276
%278 = fadd double %277, %274
store double %278, double* %276
ret void
}

LLVM IR (-O2):
define void @derivs_four(double* %0, double* %1, double* %2, double* nocapture %3) {
%5 = load double, double* %0
%6 = tail call i32 @derivs_one(double* %0, double* %1, double* %2)
%7 = tail call i32 @boltzmann(double %5, i32 -30, i32 1)
%8 = sitofp i32 %7 to double
%9 = getelementptr inbounds double, double* %0, i64 5
%10 = load double, double* %9
%11 = getelementptr inbounds double, double* %1, i64 5
%12 = tail call i32 @derivs_one(double* %9, double* %11, double* %2)
%13 = tail call i32 @boltzmann(double %10, i32 -30, i32 1)
%14 = sitofp i32 %13 to double
%15 = getelementptr inbounds double, double* %0, i64 10
%16 = load double, double* %15
%17 = getelementptr inbounds double, double* %1, i64 10
%18 = tail call i32 @derivs_one(double* %15, double* %17, double* %2)
%19 = tail call i32 @boltzmann(double %16, i32 -30, i32 1)
%20 = sitofp i32 %19 to double
%21 = getelementptr inbounds double, double* %0, i64 15
%22 = load double, double* %21
%23 = getelementptr inbounds double, double* %1, i64 15
%24 = tail call i32 @derivs_one(double* %21, double* %23, double* %2)
%25 = tail call i32 @boltzmann(double %22, i32 -30, i32 1)
%26 = sitofp i32 %25 to double
%27 = fsub double -6.250000e+01, %5
%28 = load double, double* %3
%29 = getelementptr inbounds double, double* %3, i64 1
%30 = load double, double* %29
%31 = fmul double %30, %20
%32 = tail call double @llvm.fmuladd.f64(double %28, double %14, double %31)
%33 = getelementptr inbounds double, double* %3, i64 2
%34 = load double, double* %33
%35 = tail call double @llvm.fmuladd.f64(double %34, double %26, double %32)
%36 = load double, double* %1
%37 = tail call double @llvm.fmuladd.f64(double %27, double %35, double %36)
store double %37, double* %1
%38 = fsub double -6.250000e+01, %10
%39 = getelementptr inbounds double, double* %3, i64 3
%40 = load double, double* %39
%41 = getelementptr inbounds double, double* %3, i64 4
%42 = load double, double* %41
%43 = fmul double %42, %20
%44 = tail call double @llvm.fmuladd.f64(double %40, double %8, double %43)
%45 = getelementptr inbounds double, double* %3, i64 5
%46 = load double, double* %45
%47 = tail call double @llvm.fmuladd.f64(double %46, double %26, double %44)
%48 = load double, double* %11
%49 = tail call double @llvm.fmuladd.f64(double %38, double %47, double %48)
store double %49, double* %11
%50 = fsub double -6.250000e+01, %16
%51 = getelementptr inbounds double, double* %3, i64 6
%52 = load double, double* %51
%53 = getelementptr inbounds double, double* %3, i64 7
%54 = load double, double* %53
%55 = fmul double %54, %14
%56 = tail call double @llvm.fmuladd.f64(double %52, double %8, double %55)
%57 = getelementptr inbounds double, double* %3, i64 8
%58 = load double, double* %57
%59 = tail call double @llvm.fmuladd.f64(double %58, double %26, double %56)
%60 = load double, double* %17
%61 = tail call double @llvm.fmuladd.f64(double %50, double %59, double %60)
store double %61, double* %17
%62 = fsub double -6.250000e+01, %22
%63 = getelementptr inbounds double, double* %3, i64 9
%64 = load double, double* %63
%65 = getelementptr inbounds double, double* %3, i64 10
%66 = load double, double* %65
%67 = fmul double %66, %14
%68 = tail call double @llvm.fmuladd.f64(double %64, double %8, double %67)
%69 = getelementptr inbounds double, double* %3, i64 11
%70 = load double, double* %69
%71 = tail call double @llvm.fmuladd.f64(double %70, double %20, double %68)
%72 = load double, double* %23
%73 = tail call double @llvm.fmuladd.f64(double %62, double %71, double %72)
store double %73, double* %23
%74 = getelementptr inbounds double, double* %3, i64 12
%75 = load double, double* %74
%76 = fsub double %10, %5
%77 = getelementptr inbounds double, double* %3, i64 13
%78 = load double, double* %77
%79 = fsub double %16, %5
%80 = fmul double %79, %78
%81 = tail call double @llvm.fmuladd.f64(double %75, double %76, double %80)
%82 = getelementptr inbounds double, double* %3, i64 14
%83 = load double, double* %82
%84 = fsub double %22, %5
%85 = tail call double @llvm.fmuladd.f64(double %83, double %84, double %81)
%86 = fadd double %37, %85
store double %86, double* %1
%87 = load double, double* %74
%88 = fsub double %5, %10
%89 = getelementptr inbounds double, double* %3, i64 15
%90 = load double, double* %89
%91 = fsub double %16, %10
%92 = fmul double %91, %90
%93 = tail call double @llvm.fmuladd.f64(double %87, double %88, double %92)
%94 = getelementptr inbounds double, double* %3, i64 16
%95 = load double, double* %94
%96 = fsub double %22, %10
%97 = tail call double @llvm.fmuladd.f64(double %95, double %96, double %93)
%98 = fadd double %49, %97
store double %98, double* %11
%99 = load double, double* %77
%100 = fsub double %5, %16
%101 = load double, double* %89
%102 = fsub double %10, %16
%103 = fmul double %102, %101
%104 = tail call double @llvm.fmuladd.f64(double %99, double %100, double %103)
%105 = getelementptr inbounds double, double* %3, i64 17
%106 = load double, double* %105
%107 = fsub double %22, %16
%108 = tail call double @llvm.fmuladd.f64(double %106, double %107, double %104)
%109 = fadd double %61, %108
store double %109, double* %17
%110 = load double, double* %82
%111 = fsub double %5, %22
%112 = load double, double* %94
%113 = fsub double %10, %22
%114 = fmul double %113, %112
%115 = tail call double @llvm.fmuladd.f64(double %110, double %111, double %114)
%116 = load double, double* %105
%117 = fsub double %16, %22
%118 = tail call double @llvm.fmuladd.f64(double %116, double %117, double %115)
%119 = fadd double %73, %118
store double %119, double* %23
ret void
}