#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 M_PI;
scalar_t__ QuarticValue(double *, double);
double acos(double);
double cbrt(double);
double cos(double);
int fabs(double);
double sqrt(double);
int QuarticMinima(double quartic[5], double minima[2]) {
  double p, q, r, a, b, desc, m, cos3t, R1, R2, R3, x, F, dF, t;
  minima[0] = minima[1] = 0.0;
  if (quartic[4] < 0.0)
    return 0;
  if (quartic[4] == 0.0) {
    if (quartic[2] <= 0.0)
      return 0;
    minima[0] = minima[1] = -0.5 * quartic[1] / quartic[2];
    return 1;
  }
  p = 0.75 * quartic[3] / quartic[4];
  q = 0.50 * quartic[2] / quartic[4];
  r = 0.25 * quartic[1] / quartic[4];
  a = q - p * p / 3.0;
  b = 2.0 * p * p * p / 27.0 - p * q / 3.0 + r;
  desc = 0.25 * b * b + a * a * a / 27.0;
  if (desc <= 0.0) {
    m = 2.0 * sqrt(-a / 3.0);
    cos3t = 3.0 * b / (a * m);
    if (cos3t > 1.0)
      cos3t = 1.0;
    if (cos3t < -1.0)
      cos3t = -1.0;
    t = acos(cos3t) / 3.0;
    R1 = m * cos(t);
    R2 = m * cos(t + 2.0 * M_PI / 3.0);
    R3 = m * cos(t + 4.0 * M_PI / 3.0);
    if (R1 == R2) {
      minima[0] = minima[1] = R3 - p / 3.0;
      return 1;
    }
    if (R1 == R3) {
      minima[0] = minima[1] = R2 - p / 3.0;
      return 1;
    }
    if (R2 == R3) {
      minima[0] = minima[1] = R1 - p / 3.0;
      return 1;
    }
    minima[0] = minima[1] = R1;
    if (R2 < minima[0])
      minima[0] = R2;
    if (R2 > minima[1])
      minima[1] = R2;
    if (R3 < minima[0])
      minima[0] = R3;
    if (R3 > minima[1])
      minima[1] = R3;
    minima[0] -= p / 3.0;
    minima[1] -= p / 3.0;
    if (QuarticValue(quartic, minima[0]) > QuarticValue(quartic, minima[1])) {
      p = minima[0];
      minima[0] = minima[1];
      minima[1] = p;
    }
    return 2;
  }
  if (a <= 0.0) {
    desc = sqrt(desc);
    if (b > 0.0) {
      minima[0] = minima[1] =
          -cbrt(0.5 * b + desc) - cbrt(0.5 * b - desc) - p / 3.0;
    } else {
      minima[0] = minima[1] =
          cbrt(-0.5 * b + desc) + cbrt(-0.5 * b - desc) - p / 3.0;
    }
    return 1;
  }
  x = 0.0;
  F = 1.0;
  while (fabs(F) > 1e-15 * fabs(b)) {
    F = x * (x * x + a) + b;
    dF = 3.0 * x * x + a;
    x -= F / dF;
  }
  minima[0] = minima[1] = x - p / 3.0;
  return 1;
}


