#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double CUBE(double);
double SQUARE(double);
void interpolation(double y[], double xs[], double ys[], int n, double x[],
                   int nx, double *ys2, double *temp) {
  int i, j, jfin, cur, prev;
  double p, sig, a, b, c, d, e, f, g, a0, a1, a2, a3, xc;
  ys2[0] = temp[0] = 0.0;
  for (i = 1; i < n - 1; i++) {
    sig = (xs[i] - xs[i - 1]) / (xs[i + 1] - xs[i - 1]);
    p = sig * ys2[i - 1] + 2.0;
    ys2[i] = (sig - 1.0) / p;
    temp[i] = (ys[i + 1] - ys[i]) / (xs[i + 1] - xs[i]) -
              (ys[i] - ys[i - 1]) / (xs[i] - xs[i - 1]);
    temp[i] = (6.0 * temp[i] / (xs[i + 1] - xs[i - 1]) - sig * temp[i - 1]) / p;
  }
  ys2[n - 1] = 0.0;
  for (j = n - 2; j >= 0; j--)
    ys2[j] = ys2[j] * ys2[j + 1] + temp[j];
  cur = 0;
  j = 0;
  jfin = n - 1;
  while (xs[j + 2] < x[0])
    j++;
  while (xs[jfin] > x[nx - 1])
    jfin--;
  for (; j <= jfin; j++) {
    a = xs[j];
    b = xs[j + 1];
    c = b - a;
    d = ys[j];
    e = ys[j + 1];
    f = ys2[j];
    g = ys2[j + 1];
    a0 = (b * d - a * e + CUBE(b) * f / 6 - CUBE(a) * g / 6) / c +
         c * (a * g - b * f) / 6;
    a1 = (e - d - SQUARE(b) * f / 2 + SQUARE(a) * g / 2) / c + c * (f - g) / 6;
    a2 = (b * f - a * g) / (2 * c);
    a3 = (g - f) / (6 * c);
    prev = cur;
    while ((cur < nx) && ((j == jfin) || (x[cur] < xs[j + 1])))
      cur++;
    for (i = prev; i < cur; i++) {
      xc = x[i];
      y[i] = a0 + a1 * xc + a2 * SQUARE(xc) + a3 * CUBE(xc);
    }
  }
}


