void spline_coef(int n, double *x, double *y, double *b, double *c, double *d) {
  int nm1, i;
  double t;
  x--;
  y--;
  b--;
  c--;
  d--;
  if (n < 3) {
    t = (y[2] - y[1]);
    b[1] = t / (x[2] - x[1]);
    b[2] = b[1];
    c[1] = c[2] = d[1] = d[2] = 0.0;
    return;
  }
  nm1 = n - 1;
  d[1] = x[2] - x[1];
  c[2] = (y[2] - y[1]) / d[1];
  for (i = 2; i < n; i++) {
    d[i] = x[i + 1] - x[i];
    b[i] = 2.0 * (d[i - 1] + d[i]);
    c[i + 1] = (y[i + 1] - y[i]) / d[i];
    c[i] = c[i + 1] - c[i];
  }
  b[1] = -d[1];
  b[n] = -d[nm1];
  c[1] = c[n] = 0.0;
  if (n > 3) {
    c[1] = c[3] / (x[4] - x[2]) - c[2] / (x[3] - x[1]);
    c[n] = c[nm1] / (x[n] - x[n - 2]) - c[n - 2] / (x[nm1] - x[n - 3]);
    c[1] = c[1] * d[1] * d[1] / (x[4] - x[1]);
    c[n] = -c[n] * d[nm1] * d[nm1] / (x[n] - x[n - 3]);
  }
  for (i = 2; i <= n; i++) {
    t = d[i - 1] / b[i - 1];
    b[i] = b[i] - t * d[i - 1];
    c[i] = c[i] - t * c[i - 1];
  }
  c[n] = c[n] / b[n];
  for (i = nm1; i >= 1; i--)
    c[i] = (c[i] - d[i] * c[i + 1]) / b[i];
  b[n] = (y[n] - y[n - 1]) / d[n - 1] + d[n - 1] * (c[n - 1] + 2.0 * c[n]);
  for (i = 1; i <= nm1; i++) {
    b[i] = (y[i + 1] - y[i]) / d[i] - d[i] * (c[i + 1] + 2.0 * c[i]);
    d[i] = (c[i + 1] - c[i]) / d[i];
    c[i] = 3.0 * c[i];
  }
  c[n] = 3.0 * c[n];
  d[n] = d[nm1];
  return;
}


