#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 /*<<< orphan*/ derivs_four(double *, double *, double const *,
                               double const *);
void integrate_four_rk4(double *y, const double *params, const double *coupling,
                        double *output, const double dt, const unsigned N,
                        const unsigned stride) {
  unsigned i, j, k;
  double dt2, dt6;
  double y1[4 * 5], y2[4 * 5], k1[4 * 5], k2[4 * 5], k3[4 * 5], k4[4 * 5];
  dt2 = dt / 2.;
  dt6 = dt / 6.;
  for (j = 0; j < 4; j++)
    output[j] = y[5 * j];
  for (i = 1; i < N; i++) {
    for (j = 0; j < stride; j++) {
      derivs_four(y, k1, params, coupling);
      for (k = 0; k < 4 * 5; k++)
        y1[k] = y[k] + k1[k] * dt2;
      derivs_four(y1, k2, params, coupling);
      for (k = 0; k < 4 * 5; k++)
        y2[k] = y[k] + k2[k] * dt2;
      derivs_four(y2, k3, params, coupling);
      for (k = 0; k < 4 * 5; k++)
        y2[k] = y[k] + k3[k] * dt;
      derivs_four(y2, k4, params, coupling);
      for (k = 0; k < 4 * 5; k++)
        y[k] += dt6 * (k1[k] + 2. * (k2[k] + k3[k]) + k4[k]);
    }
    for (j = 0; j < 4; j++)
      output[4 * i + j] = y[5 * j];
  }
}


