#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 array_findminindexd(double *, int);
int /*<<< orphan*/ exit(int);
double fabs(double);
double findminfitd1(double *, double *, int, double, double, double *, int *,
                    double *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, int);
int /*<<< orphan*/ sortxyd(double *, double *, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ willus_mem_alloc(double **, int, char *);
int /*<<< orphan*/ willus_mem_free(double **, char *);
double array_findminfitd(double *x, double *y, int n, double dxmax,
                         double errmax, double *err, int *npf, double *ymin) {
  int i, ipos, i0, i1, ib1, ib2, imin, npfbest, npf3;
  double xb1, xb2, dxmean, xpos, xmin0, ymin0, dy;
  double *xd, *yd;
  double xmin, confbest, conf3, xmin3, ymin3, yminbest;
  static char *funcname = "array_findminfitd";
  if (n < 1)
    return (0.);
  imin = array_findminindexd(y, n);
  xmin0 = x[imin];
  ymin0 = y[imin];
  if (n < 4) {
    if (ymin != NULL)
      (*ymin) = ymin0;
    return (xmin0);
  }
  if (!willus_mem_alloc(&xd, sizeof(double) * 2 * n, funcname)) {
    fprintf(stderr, "willuslib %s willus_mem_alloc fails (%d elements)\n",
            funcname, 2 * n);
    exit(10);
  }
  yd = &xd[n];
  for (i = 0; i < n; i++) {
    xd[i] = x[i];
    yd[i] = y[i];
  }
  sortxyd(xd, yd, n);
  imin = array_findminindexd(yd, n);
  ib1 = ib2 = imin;
  for (; ib1 >= 0 && yd[ib1] == yd[imin]; ib1--)
    ;
  ib1++;
  for (; ib2 <= n - 1 && yd[ib2] == yd[imin]; ib2++)
    ;
  ib2--;
  if (ib1 <= 0 || ib2 >= n - 1) {
    willus_mem_free(&xd, funcname);
    if (ymin != NULL)
      (*ymin) = ymin0;
    return (xmin0);
  }
  i0 = ib1 - 1;
  i1 = ib2 + 1;
  dy = yd[i0] - yd[imin] > yd[i1] - yd[imin] ? yd[i0] - yd[imin]
                                             : yd[i1] - yd[imin];
  if (yd[i0] - yd[imin] < 0.2 * dy)
    ib1--;
  else if (yd[i1] - yd[imin] < 0.2 * dy)
    ib2++;
  i0 = ib1;
  i1 = ib2;
  for (xmin0 = ymin0 = 0, i = i0; i <= i1; i++) {
    xmin0 += xd[i];
    ymin0 += yd[i];
  }
  xmin0 /= (i1 - i0 + 1);
  ymin0 /= (i1 - i0 + 1);
  ib1 = i0 > 2 ? i0 - 3 : 0;
  ib2 = i1 < n - 3 ? i1 + 3 : n - 1;
  if (ib1 == ib2) {
    willus_mem_free(&xd, funcname);
    if (ymin != NULL)
      (*ymin) = ymin0;
    return (xmin0);
  }
  xb1 = xd[ib1];
  xb2 = xd[ib2];
  dxmean = (xb2 - xb1) / (ib2 - ib1);
  if (dxmean <= 0.) {
    willus_mem_free(&xd, funcname);
    if (ymin != NULL)
      (*ymin) = ymin0;
    return (xmin0);
  }
  confbest = conf3 = -1;
  npfbest = npf3 = 0;
  xmin = xmin3 = xmin0;
  yminbest = ymin3 = ymin0;
  for (ipos = -2; ipos <= 2; ipos++) {
    int i0;
    xpos = xmin0 + ipos * dxmean;
    i0 = fabs((double)ipos) + 1.1;
    for (i = i0; dxmean * i * 2. <= dxmax; i++) {
      double x1, conf, rmserr, ymin1;
      int npfit;
      npfit = 0;
      ymin1 = rmserr = 0.;
      x1 = findminfitd1(xd, yd, n, xpos, dxmean * (i + .6), &rmserr, &npfit,
                        &ymin1);
      if (x1 < x[0] || x1 < xpos - dxmean * i || x1 > xpos + dxmean * i)
        continue;
      conf = rmserr;
      if (npfit > 3 && conf < errmax && (confbest < 0 || conf < confbest)) {
        confbest = conf;
        xmin = x1;
        npfbest = npfit;
        yminbest = ymin1;
      } else if (npfit == 3 && conf < errmax && (conf3 < 0 || conf < conf3)) {
        conf3 = conf;
        xmin3 = x1;
        npf3 = npfit;
        ymin3 = ymin1;
      }
    }
  }
  willus_mem_free(&xd, funcname);
  if (confbest < 0 && conf3 >= 0.) {
    xmin = xmin3;
    confbest = conf3;
    npfbest = npf3;
    yminbest = ymin3;
  }
  if (err != NULL)
    (*err) = confbest;
  if (npf != NULL)
    (*npf) = npfbest;
  if (ymin != NULL)
    (*ymin) = yminbest;
  return (xmin);
}


x86 assembly (clang, -O0):
<array_findminfitd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
movsd  %xmm0,-0x28(%rbp)
movsd  %xmm1,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %r8,-0x40(%rbp)
mov    %r9,-0x48(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jge    11b3 <array_findminfitd+0x43>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1bcf <array_findminfitd+0xa5f>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   1080 <array_findminindexd@plt>
mov    %eax,-0x64(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x18(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
cmpl   $0x4,-0x1c(%rbp)
jge    1223 <array_findminfitd+0xb3>
cmpq   $0x0,-0x48(%rbp)
je     1211 <array_findminfitd+0xa1>
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x8(%rbp)
jmp    1bcf <array_findminfitd+0xa5f>
movslq -0x1c(%rbp),%rax
shl    $0x4,%rax
mov    %eax,%esi
mov    0x2e24(%rip),%rdx
lea    -0xb0(%rbp),%rdi
call   1030 <willus_mem_alloc@plt>
cmp    $0x0,%eax
jne    1275 <array_findminfitd+0x105>
mov    0x2d90(%rip),%rax
mov    (%rax),%edi
mov    0x2dff(%rip),%rdx
mov    -0x1c(%rbp),%ecx
shl    $0x1,%ecx
lea    0xdec(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0xa,%edi
call   1090 <exit@plt>
mov    -0xb0(%rbp),%rax
movslq -0x1c(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xb8(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12e9 <array_findminfitd+0x179>
mov    -0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xb0(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xb8(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1295 <array_findminfitd+0x125>
mov    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1040 <sortxyd@plt>
mov    -0xb8(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   1080 <array_findminindexd@plt>
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    %eax,-0x5c(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x5c(%rbp)
mov    %al,-0x115(%rbp)
jl     135a <array_findminfitd+0x1ea>
mov    -0xb8(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xb8(%rbp),%rax
movslq -0x64(%rbp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
mov    %al,-0x115(%rbp)
mov    -0x115(%rbp),%al
test   $0x1,%al
jne    136d <array_findminfitd+0x1fd>
jmp    1380 <array_findminfitd+0x210>
jmp    1372 <array_findminfitd+0x202>
mov    -0x5c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x5c(%rbp)
jmp    131a <array_findminfitd+0x1aa>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x60(%rbp),%ecx
mov    -0x1c(%rbp),%edx
sub    $0x1,%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x116(%rbp)
jg     13d0 <array_findminfitd+0x260>
mov    -0xb8(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xb8(%rbp),%rax
movslq -0x64(%rbp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
mov    %al,-0x116(%rbp)
mov    -0x116(%rbp),%al
test   $0x1,%al
jne    13e3 <array_findminfitd+0x273>
jmp    13f6 <array_findminfitd+0x286>
jmp    13e8 <array_findminfitd+0x278>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1389 <array_findminfitd+0x219>
mov    -0x60(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x60(%rbp)
cmpl   $0x0,-0x5c(%rbp)
jle    141a <array_findminfitd+0x2aa>
mov    -0x60(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jl     145a <array_findminfitd+0x2ea>
mov    0x2c37(%rip),%rsi
lea    -0xb0(%rbp),%rdi
call   1070 <willus_mem_free@plt>
cmpq   $0x0,-0x48(%rbp)
je     1448 <array_findminfitd+0x2d8>
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x8(%rbp)
jmp    1bcf <array_findminfitd+0xa5f>
mov    -0x5c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x54(%rbp)
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
mov    -0xb8(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xb8(%rbp),%rax
movslq -0x64(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0xb8(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0xb8(%rbp),%rax
movslq -0x64(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm1
ucomisd %xmm1,%xmm0
jbe    14e3 <array_findminfitd+0x373>
mov    -0xb8(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xb8(%rbp),%rax
movslq -0x64(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
jmp    150b <array_findminfitd+0x39b>
mov    -0xb8(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xb8(%rbp),%rax
movslq -0x64(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x120(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0xb8(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0xb8(%rbp),%rax
movslq -0x64(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm1
movsd  0xabd(%rip),%xmm0
mulsd  -0xa8(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1563 <array_findminfitd+0x3f3>
mov    -0x5c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x5c(%rbp)
jmp    15ab <array_findminfitd+0x43b>
mov    -0xb8(%rbp),%rax
movslq -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0xb8(%rbp),%rax
movslq -0x64(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm1
movsd  0xa75(%rip),%xmm0
mulsd  -0xa8(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    15a6 <array_findminfitd+0x436>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    15ab <array_findminfitd+0x43b>
mov    -0x5c(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x60(%rbp),%eax
mov    %eax,-0x58(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x54(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x58(%rbp),%eax
jg     162d <array_findminfitd+0x4bd>
mov    -0xb0(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0xb8(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    15d3 <array_findminfitd+0x463>
mov    -0x58(%rbp),%eax
sub    -0x54(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  -0x98(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x58(%rbp),%eax
sub    -0x54(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
cmpl   $0x2,-0x54(%rbp)
jle    168a <array_findminfitd+0x51a>
mov    -0x54(%rbp),%eax
sub    $0x3,%eax
mov    %eax,-0x124(%rbp)
jmp    1697 <array_findminfitd+0x527>
xor    %eax,%eax
mov    %eax,-0x124(%rbp)
jmp    1697 <array_findminfitd+0x527>
mov    -0x124(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x58(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    16c2 <array_findminfitd+0x552>
mov    -0x58(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x128(%rbp)
jmp    16ce <array_findminfitd+0x55e>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x128(%rbp)
mov    -0x128(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x60(%rbp),%eax
jne    1723 <array_findminfitd+0x5b3>
mov    0x296e(%rip),%rsi
lea    -0xb0(%rbp),%rdi
call   1070 <willus_mem_free@plt>
cmpq   $0x0,-0x48(%rbp)
je     1711 <array_findminfitd+0x5a1>
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x8(%rbp)
jmp    1bcf <array_findminfitd+0xa5f>
mov    -0xb0(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0xb0(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
subsd  -0x78(%rbp),%xmm0
mov    -0x60(%rbp),%eax
sub    -0x5c(%rbp),%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
xorps  %xmm0,%xmm0
ucomisd -0x88(%rbp),%xmm0
ff
jb     17be <array_findminfitd+0x64e>
mov    0x28d3(%rip),%rsi
lea    -0xb0(%rbp),%rdi
call   1070 <willus_mem_free@plt>
cmpq   $0x0,-0x48(%rbp)
je     17ac <array_findminfitd+0x63c>
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x8(%rbp)
jmp    1bcf <array_findminfitd+0xa5f>
movsd  0x842(%rip),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  0x832(%rip),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movl   $0x0,-0x6c(%rbp)
movl   $0x0,-0x68(%rbp)
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  %xmm0,-0xe8(%rbp)
ff
movl   $0xfffffffe,-0x50(%rbp)
cmpl   $0x2,-0x50(%rbp)
jg     1b09 <array_findminfitd+0x999>
movsd  -0x98(%rbp),%xmm1
ff
cvtsi2sdl -0x50(%rbp),%xmm0
movsd  -0x88(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
cvtsi2sdl -0x50(%rbp),%xmm0
movaps 0x7d2(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0x7a6(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0xec(%rbp)
mov    -0xec(%rbp),%eax
mov    %eax,-0x4c(%rbp)
movsd  -0x88(%rbp),%xmm1
ff
cvtsi2sdl -0x4c(%rbp),%xmm0
mulsd  %xmm0,%xmm1
movsd  0x77e(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1af6 <array_findminfitd+0x986>
movl   $0x0,-0x114(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
mov    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    -0x1c(%rbp),%edx
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x88(%rbp),%xmm1
ff
cvtsi2sdl -0x4c(%rbp),%xmm2
movsd  0x725(%rip),%xmm3
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
lea    -0x108(%rbp),%rcx
lea    -0x114(%rbp),%r8
lea    -0x110(%rbp),%r9
call   1050 <findminfitd1@plt>
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xf8(%rbp),%xmm1
ff
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
ja     19b4 <array_findminfitd+0x844>
movsd  -0xf8(%rbp),%xmm1
ff
movsd  -0x90(%rbp),%xmm2
ff
movsd  -0x88(%rbp),%xmm0
ff
cvtsi2sdl -0x4c(%rbp),%xmm3
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm3,%xmm0
addsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
ja     19b4 <array_findminfitd+0x844>
movsd  -0xf8(%rbp),%xmm0
ff
movsd  -0x90(%rbp),%xmm2
ff
movsd  -0x88(%rbp),%xmm1
ff
cvtsi2sdl -0x4c(%rbp),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jbe    19b9 <array_findminfitd+0x849>
jmp    1ae8 <array_findminfitd+0x978>
movsd  -0x108(%rbp),%xmm0
ff
movsd  %xmm0,-0x100(%rbp)
ff
cmpl   $0x3,-0x114(%rbp)
jle    1a56 <array_findminfitd+0x8e6>
movsd  -0x100(%rbp),%xmm1
ff
movsd  -0x30(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1a56 <array_findminfitd+0x8e6>
xorps  %xmm0,%xmm0
ucomisd -0xc8(%rbp),%xmm0
ff
ja     1a18 <array_findminfitd+0x8a8>
movsd  -0x100(%rbp),%xmm1
ff
movsd  -0xc8(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1a56 <array_findminfitd+0x8e6>
movsd  -0x100(%rbp),%xmm0
ff
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
movsd  %xmm0,-0xc0(%rbp)
ff
mov    -0x114(%rbp),%eax
mov    %eax,-0x68(%rbp)
movsd  -0x110(%rbp),%xmm0
ff
movsd  %xmm0,-0xe8(%rbp)
ff
jmp    1ae3 <array_findminfitd+0x973>
cmpl   $0x3,-0x114(%rbp)
jne    1ade <array_findminfitd+0x96e>
movsd  -0x100(%rbp),%xmm1
ff
movsd  -0x30(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1ade <array_findminfitd+0x96e>
xorps  %xmm0,%xmm0
ucomisd -0xd0(%rbp),%xmm0
ff
ja     1aa5 <array_findminfitd+0x935>
movsd  -0x100(%rbp),%xmm1
ff
movsd  -0xd0(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1ade <array_findminfitd+0x96e>
movsd  -0x100(%rbp),%xmm0
ff
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
movsd  %xmm0,-0xd8(%rbp)
ff
mov    -0x114(%rbp),%eax
mov    %eax,-0x6c(%rbp)
movsd  -0x110(%rbp),%xmm0
ff
movsd  %xmm0,-0xe0(%rbp)
ff
jmp    1ae3 <array_findminfitd+0x973>
jmp    1ae8 <array_findminfitd+0x978>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1881 <array_findminfitd+0x711>
jmp    1afb <array_findminfitd+0x98b>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1823 <array_findminfitd+0x6b3>
mov    0x2548(%rip),%rsi
lea    -0xb0(%rbp),%rdi
call   1070 <willus_mem_free@plt>
xorps  %xmm0,%xmm0
ucomisd -0xc8(%rbp),%xmm0
ff
jbe    1b78 <array_findminfitd+0xa08>
movsd  -0xd0(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1b78 <array_findminfitd+0xa08>
movsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xd0(%rbp),%xmm0
ff
movsd  %xmm0,-0xc8(%rbp)
ff
mov    -0x6c(%rbp),%eax
mov    %eax,-0x68(%rbp)
movsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0xe8(%rbp)
ff
cmpq   $0x0,-0x38(%rbp)
je     1b93 <array_findminfitd+0xa23>
movsd  -0xc8(%rbp),%xmm0
ff
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
cmpq   $0x0,-0x40(%rbp)
je     1ba7 <array_findminfitd+0xa37>
mov    -0x68(%rbp),%ecx
mov    -0x40(%rbp),%rax
mov    %ecx,(%rax)
cmpq   $0x0,-0x48(%rbp)
je     1bc2 <array_findminfitd+0xa52>
movsd  -0xe8(%rbp),%xmm0
ff
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<array_findminfitd>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
movsd  %xmm1,0x48(%rsp)
movsd  %xmm0,0x50(%rsp)
test   %edx,%edx
jle    11d4 <array_findminfitd+0x64>
mov    %r9,%rbx
mov    %r8,%r14
mov    %rcx,%r15
mov    %edx,%r12d
mov    %rsi,%rbp
mov    %rdi,%r13
mov    %rsi,%rdi
mov    %edx,%esi
call   1080 <array_findminindexd@plt>
cltq
movsd  0x0(%r13,%rax,8),%xmm0
movsd  0x0(%rbp,%rax,8),%xmm1
cmp    $0x3,%r12d
ja     11dd <array_findminfitd+0x6d>
test   %rbx,%rbx
je     19cc <array_findminfitd+0x85c>
unpcklpd %xmm1,%xmm0
jmp    19c0 <array_findminfitd+0x850>
xorpd  %xmm0,%xmm0
jmp    19cc <array_findminfitd+0x85c>
movapd %xmm1,0x70(%rsp)
movapd %xmm0,0x20(%rsp)
mov    %r15,0x80(%rsp)
mov    %r14,0x88(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r12d,%esi
shl    $0x4,%esi
lea    0xe55(%rip),%rdx
lea    0x8(%rsp),%rdi
call   1030 <willus_mem_alloc@plt>
test   %eax,%eax
je     1963 <array_findminfitd+0x7f3>
mov    %r12,%rax
mov    %eax,%r12d
mov    0x8(%rsp),%r14
lea    (%r14,%r12,8),%r15
mov    %rax,(%rsp)
cmp    $0x4,%eax
jae    12c0 <array_findminfitd+0x150>
xor    %eax,%eax
mov    %rax,%rcx
not    %rcx
test   $0x1,%r12b
je     1264 <array_findminfitd+0xf4>
movsd  0x0(%r13,%rax,8),%xmm0
movsd  %xmm0,(%r14,%rax,8)
movsd  0x0(%rbp,%rax,8),%xmm0
movsd  %xmm0,(%r15,%rax,8)
or     $0x1,%rax
add    %r12,%rcx
je     140f <array_findminfitd+0x29f>
lea    (%r14,%r12,8),%rcx
add    $0x8,%rcx
cs nopw 0x0(%rax,%rax,1)
nop
movsd  0x0(%r13,%rax,8),%xmm0
movsd  %xmm0,(%r14,%rax,8)
movsd  0x0(%rbp,%rax,8),%xmm0
movsd  %xmm0,-0x8(%rcx,%rax,8)
movsd  0x8(%r13,%rax,8),%xmm0
movsd  %xmm0,0x8(%r14,%rax,8)
movsd  0x8(%rbp,%rax,8),%xmm0
movsd  %xmm0,(%rcx,%rax,8)
add    $0x2,%rax
cmp    %rax,%r12
jne    1280 <array_findminfitd+0x110>
jmp    140f <array_findminfitd+0x29f>
mov    %r12,%rax
shl    $0x4,%rax
add    %r14,%rax
lea    0x0(,%r12,8),%rdx
add    %r13,%rdx
cmp    %r13,%r14
setb   %r10b
cmp    %r13,%rax
seta   %r11b
cmp    %rbp,%r14
setb   %cl
cmp    %rbp,%rax
seta   %dil
cmp    %rdx,%r14
setb   %dl
cmp    %r13,%r15
seta   %r8b
lea    0x0(,%r12,8),%rax
add    %rbp,%rax
cmp    %rax,%r14
setb   %sil
cmp    %rbp,%r15
seta   %r9b
xor    %eax,%eax
test   %r11b,%r10b
jne    123b <array_findminfitd+0xcb>
and    %dil,%cl
jne    123b <array_findminfitd+0xcb>
and    %r8b,%dl
jne    123b <array_findminfitd+0xcb>
and    %r9b,%sil
jne    123b <array_findminfitd+0xcb>
mov    %r12d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rcx
mov    %rcx,%r8
shr    $0x2,%r8
add    $0x1,%r8
test   %rcx,%rcx
je     1528 <array_findminfitd+0x3b8>
mov    %r8,%rsi
and    $0xfffffffffffffffe,%rsi
lea    0x30(%r14),%rdi
lea    (%r14,%r12,8),%rcx
add    $0x30,%rcx
xor    %edx,%edx
nop
movups 0x0(%r13,%rdx,8),%xmm0
movups 0x10(%r13,%rdx,8),%xmm1
movups %xmm0,-0x30(%rdi,%rdx,8)
movups %xmm1,-0x20(%rdi,%rdx,8)
movups 0x0(%rbp,%rdx,8),%xmm0
movups 0x10(%rbp,%rdx,8),%xmm1
movups %xmm0,-0x30(%rcx,%rdx,8)
movups %xmm1,-0x20(%rcx,%rdx,8)
movups 0x20(%r13,%rdx,8),%xmm0
movups 0x30(%r13,%rdx,8),%xmm1
movups %xmm0,-0x10(%rdi,%rdx,8)
movups %xmm1,(%rdi,%rdx,8)
movupd 0x20(%rbp,%rdx,8),%xmm0
movupd 0x30(%rbp,%rdx,8),%xmm1
movupd %xmm0,-0x10(%rcx,%rdx,8)
movupd %xmm1,(%rcx,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rsi
jne    1370 <array_findminfitd+0x200>
test   $0x1,%r8b
je     1406 <array_findminfitd+0x296>
movups 0x0(%r13,%rdx,8),%xmm0
movups 0x10(%r13,%rdx,8),%xmm1
movups %xmm0,(%r14,%rdx,8)
movups %xmm1,0x10(%r14,%rdx,8)
movupd 0x0(%rbp,%rdx,8),%xmm0
movupd 0x10(%rbp,%rdx,8),%xmm1
movupd %xmm0,(%r15,%rdx,8)
movupd %xmm1,0x10(%r15,%rdx,8)
cmp    %r12,%rax
jne    123b <array_findminfitd+0xcb>
mov    %r14,%rdi
mov    %r15,%rsi
mov    (%rsp),%rbp
mov    %ebp,%edx
call   1040 <sortxyd@plt>
mov    %r15,%rdi
mov    %ebp,%esi
call   1080 <array_findminindexd@plt>
test   %eax,%eax
js     1469 <array_findminfitd+0x2f9>
mov    %eax,%ecx
movsd  (%r15,%rcx,8),%xmm0
cs nopw 0x0(%rax,%rax,1)
movsd  (%r15,%rcx,8),%xmm1
ucomisd %xmm0,%xmm1
jne    145f <array_findminfitd+0x2ef>
jp     145f <array_findminfitd+0x2ef>
lea    -0x1(%rcx),%rdx
test   %rcx,%rcx
mov    %rdx,%rcx
jg     1440 <array_findminfitd+0x2d0>
mov    $0xffffffff,%ecx
cmp    (%rsp),%eax
jl     1474 <array_findminfitd+0x304>
jmp    1999 <array_findminfitd+0x829>
mov    %eax,%ecx
cmp    (%rsp),%eax
jge    1999 <array_findminfitd+0x829>
movslq %eax,%rdx
movsd  (%r15,%rdx,8),%xmm0
ucomisd %xmm0,%xmm0
jp     198f <array_findminfitd+0x81f>
mov    (%rsp),%rbx
movslq %ebx,%rsi
lea    (%r14,%r12,8),%rdi
add    $0x8,%rdi
not    %eax
add    %ebx,%eax
nopw   0x0(%rax,%rax,1)
sub    $0x1,%eax
jb     1999 <array_findminfitd+0x829>
movsd  (%rdi,%rdx,8),%xmm1
add    $0x1,%rdx
ucomisd %xmm0,%xmm1
jne    14ba <array_findminfitd+0x34a>
jnp    14a0 <array_findminfitd+0x330>
cmp    %rsi,%rdx
setl   %al
test   %ecx,%ecx
js     1999 <array_findminfitd+0x829>
test   %al,%al
je     1999 <array_findminfitd+0x829>
lea    -0x1(%rdx),%eax
mov    %ecx,%esi
movsd  (%r15,%rsi,8),%xmm2
subsd  %xmm0,%xmm2
movslq %edx,%rsi
movsd  (%r15,%rsi,8),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm2,%xmm0
maxsd  %xmm1,%xmm0
mulsd  0xb04(%rip),%xmm0
ucomisd %xmm2,%xmm0
ja     150b <array_findminfitd+0x39b>
add    $0x1,%ecx
ucomisd %xmm1,%xmm0
ja     150d <array_findminfitd+0x39d>
mov    %eax,%edx
mov    (%rsp),%rax
lea    -0x1(%rax),%r8d
mov    %edx,%eax
sub    %ecx,%eax
jge    1539 <array_findminfitd+0x3c9>
lea    0x1(%rdx),%r9d
xorpd  %xmm3,%xmm3
jmp    15d6 <array_findminfitd+0x466>
xor    %edx,%edx
test   $0x1,%r8b
jne    13d6 <array_findminfitd+0x266>
jmp    1406 <array_findminfitd+0x296>
mov    0x8(%rsp),%rdi
movslq %ecx,%rbp
lea    0x1(%rdx),%r9d
mov    %r9d,%esi
sub    %ecx,%esi
xorpd  %xmm3,%xmm3
and    $0x3,%esi
je     1578 <array_findminfitd+0x408>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rdi,%rbp,8),%xmm0
movhpd (%r15,%rbp,8),%xmm0
addpd  %xmm0,%xmm3
add    $0x1,%rbp
add    $0xffffffff,%esi
jne    1560 <array_findminfitd+0x3f0>
cmp    $0x3,%eax
jb     15d6 <array_findminfitd+0x466>
mov    %r9d,%eax
lea    (%r14,%r12,8),%rsi
add    $0x18,%rsi
nopl   0x0(%rax,%rax,1)
movsd  (%rdi,%rbp,8),%xmm0
movsd  0x8(%rdi,%rbp,8),%xmm1
movsd  0x10(%rdi,%rbp,8),%xmm2
movhpd -0x18(%rsi,%rbp,8),%xmm0
addpd  %xmm3,%xmm0
movsd  0x18(%rdi,%rbp,8),%xmm3
movhpd -0x10(%rsi,%rbp,8),%xmm1
addpd  %xmm0,%xmm1
movhpd -0x8(%rsi,%rbp,8),%xmm2
movhpd (%rsi,%rbp,8),%xmm3
addpd  %xmm1,%xmm2
addpd  %xmm2,%xmm3
add    $0x4,%rbp
cmp    %ebp,%eax
jne    1590 <array_findminfitd+0x420>
mov    (%rsp),%rdi
sub    %ecx,%r9d
xorps  %xmm0,%xmm0
cvtsi2sd %r9d,%xmm0
unpcklpd %xmm0,%xmm0
divpd  %xmm0,%xmm3
lea    -0x3(%rcx),%esi
xor    %eax,%eax
cmp    $0x3,%ecx
cmovge %esi,%eax
lea    -0x3(%rdi),%ecx
lea    0x3(%rdx),%esi
cmp    %ecx,%edx
cmovl  %esi,%r8d
mov    %r8d,%ecx
sub    %eax,%ecx
movapd %xmm3,0x20(%rsp)
je     18bd <array_findminfitd+0x74d>
mov    0x8(%rsp),%rdx
mov    %eax,%eax
movslq %r8d,%rsi
movsd  (%rdx,%rsi,8),%xmm4
subsd  (%rdx,%rax,8),%xmm4
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
divsd  %xmm0,%xmm4
xorpd  %xmm0,%xmm0
ucomisd %xmm4,%xmm0
jae    18bd <array_findminfitd+0x74d>
movapd 0x9f6(%rip),%xmm0
xorpd  %xmm4,%xmm0
movapd %xmm0,0xd0(%rsp)
xor    %r12d,%r12d
movsd  0x9a6(%rip),%xmm0
mov    $0xfffffffe,%ebx
movsd  0x9a1(%rip),%xmm5
movsd  %xmm0,0x30(%rsp)
movsd  %xmm0,0x38(%rsp)
movl   $0x0,0x10(%rsp)
movapd %xmm3,0x90(%rsp)
movapd %xmm3,0xa0(%rsp)
movapd %xmm4,0x60(%rsp)
jmp    16bd <array_findminfitd+0x54d>
nopl   (%rax)
movapd 0xc0(%rsp),%xmm5
addsd  0x977(%rip),%xmm5
add    $0x1,%ebx
cmp    $0x3,%ebx
je     18e7 <array_findminfitd+0x777>
movapd %xmm5,%xmm0
andpd  0x987(%rip),%xmm0
addsd  0x947(%rip),%xmm0
cvttpd2dq %xmm0,%xmm1
cvtdq2pd %xmm1,%xmm6
movapd %xmm4,%xmm1
mulsd  %xmm6,%xmm1
addsd  %xmm1,%xmm1
movsd  0x50(%rsp),%xmm2
ucomisd %xmm1,%xmm2
movapd %xmm5,0xc0(%rsp)
jb     16a0 <array_findminfitd+0x530>
mulsd  %xmm4,%xmm5
addsd  0x20(%rsp),%xmm5
cvttsd2si %xmm0,%ebp
add    $0x1,%ebp
mov    %r12d,%r14d
movapd %xmm5,0xb0(%rsp)
jmp    175b <array_findminfitd+0x5eb>
nopl   0x0(%rax)
mov    %r14d,%r12d
movapd 0x60(%rsp),%xmm4
movapd 0xb0(%rsp),%xmm5
xorps  %xmm6,%xmm6
cvtsi2sd %ebp,%xmm6
movapd %xmm4,%xmm0
mulsd  %xmm6,%xmm0
addsd  %xmm0,%xmm0
add    $0x1,%ebp
movsd  0x50(%rsp),%xmm1
ucomisd %xmm0,%xmm1
mov    %r12d,%r14d
jb     16a0 <array_findminfitd+0x530>
movapd %xmm6,0x70(%rsp)
movl   $0x0,0x14(%rsp)
movq   $0x0,0x58(%rsp)
movq   $0x0,0x40(%rsp)
mov    0x8(%rsp),%rdi
movapd %xmm6,%xmm1
addsd  0x894(%rip),%xmm1
mulsd  %xmm4,%xmm1
mov    %r15,%rsi
mov    (%rsp),%rdx
movapd %xmm5,%xmm0
lea    0x58(%rsp),%rcx
lea    0x14(%rsp),%r8
lea    0x40(%rsp),%r9
call   1050 <findminfitd1@plt>
movsd  0x0(%r13),%xmm1
ucomisd %xmm0,%xmm1
ja     1720 <array_findminfitd+0x5b0>
movapd 0xd0(%rsp),%xmm1
movapd 0x70(%rsp),%xmm2
mulsd  %xmm2,%xmm1
movapd 0xb0(%rsp),%xmm5
addsd  %xmm5,%xmm1
ucomisd %xmm0,%xmm1
ja     184e <array_findminfitd+0x6de>
movapd %xmm2,%xmm1
movapd 0x60(%rsp),%xmm4
mulsd  %xmm4,%xmm1
addsd  %xmm5,%xmm1
ucomisd %xmm1,%xmm0
ja     1890 <array_findminfitd+0x720>
movsd  0x58(%rsp),%xmm1
mov    0x14(%rsp),%r12d
cmp    $0x4,%r12d
jl     185c <array_findminfitd+0x6ec>
movsd  0x48(%rsp),%xmm2
ucomisd %xmm1,%xmm2
jbe    185c <array_findminfitd+0x6ec>
xorpd  %xmm2,%xmm2
movsd  0x38(%rsp),%xmm3
ucomisd %xmm3,%xmm2
ja     1834 <array_findminfitd+0x6c4>
ucomisd %xmm1,%xmm3
jbe    1890 <array_findminfitd+0x720>
movhpd 0x40(%rsp),%xmm0
movsd  %xmm1,0x38(%rsp)
movapd %xmm0,0xa0(%rsp)
jmp    1732 <array_findminfitd+0x5c2>
mov    %r14d,%r12d
movapd 0x60(%rsp),%xmm4
jmp    1732 <array_findminfitd+0x5c2>
cmp    $0x3,%r12d
jne    1890 <array_findminfitd+0x720>
movsd  0x48(%rsp),%xmm2
ucomisd %xmm1,%xmm2
jbe    1890 <array_findminfitd+0x720>
movsd  0x30(%rsp),%xmm2
xorpd  %xmm3,%xmm3
ucomisd %xmm2,%xmm3
ja     1898 <array_findminfitd+0x728>
ucomisd %xmm1,%xmm2
ja     1898 <array_findminfitd+0x728>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14d,%r12d
jmp    1732 <array_findminfitd+0x5c2>
movhpd 0x40(%rsp),%xmm0
movl   $0x3,0x10(%rsp)
mov    %r14d,%r12d
movsd  %xmm1,0x30(%rsp)
movapd %xmm0,0x90(%rsp)
jmp    1732 <array_findminfitd+0x5c2>
lea    0x79c(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1070 <willus_mem_free@plt>
mov    0x18(%rsp),%rbx
test   %rbx,%rbx
je     19c6 <array_findminfitd+0x856>
movapd 0x20(%rsp),%xmm0
jmp    19c0 <array_findminfitd+0x850>
lea    0x772(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1070 <willus_mem_free@plt>
xorpd  %xmm0,%xmm0
movsd  0x38(%rsp),%xmm2
ucomisd %xmm2,%xmm0
seta   %al
movsd  0x30(%rsp),%xmm1
ucomisd %xmm0,%xmm1
setae  %cl
test   %cl,%al
cmovne 0x10(%rsp),%r12d
movapd 0x90(%rsp),%xmm0
jne    1936 <array_findminfitd+0x7c6>
movapd %xmm2,%xmm1
movapd 0xa0(%rsp),%xmm0
mov    0x80(%rsp),%rcx
test   %rcx,%rcx
mov    0x18(%rsp),%rbx
mov    0x88(%rsp),%rax
je     1954 <array_findminfitd+0x7e4>
movsd  %xmm1,(%rcx)
test   %rax,%rax
je     195c <array_findminfitd+0x7ec>
mov    %r12d,(%rax)
test   %rbx,%rbx
jne    19c0 <array_findminfitd+0x850>
jmp    19cc <array_findminfitd+0x85c>
mov    0x2676(%rip),%rax
mov    (%rax),%edi
add    %r12d,%r12d
lea    0x6fc(%rip),%rsi
lea    0x6e3(%rip),%rdx
mov    %r12d,%ecx
call   1060 <fprintf@plt>
mov    $0xa,%edi
call   1090 <exit@plt>
mov    $0x1,%al
test   %ecx,%ecx
jns    14c8 <array_findminfitd+0x358>
lea    0x6c0(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1070 <willus_mem_free@plt>
mov    0x18(%rsp),%rbx
test   %rbx,%rbx
je     19c6 <array_findminfitd+0x856>
movapd 0x20(%rsp),%xmm0
unpcklpd 0x70(%rsp),%xmm0
movhpd %xmm0,(%rbx)
jmp    19cc <array_findminfitd+0x85c>
movapd 0x20(%rsp),%xmm0
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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