x86 assembly (clang, -O0):
<spline_coef>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x10(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x28(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x30(%rbp)
cmpl   $0x3,-0x4(%rbp)
jge    11e3 <spline_coef+0xe3>
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
subsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm1
mov    -0x10(%rbp),%rax
subsd  0x8(%rax),%xmm1
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x30(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x30(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x28(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x28(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
jmp    185a <spline_coef+0x75a>
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
subsd  0x8(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
subsd  0x8(%rax),%xmm0
mov    -0x30(%rbp),%rax
divsd  0x8(%rax),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movl   $0x2,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    131a <spline_coef+0x21a>
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
movslq -0x38(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm1
movsd  0xd77(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x38(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1232 <spline_coef+0x132>
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movslq -0x4(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
cmpl   $0x3,-0x4(%rbp)
jle    1503 <spline_coef+0x403>
mov    -0x28(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm1
mov    -0x10(%rbp),%rax
subsd  0x10(%rax),%xmm1
divsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  0x10(%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm2
mov    -0x10(%rbp),%rax
subsd  0x8(%rax),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm1
divsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x30(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mov    -0x30(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm1
mov    -0x10(%rbp),%rax
subsd  0x8(%rax),%xmm1
divsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x28(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm1
divsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x2,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     15ed <spline_coef+0x4ed>
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
divsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x40(%rbp),%xmm0
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x40(%rbp),%xmm0
mov    -0x28(%rbp),%rax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    150a <spline_coef+0x40a>
mov    -0x28(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x4(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x1,-0x38(%rbp)
jl     1697 <spline_coef+0x597>
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x38(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x38(%rbp)
jmp    161a <spline_coef+0x51a>
mov    -0x18(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
divsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm3
mov    -0x28(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
addsd  %xmm2,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jg     181e <spline_coef+0x71e>
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
movslq -0x38(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm3
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
addsd  %xmm2,%xmm2
addsd  %xmm3,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x38(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  0x802(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    171d <spline_coef+0x61d>
mov    -0x28(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  0x7d2(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
pop    %rbp
ret

x86 assembly (clang, -O2):
<spline_coef>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
cmp    $0x2,%edi
jg     1141 <spline_coef+0x41>
movsd  0x8(%rdx),%xmm0
subsd  (%rdx),%xmm0
movsd  0x8(%rsi),%xmm1
subsd  (%rsi),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rcx)
movsd  %xmm0,0x8(%rcx)
xorpd  %xmm0,%xmm0
movupd %xmm0,(%r9)
movupd %xmm0,(%r8)
jmp    1692 <spline_coef+0x592>
lea    -0x1(%rdi),%r10d
movsd  0x8(%rsi),%xmm0
subsd  (%rsi),%xmm0
movsd  %xmm0,(%r9)
movsd  0x8(%rdx),%xmm1
subsd  (%rdx),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%r8)
mov    %edi,%r15d
lea    -0x10(,%r15,8),%rbx
ff
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x10(%rsi,%rax,1),%xmm0
subsd  0x8(%rsi,%rax,1),%xmm0
movsd  %xmm0,0x8(%r9,%rax,1)
addsd  (%r9,%rax,1),%xmm0
addsd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rcx,%rax,1)
movsd  0x10(%rdx,%rax,1),%xmm0
subsd  0x8(%rdx,%rax,1),%xmm0
divsd  0x8(%r9,%rax,1),%xmm0
movsd  %xmm0,0x10(%r8,%rax,1)
subsd  0x8(%r8,%rax,1),%xmm0
movsd  %xmm0,0x8(%r8,%rax,1)
add    $0x8,%rax
cmp    %rax,%rbx
jne    1180 <spline_coef+0x80>
movsd  (%r9),%xmm0
movapd 0xe1f(%rip),%xmm1
xorpd  %xmm1,%xmm0
movlpd %xmm0,(%rcx)
mov    %r10d,%r10d
movsd  -0x8(%r9,%r10,8),%xmm0
xorpd  %xmm1,%xmm0
movslq %edi,%r11
movlpd %xmm0,-0x8(%rcx,%r11,8)
movq   $0x0,-0x8(%r8,%r11,8)
movq   $0x0,(%r8)
cmp    $0x4,%edi
jl     12e7 <spline_coef+0x1e7>
movsd  0x8(%r8),%xmm0
movsd  0x10(%r8),%xmm1
movsd  0x10(%rsi),%xmm2
movsd  0x18(%rsi),%xmm3
subsd  0x8(%rsi),%xmm3
divsd  %xmm3,%xmm1
subsd  (%rsi),%xmm2
divsd  %xmm2,%xmm0
subsd  %xmm0,%xmm1
movsd  %xmm1,(%r8)
movsd  -0x8(%r8,%r10,8),%xmm0
movsd  -0x8(%rsi,%r11,8),%xmm1
lea    -0x2(%rdi),%eax
subsd  -0x8(%rsi,%rax,8),%xmm1
movsd  -0x8(%r8,%rax,8),%xmm2
movsd  -0x8(%rsi,%r10,8),%xmm3
lea    -0x3(%rdi),%ebx
subsd  -0x8(%rsi,%rbx,8),%xmm3
divsd  %xmm1,%xmm0
divsd  %xmm3,%xmm2
subsd  %xmm2,%xmm0
movsd  %xmm0,-0x8(%r8,%r11,8)
movsd  (%r9),%xmm0
movsd  (%r8),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movsd  0x18(%rsi),%xmm0
subsd  (%rsi),%xmm0
divsd  %xmm0,%xmm1
movsd  %xmm1,(%r8)
movsd  -0x8(%r8,%r11,8),%xmm0
xorpd  0xd42(%rip),%xmm0
movsd  -0x8(%r9,%r10,8),%xmm1
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x8(%rsi,%r11,8),%xmm1
subsd  -0x8(%rsi,%rbx,8),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%r8,%r11,8)
jmp    1306 <spline_coef+0x206>
cmp    $0x1,%edi
jg     1306 <spline_coef+0x206>
movsd  -0x8(%r8,%r11,8),%xmm0
divsd  -0x8(%rcx,%r11,8),%xmm0
movsd  %xmm0,-0x8(%r8,%r11,8)
jmp    1439 <spline_coef+0x339>
lea    0x1(%r15),%rsi
lea    (%r8,%r15,8),%rax
cmp    %rcx,%rax
jbe    1372 <spline_coef+0x272>
lea    (%rcx,%r15,8),%rax
cmp    %r8,%rax
jbe    1372 <spline_coef+0x272>
add    $0xfffffffffffffffe,%rsi
xor    %eax,%eax
movapd 0xcd6(%rip),%xmm0
nopw   0x0(%rax,%rax,1)
movsd  (%r9,%rax,8),%xmm1
movapd %xmm1,%xmm2
xorpd  %xmm0,%xmm2
divsd  (%rcx,%rax,8),%xmm2
mulsd  %xmm2,%xmm1
addsd  0x8(%rcx,%rax,8),%xmm1
movsd  %xmm1,0x8(%rcx,%rax,8)
mulsd  (%r8,%rax,8),%xmm2
addsd  0x8(%r8,%rax,8),%xmm2
movsd  %xmm2,0x8(%r8,%rax,8)
add    $0x1,%rax
cmp    %rax,%rsi
jne    1330 <spline_coef+0x230>
jmp    13d5 <spline_coef+0x2d5>
movsd  (%rcx),%xmm2
movsd  (%r8),%xmm1
add    $0xfffffffffffffffe,%rsi
xor    %ebx,%ebx
movapd 0xc77(%rip),%xmm0
nopl   0x0(%rax)
movsd  (%r9,%rbx,8),%xmm3
movapd %xmm3,%xmm4
xorpd  %xmm0,%xmm4
divsd  %xmm2,%xmm4
mulsd  %xmm4,%xmm3
addsd  0x8(%rcx,%rbx,8),%xmm3
movsd  %xmm3,0x8(%rcx,%rbx,8)
mulsd  %xmm1,%xmm4
addsd  0x8(%r8,%rbx,8),%xmm4
movsd  %xmm4,0x8(%r8,%rbx,8)
add    $0x1,%rbx
movapd %xmm4,%xmm1
movapd %xmm3,%xmm2
cmp    %rbx,%rsi
jne    1390 <spline_coef+0x290>
movsd  -0x8(%r8,%r11,8),%xmm0
divsd  -0x8(%rcx,%r11,8),%xmm0
movsd  %xmm0,-0x8(%r8,%r11,8)
cmp    $0x2,%edi
setge  %sil
jl     1439 <spline_coef+0x339>
lea    0x1(%r10),%rax
nopw   0x0(%rax,%rax,1)
movsd  -0x10(%r9,%rax,8),%xmm0
mulsd  -0x8(%r8,%rax,8),%xmm0
movsd  -0x10(%r8,%rax,8),%xmm1
subsd  %xmm0,%xmm1
divsd  -0x10(%rcx,%rax,8),%xmm1
movsd  %xmm1,-0x10(%r8,%rax,8)
add    $0xffffffffffffffff,%rax
cmp    $0x1,%rax
jg     1400 <spline_coef+0x300>
movsd  -0x8(%r8,%r11,8),%xmm0
jmp    143b <spline_coef+0x33b>
xor    %esi,%esi
movsd  -0x8(%rdx,%r11,8),%xmm1
subsd  -0x8(%rdx,%r10,8),%xmm1
movsd  -0x8(%r9,%r10,8),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm0,%xmm0
addsd  -0x8(%r8,%r10,8),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rcx,%r11,8)
test   %sil,%sil
je     166e <spline_coef+0x56e>
lea    -0x1(%r15),%rax
mov    $0x1,%esi
cmp    $0x2,%rax
jb     15ee <spline_coef+0x4ee>
mov    %rax,-0x8(%rsp)
lea    (%r9,%r15,8),%rbp
add    $0xfffffffffffffff8,%rbp
cmp    %rcx,%rbp
seta   -0x9(%rsp)
lea    (%rcx,%r15,8),%rdi
add    $0xfffffffffffffff8,%rdi
cmp    %r9,%rdi
seta   -0xa(%rsp)
lea    (%r8,%r15,8),%r12
cmp    %rcx,%r12
seta   %al
cmp    %r8,%rdi
seta   -0xb(%rsp)
lea    (%rdx,%r15,8),%r14
cmp    %rcx,%r14
seta   %r13b
cmp    %rdx,%rdi
seta   -0xc(%rsp)
cmp    %r9,%r12
seta   %dil
cmp    %r8,%rbp
seta   -0xd(%rsp)
cmp    %r9,%r14
seta   -0xe(%rsp)
cmp    %rdx,%rbp
seta   -0xf(%rsp)
cmp    %r8,%r14
seta   %bpl
cmp    %rdx,%r12
seta   %r14b
mov    -0xa(%rsp),%bl
test   %bl,-0x9(%rsp)
jne    15ee <spline_coef+0x4ee>
and    -0xb(%rsp),%al
jne    15ee <spline_coef+0x4ee>
and    -0xc(%rsp),%r13b
jne    15ee <spline_coef+0x4ee>
and    -0xd(%rsp),%dil
jne    15ee <spline_coef+0x4ee>
mov    -0xf(%rsp),%al
and    %al,-0xe(%rsp)
jne    15ee <spline_coef+0x4ee>
and    %r14b,%bpl
jne    15ee <spline_coef+0x4ee>
mov    -0x8(%rsp),%rax
mov    %rax,%rbx
and    $0xfffffffffffffffe,%rbx
mov    %rax,%rsi
or     $0x1,%rsi
xor    %edi,%edi
movapd 0xaad(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movupd (%rdx,%rdi,8),%xmm1
movupd 0x8(%rdx,%rdi,8),%xmm2
subpd  %xmm1,%xmm2
movupd (%r9,%rdi,8),%xmm1
divpd  %xmm1,%xmm2
movupd (%r8,%rdi,8),%xmm3
movupd 0x8(%r8,%rdi,8),%xmm4
addpd  %xmm3,%xmm3
addpd  %xmm4,%xmm3
mulpd  %xmm1,%xmm3
subpd  %xmm3,%xmm2
movupd %xmm2,(%rcx,%rdi,8)
movupd (%r8,%rdi,8),%xmm1
movupd 0x8(%r8,%rdi,8),%xmm2
subpd  %xmm1,%xmm2
movupd (%r9,%rdi,8),%xmm1
divpd  %xmm1,%xmm2
movupd %xmm2,(%r9,%rdi,8)
movupd (%r8,%rdi,8),%xmm1
mulpd  %xmm0,%xmm1
movupd %xmm1,(%r8,%rdi,8)
add    $0x2,%rdi
cmp    %rdi,%rbx
jne    1570 <spline_coef+0x470>
cmp    %rbx,%rax
je     166e <spline_coef+0x56e>
movsd  0xa2a(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
movsd  (%rdx,%rsi,8),%xmm1
subsd  -0x8(%rdx,%rsi,8),%xmm1
movsd  -0x8(%r9,%rsi,8),%xmm2
divsd  %xmm2,%xmm1
movsd  -0x8(%r8,%rsi,8),%xmm3
addsd  %xmm3,%xmm3
addsd  (%r8,%rsi,8),%xmm3
mulsd  %xmm2,%xmm3
subsd  %xmm3,%xmm1
movsd  %xmm1,-0x8(%rcx,%rsi,8)
movsd  (%r8,%rsi,8),%xmm1
subsd  -0x8(%r8,%rsi,8),%xmm1
divsd  -0x8(%r9,%rsi,8),%xmm1
movsd  %xmm1,-0x8(%r9,%rsi,8)
movsd  -0x8(%r8,%rsi,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,-0x8(%r8,%rsi,8)
lea    0x1(%rsi),%rax
mov    %rax,%rsi
cmp    %rax,%r15
jne    1600 <spline_coef+0x500>
movsd  -0x8(%r8,%r11,8),%xmm0
mulsd  0x9a3(%rip),%xmm0
movsd  %xmm0,-0x8(%r8,%r11,8)
movsd  -0x8(%r9,%r10,8),%xmm0
movsd  %xmm0,-0x8(%r9,%r11,8)
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @spline_coef(i32 %0, double* nocapture %1, double* nocapture %2, double* nocapture %3, double* nocapture %4, double* nocapture %5) {
%7 = getelementptr inbounds double, double* %1, i64 -1
%8 = getelementptr inbounds double, double* %2, i64 -1
%9 = getelementptr inbounds double, double* %3, i64 -1
%10 = getelementptr inbounds double, double* %4, i64 -1
%11 = getelementptr inbounds double, double* %5, i64 -1
%12 = icmp slt i32 %0, 3
br i1 %12, label %13, label %26
13: ; preds = %6
%14 = getelementptr inbounds double, double* %2, i64 1
%15 = load double, double* %14
%16 = load double, double* %2
%17 = fsub double %15, %16
%18 = getelementptr inbounds double, double* %1, i64 1
%19 = load double, double* %18
%20 = load double, double* %1
%21 = fsub double %19, %20
%22 = fdiv double %17, %21
store double %22, double* %3
%23 = getelementptr inbounds double, double* %3, i64 1
store double %22, double* %23
%24 = bitcast double* %5 to i8*
%25 = bitcast double* %4 to i8*
br label %332
26: ; preds = %6
%27 = add nsw i32 %0, -1
%28 = getelementptr inbounds double, double* %1, i64 1
%29 = load double, double* %28
%30 = load double, double* %1
%31 = fsub double %29, %30
store double %31, double* %5
%32 = getelementptr inbounds double, double* %2, i64 1
%33 = load double, double* %32
%34 = load double, double* %2
%35 = fsub double %33, %34
%36 = fdiv double %35, %31
%37 = getelementptr inbounds double, double* %4, i64 1
store double %36, double* %37
%38 = zext i32 %0 to i64
br label %39
39: ; preds = %26, %39
%40 = phi i64 [ 2, %26 ], [ %41, %39 ]
%41 = add nuw nsw i64 %40, 1
%42 = getelementptr inbounds double, double* %1, i64 %40
%43 = load double, double* %42
%44 = getelementptr inbounds double, double* %7, i64 %40
%45 = load double, double* %44
%46 = fsub double %43, %45
%47 = getelementptr inbounds double, double* %11, i64 %40
store double %46, double* %47
%48 = add nsw i64 %40, -1
%49 = getelementptr inbounds double, double* %11, i64 %48
%50 = load double, double* %49
%51 = fadd double %46, %50
%52 = fmul double %51, 2.000000e+00
%53 = getelementptr inbounds double, double* %9, i64 %40
store double %52, double* %53
%54 = getelementptr inbounds double, double* %2, i64 %40
%55 = load double, double* %54
%56 = getelementptr inbounds double, double* %8, i64 %40
%57 = load double, double* %56
%58 = fsub double %55, %57
%59 = load double, double* %47
%60 = fdiv double %58, %59
%61 = getelementptr inbounds double, double* %4, i64 %40
store double %60, double* %61
%62 = getelementptr inbounds double, double* %10, i64 %40
%63 = load double, double* %62
%64 = fsub double %60, %63
store double %64, double* %62
%65 = icmp eq i64 %41, %38
br i1 %65, label %66, label %39
66: ; preds = %39
%67 = load double, double* %5
%68 = fneg double %67
store double %68, double* %3
%69 = zext i32 %27 to i64
%70 = getelementptr inbounds double, double* %11, i64 %69
%71 = load double, double* %70
%72 = fneg double %71
%73 = sext i32 %0 to i64
%74 = getelementptr inbounds double, double* %9, i64 %73
store double %72, double* %74
%75 = getelementptr inbounds double, double* %10, i64 %73
store double 0.000000e+00, double* %75
store double 0.000000e+00, double* %4
%76 = icmp sgt i32 %0, 3
br i1 %76, label %77, label %130
77: ; preds = %66
%78 = getelementptr inbounds double, double* %4, i64 2
%79 = load double, double* %78
%80 = getelementptr inbounds double, double* %1, i64 3
%81 = load double, double* %80
%82 = load double, double* %28
%83 = fsub double %81, %82
%84 = fdiv double %79, %83
%85 = load double, double* %37
%86 = getelementptr inbounds double, double* %1, i64 2
%87 = load double, double* %86
%88 = load double, double* %1
%89 = fsub double %87, %88
%90 = fdiv double %85, %89
%91 = fsub double %84, %90
store double %91, double* %4
%92 = getelementptr inbounds double, double* %10, i64 %69
%93 = load double, double* %92
%94 = getelementptr inbounds double, double* %7, i64 %73
%95 = load double, double* %94
%96 = add nsw i32 %0, -2
%97 = zext i32 %96 to i64
%98 = getelementptr inbounds double, double* %7, i64 %97
%99 = load double, double* %98
%100 = fsub double %95, %99
%101 = fdiv double %93, %100
%102 = getelementptr inbounds double, double* %10, i64 %97
%103 = load double, double* %102
%104 = getelementptr inbounds double, double* %7, i64 %69
%105 = load double, double* %104
%106 = add nsw i32 %0, -3
%107 = zext i32 %106 to i64
%108 = getelementptr inbounds double, double* %7, i64 %107
%109 = load double, double* %108
%110 = fsub double %105, %109
%111 = fdiv double %103, %110
%112 = fsub double %101, %111
store double %112, double* %75
%113 = load double, double* %4
%114 = load double, double* %5
%115 = fmul double %113, %114
%116 = fmul double %114, %115
%117 = load double, double* %80
%118 = load double, double* %1
%119 = fsub double %117, %118
%120 = fdiv double %116, %119
store double %120, double* %4
%121 = load double, double* %75
%122 = fneg double %121
%123 = load double, double* %70
%124 = fmul double %123, %122
%125 = fmul double %123, %124
%126 = load double, double* %94
%127 = load double, double* %108
%128 = fsub double %126, %127
%129 = fdiv double %125, %128
store double %129, double* %75
br label %136
130: ; preds = %66
%131 = icmp slt i32 %0, 2
br i1 %131, label %132, label %136
132: ; preds = %130
%133 = load double, double* %75
%134 = load double, double* %74
%135 = fdiv double %133, %134
store double %135, double* %75
br label %206
136: ; preds = %77, %130
%137 = add nuw i32 %0, 1
%138 = zext i32 %137 to i64
%139 = add nsw i64 %138, -1
%140 = getelementptr double, double* %3, i64 %139
%141 = getelementptr double, double* %4, i64 %139
%142 = icmp ugt double* %141, %3
%143 = icmp ugt double* %140, %4
%144 = and i1 %142, %143
br i1 %144, label %145, label %164
145: ; preds = %136, %145
%146 = phi i64 [ %162, %145 ], [ 2, %136 ]
%147 = add nsw i64 %146, -1
%148 = getelementptr inbounds double, double* %11, i64 %147
%149 = load double, double* %148
%150 = getelementptr inbounds double, double* %9, i64 %147
%151 = load double, double* %150
%152 = getelementptr inbounds double, double* %9, i64 %146
%153 = load double, double* %152
%154 = fneg double %149
%155 = fdiv double %154, %151
%156 = tail call double @llvm.fmuladd.f64(double %155, double %149, double %153)
store double %156, double* %152
%157 = getelementptr inbounds double, double* %10, i64 %146
%158 = load double, double* %157
%159 = getelementptr inbounds double, double* %10, i64 %147
%160 = load double, double* %159
%161 = tail call double @llvm.fmuladd.f64(double %155, double %160, double %158)
store double %161, double* %157
%162 = add nuw nsw i64 %146, 1
%163 = icmp eq i64 %162, %138
br i1 %163, label %184, label %145
164: ; preds = %136
%165 = load double, double* %3
%166 = load double, double* %4
br label %167
167: ; preds = %164, %167
%168 = phi double [ %166, %164 ], [ %181, %167 ]
%169 = phi double [ %165, %164 ], [ %178, %167 ]
%170 = phi i64 [ 2, %164 ], [ %182, %167 ]
%171 = add nsw i64 %170, -1
%172 = getelementptr inbounds double, double* %11, i64 %171
%173 = load double, double* %172
%174 = getelementptr inbounds double, double* %9, i64 %170
%175 = load double, double* %174
%176 = fneg double %173
%177 = fdiv double %176, %169
%178 = tail call double @llvm.fmuladd.f64(double %177, double %173, double %175)
store double %178, double* %174
%179 = getelementptr inbounds double, double* %10, i64 %170
%180 = load double, double* %179
%181 = tail call double @llvm.fmuladd.f64(double %177, double %168, double %180)
store double %181, double* %179
%182 = add nuw nsw i64 %170, 1
%183 = icmp eq i64 %182, %138
br i1 %183, label %184, label %167
184: ; preds = %167, %145
%185 = load double, double* %75
%186 = load double, double* %74
%187 = fdiv double %185, %186
store double %187, double* %75
%188 = icmp sgt i32 %0, 1
br i1 %188, label %189, label %206
189: ; preds = %184, %189
%190 = phi i64 [ %202, %189 ], [ %69, %184 ]
%191 = getelementptr inbounds double, double* %10, i64 %190
%192 = load double, double* %191
%193 = getelementptr inbounds double, double* %11, i64 %190
%194 = load double, double* %193
%195 = getelementptr inbounds double, double* %4, i64 %190
%196 = load double, double* %195
%197 = fneg double %194
%198 = tail call double @llvm.fmuladd.f64(double %197, double %196, double %192)
%199 = getelementptr inbounds double, double* %9, i64 %190
%200 = load double, double* %199
%201 = fdiv double %198, %200
store double %201, double* %191
%202 = add nsw i64 %190, -1
%203 = icmp sgt i64 %190, 1
br i1 %203, label %189, label %204
204: ; preds = %189
%205 = load double, double* %75
br label %206
206: ; preds = %132, %204, %184
%207 = phi i1 [ %188, %204 ], [ false, %184 ], [ false, %132 ]
%208 = phi double [ %205, %204 ], [ %187, %184 ], [ %135, %132 ]
%209 = getelementptr inbounds double, double* %8, i64 %73
%210 = load double, double* %209
%211 = getelementptr inbounds double, double* %8, i64 %69
%212 = load double, double* %211
%213 = fsub double %210, %212
%214 = load double, double* %70
%215 = fdiv double %213, %214
%216 = getelementptr inbounds double, double* %10, i64 %69
%217 = load double, double* %216
%218 = tail call double @llvm.fmuladd.f64(double %208, double 2.000000e+00, double %217)
%219 = tail call double @llvm.fmuladd.f64(double %214, double %218, double %215)
store double %219, double* %74
br i1 %207, label %220, label %327
220: ; preds = %206
%221 = zext i32 %0 to i64
%222 = add nsw i64 %38, -1
%223 = icmp ult i64 %222, 2
br i1 %223, label %298, label %224
224: ; preds = %220
%225 = add nsw i64 %38, -1
%226 = getelementptr double, double* %3, i64 %225
%227 = getelementptr double, double* %5, i64 %225
%228 = getelementptr double, double* %4, i64 %38
%229 = getelementptr double, double* %2, i64 %38
%230 = icmp ugt double* %227, %3
%231 = icmp ugt double* %226, %5
%232 = and i1 %230, %231
%233 = icmp ugt double* %228, %3
%234 = icmp ugt double* %226, %4
%235 = and i1 %233, %234
%236 = or i1 %232, %235
%237 = icmp ugt double* %229, %3
%238 = icmp ugt double* %226, %2
%239 = and i1 %237, %238
%240 = or i1 %236, %239
%241 = icmp ugt double* %228, %5
%242 = icmp ugt double* %227, %4
%243 = and i1 %241, %242
%244 = or i1 %240, %243
%245 = icmp ugt double* %229, %5
%246 = icmp ugt double* %227, %2
%247 = and i1 %245, %246
%248 = or i1 %244, %247
%249 = icmp ugt double* %229, %4
%250 = icmp ugt double* %228, %2
%251 = and i1 %249, %250
%252 = or i1 %248, %251
br i1 %252, label %298, label %253
253: ; preds = %224
%254 = and i64 %222, -2
%255 = or i64 %222, 1
br label %256
256: ; preds = %256, %253
%257 = phi i64 [ 0, %253 ], [ %294, %256 ]
%258 = or i64 %257, 1
%259 = getelementptr inbounds double, double* %2, i64 %258
%260 = bitcast double* %259 to <2 x double>*
%261 = load <2 x double>, <2 x double>* %260
%262 = getelementptr inbounds double, double* %8, i64 %258
%263 = bitcast double* %262 to <2 x double>*
%264 = load <2 x double>, <2 x double>* %263
%265 = fsub <2 x double> %261, %264
%266 = getelementptr inbounds double, double* %11, i64 %258
%267 = bitcast double* %266 to <2 x double>*
%268 = load <2 x double>, <2 x double>* %267
%269 = fdiv <2 x double> %265, %268
%270 = getelementptr inbounds double, double* %4, i64 %258
%271 = bitcast double* %270 to <2 x double>*
%272 = load <2 x double>, <2 x double>* %271
%273 = getelementptr inbounds double, double* %10, i64 %258
%274 = bitcast double* %273 to <2 x double>*
%275 = load <2 x double>, <2 x double>* %274
%276 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %275, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %272)
%277 = fneg <2 x double> %268
%278 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %277, <2 x double> %276, <2 x double> %269)
%279 = getelementptr inbounds double, double* %9, i64 %258
%280 = bitcast double* %279 to <2 x double>*
store <2 x double> %278, <2 x double>* %280
%281 = bitcast double* %270 to <2 x double>*
%282 = load <2 x double>, <2 x double>* %281
%283 = bitcast double* %273 to <2 x double>*
%284 = load <2 x double>, <2 x double>* %283
%285 = fsub <2 x double> %282, %284
%286 = bitcast double* %266 to <2 x double>*
%287 = load <2 x double>, <2 x double>* %286
%288 = fdiv <2 x double> %285, %287
%289 = bitcast double* %266 to <2 x double>*
store <2 x double> %288, <2 x double>* %289
%290 = bitcast double* %273 to <2 x double>*
%291 = load <2 x double>, <2 x double>* %290
%292 = fmul <2 x double> %291, <double 3.000000e+00, double 3.000000e+00>
%293 = bitcast double* %273 to <2 x double>*
store <2 x double> %292, <2 x double>* %293
%294 = add nuw i64 %257, 2
%295 = icmp eq i64 %294, %254
br i1 %295, label %296, label %256
296: ; preds = %256
%297 = icmp eq i64 %222, %254
br i1 %297, label %327, label %298
298: ; preds = %224, %220, %296
%299 = phi i64 [ 1, %224 ], [ 1, %220 ], [ %255, %296 ]
br label %300
300: ; preds = %298, %300
%301 = phi i64 [ %302, %300 ], [ %299, %298 ]
%302 = add nuw nsw i64 %301, 1
%303 = getelementptr inbounds double, double* %2, i64 %301
%304 = load double, double* %303
%305 = getelementptr inbounds double, double* %8, i64 %301
%306 = load double, double* %305
%307 = fsub double %304, %306
%308 = getelementptr inbounds double, double* %11, i64 %301
%309 = load double, double* %308
%310 = fdiv double %307, %309
%311 = getelementptr inbounds double, double* %4, i64 %301
%312 = load double, double* %311
%313 = getelementptr inbounds double, double* %10, i64 %301
%314 = load double, double* %313
%315 = tail call double @llvm.fmuladd.f64(double %314, double 2.000000e+00, double %312)
%316 = fneg double %309
%317 = tail call double @llvm.fmuladd.f64(double %316, double %315, double %310)
%318 = getelementptr inbounds double, double* %9, i64 %301
store double %317, double* %318
%319 = load double, double* %311
%320 = load double, double* %313
%321 = fsub double %319, %320
%322 = load double, double* %308
%323 = fdiv double %321, %322
store double %323, double* %308
%324 = load double, double* %313
%325 = fmul double %324, 3.000000e+00
store double %325, double* %313
%326 = icmp eq i64 %302, %221
br i1 %326, label %327, label %300
327: ; preds = %300, %296, %206
%328 = load double, double* %75
%329 = fmul double %328, 3.000000e+00
store double %329, double* %75
%330 = load double, double* %70
%331 = getelementptr inbounds double, double* %11, i64 %73
store double %330, double* %331
br label %332
332: ; preds = %327, %13
ret void
}