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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int fabs(double);
int /*<<< orphan*/ gslpolyfit(double *, double *, int, int, double *);
int indexxd(double, double *, int);
int /*<<< orphan*/ willus_mem_alloc_warn(void **, int, char *, int);
int /*<<< orphan*/ willus_mem_free(double **, char *);
double interp_high_order_slope(double x0, double *x, double *y, int n,
                               int order, double dx) {
  int i0, i1, j, nlocal;
  double c[16];
  double xx, y0;
  void *ptr;
  double *x1, *y1;
  static char *funcname = "interp_high_order_slope";
  if (order > 15)
    order = 15;
  dx = fabs(dx) / 2.;
  if (x0 < x[0])
    x0 = x[0];
  else if (x0 > x[n - 1])
    x0 = x[n - 1];
  i0 = indexxd(x0, x, n);
  if (i0 < 0)
    i0 = 0;
  if (i0 > n - 1)
    i0 = n - 1;
  for (i1 = i0; i0 >= 0 && x[i0] + dx >= x0; i0--)
    ;
  i0++;
  for (; i1 < n && x[i1] - dx <= x0; i1++)
    ;
  i1--;
  nlocal = (i1 - i0) + 1;
  if (nlocal < 2) {
    if (i0 >= n - 1)
      i0--;
    if (i0 < 0)
      return (0.);
    return ((y[i0 + 1] - y[i0]) / (x[i0 + 1] - x[i0]));
  }
  if (nlocal < order + 1)
    order = nlocal - 1;
  willus_mem_alloc_warn(&ptr, sizeof(double) * 2 * nlocal, funcname, 10);
  x1 = (double *)ptr;
  y1 = &x1[nlocal];
  for (j = 0; j < nlocal; j++) {
    x1[j] = x[j + i0];
    y1[j] = y[j + i0];
  }
  gslpolyfit(x1, y1, nlocal, order, c);
  willus_mem_free(&x1, funcname);
  for (y0 = 0., xx = 1., j = 1; j <= order; y0 += j * xx * c[j], xx *= x0, j++)
    ;
  return (y0);
}


