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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double fabs(double);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ free(char *);
scalar_t__ malloc(int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ swapd(double *, double *);
int /*<<< orphan*/ swapi(int *, int *);
double minver(double a[], int l, int m, double eps) {
  int i, iw, j, k, *p, r, s, t, u, v, *work;
  double api, pivot, *q, *q1, w, w1, wmax;
  if (m < 2 || l < m || eps <= 0.) {
    fprintf(stderr, "Error : Illegal parameter  in minver()\n");
    return 0.;
  }
  work = (int *)malloc(m * sizeof(int));
  if (work == NULL) {
    fprintf(stderr, "Error : Out of memory  in minver()\n");
    return 0.;
  }
  w1 = 1.;
  for (i = 0, p = work; i < m; i++)
    *p++ = i;
  for (k = 0, u = 0; k < m; k++, u += l) {
    wmax = 0.;
    for (i = k; i < m; i++) {
      w = fabs(*(a + i * l + k));
      if (w > wmax) {
        wmax = w;
        r = i;
      }
    }
    api = fabs(pivot = *(a + r * l + k));
    if (api < eps) {
      fprintf(stderr, "Error : api < eps  in minver()\n");
      free((char *)work);
      return w1;
    }
    w1 *= pivot;
    v = r * l;
    if (r != k) {
      w1 = -w1;
      swapi(work + k, work + r);
      for (j = 0, q = a + u, q1 = a + v; j < m; j++)
        swapd(q++, q1++);
    }
    for (i = 0, q = a + u; i < m; i++)
      *q++ /= pivot;
    for (i = 0, v = 0; i < m; i++, v += l) {
      if (i != k) {
        s = v + k;
        w = *(a + s);
        if (w != 0.) {
          for (j = 0, q = a + u, q1 = a + v; j < m; j++, q++, q1++)
            if (j != k)
              *q1 -= w * *q;
          *(a + s) = -w / pivot;
        }
      }
    }
    *(a + u + k) = 1. / pivot;
  }
  for (i = 0; i < m; i++) {
    for (;;) {
      k = *(work + i);
      if (k == i)
        break;
      swapi(work + k, work + i);
      for (j = 0, u = 0; j < m; j++, u += l)
        swapd(a + u + i, a + u + k);
    }
  }
  free((char *)work);
  return w1;
}


x86 assembly (clang, -O0):
<minver>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
cmpl   $0x2,-0x18(%rbp)
jl     118e <minver+0x3e>
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jl     118e <minver+0x3e>
xorps  %xmm0,%xmm0
ucomisd -0x20(%rbp),%xmm0
jb     11b0 <minver+0x60>
mov    0x2e4b(%rip),%rax
mov    (%rax),%edi
lea    0xe82(%rip),%rsi
call   1050 <fprintf@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    170d <minver+0x5bd>
movslq -0x18(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
jne    11f0 <minver+0xa0>
mov    0x2e0b(%rip),%rax
mov    (%rax),%edi
lea    0xe6a(%rip),%rsi
call   1050 <fprintf@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    170d <minver+0x5bd>
movsd  0xe08(%rip),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movl   $0x0,-0x24(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    123d <minver+0xed>
mov    -0x24(%rbp),%ecx
mov    -0x38(%rbp),%rax
mov    %rax,%rdx
add    $0x4,%rdx
mov    %rdx,-0x38(%rbp)
mov    %ecx,(%rax)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    120f <minver+0xbf>
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    161b <minver+0x4cb>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x30(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    12db <minver+0x18b>
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
imul   -0x14(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xd77(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
ucomisd -0x90(%rbp),%xmm0
ff
jbe    12c8 <minver+0x178>
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x24(%rbp),%eax
mov    %eax,-0x3c(%rbp)
jmp    12cd <minver+0x17d>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1268 <minver+0x118>
mov    -0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x14(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
movaps 0xd0b(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1352 <minver+0x202>
mov    0x2cb7(%rip),%rax
mov    (%rax),%edi
lea    0xd3a(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x8(%rbp)
jmp    170d <minver+0x5bd>
movsd  -0x68(%rbp),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x3c(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x30(%rbp),%eax
je     1436 <minver+0x2e6>
movsd  -0x88(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x58(%rbp),%rdi
movslq -0x30(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    -0x58(%rbp),%rsi
movslq -0x3c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
call   1040 <swapi@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x78(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1431 <minver+0x2e1>
mov    -0x70(%rbp),%rdi
mov    %rdi,%rax
add    $0x8,%rax
mov    %rax,-0x70(%rbp)
mov    -0x78(%rbp),%rsi
mov    %rsi,%rax
add    $0x8,%rax
mov    %rax,-0x78(%rbp)
call   1070 <swapd@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    13f4 <minver+0x2a4>
jmp    1436 <minver+0x2e6>
movl   $0x0,-0x24(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    148a <minver+0x33a>
movsd  -0x68(%rbp),%xmm1
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1450 <minver+0x300>
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    15df <minver+0x48f>
mov    -0x24(%rbp),%eax
cmp    -0x30(%rbp),%eax
je     15c3 <minver+0x473>
mov    -0x4c(%rbp),%eax
add    -0x30(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    14e8 <minver+0x398>
jp     14e8 <minver+0x398>
jmp    15be <minver+0x46e>
movl   $0x0,-0x2c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x78(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1590 <minver+0x440>
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
je     1565 <minver+0x415>
movsd  -0x80(%rbp),%xmm0
mov    -0x70(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x78(%rbp),%rax
movsd  (%rax),%xmm1
movq   %xmm0,%rcx
movabs $0x8000000000000000,%rdx
xor    %rdx,%rcx
movq   %rcx,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
jmp    156a <minver+0x41a>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x70(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x70(%rbp)
mov    -0x78(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x78(%rbp)
jmp    1515 <minver+0x3c5>
movsd  -0x80(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
divsd  -0x68(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    15c3 <minver+0x473>
jmp    15c8 <minver+0x478>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%eax
add    -0x4c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
jmp    1498 <minver+0x348>
movsd  0xa19(%rip),%xmm0
divsd  -0x68(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x14(%rbp),%eax
add    -0x48(%rbp),%eax
mov    %eax,-0x48(%rbp)
jmp    124b <minver+0xfb>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    16f7 <minver+0x5a7>
jmp    1633 <minver+0x4e3>
mov    -0x58(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x24(%rbp),%eax
jne    1652 <minver+0x502>
jmp    16e4 <minver+0x594>
mov    -0x58(%rbp),%rdi
movslq -0x30(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    -0x58(%rbp),%rsi
movslq -0x24(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
call   1040 <swapi@plt>
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    16df <minver+0x58f>
mov    -0x10(%rbp),%rdi
movslq -0x48(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
mov    -0x10(%rbp),%rsi
movslq -0x48(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rsi
movslq -0x30(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rsi
call   1070 <swapd@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x14(%rbp),%eax
add    -0x48(%rbp),%eax
mov    %eax,-0x48(%rbp)
jmp    1683 <minver+0x533>
jmp    1633 <minver+0x4e3>
jmp    16e9 <minver+0x599>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1622 <minver+0x4d2>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<minver>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
cmp    $0x2,%edx
jge    1191 <minver+0x41>
mov    0x2e73(%rip),%rax
mov    (%rax),%edi
lea    0xf42(%rip),%rsi
call   1050 <fprintf@plt>
xorpd  %xmm0,%xmm0
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %edx,%r13d
cmp    %edx,%esi
jl     1166 <minver+0x16>
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
jae    1166 <minver+0x16>
mov    %rdi,%r12
mov    %esi,0x8(%rsp)
movsd  %xmm0,0x30(%rsp)
lea    0x0(,%r13,4),%edi
call   1060 <malloc@plt>
test   %rax,%rax
je     11f5 <minver+0xa5>
mov    %r13d,%r10d
movabs $0x1fffffffe,%r8
lea    -0x1(%r13),%ecx
lea    0x1(%rcx),%rbp
mov    %rcx,0x38(%rsp)
cmp    $0x7,%ecx
jae    120a <minver+0xba>
xor    %edi,%edi
mov    %rax,%rcx
movsd  0x30(%rsp),%xmm8
mov    0x8(%rsp),%ebx
jmp    1370 <minver+0x220>
mov    0x2de4(%rip),%rax
mov    (%rax),%edi
lea    0xedb(%rip),%rsi
jmp    1176 <minver+0x26>
lea    -0x6(%r8),%rdi
and    %rbp,%rdi
lea    -0x8(%rdi),%rsi
mov    %rsi,%rdx
shr    $0x3,%rdx
add    $0x1,%rdx
mov    %edx,%ecx
and    $0x3,%ecx
cmp    $0x18,%rsi
jae    123e <minver+0xee>
movdqa 0xdcd(%rip),%xmm0
xor    %esi,%esi
mov    0x8(%rsp),%ebx
jmp    1318 <minver+0x1c8>
and    $0xfffffffffffffffc,%rdx
movdqa 0xdb6(%rip),%xmm0
xor    %esi,%esi
movdqa 0xdbb(%rip),%xmm8
movdqa 0xdc2(%rip),%xmm9
movdqa 0xdc9(%rip),%xmm10
movdqa 0xdd1(%rip),%xmm4
movdqa 0xdd9(%rip),%xmm5
movdqa 0xde1(%rip),%xmm6
movdqa 0xde9(%rip),%xmm7
movdqa 0xdf1(%rip),%xmm1
mov    0x8(%rsp),%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movdqa %xmm0,%xmm2
paddd  %xmm8,%xmm2
movdqu %xmm0,(%rax,%rsi,4)
movdqu %xmm2,0x10(%rax,%rsi,4)
movdqa %xmm0,%xmm2
paddd  %xmm9,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm10,%xmm3
movdqu %xmm2,0x20(%rax,%rsi,4)
movdqu %xmm3,0x30(%rax,%rsi,4)
movdqa %xmm0,%xmm2
paddd  %xmm4,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm5,%xmm3
movdqu %xmm2,0x40(%rax,%rsi,4)
movdqu %xmm3,0x50(%rax,%rsi,4)
movdqa %xmm0,%xmm2
paddd  %xmm6,%xmm2
movdqa %xmm0,%xmm3
paddd  %xmm7,%xmm3
movdqu %xmm2,0x60(%rax,%rsi,4)
movdqu %xmm3,0x70(%rax,%rsi,4)
add    $0x20,%rsi
paddd  %xmm1,%xmm0
add    $0xfffffffffffffffc,%rdx
jne    12a0 <minver+0x150>
test   %rcx,%rcx
je     1360 <minver+0x210>
lea    (%rax,%rsi,4),%rdx
add    $0x10,%rdx
shl    $0x5,%rcx
xor    %esi,%esi
movdqa 0xcdd(%rip),%xmm1
movdqa 0xce5(%rip),%xmm2
nopl   0x0(%rax,%rax,1)
movdqa %xmm0,%xmm3
paddd  %xmm1,%xmm3
movdqu %xmm0,-0x10(%rdx,%rsi,1)
movdqu %xmm3,(%rdx,%rsi,1)
paddd  %xmm2,%xmm0
add    $0x20,%rsi
cmp    %rsi,%rcx
jne    1340 <minver+0x1f0>
cmp    %rdi,%rbp
movsd  0x30(%rsp),%xmm8
je     137e <minver+0x22e>
lea    (%rax,%rdi,4),%rcx
mov    %edi,(%rcx)
add    $0x4,%rcx
add    $0x1,%edi
cmp    %edi,%r13d
jne    1370 <minver+0x220>
mov    %rax,0x28(%rsp)
movslq %ebx,%r11
mov    0x38(%rsp),%rax
add    $0x1,%rax
and    %r8,%rbp
add    $0xfffffffffffffffe,%rbp
mov    %rbp,0xa0(%rsp)
shr    %rbp
add    $0x1,%rbp
mov    %rax,0x98(%rsp)
and    %rax,%r8
mov    %r8,0x58(%rsp)
mov    %rbp,%rax
mov    %rbp,0x90(%rsp)
and    $0xfffffffffffffffe,%rbp
mov    %rbp,0x88(%rsp)
mov    %r13d,%r9d
and    $0xfffffffe,%r9d
lea    0x0(,%r11,8),%r14
lea    0x8(,%r11,8),%rax
mov    %rax,0xb0(%rsp)
lea    0x10(%r12),%rax
mov    %rax,0x80(%rsp)
xor    %eax,%eax
mov    %rax,0x18(%rsp)
movsd  0xca8(%rip),%xmm9
movapd 0xc80(%rip),%xmm6
pxor   %xmm7,%xmm7
movapd 0xc84(%rip),%xmm3
mov    %r12,%rax
xor    %ecx,%ecx
movapd %xmm9,%xmm4
movl   $0x0,0xc(%rsp)
mov    %r13,0x78(%rsp)
mov    %r12,0x70(%rsp)
mov    %r10,0x60(%rsp)
mov    %r11,0x68(%rsp)
mov    %r9d,0x24(%rsp)
jmp    148f <minver+0x33f>
nopl   0x0(%rax)
movapd %xmm9,%xmm0
divsd  %xmm5,%xmm0
mov    0x10(%rsp),%rcx
movsd  %xmm0,0x0(%rbp,%rcx,8)
add    $0x1,%rcx
mov    0x8(%rsp),%ebx
add    %ebx,0xc(%rsp)
mov    0xb8(%rsp),%rax
add    0xb0(%rsp),%rax
addq   $0x8,0x18(%rsp)
cmp    %r10,%rcx
je     17e5 <minver+0x695>
mov    %rax,0xb8(%rsp)
mov    %rcx,0x10(%rsp)
pxor   %xmm0,%xmm0
movsd  (%rax),%xmm1
andpd  %xmm6,%xmm1
ucomisd %xmm0,%xmm1
cmova  %ecx,%r15d
maxsd  %xmm0,%xmm1
add    $0x1,%rcx
add    %r14,%rax
movapd %xmm1,%xmm0
cmp    %rcx,%r10
jne    14a0 <minver+0x350>
mov    %r15d,%eax
imul   %ebx,%eax
cltq
lea    (%r12,%rax,8),%rbp
mov    0x10(%rsp),%rax
movsd  0x0(%rbp,%rax,8),%xmm5
movapd %xmm5,%xmm0
andpd  %xmm6,%xmm0
ucomisd %xmm0,%xmm8
ja     17b5 <minver+0x665>
mulsd  %xmm5,%xmm4
mov    %r15d,%eax
cmp    %rax,0x10(%rsp)
mov    0x10(%rsp),%rax
jne    1510 <minver+0x3c0>
movslq 0xc(%rsp),%rcx
jmp    15bf <minver+0x46f>
nopl   0x0(%rax,%rax,1)
movapd %xmm5,0xc0(%rsp)
xorpd  %xmm3,%xmm4
movapd %xmm4,0x40(%rsp)
mov    0x28(%rsp),%rcx
lea    (%rcx,%rax,4),%rdi
movslq %r15d,%rax
lea    (%rcx,%rax,4),%rsi
call   1040 <swapi@plt>
movslq 0xc(%rsp),%rax
mov    %rax,0xa8(%rsp)
lea    (%r12,%rax,8),%rdi
mov    %r13d,%ebx
nopl   0x0(%rax)
lea    0x8(%rdi),%r12
lea    0x8(%rbp),%r13
mov    %rbp,%rsi
call   1070 <swapd@plt>
mov    %r13,%rbp
mov    %r12,%rdi
add    $0xffffffff,%ebx
jne    1550 <minver+0x400>
mov    0x78(%rsp),%r13
mov    0x70(%rsp),%r12
mov    0x60(%rsp),%r10
movsd  0x30(%rsp),%xmm8
movapd 0x40(%rsp),%xmm4
mov    0x68(%rsp),%r11
mov    0x24(%rsp),%r9d
movsd  0xb16(%rip),%xmm9
movapd 0xaee(%rip),%xmm6
pxor   %xmm7,%xmm7
movapd 0xaf2(%rip),%xmm3
movapd 0xc0(%rsp),%xmm5
mov    0xa8(%rsp),%rcx
lea    (%r12,%rcx,8),%rbp
cmpl   $0x0,0x38(%rsp)
je     1670 <minver+0x520>
movapd %xmm5,%xmm0
unpcklpd %xmm5,%xmm0
cmpq   $0x0,0xa0(%rsp)
je     17a0 <minver+0x650>
mov    0x80(%rsp),%rax
lea    (%rax,%rcx,8),%rcx
mov    0x88(%rsp),%rdx
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
movupd -0x10(%rcx,%rax,8),%xmm1
movupd (%rcx,%rax,8),%xmm2
divpd  %xmm0,%xmm1
movupd %xmm1,-0x10(%rcx,%rax,8)
divpd  %xmm0,%xmm2
movupd %xmm2,(%rcx,%rax,8)
add    $0x4,%rax
add    $0xfffffffffffffffe,%rdx
jne    1600 <minver+0x4b0>
testb  $0x1,0x90(%rsp)
01
je     1642 <minver+0x4f2>
movupd 0x0(%rbp,%rax,8),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,0x0(%rbp,%rax,8)
mov    0x98(%rsp),%rax
cmp    0x58(%rsp),%rax
je     1696 <minver+0x546>
mov    0x58(%rsp),%rcx
lea    0x0(,%rcx,8),%rax
add    %rbp,%rax
mov    %ecx,%edx
jmp    1675 <minver+0x525>
cs nopw 0x0(%rax,%rax,1)
nop
xor    %edx,%edx
mov    %rbp,%rax
mov    %r13d,%ecx
sub    %edx,%ecx
xor    %edx,%edx
nopl   0x0(%rax)
movsd  (%rax,%rdx,8),%xmm0
divsd  %xmm5,%xmm0
movsd  %xmm0,(%rax,%rdx,8)
add    $0x1,%rdx
cmp    %edx,%ecx
jne    1680 <minver+0x530>
mov    0x18(%rsp),%rax
lea    -0x8(%rax),%rcx
xor    %edx,%edx
mov    %r12,%rsi
xor    %edi,%edi
jmp    16d6 <minver+0x586>
nopl   0x0(%rax,%rax,1)
divsd  %xmm5,%xmm0
movsd  %xmm0,(%r12,%r8,8)
mov    0x68(%rsp),%r11
mov    0x24(%rsp),%r9d
add    $0x1,%edi
add    %r11,%rdx
add    %r14,%rsi
cmp    %r10d,%edi
je     1450 <minver+0x300>
mov    %edi,%eax
mov    0x10(%rsp),%rbx
cmp    %rax,%rbx
je     16c4 <minver+0x574>
mov    %rbx,%rax
lea    (%rdx,%rbx,1),%r8
movsd  (%r12,%r8,8),%xmm0
ucomisd %xmm7,%xmm0
jne    16f7 <minver+0x5a7>
jnp    16c4 <minver+0x574>
xorpd  %xmm3,%xmm0
cmpl   $0x0,0x38(%rsp)
je     1766 <minver+0x616>
xor    %eax,%eax
xor    %ebx,%ebx
jmp    171c <minver+0x5cc>
nopl   0x0(%rax,%rax,1)
add    $0x2,%ebx
add    $0x10,%rax
cmp    %ebx,%r9d
je     1754 <minver+0x604>
cmp    %rax,0x18(%rsp)
je     1737 <minver+0x5e7>
movsd  0x0(%rbp,%rax,1),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rsi,%rax,1),%xmm1
movsd  %xmm1,(%rsi,%rax,1)
cmp    %rax,%rcx
je     1710 <minver+0x5c0>
movsd  0x8(%rbp,%rax,1),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x8(%rsi,%rax,1),%xmm1
movsd  %xmm1,0x8(%rsi,%rax,1)
jmp    1710 <minver+0x5c0>
lea    (%rsi,%rax,1),%r9
add    %rbp,%rax
test   $0x1,%r13b
jne    1779 <minver+0x629>
jmp    16b0 <minver+0x560>
xor    %ebx,%ebx
lea    (%r12,%rdx,8),%r9
mov    %rbp,%rax
test   $0x1,%r13b
je     16b0 <minver+0x560>
mov    %ebx,%ebx
cmp    %rbx,0x10(%rsp)
je     16b0 <minver+0x560>
movsd  (%rax),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%r9),%xmm1
movsd  %xmm1,(%r9)
jmp    16b0 <minver+0x560>
nopl   (%rax)
xor    %eax,%eax
testb  $0x1,0x90(%rsp)
01
jne    1632 <minver+0x4e2>
jmp    1642 <minver+0x4f2>
mov    0x2824(%rip),%rax
mov    (%rax),%edi
lea    0x93f(%rip),%rsi
movapd %xmm4,0x40(%rsp)
call   1050 <fprintf@plt>
mov    0x28(%rsp),%rdi
call   1030 <free@plt>
movapd 0x40(%rsp),%xmm0
jmp    117f <minver+0x2f>
movapd %xmm4,0x40(%rsp)
xor    %r15d,%r15d
mov    %r12,0x18(%rsp)
mov    0x28(%rsp),%rdi
jmp    1811 <minver+0x6c1>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r15
addq   $0x8,0x18(%rsp)
cmp    0x60(%rsp),%r15
je     17d5 <minver+0x685>
mov    (%rdi,%r15,4),%eax
cmp    %rax,%r15
je     1800 <minver+0x6b0>
lea    (%rdi,%r15,4),%r12
xchg   %ax,%ax
movslq %eax,%rbx
lea    (%rdi,%rbx,4),%rdi
mov    %r12,%rsi
call   1040 <swapi@plt>
mov    0x70(%rsp),%rax
lea    (%rax,%rbx,8),%rbx
mov    0x18(%rsp),%rbp
nopl   (%rax)
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1070 <swapd@plt>
add    %r14,%rbx
add    %r14,%rbp
add    $0xffffffff,%r13d
jne    1840 <minver+0x6f0>
mov    (%r12),%eax
cmp    %rax,%r15
mov    0x78(%rsp),%r13
mov    0x28(%rsp),%rdi
jne    1820 <minver+0x6d0>
jmp    1800 <minver+0x6b0>

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

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