x86 assembly (clang, -O0):
<integrate_four_rk4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x410,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movsd  %xmm0,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    %r9d,-0x30(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  0xec3(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  0xea5(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0x4,-0x38(%rbp)
jae    119e <integrate_four_rk4+0x8e>
mov    -0x8(%rbp),%rax
imul   $0x5,-0x38(%rbp),%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x38(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    116b <integrate_four_rk4+0x5b>
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jae    13fa <integrate_four_rk4+0x2ea>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x30(%rbp),%eax
jae    13a5 <integrate_four_rk4+0x295>
mov    -0x8(%rbp),%rdi
lea    -0x230(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1030 <derivs_four@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x14,-0x3c(%rbp)
jae    122c <integrate_four_rk4+0x11c>
mov    -0x8(%rbp),%rax
mov    -0x3c(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x3c(%rbp),%eax
movsd  -0x230(%rbp,%rax,8),%xmm0
ff ff
movsd  -0x48(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x3c(%rbp),%eax
movsd  %xmm0,-0xf0(%rbp,%rax,8)
ff ff
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11e3 <integrate_four_rk4+0xd3>
lea    -0xf0(%rbp),%rdi
lea    -0x2d0(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1030 <derivs_four@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x14,-0x3c(%rbp)
jae    1297 <integrate_four_rk4+0x187>
mov    -0x8(%rbp),%rax
mov    -0x3c(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x3c(%rbp),%eax
movsd  -0x2d0(%rbp,%rax,8),%xmm0
ff ff
movsd  -0x48(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x3c(%rbp),%eax
movsd  %xmm0,-0x190(%rbp,%rax,8)
ff ff
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    124e <integrate_four_rk4+0x13e>
lea    -0x190(%rbp),%rdi
lea    -0x370(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1030 <derivs_four@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x14,-0x3c(%rbp)
jae    1302 <integrate_four_rk4+0x1f2>
mov    -0x8(%rbp),%rax
mov    -0x3c(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x3c(%rbp),%eax
movsd  -0x370(%rbp,%rax,8),%xmm0
ff ff
movsd  -0x28(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x3c(%rbp),%eax
movsd  %xmm0,-0x190(%rbp,%rax,8)
ff ff
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12b9 <integrate_four_rk4+0x1a9>
lea    -0x190(%rbp),%rdi
lea    -0x410(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1030 <derivs_four@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x14,-0x3c(%rbp)
jae    1392 <integrate_four_rk4+0x282>
movsd  -0x50(%rbp),%xmm0
mov    -0x3c(%rbp),%eax
movsd  -0x230(%rbp,%rax,8),%xmm1
ff ff
mov    -0x3c(%rbp),%eax
movsd  -0x2d0(%rbp,%rax,8),%xmm2
ff ff
mov    -0x3c(%rbp),%eax
addsd  -0x370(%rbp,%rax,8),%xmm2
ff ff
addsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
mov    -0x3c(%rbp),%eax
addsd  -0x410(%rbp,%rax,8),%xmm2
ff ff
mov    -0x8(%rbp),%rax
mov    -0x3c(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1324 <integrate_four_rk4+0x214>
jmp    1397 <integrate_four_rk4+0x287>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11b8 <integrate_four_rk4+0xa8>
movl   $0x0,-0x38(%rbp)
cmpl   $0x4,-0x38(%rbp)
jae    13e7 <integrate_four_rk4+0x2d7>
mov    -0x8(%rbp),%rax
imul   $0x5,-0x38(%rbp),%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x2,%ecx
add    -0x38(%rbp),%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    13ac <integrate_four_rk4+0x29c>
jmp    13ec <integrate_four_rk4+0x2dc>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11a5 <integrate_four_rk4+0x95>
add    $0x410,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<integrate_four_rk4>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x418,%rsp
mov    %r9d,0x4(%rsp)
movsd  (%rdi),%xmm1
movsd  %xmm1,(%rcx)
movsd  0x28(%rdi),%xmm1
movsd  %xmm1,0x8(%rcx)
movsd  0x50(%rdi),%xmm1
movsd  %xmm1,0x10(%rcx)
movsd  0x78(%rdi),%xmm1
mov    %rcx,0x10(%rsp)
movsd  %xmm1,0x18(%rcx)
cmp    $0x2,%r8d
jb     1888 <integrate_four_rk4+0x778>
mov    %rdx,%r12
mov    %rsi,%rbx
mov    %rdi,%rbp
movsd  0xe94(%rip),%xmm1
movapd %xmm0,%xmm3
divsd  0xe90(%rip),%xmm3
mulsd  %xmm0,%xmm1
mov    %r8d,%eax
mov    %rax,0x8(%rsp)
unpcklpd %xmm1,%xmm1
movapd %xmm1,0x20(%rsp)
unpcklpd %xmm0,%xmm0
movapd %xmm0,0x2c0(%rsp)
unpcklpd %xmm3,%xmm3
mov    $0x1,%edx
lea    0x170(%rsp),%r15
lea    0x210(%rsp),%r13
movapd %xmm3,0x2b0(%rsp)
jmp    120b <integrate_four_rk4+0xfb>
nop
mov    0x18(%rsp),%rdx
lea    0x0(,%rdx,4),%eax
movsd  0x0(%rbp),%xmm0
mov    0x10(%rsp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
movsd  0x28(%rbp),%xmm0
movsd  %xmm0,0x8(%rcx,%rax,8)
movsd  0x50(%rbp),%xmm0
movsd  %xmm0,0x10(%rcx,%rax,8)
movsd  0x78(%rbp),%xmm0
movsd  %xmm0,0x18(%rcx,%rax,8)
add    $0x1,%rdx
cmp    0x8(%rsp),%rdx
je     1888 <integrate_four_rk4+0x778>
mov    %rdx,0x18(%rsp)
mov    0x4(%rsp),%eax
mov    %eax,%r14d
test   %eax,%eax
je     11c0 <integrate_four_rk4+0xb0>
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
call   1030 <derivs_four@plt>
movupd 0x0(%rbp),%xmm0
movapd 0x170(%rsp),%xmm1
movapd 0x20(%rsp),%xmm2
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x370(%rsp)
movupd 0x10(%rbp),%xmm0
movapd 0x180(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x380(%rsp)
movupd 0x20(%rbp),%xmm0
movapd 0x190(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x390(%rsp)
movupd 0x30(%rbp),%xmm0
movapd 0x1a0(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x3a0(%rsp)
movupd 0x40(%rbp),%xmm0
movapd 0x1b0(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x3b0(%rsp)
movupd 0x50(%rbp),%xmm0
movapd 0x1c0(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x3c0(%rsp)
movupd 0x60(%rbp),%xmm0
movapd 0x1d0(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x3d0(%rsp)
movupd 0x70(%rbp),%xmm0
movapd 0x1e0(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x3e0(%rsp)
movupd 0x80(%rbp),%xmm0
movapd 0x1f0(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x3f0(%rsp)
movupd 0x90(%rbp),%xmm0
movapd 0x200(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x400(%rsp)
lea    0x370(%rsp),%rdi
lea    0xd0(%rsp),%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
call   1030 <derivs_four@plt>
movupd 0x0(%rbp),%xmm0
movapd 0xd0(%rsp),%xmm1
movapd 0x20(%rsp),%xmm2
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x210(%rsp)
movupd 0x10(%rbp),%xmm0
movapd 0xe0(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x220(%rsp)
movupd 0x20(%rbp),%xmm0
movapd 0xf0(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x230(%rsp)
movupd 0x30(%rbp),%xmm0
movapd 0x100(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x240(%rsp)
movupd 0x40(%rbp),%xmm0
movapd 0x110(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x250(%rsp)
movupd 0x50(%rbp),%xmm0
movapd 0x120(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x260(%rsp)
movupd 0x60(%rbp),%xmm0
movapd 0x130(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x270(%rsp)
movupd 0x70(%rbp),%xmm0
movapd 0x140(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x280(%rsp)
movupd 0x80(%rbp),%xmm0
movapd 0x150(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x290(%rsp)
movupd 0x90(%rbp),%xmm0
movapd 0x160(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x2a0(%rsp)
mov    %r13,%rdi
lea    0x30(%rsp),%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
call   1030 <derivs_four@plt>
movupd 0x0(%rbp),%xmm0
movapd 0x30(%rsp),%xmm1
movapd 0x2c0(%rsp),%xmm2
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x210(%rsp)
movupd 0x10(%rbp),%xmm0
movapd 0x40(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x220(%rsp)
movupd 0x20(%rbp),%xmm0
movapd 0x50(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x230(%rsp)
movupd 0x30(%rbp),%xmm0
movapd 0x60(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x240(%rsp)
movupd 0x40(%rbp),%xmm0
movapd 0x70(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x250(%rsp)
movupd 0x50(%rbp),%xmm0
movapd 0x80(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x260(%rsp)
movupd 0x60(%rbp),%xmm0
movapd 0x90(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x270(%rsp)
movupd 0x70(%rbp),%xmm0
movapd 0xa0(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x280(%rsp)
movupd 0x80(%rbp),%xmm0
movapd 0xb0(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x290(%rsp)
movupd 0x90(%rbp),%xmm0
movapd 0xc0(%rsp),%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,0x2a0(%rsp)
mov    %r13,%rdi
lea    0x2d0(%rsp),%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
call   1030 <derivs_four@plt>
movapd 0x2b0(%rsp),%xmm3
movapd 0xd0(%rsp),%xmm0
addpd  0x30(%rsp),%xmm0
addpd  %xmm0,%xmm0
addpd  0x170(%rsp),%xmm0
addpd  0x2d0(%rsp),%xmm0
movupd 0x0(%rbp),%xmm1
mulpd  %xmm3,%xmm0
addpd  %xmm0,%xmm1
movupd 0x10(%rbp),%xmm0
movupd 0x20(%rbp),%xmm2
movupd %xmm1,0x0(%rbp)
movapd 0xe0(%rsp),%xmm1
addpd  0x40(%rsp),%xmm1
addpd  %xmm1,%xmm1
addpd  0x180(%rsp),%xmm1
addpd  0x2e0(%rsp),%xmm1
mulpd  %xmm3,%xmm1
addpd  %xmm0,%xmm1
movupd %xmm1,0x10(%rbp)
movapd 0xf0(%rsp),%xmm0
addpd  0x50(%rsp),%xmm0
addpd  %xmm0,%xmm0
addpd  0x190(%rsp),%xmm0
addpd  0x2f0(%rsp),%xmm0
mulpd  %xmm3,%xmm0
addpd  %xmm2,%xmm0
movupd %xmm0,0x20(%rbp)
movapd 0x100(%rsp),%xmm0
addpd  0x60(%rsp),%xmm0
addpd  %xmm0,%xmm0
addpd  0x1a0(%rsp),%xmm0
addpd  0x300(%rsp),%xmm0
movupd 0x30(%rbp),%xmm1
mulpd  %xmm3,%xmm0
addpd  %xmm1,%xmm0
movupd %xmm0,0x30(%rbp)
movapd 0x110(%rsp),%xmm0
addpd  0x70(%rsp),%xmm0
addpd  %xmm0,%xmm0
addpd  0x1b0(%rsp),%xmm0
addpd  0x310(%rsp),%xmm0
movupd 0x40(%rbp),%xmm1
mulpd  %xmm3,%xmm0
addpd  %xmm1,%xmm0
movupd %xmm0,0x40(%rbp)
movapd 0x120(%rsp),%xmm0
addpd  0x80(%rsp),%xmm0
addpd  %xmm0,%xmm0
addpd  0x1c0(%rsp),%xmm0
addpd  0x320(%rsp),%xmm0
movupd 0x50(%rbp),%xmm1
mulpd  %xmm3,%xmm0
addpd  %xmm1,%xmm0
movupd %xmm0,0x50(%rbp)
movapd 0x130(%rsp),%xmm0
addpd  0x90(%rsp),%xmm0
addpd  %xmm0,%xmm0
addpd  0x1d0(%rsp),%xmm0
addpd  0x330(%rsp),%xmm0
movupd 0x60(%rbp),%xmm1
mulpd  %xmm3,%xmm0
addpd  %xmm1,%xmm0
movupd %xmm0,0x60(%rbp)
movapd 0x140(%rsp),%xmm0
addpd  0xa0(%rsp),%xmm0
addpd  %xmm0,%xmm0
addpd  0x1e0(%rsp),%xmm0
addpd  0x340(%rsp),%xmm0
movupd 0x70(%rbp),%xmm1
mulpd  %xmm3,%xmm0
addpd  %xmm1,%xmm0
movupd %xmm0,0x70(%rbp)
movapd 0x150(%rsp),%xmm0
addpd  0xb0(%rsp),%xmm0
addpd  %xmm0,%xmm0
addpd  0x1f0(%rsp),%xmm0
addpd  0x350(%rsp),%xmm0
movupd 0x80(%rbp),%xmm1
mulpd  %xmm3,%xmm0
addpd  %xmm1,%xmm0
movupd %xmm0,0x80(%rbp)
movapd 0x160(%rsp),%xmm0
addpd  0xc0(%rsp),%xmm0
addpd  %xmm0,%xmm0
addpd  0x200(%rsp),%xmm0
addpd  0x360(%rsp),%xmm0
movupd 0x90(%rbp),%xmm1
mulpd  %xmm3,%xmm0
addpd  %xmm1,%xmm0
movupd %xmm0,0x90(%rbp)
add    $0xffffffff,%r14d
jne    1220 <integrate_four_rk4+0x110>
jmp    11c0 <integrate_four_rk4+0xb0>
add    $0x418,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @integrate_four_rk4(double* %0, double* %1, double* %2, double* %3, double %4, i32 %5, i32 %6) {
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
%12 = alloca double
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca double
%19 = alloca double
%20 = alloca [20 x double]
%21 = alloca [20 x double]
%22 = alloca [20 x double]
%23 = alloca [20 x double]
%24 = alloca [20 x double]
%25 = alloca [20 x double]
store double* %0, double** %8
store double* %1, double** %9
store double* %2, double** %10
store double* %3, double** %11
store double %4, double* %12
store i32 %5, i32* %13
store i32 %6, i32* %14
%26 = load double, double* %12
%27 = fdiv double %26, 2.000000e+00
store double %27, double* %18
%28 = load double, double* %12
%29 = fdiv double %28, 6.000000e+00
store double %29, double* %19
store i32 0, i32* %16
br label %30
30: ; preds = %44, %7
%31 = load i32, i32* %16
%32 = icmp ult i32 %31, 4
br i1 %32, label %33, label %47
33: ; preds = %30
%34 = load double*, double** %8
%35 = load i32, i32* %16
%36 = mul i32 5, %35
%37 = zext i32 %36 to i64
%38 = getelementptr inbounds double, double* %34, i64 %37
%39 = load double, double* %38
%40 = load double*, double** %11
%41 = load i32, i32* %16
%42 = zext i32 %41 to i64
%43 = getelementptr inbounds double, double* %40, i64 %42
store double %39, double* %43
br label %44
44: ; preds = %33
%45 = load i32, i32* %16
%46 = add i32 %45, 1
store i32 %46, i32* %16
br label %30
47: ; preds = %30
store i32 1, i32* %15
br label %48
48: ; preds = %203, %47
%49 = load i32, i32* %15
%50 = load i32, i32* %13
%51 = icmp ult i32 %49, %50
br i1 %51, label %52, label %206
52: ; preds = %48
store i32 0, i32* %16
br label %53
53: ; preds = %178, %52
%54 = load i32, i32* %16
%55 = load i32, i32* %14
%56 = icmp ult i32 %54, %55
br i1 %56, label %57, label %181
57: ; preds = %53
%58 = load double*, double** %8
%59 = getelementptr inbounds [20 x double], [20 x double]* %22, i64 0, i64 0
%60 = load double*, double** %9
%61 = load double*, double** %10
%62 = call i32 @derivs_four(double* %58, double* %59, double* %60, double* %61)
store i32 0, i32* %17
br label %63
63: ; preds = %81, %57
%64 = load i32, i32* %17
%65 = icmp ult i32 %64, 20
br i1 %65, label %66, label %84
66: ; preds = %63
%67 = load double*, double** %8
%68 = load i32, i32* %17
%69 = zext i32 %68 to i64
%70 = getelementptr inbounds double, double* %67, i64 %69
%71 = load double, double* %70
%72 = load i32, i32* %17
%73 = zext i32 %72 to i64
%74 = getelementptr inbounds [20 x double], [20 x double]* %22, i64 0, i64 %73
%75 = load double, double* %74
%76 = load double, double* %18
%77 = call double @llvm.fmuladd.f64(double %75, double %76, double %71)
%78 = load i32, i32* %17
%79 = zext i32 %78 to i64
%80 = getelementptr inbounds [20 x double], [20 x double]* %20, i64 0, i64 %79
store double %77, double* %80
br label %81
81: ; preds = %66
%82 = load i32, i32* %17
%83 = add i32 %82, 1
store i32 %83, i32* %17
br label %63
84: ; preds = %63
%85 = getelementptr inbounds [20 x double], [20 x double]* %20, i64 0, i64 0
%86 = getelementptr inbounds [20 x double], [20 x double]* %23, i64 0, i64 0
%87 = load double*, double** %9
%88 = load double*, double** %10
%89 = call i32 @derivs_four(double* %85, double* %86, double* %87, double* %88)
store i32 0, i32* %17
br label %90
90: ; preds = %108, %84
%91 = load i32, i32* %17
%92 = icmp ult i32 %91, 20
br i1 %92, label %93, label %111
93: ; preds = %90
%94 = load double*, double** %8
%95 = load i32, i32* %17
%96 = zext i32 %95 to i64
%97 = getelementptr inbounds double, double* %94, i64 %96
%98 = load double, double* %97
%99 = load i32, i32* %17
%100 = zext i32 %99 to i64
%101 = getelementptr inbounds [20 x double], [20 x double]* %23, i64 0, i64 %100
%102 = load double, double* %101
%103 = load double, double* %18
%104 = call double @llvm.fmuladd.f64(double %102, double %103, double %98)
%105 = load i32, i32* %17
%106 = zext i32 %105 to i64
%107 = getelementptr inbounds [20 x double], [20 x double]* %21, i64 0, i64 %106
store double %104, double* %107
br label %108
108: ; preds = %93
%109 = load i32, i32* %17
%110 = add i32 %109, 1
store i32 %110, i32* %17
br label %90
111: ; preds = %90
%112 = getelementptr inbounds [20 x double], [20 x double]* %21, i64 0, i64 0
%113 = getelementptr inbounds [20 x double], [20 x double]* %24, i64 0, i64 0
%114 = load double*, double** %9
%115 = load double*, double** %10
%116 = call i32 @derivs_four(double* %112, double* %113, double* %114, double* %115)
store i32 0, i32* %17
br label %117
117: ; preds = %135, %111
%118 = load i32, i32* %17
%119 = icmp ult i32 %118, 20
br i1 %119, label %120, label %138
120: ; preds = %117
%121 = load double*, double** %8
%122 = load i32, i32* %17
%123 = zext i32 %122 to i64
%124 = getelementptr inbounds double, double* %121, i64 %123
%125 = load double, double* %124
%126 = load i32, i32* %17
%127 = zext i32 %126 to i64
%128 = getelementptr inbounds [20 x double], [20 x double]* %24, i64 0, i64 %127
%129 = load double, double* %128
%130 = load double, double* %12
%131 = call double @llvm.fmuladd.f64(double %129, double %130, double %125)
%132 = load i32, i32* %17
%133 = zext i32 %132 to i64
%134 = getelementptr inbounds [20 x double], [20 x double]* %21, i64 0, i64 %133
store double %131, double* %134
br label %135
135: ; preds = %120
%136 = load i32, i32* %17
%137 = add i32 %136, 1
store i32 %137, i32* %17
br label %117
138: ; preds = %117
%139 = getelementptr inbounds [20 x double], [20 x double]* %21, i64 0, i64 0
%140 = getelementptr inbounds [20 x double], [20 x double]* %25, i64 0, i64 0
%141 = load double*, double** %9
%142 = load double*, double** %10
%143 = call i32 @derivs_four(double* %139, double* %140, double* %141, double* %142)
store i32 0, i32* %17
br label %144
144: ; preds = %174, %138
%145 = load i32, i32* %17
%146 = icmp ult i32 %145, 20
br i1 %146, label %147, label %177
147: ; preds = %144
%148 = load double, double* %19
%149 = load i32, i32* %17
%150 = zext i32 %149 to i64
%151 = getelementptr inbounds [20 x double], [20 x double]* %22, i64 0, i64 %150
%152 = load double, double* %151
%153 = load i32, i32* %17
%154 = zext i32 %153 to i64
%155 = getelementptr inbounds [20 x double], [20 x double]* %23, i64 0, i64 %154
%156 = load double, double* %155
%157 = load i32, i32* %17
%158 = zext i32 %157 to i64
%159 = getelementptr inbounds [20 x double], [20 x double]* %24, i64 0, i64 %158
%160 = load double, double* %159
%161 = fadd double %156, %160
%162 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %161, double %152)
%163 = load i32, i32* %17
%164 = zext i32 %163 to i64
%165 = getelementptr inbounds [20 x double], [20 x double]* %25, i64 0, i64 %164
%166 = load double, double* %165
%167 = fadd double %162, %166
%168 = load double*, double** %8
%169 = load i32, i32* %17
%170 = zext i32 %169 to i64
%171 = getelementptr inbounds double, double* %168, i64 %170
%172 = load double, double* %171
%173 = call double @llvm.fmuladd.f64(double %148, double %167, double %172)
store double %173, double* %171
br label %174
174: ; preds = %147
%175 = load i32, i32* %17
%176 = add i32 %175, 1
store i32 %176, i32* %17
br label %144
177: ; preds = %144
br label %178
178: ; preds = %177
%179 = load i32, i32* %16
%180 = add i32 %179, 1
store i32 %180, i32* %16
br label %53
181: ; preds = %53
store i32 0, i32* %16
br label %182
182: ; preds = %199, %181
%183 = load i32, i32* %16
%184 = icmp ult i32 %183, 4
br i1 %184, label %185, label %202
185: ; preds = %182
%186 = load double*, double** %8
%187 = load i32, i32* %16
%188 = mul i32 5, %187
%189 = zext i32 %188 to i64
%190 = getelementptr inbounds double, double* %186, i64 %189
%191 = load double, double* %190
%192 = load double*, double** %11
%193 = load i32, i32* %15
%194 = mul i32 4, %193
%195 = load i32, i32* %16
%196 = add i32 %194, %195
%197 = zext i32 %196 to i64
%198 = getelementptr inbounds double, double* %192, i64 %197
store double %191, double* %198
br label %199
199: ; preds = %185
%200 = load i32, i32* %16
%201 = add i32 %200, 1
store i32 %201, i32* %16
br label %182
202: ; preds = %182
br label %203
203: ; preds = %202
%204 = load i32, i32* %15
%205 = add i32 %204, 1
store i32 %205, i32* %15
br label %48
206: ; preds = %48
ret void
}

LLVM IR (-O2):
define void @integrate_four_rk4(double* %0, double* %1, double* %2, double* nocapture writeonly %3, double %4, i32 %5, i32 %6) {
%8 = alloca [20 x double]
%9 = alloca [20 x double]
%10 = alloca [20 x double]
%11 = alloca [20 x double]
%12 = alloca [20 x double]
%13 = alloca [20 x double]
%14 = bitcast [20 x double]* %8 to i8*
%15 = bitcast [20 x double]* %9 to i8*
%16 = bitcast [20 x double]* %10 to i8*
%17 = bitcast [20 x double]* %11 to i8*
%18 = bitcast [20 x double]* %12 to i8*
%19 = bitcast [20 x double]* %13 to i8*
%20 = fmul double %4, 5.000000e-01
%21 = load double, double* %0
store double %21, double* %3
%22 = getelementptr inbounds double, double* %0, i64 5
%23 = load double, double* %22
%24 = getelementptr inbounds double, double* %3, i64 1
store double %23, double* %24
%25 = getelementptr inbounds double, double* %0, i64 10
%26 = load double, double* %25
%27 = getelementptr inbounds double, double* %3, i64 2
store double %26, double* %27
%28 = getelementptr inbounds double, double* %0, i64 15
%29 = load double, double* %28
%30 = getelementptr inbounds double, double* %3, i64 3
store double %29, double* %30
%31 = fdiv double %4, 6.000000e+00
%32 = icmp ugt i32 %5, 1
br i1 %32, label %33, label %502
33: ; preds = %7
%34 = icmp eq i32 %6, 0
%35 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 0
%36 = getelementptr inbounds [20 x double], [20 x double]* %8, i64 0, i64 0
%37 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 0
%38 = getelementptr inbounds [20 x double], [20 x double]* %9, i64 0, i64 0
%39 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 0
%40 = getelementptr inbounds [20 x double], [20 x double]* %13, i64 0, i64 0
%41 = zext i32 %5 to i64
%42 = getelementptr inbounds double, double* %0, i64 2
%43 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 2
%44 = getelementptr inbounds [20 x double], [20 x double]* %8, i64 0, i64 2
%45 = getelementptr inbounds double, double* %0, i64 4
%46 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 4
%47 = getelementptr inbounds [20 x double], [20 x double]* %8, i64 0, i64 4
%48 = getelementptr inbounds double, double* %0, i64 6
%49 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 6
%50 = getelementptr inbounds [20 x double], [20 x double]* %8, i64 0, i64 6
%51 = getelementptr inbounds double, double* %0, i64 8
%52 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 8
%53 = getelementptr inbounds [20 x double], [20 x double]* %8, i64 0, i64 8
%54 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 10
%55 = getelementptr inbounds [20 x double], [20 x double]* %8, i64 0, i64 10
%56 = getelementptr inbounds double, double* %0, i64 12
%57 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 12
%58 = getelementptr inbounds [20 x double], [20 x double]* %8, i64 0, i64 12
%59 = getelementptr inbounds double, double* %0, i64 14
%60 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 14
%61 = getelementptr inbounds [20 x double], [20 x double]* %8, i64 0, i64 14
%62 = getelementptr inbounds double, double* %0, i64 16
%63 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 16
%64 = getelementptr inbounds [20 x double], [20 x double]* %8, i64 0, i64 16
%65 = getelementptr inbounds double, double* %0, i64 18
%66 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 18
%67 = getelementptr inbounds [20 x double], [20 x double]* %8, i64 0, i64 18
%68 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 2
%69 = getelementptr inbounds [20 x double], [20 x double]* %9, i64 0, i64 2
%70 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 4
%71 = getelementptr inbounds [20 x double], [20 x double]* %9, i64 0, i64 4
%72 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 6
%73 = getelementptr inbounds [20 x double], [20 x double]* %9, i64 0, i64 6
%74 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 8
%75 = getelementptr inbounds [20 x double], [20 x double]* %9, i64 0, i64 8
%76 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 10
%77 = getelementptr inbounds [20 x double], [20 x double]* %9, i64 0, i64 10
%78 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 12
%79 = getelementptr inbounds [20 x double], [20 x double]* %9, i64 0, i64 12
%80 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 14
%81 = getelementptr inbounds [20 x double], [20 x double]* %9, i64 0, i64 14
%82 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 16
%83 = getelementptr inbounds [20 x double], [20 x double]* %9, i64 0, i64 16
%84 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 18
%85 = getelementptr inbounds [20 x double], [20 x double]* %9, i64 0, i64 18
%86 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 2
%87 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 4
%88 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 6
%89 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 8
%90 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 10
%91 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 12
%92 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 14
%93 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 16
%94 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 18
%95 = bitcast [20 x double]* %10 to <2 x double>*
%96 = bitcast double* %0 to <2 x double>*
%97 = bitcast [20 x double]* %10 to <2 x double>*
%98 = insertelement <2 x double> poison, double %20, i64 0
%99 = shufflevector <2 x double> %98, <2 x double> poison, <2 x i32> zeroinitializer
%100 = bitcast [20 x double]* %8 to <2 x double>*
%101 = bitcast double* %42 to <2 x double>*
%102 = bitcast double* %43 to <2 x double>*
%103 = bitcast double* %44 to <2 x double>*
%104 = bitcast double* %45 to <2 x double>*
%105 = bitcast double* %46 to <2 x double>*
%106 = bitcast double* %47 to <2 x double>*
%107 = bitcast double* %48 to <2 x double>*
%108 = bitcast double* %49 to <2 x double>*
%109 = bitcast double* %50 to <2 x double>*
%110 = bitcast double* %51 to <2 x double>*
%111 = bitcast double* %52 to <2 x double>*
%112 = bitcast double* %53 to <2 x double>*
%113 = bitcast double* %25 to <2 x double>*
%114 = bitcast double* %54 to <2 x double>*
%115 = bitcast double* %55 to <2 x double>*
%116 = bitcast double* %56 to <2 x double>*
%117 = bitcast double* %57 to <2 x double>*
%118 = bitcast double* %58 to <2 x double>*
%119 = bitcast double* %59 to <2 x double>*
%120 = bitcast double* %60 to <2 x double>*
%121 = bitcast double* %61 to <2 x double>*
%122 = bitcast double* %62 to <2 x double>*
%123 = bitcast double* %63 to <2 x double>*
%124 = bitcast double* %64 to <2 x double>*
%125 = bitcast double* %65 to <2 x double>*
%126 = bitcast double* %66 to <2 x double>*
%127 = bitcast double* %67 to <2 x double>*
%128 = bitcast double* %0 to <2 x double>*
%129 = bitcast [20 x double]* %11 to <2 x double>*
%130 = bitcast [20 x double]* %9 to <2 x double>*
%131 = bitcast double* %42 to <2 x double>*
%132 = bitcast double* %68 to <2 x double>*
%133 = bitcast double* %69 to <2 x double>*
%134 = bitcast double* %45 to <2 x double>*
%135 = bitcast double* %70 to <2 x double>*
%136 = bitcast double* %71 to <2 x double>*
%137 = bitcast double* %48 to <2 x double>*
%138 = bitcast double* %72 to <2 x double>*
%139 = bitcast double* %73 to <2 x double>*
%140 = bitcast double* %51 to <2 x double>*
%141 = bitcast double* %74 to <2 x double>*
%142 = bitcast double* %75 to <2 x double>*
%143 = bitcast double* %25 to <2 x double>*
%144 = bitcast double* %76 to <2 x double>*
%145 = bitcast double* %77 to <2 x double>*
%146 = bitcast double* %56 to <2 x double>*
%147 = bitcast double* %78 to <2 x double>*
%148 = bitcast double* %79 to <2 x double>*
%149 = bitcast double* %59 to <2 x double>*
%150 = bitcast double* %80 to <2 x double>*
%151 = bitcast double* %81 to <2 x double>*
%152 = bitcast double* %62 to <2 x double>*
%153 = bitcast double* %82 to <2 x double>*
%154 = bitcast double* %83 to <2 x double>*
%155 = bitcast double* %65 to <2 x double>*
%156 = bitcast double* %84 to <2 x double>*
%157 = bitcast double* %85 to <2 x double>*
%158 = bitcast double* %0 to <2 x double>*
%159 = bitcast [20 x double]* %12 to <2 x double>*
%160 = insertelement <2 x double> poison, double %4, i64 0
%161 = shufflevector <2 x double> %160, <2 x double> poison, <2 x i32> zeroinitializer
%162 = bitcast [20 x double]* %9 to <2 x double>*
%163 = bitcast double* %42 to <2 x double>*
%164 = bitcast double* %86 to <2 x double>*
%165 = bitcast double* %69 to <2 x double>*
%166 = bitcast double* %45 to <2 x double>*
%167 = bitcast double* %87 to <2 x double>*
%168 = bitcast double* %71 to <2 x double>*
%169 = bitcast double* %48 to <2 x double>*
%170 = bitcast double* %88 to <2 x double>*
%171 = bitcast double* %73 to <2 x double>*
%172 = bitcast double* %51 to <2 x double>*
%173 = bitcast double* %89 to <2 x double>*
%174 = bitcast double* %75 to <2 x double>*
%175 = bitcast double* %25 to <2 x double>*
%176 = bitcast double* %90 to <2 x double>*
%177 = bitcast double* %77 to <2 x double>*
%178 = bitcast double* %56 to <2 x double>*
%179 = bitcast double* %91 to <2 x double>*
%180 = bitcast double* %79 to <2 x double>*
%181 = bitcast double* %59 to <2 x double>*
%182 = bitcast double* %92 to <2 x double>*
%183 = bitcast double* %81 to <2 x double>*
%184 = bitcast double* %62 to <2 x double>*
%185 = bitcast double* %93 to <2 x double>*
%186 = bitcast double* %83 to <2 x double>*
%187 = bitcast double* %65 to <2 x double>*
%188 = bitcast double* %94 to <2 x double>*
%189 = bitcast double* %85 to <2 x double>*
%190 = insertelement <2 x double> poison, double %31, i64 0
%191 = shufflevector <2 x double> %190, <2 x double> poison, <2 x i32> zeroinitializer
%192 = bitcast [20 x double]* %11 to <2 x double>*
%193 = bitcast [20 x double]* %12 to <2 x double>*
%194 = bitcast [20 x double]* %13 to <2 x double>*
%195 = bitcast double* %0 to <2 x double>*
%196 = bitcast double* %0 to <2 x double>*
%197 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 2
%198 = bitcast double* %197 to <2 x double>*
%199 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 2
%200 = bitcast double* %199 to <2 x double>*
%201 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 2
%202 = bitcast double* %201 to <2 x double>*
%203 = getelementptr inbounds [20 x double], [20 x double]* %13, i64 0, i64 2
%204 = bitcast double* %203 to <2 x double>*
%205 = getelementptr inbounds double, double* %0, i64 2
%206 = bitcast double* %205 to <2 x double>*
%207 = bitcast double* %205 to <2 x double>*
%208 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 4
%209 = bitcast double* %208 to <2 x double>*
%210 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 4
%211 = bitcast double* %210 to <2 x double>*
%212 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 4
%213 = bitcast double* %212 to <2 x double>*
%214 = getelementptr inbounds [20 x double], [20 x double]* %13, i64 0, i64 4
%215 = bitcast double* %214 to <2 x double>*
%216 = getelementptr inbounds double, double* %0, i64 4
%217 = bitcast double* %216 to <2 x double>*
%218 = bitcast double* %216 to <2 x double>*
%219 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 6
%220 = bitcast double* %219 to <2 x double>*
%221 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 6
%222 = bitcast double* %221 to <2 x double>*
%223 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 6
%224 = bitcast double* %223 to <2 x double>*
%225 = getelementptr inbounds [20 x double], [20 x double]* %13, i64 0, i64 6
%226 = bitcast double* %225 to <2 x double>*
%227 = getelementptr inbounds double, double* %0, i64 6
%228 = bitcast double* %227 to <2 x double>*
%229 = bitcast double* %227 to <2 x double>*
%230 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 8
%231 = bitcast double* %230 to <2 x double>*
%232 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 8
%233 = bitcast double* %232 to <2 x double>*
%234 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 8
%235 = bitcast double* %234 to <2 x double>*
%236 = getelementptr inbounds [20 x double], [20 x double]* %13, i64 0, i64 8
%237 = bitcast double* %236 to <2 x double>*
%238 = getelementptr inbounds double, double* %0, i64 8
%239 = bitcast double* %238 to <2 x double>*
%240 = bitcast double* %238 to <2 x double>*
%241 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 10
%242 = bitcast double* %241 to <2 x double>*
%243 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 10
%244 = bitcast double* %243 to <2 x double>*
%245 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 10
%246 = bitcast double* %245 to <2 x double>*
%247 = getelementptr inbounds [20 x double], [20 x double]* %13, i64 0, i64 10
%248 = bitcast double* %247 to <2 x double>*
%249 = getelementptr inbounds double, double* %0, i64 10
%250 = bitcast double* %249 to <2 x double>*
%251 = bitcast double* %249 to <2 x double>*
%252 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 12
%253 = bitcast double* %252 to <2 x double>*
%254 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 12
%255 = bitcast double* %254 to <2 x double>*
%256 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 12
%257 = bitcast double* %256 to <2 x double>*
%258 = getelementptr inbounds [20 x double], [20 x double]* %13, i64 0, i64 12
%259 = bitcast double* %258 to <2 x double>*
%260 = getelementptr inbounds double, double* %0, i64 12
%261 = bitcast double* %260 to <2 x double>*
%262 = bitcast double* %260 to <2 x double>*
%263 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 14
%264 = bitcast double* %263 to <2 x double>*
%265 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 14
%266 = bitcast double* %265 to <2 x double>*
%267 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 14
%268 = bitcast double* %267 to <2 x double>*
%269 = getelementptr inbounds [20 x double], [20 x double]* %13, i64 0, i64 14
%270 = bitcast double* %269 to <2 x double>*
%271 = getelementptr inbounds double, double* %0, i64 14
%272 = bitcast double* %271 to <2 x double>*
%273 = bitcast double* %271 to <2 x double>*
%274 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 16
%275 = bitcast double* %274 to <2 x double>*
%276 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 16
%277 = bitcast double* %276 to <2 x double>*
%278 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 16
%279 = bitcast double* %278 to <2 x double>*
%280 = getelementptr inbounds [20 x double], [20 x double]* %13, i64 0, i64 16
%281 = bitcast double* %280 to <2 x double>*
%282 = getelementptr inbounds double, double* %0, i64 16
%283 = bitcast double* %282 to <2 x double>*
%284 = bitcast double* %282 to <2 x double>*
%285 = getelementptr inbounds [20 x double], [20 x double]* %10, i64 0, i64 18
%286 = bitcast double* %285 to <2 x double>*
%287 = getelementptr inbounds [20 x double], [20 x double]* %11, i64 0, i64 18
%288 = bitcast double* %287 to <2 x double>*
%289 = getelementptr inbounds [20 x double], [20 x double]* %12, i64 0, i64 18
%290 = bitcast double* %289 to <2 x double>*
%291 = getelementptr inbounds [20 x double], [20 x double]* %13, i64 0, i64 18
%292 = bitcast double* %291 to <2 x double>*
%293 = getelementptr inbounds double, double* %0, i64 18
%294 = bitcast double* %293 to <2 x double>*
%295 = bitcast double* %293 to <2 x double>*
br label %296
296: ; preds = %33, %298
%297 = phi i64 [ 1, %33 ], [ %312, %298 ]
br i1 %34, label %298, label %314
298: ; preds = %314, %296
%299 = shl i64 %297, 2
%300 = and i64 %299, 4294967292
%301 = load double, double* %0
%302 = getelementptr inbounds double, double* %3, i64 %300
store double %301, double* %302
%303 = load double, double* %22
%304 = or i64 %300, 1
%305 = getelementptr inbounds double, double* %3, i64 %304
store double %303, double* %305
%306 = load double, double* %25
%307 = or i64 %300, 2
%308 = getelementptr inbounds double, double* %3, i64 %307
store double %306, double* %308
%309 = load double, double* %28
%310 = or i64 %300, 3
%311 = getelementptr inbounds double, double* %3, i64 %310
store double %309, double* %311
%312 = add nuw nsw i64 %297, 1
%313 = icmp eq i64 %312, %41
br i1 %313, label %502, label %296
314: ; preds = %296, %314
%315 = phi i32 [ %500, %314 ], [ 0, %296 ]
%316 = call i32 @derivs_four(double* %0, double* %35, double* %1, double* %2)
%317 = load <2 x double>, <2 x double>* %96
%318 = load <2 x double>, <2 x double>* %97
%319 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %318, <2 x double> %99, <2 x double> %317)
store <2 x double> %319, <2 x double>* %100
%320 = load <2 x double>, <2 x double>* %101
%321 = load <2 x double>, <2 x double>* %102
%322 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %321, <2 x double> %99, <2 x double> %320)
store <2 x double> %322, <2 x double>* %103
%323 = load <2 x double>, <2 x double>* %104
%324 = load <2 x double>, <2 x double>* %105
%325 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %324, <2 x double> %99, <2 x double> %323)
store <2 x double> %325, <2 x double>* %106
%326 = load <2 x double>, <2 x double>* %107
%327 = load <2 x double>, <2 x double>* %108
%328 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %327, <2 x double> %99, <2 x double> %326)
store <2 x double> %328, <2 x double>* %109
%329 = load <2 x double>, <2 x double>* %110
%330 = load <2 x double>, <2 x double>* %111
%331 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %330, <2 x double> %99, <2 x double> %329)
store <2 x double> %331, <2 x double>* %112
%332 = load <2 x double>, <2 x double>* %113
%333 = load <2 x double>, <2 x double>* %114
%334 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %333, <2 x double> %99, <2 x double> %332)
store <2 x double> %334, <2 x double>* %115
%335 = load <2 x double>, <2 x double>* %116
%336 = load <2 x double>, <2 x double>* %117
%337 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %336, <2 x double> %99, <2 x double> %335)
store <2 x double> %337, <2 x double>* %118
%338 = load <2 x double>, <2 x double>* %119
%339 = load <2 x double>, <2 x double>* %120
%340 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %339, <2 x double> %99, <2 x double> %338)
store <2 x double> %340, <2 x double>* %121
%341 = load <2 x double>, <2 x double>* %122
%342 = load <2 x double>, <2 x double>* %123
%343 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %342, <2 x double> %99, <2 x double> %341)
store <2 x double> %343, <2 x double>* %124
%344 = load <2 x double>, <2 x double>* %125
%345 = load <2 x double>, <2 x double>* %126
%346 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %345, <2 x double> %99, <2 x double> %344)
store <2 x double> %346, <2 x double>* %127
%347 = call i32 @derivs_four(double* %36, double* %37, double* %1, double* %2)
%348 = load <2 x double>, <2 x double>* %128
%349 = load <2 x double>, <2 x double>* %129
%350 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %349, <2 x double> %99, <2 x double> %348)
store <2 x double> %350, <2 x double>* %130
%351 = load <2 x double>, <2 x double>* %131
%352 = load <2 x double>, <2 x double>* %132
%353 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %352, <2 x double> %99, <2 x double> %351)
store <2 x double> %353, <2 x double>* %133
%354 = load <2 x double>, <2 x double>* %134
%355 = load <2 x double>, <2 x double>* %135
%356 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %355, <2 x double> %99, <2 x double> %354)
store <2 x double> %356, <2 x double>* %136
%357 = load <2 x double>, <2 x double>* %137
%358 = load <2 x double>, <2 x double>* %138
%359 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %358, <2 x double> %99, <2 x double> %357)
store <2 x double> %359, <2 x double>* %139
%360 = load <2 x double>, <2 x double>* %140
%361 = load <2 x double>, <2 x double>* %141
%362 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %361, <2 x double> %99, <2 x double> %360)
store <2 x double> %362, <2 x double>* %142
%363 = load <2 x double>, <2 x double>* %143
%364 = load <2 x double>, <2 x double>* %144
%365 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %364, <2 x double> %99, <2 x double> %363)
store <2 x double> %365, <2 x double>* %145
%366 = load <2 x double>, <2 x double>* %146
%367 = load <2 x double>, <2 x double>* %147
%368 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %367, <2 x double> %99, <2 x double> %366)
store <2 x double> %368, <2 x double>* %148
%369 = load <2 x double>, <2 x double>* %149
%370 = load <2 x double>, <2 x double>* %150
%371 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %370, <2 x double> %99, <2 x double> %369)
store <2 x double> %371, <2 x double>* %151
%372 = load <2 x double>, <2 x double>* %152
%373 = load <2 x double>, <2 x double>* %153
%374 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %373, <2 x double> %99, <2 x double> %372)
store <2 x double> %374, <2 x double>* %154
%375 = load <2 x double>, <2 x double>* %155
%376 = load <2 x double>, <2 x double>* %156
%377 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %376, <2 x double> %99, <2 x double> %375)
store <2 x double> %377, <2 x double>* %157
%378 = call i32 @derivs_four(double* %38, double* %39, double* %1, double* %2)
%379 = load <2 x double>, <2 x double>* %158
%380 = load <2 x double>, <2 x double>* %159
%381 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %380, <2 x double> %161, <2 x double> %379)
store <2 x double> %381, <2 x double>* %162
%382 = load <2 x double>, <2 x double>* %163
%383 = load <2 x double>, <2 x double>* %164
%384 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %383, <2 x double> %161, <2 x double> %382)
store <2 x double> %384, <2 x double>* %165
%385 = load <2 x double>, <2 x double>* %166
%386 = load <2 x double>, <2 x double>* %167
%387 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %386, <2 x double> %161, <2 x double> %385)
store <2 x double> %387, <2 x double>* %168
%388 = load <2 x double>, <2 x double>* %169
%389 = load <2 x double>, <2 x double>* %170
%390 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %389, <2 x double> %161, <2 x double> %388)
store <2 x double> %390, <2 x double>* %171
%391 = load <2 x double>, <2 x double>* %172
%392 = load <2 x double>, <2 x double>* %173
%393 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %392, <2 x double> %161, <2 x double> %391)
store <2 x double> %393, <2 x double>* %174
%394 = load <2 x double>, <2 x double>* %175
%395 = load <2 x double>, <2 x double>* %176
%396 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %395, <2 x double> %161, <2 x double> %394)
store <2 x double> %396, <2 x double>* %177
%397 = load <2 x double>, <2 x double>* %178
%398 = load <2 x double>, <2 x double>* %179
%399 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %398, <2 x double> %161, <2 x double> %397)
store <2 x double> %399, <2 x double>* %180
%400 = load <2 x double>, <2 x double>* %181
%401 = load <2 x double>, <2 x double>* %182
%402 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %401, <2 x double> %161, <2 x double> %400)
store <2 x double> %402, <2 x double>* %183
%403 = load <2 x double>, <2 x double>* %184
%404 = load <2 x double>, <2 x double>* %185
%405 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %404, <2 x double> %161, <2 x double> %403)
store <2 x double> %405, <2 x double>* %186
%406 = load <2 x double>, <2 x double>* %187
%407 = load <2 x double>, <2 x double>* %188
%408 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %407, <2 x double> %161, <2 x double> %406)
store <2 x double> %408, <2 x double>* %189
%409 = call i32 @derivs_four(double* %38, double* %40, double* %1, double* %2)
%410 = load <2 x double>, <2 x double>* %95
%411 = load <2 x double>, <2 x double>* %192
%412 = load <2 x double>, <2 x double>* %193
%413 = fadd <2 x double> %411, %412
%414 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %413, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %410)
%415 = load <2 x double>, <2 x double>* %194
%416 = fadd <2 x double> %415, %414
%417 = load <2 x double>, <2 x double>* %195
%418 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %191, <2 x double> %416, <2 x double> %417)
store <2 x double> %418, <2 x double>* %196
%419 = load <2 x double>, <2 x double>* %198
%420 = load <2 x double>, <2 x double>* %200
%421 = load <2 x double>, <2 x double>* %202
%422 = fadd <2 x double> %420, %421
%423 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %422, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %419)
%424 = load <2 x double>, <2 x double>* %204
%425 = fadd <2 x double> %424, %423
%426 = load <2 x double>, <2 x double>* %206
%427 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %191, <2 x double> %425, <2 x double> %426)
store <2 x double> %427, <2 x double>* %207
%428 = load <2 x double>, <2 x double>* %209
%429 = load <2 x double>, <2 x double>* %211
%430 = load <2 x double>, <2 x double>* %213
%431 = fadd <2 x double> %429, %430
%432 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %431, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %428)
%433 = load <2 x double>, <2 x double>* %215
%434 = fadd <2 x double> %433, %432
%435 = load <2 x double>, <2 x double>* %217
%436 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %191, <2 x double> %434, <2 x double> %435)
store <2 x double> %436, <2 x double>* %218
%437 = load <2 x double>, <2 x double>* %220
%438 = load <2 x double>, <2 x double>* %222
%439 = load <2 x double>, <2 x double>* %224
%440 = fadd <2 x double> %438, %439
%441 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %440, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %437)
%442 = load <2 x double>, <2 x double>* %226
%443 = fadd <2 x double> %442, %441
%444 = load <2 x double>, <2 x double>* %228
%445 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %191, <2 x double> %443, <2 x double> %444)
store <2 x double> %445, <2 x double>* %229
%446 = load <2 x double>, <2 x double>* %231
%447 = load <2 x double>, <2 x double>* %233
%448 = load <2 x double>, <2 x double>* %235
%449 = fadd <2 x double> %447, %448
%450 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %449, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %446)
%451 = load <2 x double>, <2 x double>* %237
%452 = fadd <2 x double> %451, %450
%453 = load <2 x double>, <2 x double>* %239
%454 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %191, <2 x double> %452, <2 x double> %453)
store <2 x double> %454, <2 x double>* %240
%455 = load <2 x double>, <2 x double>* %242
%456 = load <2 x double>, <2 x double>* %244
%457 = load <2 x double>, <2 x double>* %246
%458 = fadd <2 x double> %456, %457
%459 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %458, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %455)
%460 = load <2 x double>, <2 x double>* %248
%461 = fadd <2 x double> %460, %459
%462 = load <2 x double>, <2 x double>* %250
%463 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %191, <2 x double> %461, <2 x double> %462)
store <2 x double> %463, <2 x double>* %251
%464 = load <2 x double>, <2 x double>* %253
%465 = load <2 x double>, <2 x double>* %255
%466 = load <2 x double>, <2 x double>* %257
%467 = fadd <2 x double> %465, %466
%468 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %467, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %464)
%469 = load <2 x double>, <2 x double>* %259
%470 = fadd <2 x double> %469, %468
%471 = load <2 x double>, <2 x double>* %261
%472 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %191, <2 x double> %470, <2 x double> %471)
store <2 x double> %472, <2 x double>* %262
%473 = load <2 x double>, <2 x double>* %264
%474 = load <2 x double>, <2 x double>* %266
%475 = load <2 x double>, <2 x double>* %268
%476 = fadd <2 x double> %474, %475
%477 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %476, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %473)
%478 = load <2 x double>, <2 x double>* %270
%479 = fadd <2 x double> %478, %477
%480 = load <2 x double>, <2 x double>* %272
%481 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %191, <2 x double> %479, <2 x double> %480)
store <2 x double> %481, <2 x double>* %273
%482 = load <2 x double>, <2 x double>* %275
%483 = load <2 x double>, <2 x double>* %277
%484 = load <2 x double>, <2 x double>* %279
%485 = fadd <2 x double> %483, %484
%486 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %485, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %482)
%487 = load <2 x double>, <2 x double>* %281
%488 = fadd <2 x double> %487, %486
%489 = load <2 x double>, <2 x double>* %283
%490 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %191, <2 x double> %488, <2 x double> %489)
store <2 x double> %490, <2 x double>* %284
%491 = load <2 x double>, <2 x double>* %286
%492 = load <2 x double>, <2 x double>* %288
%493 = load <2 x double>, <2 x double>* %290
%494 = fadd <2 x double> %492, %493
%495 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %494, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %491)
%496 = load <2 x double>, <2 x double>* %292
%497 = fadd <2 x double> %496, %495
%498 = load <2 x double>, <2 x double>* %294
%499 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %191, <2 x double> %497, <2 x double> %498)
store <2 x double> %499, <2 x double>* %295
%500 = add nuw i32 %315, 1
%501 = icmp eq i32 %500, %6
br i1 %501, label %298, label %314
502: ; preds = %298, %7
ret void
}