x86 assembly (clang, -O0):
<interp_high_order_slope>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movsd  %xmm0,-0x10(%rbp)
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %edx,-0x24(%rbp)
mov    %ecx,-0x28(%rbp)
movsd  %xmm1,-0x30(%rbp)
cmpl   $0xf,-0x28(%rbp)
jle    1184 <interp_high_order_slope+0x34>
movl   $0xf,-0x28(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1060 <fabs@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe66(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x10(%rbp),%xmm1
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jbe    11cc <interp_high_order_slope+0x7c>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1205 <interp_high_order_slope+0xb5>
movsd  -0x10(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
ucomisd (%rax,%rcx,8),%xmm0
jbe    1200 <interp_high_order_slope+0xb0>
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1205 <interp_high_order_slope+0xb5>
movsd  -0x10(%rbp),%xmm0
mov    -0x18(%rbp),%rdi
mov    -0x24(%rbp),%esi
call   1050 <indexxd@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jge    122a <interp_high_order_slope+0xda>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jle    1244 <interp_high_order_slope+0xf4>
mov    -0x24(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x38(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x34(%rbp)
mov    %al,-0xe9(%rbp)
jl     127c <interp_high_order_slope+0x12c>
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x30(%rbp),%xmm0
ucomisd -0x10(%rbp),%xmm0
setae  %al
mov    %al,-0xe9(%rbp)
mov    -0xe9(%rbp),%al
test   $0x1,%al
jne    128f <interp_high_order_slope+0x13f>
jmp    12a2 <interp_high_order_slope+0x152>
jmp    1294 <interp_high_order_slope+0x144>
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
jmp    124a <interp_high_order_slope+0xfa>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x38(%rbp),%ecx
xor    %eax,%eax
cmp    -0x24(%rbp),%ecx
mov    %al,-0xea(%rbp)
jge    12e3 <interp_high_order_slope+0x193>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
subsd  -0x30(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
mov    %al,-0xea(%rbp)
mov    -0xea(%rbp),%al
test   $0x1,%al
jne    12f6 <interp_high_order_slope+0x1a6>
jmp    1309 <interp_high_order_slope+0x1b9>
jmp    12fb <interp_high_order_slope+0x1ab>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12ab <interp_high_order_slope+0x15b>
mov    -0x38(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
sub    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
cmpl   $0x2,-0x40(%rbp)
jge    13a5 <interp_high_order_slope+0x255>
mov    -0x34(%rbp),%eax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jl     1342 <interp_high_order_slope+0x1f2>
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jge    1359 <interp_high_order_slope+0x209>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1535 <interp_high_order_slope+0x3e5>
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1535 <interp_high_order_slope+0x3e5>
mov    -0x40(%rbp),%eax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    13bf <interp_high_order_slope+0x26f>
mov    -0x40(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x28(%rbp)
movslq -0x40(%rbp),%rax
shl    $0x4,%rax
mov    %eax,%esi
mov    0x2c78(%rip),%rdx
lea    -0xd8(%rbp),%rdi
mov    $0xa,%ecx
call   1030 <willus_mem_alloc_warn@plt>
mov    -0xd8(%rbp),%rax
mov    %rax,-0xe0(%rbp)
mov    -0xe0(%rbp),%rax
movslq -0x40(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xe8(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    146d <interp_high_order_slope+0x31d>
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xe0(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xe8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    140f <interp_high_order_slope+0x2bf>
mov    -0xe0(%rbp),%rdi
mov    -0xe8(%rbp),%rsi
mov    -0x40(%rbp),%edx
mov    -0x28(%rbp),%ecx
lea    -0xc0(%rbp),%r8
call   1040 <gslpolyfit@plt>
mov    0x2bb4(%rip),%rsi
lea    -0xe0(%rbp),%rdi
call   1070 <willus_mem_free@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  0xb55(%rip),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jg     1528 <interp_high_order_slope+0x3d8>
jmp    14d3 <interp_high_order_slope+0x383>
cvtsi2sdl -0x3c(%rbp),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
movslq -0x3c(%rbp),%rax
movsd  -0xc0(%rbp,%rax,8),%xmm2
ff ff
movsd  -0xd0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0xc8(%rbp)
ff
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    14c2 <interp_high_order_slope+0x372>
movsd  -0xd0(%rbp),%xmm0
ff
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interp_high_order_slope>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %edx,%r12d
mov    %rsi,%r15
mov    %rdi,%r14
movsd  %xmm0,0x18(%rsp)
cmp    $0xf,%ecx
mov    $0xf,%eax
cmovl  %ecx,%eax
mov    %eax,0x4(%rsp)
movapd %xmm1,%xmm0
call   1060 <fabs@plt>
movsd  0x18(%rsp),%xmm3
cvtsi2sd %eax,%xmm2
movsd  (%r14),%xmm0
lea    -0x1(%r12),%ebp
ucomisd %xmm3,%xmm0
ja     11b9 <interp_high_order_slope+0x69>
movslq %ebp,%rax
movsd  (%r14,%rax,8),%xmm1
ucomisd %xmm1,%xmm3
movapd %xmm3,%xmm0
jbe    11b9 <interp_high_order_slope+0x69>
movapd %xmm1,%xmm0
movsd  %xmm0,0x18(%rsp)
mulsd  0xe39(%rip),%xmm2
movsd  %xmm2,0x8(%rsp)
mov    %r14,%rdi
mov    %r12d,%esi
call   1050 <indexxd@plt>
movsd  0x8(%rsp),%xmm2
movsd  0x18(%rsp),%xmm1
xor    %r13d,%r13d
test   %eax,%eax
cmovns %eax,%r13d
cmp    %r12d,%r13d
cmovge %ebp,%r13d
mov    %r13d,%eax
test   %r13d,%r13d
js     1221 <interp_high_order_slope+0xd1>
mov    %r13d,%eax
nop
movsd  (%r14,%rax,8),%xmm0
addsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jb     1221 <interp_high_order_slope+0xd1>
lea    -0x1(%rax),%rcx
test   %rax,%rax
mov    %rcx,%rax
jg     1200 <interp_high_order_slope+0xb0>
mov    $0xffffffff,%eax
lea    0x1(%rax),%ebx
movslq %r13d,%rcx
movslq %r12d,%rdx
add    $0x1,%r13d
cmp    %r13d,%r12d
cmovg  %r12d,%r13d
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%r14,%rcx,8),%xmm0
subsd  %xmm2,%xmm0
ucomisd %xmm0,%xmm1
jb     125b <interp_high_order_slope+0x10b>
add    $0x1,%rcx
cmp    %rdx,%rcx
jl     1240 <interp_high_order_slope+0xf0>
jmp    125e <interp_high_order_slope+0x10e>
mov    %ecx,%r13d
sub    %eax,%r13d
lea    -0x2(%r13),%ecx
test   %ecx,%ecx
jle    12b7 <interp_high_order_slope+0x167>
add    $0xffffffff,%r13d
mov    0x4(%rsp),%ebp
cmp    %ebp,%ecx
cmovl  %ecx,%ebp
mov    %r13d,%r12d
mov    %r13d,%esi
shl    $0x4,%esi
lea    0xd8a(%rip),%rdx
lea    0x28(%rsp),%rdi
mov    $0xa,%ecx
call   1030 <willus_mem_alloc_warn@plt>
mov    0x28(%rsp),%rdi
mov    %rdi,0x20(%rsp)
lea    (%rdi,%r12,8),%rsi
movslq %ebx,%r9
cmp    $0x4,%r13d
mov    %ebp,0x4(%rsp)
jae    12e9 <interp_high_order_slope+0x199>
xor    %ecx,%ecx
jmp    1475 <interp_high_order_slope+0x325>
cmp    %ebp,%ebx
cmovl  %ebx,%eax
test   %eax,%eax
js     1538 <interp_high_order_slope+0x3e8>
mov    %eax,%eax
movsd  0x8(%r15,%rax,8),%xmm0
subsd  (%r15,%rax,8),%xmm0
movsd  0x8(%r14,%rax,8),%xmm1
subsd  (%r14,%rax,8),%xmm1
divsd  %xmm1,%xmm0
jmp    15b8 <interp_high_order_slope+0x468>
mov    %r12,%rcx
shl    $0x4,%rcx
add    %rdi,%rcx
lea    (%r14,%r9,8),%rbp
lea    (%r9,%r12,1),%rax
lea    (%r14,%rax,8),%rdx
mov    %r9,0x8(%rsp)
lea    (%r15,%r9,8),%rbx
lea    (%r15,%rax,8),%rax
cmp    %rdx,%rsi
setb   %r11b
cmp    %rcx,%rbp
setb   %r10b
cmp    %rax,%rsi
setb   %r9b
cmp    %rcx,%rbx
setb   %r8b
cmp    %rdx,%rdi
setb   %dl
cmp    %rsi,%rbp
mov    %rsi,%rcx
setb   %sil
cmp    %rax,%rdi
setb   %bpl
mov    %rcx,0x10(%rsp)
cmp    %rcx,%rbx
setb   %al
xor    %ecx,%ecx
test   %r10b,%r11b
jne    1464 <interp_high_order_slope+0x314>
and    %r8b,%r9b
jne    1464 <interp_high_order_slope+0x314>
and    %sil,%dl
mov    0x8(%rsp),%r9
jne    1470 <interp_high_order_slope+0x320>
and    %al,%bpl
mov    0x10(%rsp),%rsi
jne    1475 <interp_high_order_slope+0x325>
mov    %r12d,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rax
mov    %rax,%r8
shr    $0x2,%r8
add    $0x1,%r8
test   %rax,%rax
je     145a <interp_high_order_slope+0x30a>
mov    %r8,%rax
and    $0xfffffffffffffffe,%rax
lea    0x6(%r9),%rbp
lea    0x30(%rdi),%rbx
xor    %edx,%edx
nopl   0x0(%rax)
movups -0x30(%r14,%rbp,8),%xmm0
movups -0x20(%r14,%rbp,8),%xmm1
movups %xmm0,-0x30(%rbx)
movups %xmm1,-0x20(%rbx)
movups -0x30(%r15,%rbp,8),%xmm0
movups -0x20(%r15,%rbp,8),%xmm1
movups %xmm0,-0x30(%rbx,%r12,8)
movups %xmm1,-0x20(%rbx,%r12,8)
movups -0x10(%r14,%rbp,8),%xmm0
movups (%r14,%rbp,8),%xmm1
movups %xmm0,-0x10(%rbx)
movups %xmm1,(%rbx)
movupd -0x10(%r15,%rbp,8),%xmm0
movupd (%r15,%rbp,8),%xmm1
movupd %xmm0,-0x10(%rbx,%r12,8)
movupd %xmm1,(%rbx,%r12,8)
add    $0x8,%rdx
add    $0x8,%rbp
add    $0x40,%rbx
add    $0xfffffffffffffffe,%rax
jne    13b0 <interp_high_order_slope+0x260>
test   $0x1,%r8b
je     1450 <interp_high_order_slope+0x300>
lea    (%rdx,%r9,1),%rax
movups (%r14,%rax,8),%xmm0
movups 0x10(%r14,%rax,8),%xmm1
movups %xmm0,(%rdi,%rdx,8)
movups %xmm1,0x10(%rdi,%rdx,8)
movupd (%r15,%rax,8),%xmm0
movupd 0x10(%r15,%rax,8),%xmm1
movupd %xmm0,(%rsi,%rdx,8)
movupd %xmm1,0x10(%rsi,%rdx,8)
cmp    %r12,%rcx
jne    1475 <interp_high_order_slope+0x325>
jmp    14f6 <interp_high_order_slope+0x3a6>
xor    %edx,%edx
test   $0x1,%r8b
jne    1420 <interp_high_order_slope+0x2d0>
jmp    1450 <interp_high_order_slope+0x300>
mov    0x10(%rsp),%rsi
mov    0x8(%rsp),%r9
jmp    1475 <interp_high_order_slope+0x325>
mov    0x10(%rsp),%rsi
mov    %rcx,%rax
not    %rax
test   $0x1,%r12b
je     149f <interp_high_order_slope+0x34f>
lea    (%rcx,%r9,1),%rdx
movsd  (%r14,%rdx,8),%xmm0
movsd  %xmm0,(%rdi,%rcx,8)
movsd  (%r15,%rdx,8),%xmm0
movsd  %xmm0,(%rsi,%rcx,8)
or     $0x1,%rcx
add    %r12,%rax
je     14f6 <interp_high_order_slope+0x3a6>
lea    (%r14,%r9,8),%rax
add    $0x8,%rax
lea    (%r15,%r9,8),%rdx
add    $0x8,%rdx
lea    (%rdi,%r12,8),%rbp
add    $0x8,%rbp
nopl   0x0(%rax)
movsd  -0x8(%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rdi,%rcx,8)
movsd  -0x8(%rdx,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rbp,%rcx,8)
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rdi,%rcx,8)
movsd  (%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%r12
jne    14c0 <interp_high_order_slope+0x370>
lea    0x30(%rsp),%r8
mov    %r13d,%edx
mov    0x4(%rsp),%ebx
mov    %ebx,%ecx
call   1040 <gslpolyfit@plt>
lea    0xb00(%rip),%rsi
lea    0x20(%rsp),%rdi
call   1070 <willus_mem_free@plt>
test   %ebx,%ebx
jle    1538 <interp_high_order_slope+0x3e8>
mov    %ebx,%eax
cmp    $0x1,%ebx
jne    153e <interp_high_order_slope+0x3ee>
movsd  0xadb(%rip),%xmm1
xorpd  %xmm0,%xmm0
mov    $0x1,%ecx
jmp    159f <interp_high_order_slope+0x44f>
xorpd  %xmm0,%xmm0
jmp    15b8 <interp_high_order_slope+0x468>
mov    %eax,%edx
and    $0xfffffffe,%edx
movsd  0xabd(%rip),%xmm1
xorpd  %xmm0,%xmm0
mov    $0x1,%ecx
movsd  0x18(%rsp),%xmm3
nopw   0x0(%rax,%rax,1)
xorps  %xmm2,%xmm2
cvtsi2sd %ecx,%xmm2
mulsd  %xmm1,%xmm2
mulsd  0x30(%rsp,%rcx,8),%xmm2
addsd  %xmm0,%xmm2
lea    0x1(%rcx),%rsi
xorps  %xmm0,%xmm0
cvtsi2sd %esi,%xmm0
mulsd  %xmm3,%xmm1
mulsd  %xmm1,%xmm0
mulsd  0x38(%rsp,%rcx,8),%xmm0
addsd  %xmm2,%xmm0
mulsd  %xmm3,%xmm1
add    $0x2,%rcx
cmp    %rdx,%rsi
jne    1560 <interp_high_order_slope+0x410>
test   $0x1,%al
je     15b8 <interp_high_order_slope+0x468>
xorps  %xmm2,%xmm2
cvtsi2sd %ecx,%xmm2
mulsd  %xmm2,%xmm1
mulsd  0x30(%rsp,%rcx,8),%xmm1
addsd  %xmm1,%xmm0
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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