x86 assembly (clang, -O0):
<interpolation>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    133b <interpolation+0x21b>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
mov    0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe21(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  0xe13(%rip),%xmm1
subsd  %xmm1,%xmm0
divsd  -0x48(%rbp),%xmm0
mov    0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
mov    0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  0xd48(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
divsd  %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
mov    0x18(%rbp),%rax
mov    -0x30(%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
divsd  -0x48(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1167 <interpolation+0x47>
mov    0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jl     13b2 <interpolation+0x292>
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
jmp    1359 <interpolation+0x239>
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jbe    13fb <interpolation+0x2db>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    13c9 <interpolation+0x2a9>
jmp    1400 <interpolation+0x2e0>
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
ucomisd (%rax,%rcx,8),%xmm0
jbe    1433 <interpolation+0x313>
mov    -0x38(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x38(%rbp)
jmp    1400 <interpolation+0x2e0>
jmp    1438 <interpolation+0x318>
mov    -0x34(%rbp),%eax
cmp    -0x38(%rbp),%eax
jg     185c <interpolation+0x73c>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  -0x78(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
call   1040 <CUBE@plt>
movaps %xmm0,%xmm1
movsd  -0xd0(%rbp),%xmm0
ff
mulsd  -0x80(%rbp),%xmm1
movsd  0xad2(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
call   1040 <CUBE@plt>
movaps %xmm0,%xmm1
movsd  -0xc8(%rbp),%xmm0
ff
mulsd  -0x88(%rbp),%xmm1
ff
movsd  0xa9d(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
divsd  -0x68(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm4
ff
movsd  -0x60(%rbp),%xmm3
mulsd  -0x80(%rbp),%xmm3
movq   %xmm3,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm3
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
movsd  0xa49(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
subsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
call   1030 <SQUARE@plt>
movaps %xmm0,%xmm1
movsd  -0xc0(%rbp),%xmm0
ff
mulsd  -0x80(%rbp),%xmm1
movsd  0xa0d(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
call   1030 <SQUARE@plt>
movaps %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
mulsd  -0x88(%rbp),%xmm1
ff
movsd  0x9d8(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
divsd  -0x68(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  -0x80(%rbp),%xmm2
subsd  -0x88(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm1
movsd  0x9a5(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  -0x88(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0x95f(%rip),%xmm1
mulsd  -0x68(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
subsd  -0x80(%rbp),%xmm0
movsd  0x931(%rip),%xmm1
mulsd  -0x68(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x3c(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x3c(%rbp),%ecx
xor    %eax,%eax
cmp    -0x2c(%rbp),%ecx
mov    %al,-0xd1(%rbp)
jge    1746 <interpolation+0x626>
mov    -0x34(%rbp),%ecx
mov    $0x1,%al
cmp    -0x38(%rbp),%ecx
mov    %al,-0xd2(%rbp)
je     173a <interpolation+0x61a>
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0xd2(%rbp)
mov    -0xd2(%rbp),%al
mov    %al,-0xd1(%rbp)
mov    -0xd1(%rbp),%al
test   $0x1,%al
jne    1759 <interpolation+0x639>
jmp    1767 <interpolation+0x647>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    16e6 <interpolation+0x5c6>
mov    -0x40(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    1849 <interpolation+0x729>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x90(%rbp),%xmm1
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  -0xb0(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
call   1030 <SQUARE@plt>
movsd  -0xf8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xf0(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
call   1040 <CUBE@plt>
movsd  -0xe8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    176d <interpolation+0x64d>
jmp    184e <interpolation+0x72e>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1438 <interpolation+0x318>
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interpolation>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %r9d,0x4(%rsp)
mov    %r8,0x18(%rsp)
mov    %rdx,%r9
mov    %rsi,%rbp
mov    %rdi,0x48(%rsp)
mov    0xc8(%rsp),%rax
mov    0xc0(%rsp),%r10
movq   $0x0,(%rax)
movq   $0x0,(%r10)
lea    -0x1(%rcx),%edi
mov    %rcx,%r8
cmp    $0x3,%ecx
jl     1256 <interpolation+0x136>
mov    %edi,%edx
add    $0xfffffffffffffffe,%rdx
xorpd  %xmm3,%xmm3
xor    %esi,%esi
movsd  0xe78(%rip),%xmm8
movsd  0xe78(%rip),%xmm1
movsd  0xe78(%rip),%xmm2
nopl   0x0(%rax,%rax,1)
movsd  0x0(%rbp,%rsi,8),%xmm5
movsd  0x8(%rbp,%rsi,8),%xmm4
subsd  %xmm5,%xmm4
movsd  0x10(%rbp,%rsi,8),%xmm6
subsd  %xmm5,%xmm6
divsd  %xmm6,%xmm4
mulsd  %xmm4,%xmm3
addsd  %xmm8,%xmm3
movapd %xmm4,%xmm5
addsd  %xmm1,%xmm5
divsd  %xmm3,%xmm5
movsd  %xmm5,0x8(%r10,%rsi,8)
movsd  0x8(%r9,%rsi,8),%xmm5
movsd  0x10(%r9,%rsi,8),%xmm6
subsd  %xmm5,%xmm6
movsd  0x8(%rbp,%rsi,8),%xmm7
movsd  0x10(%rbp,%rsi,8),%xmm0
subsd  %xmm7,%xmm0
divsd  %xmm0,%xmm6
subsd  (%r9,%rsi,8),%xmm5
subsd  0x0(%rbp,%rsi,8),%xmm7
divsd  %xmm7,%xmm5
subsd  %xmm5,%xmm6
movsd  %xmm6,0x8(%rax,%rsi,8)
movsd  0x10(%rbp,%rsi,8),%xmm0
subsd  0x0(%rbp,%rsi,8),%xmm0
mulsd  %xmm2,%xmm6
divsd  %xmm0,%xmm6
mulsd  (%rax,%rsi,8),%xmm4
subsd  %xmm4,%xmm6
divsd  %xmm3,%xmm6
movsd  %xmm6,0x8(%rax,%rsi,8)
cmp    %rsi,%rdx
je     1256 <interpolation+0x136>
movsd  0x8(%r10,%rsi,8),%xmm3
add    $0x1,%rsi
jmp    11a0 <interpolation+0x80>
movslq %edi,%rcx
movq   $0x0,(%r10,%rcx,8)
cmp    $0x2,%r8d
jl     12d6 <interpolation+0x1b6>
lea    -0x2(%r8),%esi
mov    %rsi,%rdx
test   $0x1,%sil
jne    1290 <interpolation+0x170>
movsd  (%r10,%rsi,8),%xmm0
mulsd  0x8(%r10,%rsi,8),%xmm0
addsd  (%rax,%rsi,8),%xmm0
movsd  %xmm0,(%r10,%rsi,8)
lea    -0x1(%rsi),%rdx
test   %rsi,%rsi
je     12d6 <interpolation+0x1b6>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%r10,%rdx,8),%xmm0
mulsd  0x8(%r10,%rdx,8),%xmm0
addsd  (%rax,%rdx,8),%xmm0
movsd  %xmm0,(%r10,%rdx,8)
mulsd  -0x8(%r10,%rdx,8),%xmm0
addsd  -0x8(%rax,%rdx,8),%xmm0
movsd  %xmm0,-0x8(%r10,%rdx,8)
add    $0xfffffffffffffffe,%rdx
cmp    $0xffffffffffffffff,%rdx
jne    12a0 <interpolation+0x180>
mov    0x18(%rsp),%rax
movsd  (%rax),%xmm0
mov    $0xffffffffffffffff,%rax
cs nopw 0x0(%rax,%rax,1)
ucomisd 0x18(%rbp,%rax,8),%xmm0
lea    0x1(%rax),%rax
ja     12f0 <interpolation+0x1d0>
movslq 0x4(%rsp),%rsi
mov    0x18(%rsp),%rdx
mov    %rsi,0x40(%rsp)
movsd  -0x8(%rdx,%rsi,8),%xmm0
lea    0x0(,%rcx,8),%rsi
add    %rbp,%rsi
xor    %edx,%edx
xchg   %ax,%ax
movsd  (%rsi),%xmm1
add    $0x1,%rdx
add    $0xfffffffffffffff8,%rsi
ucomisd %xmm0,%xmm1
ja     1320 <interpolation+0x200>
mov    %r8d,%esi
sub    %edx,%esi
cmp    %esi,%eax
jle    134d <interpolation+0x22d>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
sub    %rdx,%rcx
add    $0x1,%rcx
mov    %eax,%r14d
mov    %ecx,%r15d
mov    %r8,%rdi
add    $0x1,%edi
sub    %rdx,%rdi
mov    %rdi,0x60(%rsp)
xor    %r12d,%r12d
mov    %r9,0x58(%rsp)
mov    %rbp,0x50(%rsp)
jmp    13a1 <interpolation+0x281>
nopw   0x0(%rax,%rax,1)
mov    0x80(%rsp),%r14
cmp    %r14d,0x60(%rsp)
mov    0x58(%rsp),%r9
mov    0x50(%rsp),%rbp
mov    0xc0(%rsp),%r10
je     133b <interpolation+0x21b>
mov    %r12d,%r13d
lea    0x1(%r14),%rbx
movsd  0x0(%rbp,%r14,8),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rbp,%r14,8),%xmm1
movsd  %xmm1,0x20(%rsp)
movsd  (%r9,%r14,8),%xmm0
movsd  %xmm0,0x78(%rsp)
movsd  0x8(%r9,%r14,8),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  (%r10,%r14,8),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%r10,%r14,8),%xmm0
movsd  %xmm0,0x38(%rsp)
movapd %xmm1,%xmm0
call   1040 <CUBE@plt>
movsd  %xmm0,0x30(%rsp)
movsd  0x10(%rsp),%xmm0
call   1040 <CUBE@plt>
movsd  %xmm0,0x68(%rsp)
movsd  0x20(%rsp),%xmm0
call   1030 <SQUARE@plt>
movsd  %xmm0,0x70(%rsp)
movsd  0x10(%rsp),%xmm0
call   1030 <SQUARE@plt>
cmp    0x4(%rsp),%r12d
jge    1487 <interpolation+0x367>
movslq %r13d,%rdx
mov    0x18(%rsp),%rax
lea    (%rax,%rdx,8),%rax
mov    0x40(%rsp),%rcx
sub    %rdx,%rcx
xor    %r12d,%r12d
jmp    1459 <interpolation+0x339>
add    $0x1,%r12
cmp    %r12,%rcx
je     1480 <interpolation+0x360>
cmp    %r15,%r14
je     1450 <interpolation+0x330>
movsd  0x0(%rbp,%rbx,8),%xmm1
ucomisd (%rax,%r12,8),%xmm1
ja     1450 <interpolation+0x330>
add    %r13d,%r12d
jmp    1487 <interpolation+0x367>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x4(%rsp),%eax
mov    %eax,%r12d
mov    %rbx,0x80(%rsp)
cmp    %r12d,%r13d
movsd  0x20(%rsp),%xmm6
movsd  0x38(%rsp),%xmm7
jge    1380 <interpolation+0x260>
movapd %xmm6,%xmm1
movsd  0x10(%rsp),%xmm10
subsd  %xmm10,%xmm1
movsd  0x28(%rsp),%xmm4
movapd %xmm4,%xmm2
mulsd  %xmm10,%xmm2
movapd %xmm6,%xmm3
movsd  0x78(%rsp),%xmm9
mulsd  %xmm9,%xmm3
subsd  %xmm2,%xmm3
movsd  0x8(%rsp),%xmm8
movsd  0x30(%rsp),%xmm5
mulsd  %xmm8,%xmm5
movsd  0xb1f(%rip),%xmm2
divsd  %xmm2,%xmm5
addsd  %xmm3,%xmm5
movsd  0x68(%rsp),%xmm3
mulsd  %xmm7,%xmm3
divsd  %xmm2,%xmm3
subsd  %xmm3,%xmm5
divsd  %xmm1,%xmm5
mulsd  %xmm7,%xmm10
mulsd  %xmm8,%xmm6
movapd %xmm10,%xmm3
subsd  %xmm6,%xmm3
mulsd  %xmm1,%xmm3
divsd  %xmm2,%xmm3
addsd  %xmm5,%xmm3
movsd  %xmm3,0x30(%rsp)
subsd  %xmm9,%xmm4
movsd  0x70(%rsp),%xmm5
mulsd  %xmm8,%xmm5
movsd  0xacc(%rip),%xmm3
mulsd  %xmm3,%xmm5
subsd  %xmm5,%xmm4
mulsd  %xmm7,%xmm0
mulsd  %xmm3,%xmm0
addsd  %xmm4,%xmm0
divsd  %xmm1,%xmm0
movapd %xmm8,%xmm3
subsd  %xmm7,%xmm3
mulsd  %xmm1,%xmm3
divsd  %xmm2,%xmm3
addsd  %xmm0,%xmm3
movsd  %xmm3,0x28(%rsp)
subsd  %xmm10,%xmm6
movapd %xmm1,%xmm0
addsd  %xmm1,%xmm0
divsd  %xmm0,%xmm6
movsd  %xmm6,0x20(%rsp)
subsd  %xmm8,%xmm7
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm7
movsd  %xmm7,0x38(%rsp)
movslq %r13d,%rax
mov    0x18(%rsp),%rcx
lea    (%rcx,%rax,8),%r14
mov    0x48(%rsp),%rcx
lea    (%rcx,%rax,8),%rbx
mov    %r12d,%ebp
sub    %r13d,%ebp
xor    %r13d,%r13d
nopw   0x0(%rax,%rax,1)
movsd  (%r14,%r13,8),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x28(%rsp),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x30(%rsp),%xmm1
movsd  %xmm1,0x8(%rsp)
call   1030 <SQUARE@plt>
mulsd  0x20(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
call   1040 <CUBE@plt>
mulsd  0x38(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%rbx,%r13,8)
add    $0x1,%r13
cmp    %r13d,%ebp
jne    15d0 <interpolation+0x4b0>
jmp    1380 <interpolation+0x260>

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

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