x86 assembly (clang, -O0):
<QuarticMinima>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd 0x20(%rax),%xmm0
jbe    11a8 <QuarticMinima+0x48>
movl   $0x0,-0x4(%rbp)
jmp    1977 <QuarticMinima+0x817>
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1219 <QuarticMinima+0xb9>
jp     1219 <QuarticMinima+0xb9>
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd 0x10(%rax),%xmm0
jb     11e2 <QuarticMinima+0x82>
movl   $0x0,-0x4(%rbp)
jmp    1977 <QuarticMinima+0x817>
mov    -0x10(%rbp),%rax
movsd  0xe52(%rip),%xmm0
mulsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
divsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    1977 <QuarticMinima+0x817>
mov    -0x10(%rbp),%rax
movsd  0xe03(%rip),%xmm0
mulsd  0x18(%rax),%xmm0
mov    -0x10(%rbp),%rax
divsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xddc(%rip),%xmm0
mulsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
divsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xda5(%rip),%xmm0
mulsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
divsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
movsd  0xd83(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xd76(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  0xd47(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
mulsd  -0x28(%rbp),%xmm1
movsd  0xd41(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xd1f(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  -0x38(%rbp),%xmm1
mulsd  -0x38(%rbp),%xmm1
movsd  0xcf6(%rip),%xmm3
divsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x48(%rbp),%xmm0
jb     16fe <QuarticMinima+0x59e>
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xcc3(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1080 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0xcb7(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xc9e(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
mulsd  -0x50(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  0xc99(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    13ae <QuarticMinima+0x24e>
movsd  0xc87(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xc92(%rip),%xmm0
ucomisd -0x58(%rbp),%xmm0
jbe    13ce <QuarticMinima+0x26e>
movsd  0xc7f(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
call   1030 <acos@plt>
movsd  0xc30(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
call   1070 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  0xbe1(%rip),%xmm1
mov    0x2baa(%rip),%rax
mulsd  (%rax),%xmm1
movsd  0xbc6(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
call   1070 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  0xbc8(%rip),%xmm1
mov    0x2b59(%rip),%rax
mulsd  (%rax),%xmm1
movsd  0xb75(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
call   1070 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x98(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x60(%rbp),%xmm0
ucomisd -0x68(%rbp),%xmm0
jne    1509 <QuarticMinima+0x3a9>
jp     1509 <QuarticMinima+0x3a9>
movsd  -0x70(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  0xb2c(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    1977 <QuarticMinima+0x817>
movsd  -0x60(%rbp),%xmm0
ucomisd -0x70(%rbp),%xmm0
jne    1556 <QuarticMinima+0x3f6>
jp     1556 <QuarticMinima+0x3f6>
movsd  -0x68(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  0xadf(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    1977 <QuarticMinima+0x817>
movsd  -0x68(%rbp),%xmm0
ucomisd -0x70(%rbp),%xmm0
jne    15a3 <QuarticMinima+0x443>
jp     15a3 <QuarticMinima+0x443>
movsd  -0x60(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  0xa92(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    1977 <QuarticMinima+0x817>
movsd  -0x60(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x68(%rbp),%xmm1
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jbe    15dd <QuarticMinima+0x47d>
movsd  -0x68(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x68(%rbp),%xmm0
mov    -0x18(%rbp),%rax
ucomisd 0x8(%rax),%xmm0
jbe    15ff <QuarticMinima+0x49f>
movsd  -0x68(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x70(%rbp),%xmm1
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jbe    1623 <QuarticMinima+0x4c3>
movsd  -0x70(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x70(%rbp),%xmm0
mov    -0x18(%rbp),%rax
ucomisd 0x8(%rax),%xmm0
jbe    1645 <QuarticMinima+0x4e5>
movsd  -0x70(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x20(%rbp),%xmm1
movsd  0x9be(%rip),%xmm0
divsd  %xmm0,%xmm1
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
movsd  -0x20(%rbp),%xmm1
movsd  0x99d(%rip),%xmm0
divsd  %xmm0,%xmm1
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
call   1040 <QuarticValue@plt>
mov    %rax,-0xb0(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
call   1040 <QuarticValue@plt>
mov    %rax,%rcx
mov    -0xb0(%rbp),%rax
cmp    %rcx,%rax
jle    16f2 <QuarticMinima+0x592>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x20(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movl   $0x2,-0x4(%rbp)
jmp    1977 <QuarticMinima+0x817>
xorps  %xmm0,%xmm0
ucomisd -0x38(%rbp),%xmm0
jb     1879 <QuarticMinima+0x719>
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    17db <QuarticMinima+0x67b>
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  0x8e1(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1060 <cbrt@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0x88c(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1060 <cbrt@plt>
movaps %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  0x853(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    186d <QuarticMinima+0x70d>
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  0x853(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1060 <cbrt@plt>
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0x815(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1060 <cbrt@plt>
movaps %xmm0,%xmm1
movsd  -0xc0(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  0x7bc(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    1977 <QuarticMinima+0x817>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0x7a7(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
call   1050 <fabs@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
call   1050 <fabs@plt>
movsd  -0xc8(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm2
movsd  0x776(%rip),%xmm1
mulsd  %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jbe    1945 <QuarticMinima+0x7e5>
movsd  -0x78(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm3
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0x70a(%rip),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x80(%rbp),%xmm1
divsd  -0x88(%rbp),%xmm1
ff
movsd  -0x78(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
jmp    188e <QuarticMinima+0x72e>
movsd  -0x78(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  0x6b9(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<QuarticMinima>:
push   %r15
push   %r14
push   %rbx
sub    $0x50,%rsp
xorps  %xmm0,%xmm0
movups %xmm0,(%rsi)
movsd  0x20(%rdi),%xmm0
xor    %eax,%eax
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
ja     159e <QuarticMinima+0x43e>
mov    %rsi,%r14
mov    %rdi,%rbx
ucomisd %xmm1,%xmm0
jne    11c6 <QuarticMinima+0x66>
jp     11c6 <QuarticMinima+0x66>
movsd  0x10(%rbx),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
jae    159e <QuarticMinima+0x43e>
movsd  0x8(%rbx),%xmm1
mulsd  0xe8e(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%r14)
movsd  %xmm1,(%r14)
jmp    1599 <QuarticMinima+0x439>
movsd  0x18(%rbx),%xmm5
mulsd  0xe2d(%rip),%xmm5
divsd  %xmm0,%xmm5
movsd  0x8(%rbx),%xmm1
movsd  0x10(%rbx),%xmm2
unpcklpd %xmm5,%xmm2
movapd 0xe73(%rip),%xmm6
unpcklpd %xmm5,%xmm6
mulpd  %xmm2,%xmm6
movapd 0xe73(%rip),%xmm2
movsd  %xmm0,%xmm2
divpd  %xmm2,%xmm6
movapd %xmm6,%xmm2
unpckhpd %xmm6,%xmm2
movapd %xmm5,%xmm3
addsd  %xmm5,%xmm3
mulsd  %xmm5,%xmm3
unpcklpd %xmm5,%xmm1
movapd 0xe5b(%rip),%xmm4
unpcklpd %xmm3,%xmm4
shufpd $0x2,0xe5e(%rip),%xmm0
mulpd  %xmm1,%xmm4
divpd  %xmm0,%xmm4
movapd %xmm5,%xmm0
mulsd  %xmm6,%xmm0
subsd  %xmm2,%xmm6
divsd  0xdba(%rip),%xmm0
movapd %xmm4,%xmm2
unpckhpd %xmm4,%xmm2
subsd  %xmm0,%xmm2
addsd  %xmm4,%xmm2
movsd  0xdaa(%rip),%xmm0
mulsd  %xmm2,%xmm0
movapd %xmm6,%xmm1
mulsd  %xmm6,%xmm1
mulsd  %xmm6,%xmm1
divsd  0xd9a(%rip),%xmm1
movapd %xmm2,0x10(%rsp)
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
movapd %xmm5,0x30(%rsp)
jae    1396 <QuarticMinima+0x236>
ucomisd %xmm6,%xmm1
jae    13ae <QuarticMinima+0x24e>
movsd  0xd76(%rip),%xmm0
movapd %xmm6,0x40(%rsp)
call   1050 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
movaps 0x10(%rsp),%xmm0
call   1050 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xd6d(%rip),%xmm0
xorpd  %xmm3,%xmm3
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jbe    137f <QuarticMinima+0x21f>
xorpd  %xmm3,%xmm3
nopl   0x0(%rax,%rax,1)
movapd %xmm3,%xmm0
mulsd  %xmm3,%xmm0
movapd 0x40(%rsp),%xmm2
addsd  %xmm2,%xmm0
mulsd  %xmm3,%xmm0
addsd  0x10(%rsp),%xmm0
movapd %xmm3,%xmm1
mulsd  0xce0(%rip),%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movapd %xmm0,%xmm2
divsd  %xmm1,%xmm2
subsd  %xmm2,%xmm3
movsd  %xmm3,0x8(%rsp)
call   1050 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x20(%rsp)
movaps 0x10(%rsp),%xmm0
call   1050 <fabs@plt>
movsd  0x8(%rsp),%xmm3
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xcdd(%rip),%xmm0
movsd  0x20(%rsp),%xmm1
ucomisd %xmm0,%xmm1
ja     1300 <QuarticMinima+0x1a0>
movapd 0x30(%rsp),%xmm0
divsd  0xc93(%rip),%xmm0
addsd  %xmm3,%xmm0
jmp    158e <QuarticMinima+0x42e>
movapd %xmm6,%xmm0
divsd  0xc7e(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     13c8 <QuarticMinima+0x268>
sqrtsd %xmm0,%xmm0
jmp    13d9 <QuarticMinima+0x279>
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm0
jb     14e3 <QuarticMinima+0x383>
xorps  %xmm1,%xmm1
sqrtsd %xmm0,%xmm1
jmp    14f0 <QuarticMinima+0x390>
movapd %xmm6,0x40(%rsp)
call   1080 <sqrt@plt>
movapd 0x40(%rsp),%xmm6
movapd 0x10(%rsp),%xmm2
addsd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
mulsd  0xc17(%rip),%xmm2
mulsd  %xmm0,%xmm6
divsd  %xmm6,%xmm2
movsd  0xc27(%rip),%xmm1
minsd  %xmm2,%xmm1
movsd  0xc23(%rip),%xmm0
maxsd  %xmm1,%xmm0
call   1030 <acos@plt>
divsd  0xbea(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
call   1070 <cos@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
mov    0x2bac(%rip),%r15
movsd  (%r15),%xmm0
addsd  %xmm0,%xmm0
divsd  0xbbb(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
call   1070 <cos@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
movsd  (%r15),%xmm0
mulsd  0xbc7(%rip),%xmm0
divsd  0xb8f(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
call   1070 <cos@plt>
movsd  0x40(%rsp),%xmm4
movsd  0x20(%rsp),%xmm1
mulsd  0x10(%rsp),%xmm0
ucomisd %xmm4,%xmm1
jne    14b1 <QuarticMinima+0x351>
jp     14b1 <QuarticMinima+0x351>
movapd 0x30(%rsp),%xmm1
divsd  0xb74(%rip),%xmm1
jmp    158a <QuarticMinima+0x42a>
ucomisd %xmm0,%xmm1
jne    15a8 <QuarticMinima+0x448>
jp     15a8 <QuarticMinima+0x448>
movapd 0x30(%rsp),%xmm0
divsd  0xb51(%rip),%xmm0
addsd  %xmm0,%xmm4
movsd  %xmm4,0x8(%r14)
movsd  %xmm4,(%r14)
jmp    1599 <QuarticMinima+0x439>
call   1080 <sqrt@plt>
xorpd  %xmm2,%xmm2
movapd %xmm0,%xmm1
movapd 0x10(%rsp),%xmm0
ucomisd %xmm2,%xmm0
movsd  %xmm1,0x8(%rsp)
jbe    1544 <QuarticMinima+0x3e4>
mulsd  0xb3e(%rip),%xmm0
movapd %xmm0,0x10(%rsp)
addsd  %xmm1,%xmm0
call   1060 <cbrt@plt>
xorpd  0xb7f(%rip),%xmm0
movapd %xmm0,0x20(%rsp)
movapd 0x10(%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
call   1060 <cbrt@plt>
movapd 0x20(%rsp),%xmm1
subsd  %xmm0,%xmm1
jmp    157c <QuarticMinima+0x41c>
mulsd  0xaf4(%rip),%xmm0
movapd %xmm0,0x10(%rsp)
addsd  %xmm1,%xmm0
call   1060 <cbrt@plt>
movsd  %xmm0,0x20(%rsp)
movapd 0x10(%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
call   1060 <cbrt@plt>
movapd %xmm0,%xmm1
addsd  0x20(%rsp),%xmm1
movapd 0x30(%rsp),%xmm0
divsd  0xa96(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%r14)
movsd  %xmm0,(%r14)
mov    $0x1,%eax
add    $0x50,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret
ucomisd %xmm0,%xmm4
movapd 0x30(%rsp),%xmm3
jne    15c7 <QuarticMinima+0x467>
jp     15c7 <QuarticMinima+0x467>
divsd  0xa62(%rip),%xmm3
addsd  %xmm3,%xmm1
jmp    11b6 <QuarticMinima+0x56>
movapd %xmm4,%xmm2
minsd  %xmm1,%xmm2
maxsd  %xmm1,%xmm4
movapd %xmm0,%xmm1
minsd  %xmm2,%xmm1
maxsd  %xmm4,%xmm0
divsd  0xa21(%rip),%xmm3
subsd  %xmm3,%xmm1
movsd  %xmm1,(%r14)
subsd  %xmm3,%xmm0
movsd  %xmm0,0x8(%r14)
mov    %rbx,%rdi
movapd %xmm1,%xmm0
call   1040 <QuarticValue@plt>
mov    %rax,%r15
movsd  0x8(%r14),%xmm0
mov    %rbx,%rdi
call   1040 <QuarticValue@plt>
mov    %rax,%rcx
mov    $0x2,%eax
cmp    %rcx,%r15
jle    159e <QuarticMinima+0x43e>
movupd (%r14),%xmm0
shufpd $0x1,%xmm0,%xmm0
movupd %xmm0,(%r14)
jmp    159e <QuarticMinima+0x43e>

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

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
define i32 @QuarticMinima(double* %0, double* nocapture %1) {
%3 = getelementptr inbounds double, double* %1, i64 1
%4 = getelementptr inbounds double, double* %0, i64 4
%5 = bitcast double* %1 to i8*
%6 = load double, double* %4
%7 = fcmp olt double %6, 0.000000e+00
br i1 %7, label %170, label %8
8: ; preds = %2
%9 = fcmp oeq double %6, 0.000000e+00
br i1 %9, label %10, label %19
10: ; preds = %8
%11 = getelementptr inbounds double, double* %0, i64 2
%12 = load double, double* %11
%13 = fcmp ugt double %12, 0.000000e+00
br i1 %13, label %14, label %170
14: ; preds = %10
%15 = getelementptr inbounds double, double* %0, i64 1
%16 = load double, double* %15
%17 = fmul double %16, -5.000000e-01
%18 = fdiv double %17, %12
store double %18, double* %3
store double %18, double* %1
br label %170
19: ; preds = %8
%20 = getelementptr inbounds double, double* %0, i64 3
%21 = load double, double* %20
%22 = fmul double %21, 7.500000e-01
%23 = fdiv double %22, %6
%24 = getelementptr inbounds double, double* %0, i64 2
%25 = load double, double* %24
%26 = getelementptr inbounds double, double* %0, i64 1
%27 = load double, double* %26
%28 = insertelement <2 x double> poison, double %25, i64 0
%29 = insertelement <2 x double> %28, double %23, i64 1
%30 = insertelement <2 x double> <double 5.000000e-01, double poison>, double %23, i64 1
%31 = fmul <2 x double> %29, %30
%32 = insertelement <2 x double> <double poison, double 3.000000e+00>, double %6, i64 0
%33 = fdiv <2 x double> %31, %32
%34 = extractelement <2 x double> %33, i64 0
%35 = shufflevector <2 x double> %33, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%36 = fsub <2 x double> %33, %35
%37 = extractelement <2 x double> %36, i64 0
%38 = fmul double %23, 2.000000e+00
%39 = fmul double %23, %38
%40 = insertelement <2 x double> poison, double %27, i64 0
%41 = insertelement <2 x double> %40, double %23, i64 1
%42 = insertelement <2 x double> <double 2.500000e-01, double poison>, double %39, i64 1
%43 = fmul <2 x double> %41, %42
%44 = insertelement <2 x double> <double poison, double 2.700000e+01>, double %6, i64 0
%45 = fdiv <2 x double> %43, %44
%46 = fmul double %23, %34
%47 = fdiv double %46, 3.000000e+00
%48 = extractelement <2 x double> %45, i64 1
%49 = fsub double %48, %47
%50 = extractelement <2 x double> %45, i64 0
%51 = fadd double %50, %49
%52 = fmul double %51, 2.500000e-01
%53 = fmul <2 x double> %36, %36
%54 = fmul <2 x double> %36, %53
%55 = extractelement <2 x double> %54, i64 0
%56 = fdiv double %55, 2.700000e+01
%57 = tail call double @llvm.fmuladd.f64(double %52, double %51, double %56)
%58 = fcmp ugt double %57, 0.000000e+00
br i1 %58, label %121, label %59
59: ; preds = %19
%60 = fdiv double %37, -3.000000e+00
%61 = tail call double @sqrt(double %60)
%62 = fmul double %61, 2.000000e+00
%63 = fmul double %51, 3.000000e+00
%64 = fmul double %37, %62
%65 = fdiv double %63, %64
%66 = fcmp ogt double %65, 1.000000e+00
%67 = select i1 %66, double 1.000000e+00, double %65
%68 = fcmp olt double %67, -1.000000e+00
%69 = select i1 %68, double -1.000000e+00, double %67
%70 = tail call double @acos(double %69)
%71 = fdiv double %70, 3.000000e+00
%72 = tail call double @cos(double %71)
%73 = fmul double %62, %72
%74 = load double, double* @M_PI
%75 = fmul double %74, 2.000000e+00
%76 = fdiv double %75, 3.000000e+00
%77 = fadd double %71, %76
%78 = tail call double @cos(double %77)
%79 = fmul double %62, %78
%80 = load double, double* @M_PI
%81 = fmul double %80, 4.000000e+00
%82 = fdiv double %81, 3.000000e+00
%83 = fadd double %71, %82
%84 = tail call double @cos(double %83)
%85 = fmul double %62, %84
%86 = fcmp oeq double %73, %79
br i1 %86, label %87, label %90
87: ; preds = %59
%88 = fdiv double %23, 3.000000e+00
%89 = fsub double %85, %88
store double %89, double* %3
store double %89, double* %1
br label %170
90: ; preds = %59
%91 = fcmp oeq double %73, %85
br i1 %91, label %92, label %95
92: ; preds = %90
%93 = fdiv double %23, 3.000000e+00
%94 = fsub double %79, %93
store double %94, double* %3
store double %94, double* %1
br label %170
95: ; preds = %90
%96 = fcmp oeq double %79, %85
br i1 %96, label %97, label %100
97: ; preds = %95
%98 = fdiv double %23, 3.000000e+00
%99 = fsub double %73, %98
store double %99, double* %3
store double %99, double* %1
br label %170
100: ; preds = %95
%101 = fcmp olt double %79, %73
%102 = select i1 %101, double %79, double %73
%103 = fcmp ogt double %79, %73
%104 = select i1 %103, double %79, double %73
%105 = fcmp olt double %85, %102
%106 = select i1 %105, double %85, double %102
%107 = fcmp ogt double %85, %104
%108 = select i1 %107, double %85, double %104
%109 = fdiv double %23, 3.000000e+00
%110 = fsub double %106, %109
store double %110, double* %1
%111 = fsub double %108, %109
store double %111, double* %3
%112 = tail call i64 @QuarticValue(double* %0, double %110)
%113 = load double, double* %3
%114 = tail call i64 @QuarticValue(double* %0, double %113)
%115 = icmp sgt i64 %112, %114
br i1 %115, label %116, label %170
116: ; preds = %100
%117 = bitcast double* %1 to <2 x double>*
%118 = load <2 x double>, <2 x double>* %117
%119 = shufflevector <2 x double> %118, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%120 = bitcast double* %1 to <2 x double>*
store <2 x double> %119, <2 x double>* %120
br label %170
121: ; preds = %19
%122 = fcmp ugt double %37, 0.000000e+00
br i1 %122, label %123, label %130
123: ; preds = %121
%124 = tail call i32 @fabs(double 1.000000e+00)
%125 = sitofp i32 %124 to double
%126 = tail call i32 @fabs(double %51)
%127 = sitofp i32 %126 to double
%128 = fmul double %127, 1.000000e-15
%129 = fcmp olt double %128, %125
br i1 %129, label %152, label %166
130: ; preds = %121
%131 = tail call double @sqrt(double %57)
%132 = fcmp ogt double %51, 0.000000e+00
br i1 %132, label %133, label %141
133: ; preds = %130
%134 = tail call double @llvm.fmuladd.f64(double %51, double 5.000000e-01, double %131)
%135 = tail call double @cbrt(double %134)
%136 = fneg double %135
%137 = fneg double %131
%138 = tail call double @llvm.fmuladd.f64(double %51, double 5.000000e-01, double %137)
%139 = tail call double @cbrt(double %138)
%140 = fsub double %136, %139
br label %148
141: ; preds = %130
%142 = tail call double @llvm.fmuladd.f64(double %51, double -5.000000e-01, double %131)
%143 = tail call double @cbrt(double %142)
%144 = fneg double %131
%145 = tail call double @llvm.fmuladd.f64(double %51, double -5.000000e-01, double %144)
%146 = tail call double @cbrt(double %145)
%147 = fadd double %143, %146
br label %148
148: ; preds = %141, %133
%149 = phi double [ %147, %141 ], [ %140, %133 ]
%150 = fdiv double %23, 3.000000e+00
%151 = fsub double %149, %150
store double %151, double* %3
store double %151, double* %1
br label %170
152: ; preds = %123, %152
%153 = phi double [ %159, %152 ], [ 0.000000e+00, %123 ]
%154 = tail call double @llvm.fmuladd.f64(double %153, double %153, double %37)
%155 = tail call double @llvm.fmuladd.f64(double %153, double %154, double %51)
%156 = fmul double %153, 3.000000e+00
%157 = tail call double @llvm.fmuladd.f64(double %156, double %153, double %37)
%158 = fdiv double %155, %157
%159 = fsub double %153, %158
%160 = tail call i32 @fabs(double %155)
%161 = sitofp i32 %160 to double
%162 = tail call i32 @fabs(double %51)
%163 = sitofp i32 %162 to double
%164 = fmul double %163, 1.000000e-15
%165 = fcmp olt double %164, %161
br i1 %165, label %152, label %166
166: ; preds = %152, %123
%167 = phi double [ 0.000000e+00, %123 ], [ %159, %152 ]
%168 = fdiv double %23, 3.000000e+00
%169 = fsub double %167, %168
store double %169, double* %3
store double %169, double* %1
br label %170
170: ; preds = %100, %116, %10, %2, %166, %148, %97, %92, %87, %14
%171 = phi i32 [ 1, %14 ], [ 1, %87 ], [ 1, %92 ], [ 1, %97 ], [ 1, %148 ], [ 1, %166 ], [ 0, %2 ], [ 0, %10 ], [ 2, %116 ], [ 2, %100 ]
ret i32 %171
}