#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 /*<<< orphan*/ Check_New_Test_Point(double *, double *, double, double);
int /*<<< orphan*/ Left_Interior_Point(double (*)(double), double *, double *);
int Parabolic_Minimum(double *, double *, double *);
int /*<<< orphan*/ Right_Interior_Point(double (*)(double), double *, double *);
scalar_t__ Stopping_Rule(double *, double);
double sqrt(double);
int Min_Search_Parabolic_Interpolation(double (*f)(double), double *x0,
                                       double *fx0, double tolerance) {
  double x[5] = {x0[0], x0[0], x0[1], x0[2], x0[2]};
  double y[5] = {fx0[0], fx0[0], fx0[1], fx0[2], fx0[2]};
  double min_displacement = 0.01 * tolerance;
  double epsilon = 0.333333 * tolerance;
  double xmin, ymin;
  int err = 0;
  if ((x[0] > x[2]) || (x[4] < x[2]))
    return -3;
  if ((y[0] < y[2]) || (y[2] > y[4]))
    return -3;
  if ((y[0] == y[2]) && (y[2] == y[4]))
    return -3;
  if (tolerance <= 0.0)
    tolerance = sqrt(0.00001);
  if (Stopping_Rule(x, tolerance))
    return 0;
  Right_Interior_Point(f, x, y);
  while (!Stopping_Rule(x, tolerance)) {
    err = Parabolic_Minimum(x, y, &xmin);
    if (err)
      break;
    Check_New_Test_Point(x, &xmin, min_displacement, epsilon);
    ymin = f(xmin);
    if (xmin < x[2]) {
      if (ymin >= y[1]) {
        x[0] = xmin;
        y[0] = ymin;
        Left_Interior_Point(f, x, y);
      } else if (ymin >= y[2]) {
        x[0] = x[1];
        y[0] = y[1];
        x[1] = xmin;
        y[1] = ymin;
      } else {
        x[4] = x[3];
        y[4] = y[3];
        x[3] = x[2];
        y[3] = y[2];
        x[2] = xmin;
        y[2] = ymin;
      }
    } else {
      if (ymin >= y[3]) {
        x[4] = xmin;
        y[4] = ymin;
        Right_Interior_Point(f, x, y);
      } else if (ymin >= y[2]) {
        x[4] = x[3];
        y[4] = y[3];
        x[3] = xmin;
        y[3] = ymin;
      } else {
        x[0] = x[1];
        y[0] = y[1];
        x[1] = x[2];
        y[1] = y[2];
        x[2] = xmin;
        y[2] = ymin;
      }
    }
  }
  if (err == 0) {
    x0[0] = x[1];
    x0[1] = x[2];
    x0[2] = x[3];
    fx0[0] = y[1];
    fx0[1] = y[2];
    fx0[2] = y[3];
  }
  return err;
}


x86 assembly (clang, -O0):
<Min_Search_Parabolic_Interpolation>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movsd  %xmm0,-0x28(%rbp)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xdfc(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xddf(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movl   $0x0,-0xa4(%rbp)
movsd  -0x50(%rbp),%xmm0
ucomisd -0x40(%rbp),%xmm0
ja     125c <Min_Search_Parabolic_Interpolation+0xfc>
movsd  -0x30(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1268 <Min_Search_Parabolic_Interpolation+0x108>
movl   $0xfffffffd,-0x4(%rbp)
jmp    15d9 <Min_Search_Parabolic_Interpolation+0x479>
movsd  -0x80(%rbp),%xmm1
movsd  -0x70(%rbp),%xmm0
ucomisd %xmm1,%xmm0
ja     128c <Min_Search_Parabolic_Interpolation+0x12c>
movsd  -0x70(%rbp),%xmm0
ucomisd -0x60(%rbp),%xmm0
jbe    1298 <Min_Search_Parabolic_Interpolation+0x138>
movl   $0xfffffffd,-0x4(%rbp)
jmp    15d9 <Min_Search_Parabolic_Interpolation+0x479>
movsd  -0x80(%rbp),%xmm0
ucomisd -0x70(%rbp),%xmm0
jne    12d0 <Min_Search_Parabolic_Interpolation+0x170>
jp     12d0 <Min_Search_Parabolic_Interpolation+0x170>
movsd  -0x70(%rbp),%xmm0
ucomisd -0x60(%rbp),%xmm0
jne    12d0 <Min_Search_Parabolic_Interpolation+0x170>
jp     12d0 <Min_Search_Parabolic_Interpolation+0x170>
movl   $0xfffffffd,-0x4(%rbp)
jmp    15d9 <Min_Search_Parabolic_Interpolation+0x479>
xorps  %xmm0,%xmm0
ucomisd -0x28(%rbp),%xmm0
jb     12f0 <Min_Search_Parabolic_Interpolation+0x190>
movsd  0xd2a(%rip),%xmm0
call   1070 <sqrt@plt>
movsd  %xmm0,-0x28(%rbp)
lea    -0x50(%rbp),%rdi
movsd  -0x28(%rbp),%xmm0
call   1060 <Stopping_Rule@plt>
cmp    $0x0,%rax
je     1314 <Min_Search_Parabolic_Interpolation+0x1b4>
movl   $0x0,-0x4(%rbp)
jmp    15d9 <Min_Search_Parabolic_Interpolation+0x479>
mov    -0x10(%rbp),%rdi
lea    -0x50(%rbp),%rsi
lea    -0x80(%rbp),%rdx
call   1080 <Right_Interior_Point@plt>
lea    -0x50(%rbp),%rdi
movsd  -0x28(%rbp),%xmm0
call   1060 <Stopping_Rule@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1349 <Min_Search_Parabolic_Interpolation+0x1e9>
jmp    1571 <Min_Search_Parabolic_Interpolation+0x411>
lea    -0x50(%rbp),%rdi
lea    -0x80(%rbp),%rsi
lea    -0x98(%rbp),%rdx
call   1050 <Parabolic_Minimum@plt>
mov    %eax,-0xa4(%rbp)
cmpl   $0x0,-0xa4(%rbp)
je     1375 <Min_Search_Parabolic_Interpolation+0x215>
jmp    1571 <Min_Search_Parabolic_Interpolation+0x411>
lea    -0x50(%rbp),%rdi
movsd  -0x88(%rbp),%xmm0
ff
movsd  -0x90(%rbp),%xmm1
ff
lea    -0x98(%rbp),%rsi
call   1040 <Check_New_Test_Point@plt>
mov    -0x10(%rbp),%rax
movsd  -0x98(%rbp),%xmm0
ff
call   *%rax
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x98(%rbp),%xmm1
ff
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1497 <Min_Search_Parabolic_Interpolation+0x337>
movsd  -0xa0(%rbp),%xmm0
ff
ucomisd -0x78(%rbp),%xmm0
jb     1405 <Min_Search_Parabolic_Interpolation+0x2a5>
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x50(%rbp)
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x80(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x50(%rbp),%rsi
lea    -0x80(%rbp),%rdx
call   1030 <Left_Interior_Point@plt>
jmp    1492 <Min_Search_Parabolic_Interpolation+0x332>
movsd  -0xa0(%rbp),%xmm0
ff
ucomisd -0x70(%rbp),%xmm0
jb     144b <Min_Search_Parabolic_Interpolation+0x2eb>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x48(%rbp)
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x78(%rbp)
jmp    148d <Min_Search_Parabolic_Interpolation+0x32d>
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x40(%rbp)
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x70(%rbp)
jmp    1492 <Min_Search_Parabolic_Interpolation+0x332>
jmp    156c <Min_Search_Parabolic_Interpolation+0x40c>
movsd  -0xa0(%rbp),%xmm0
ff
ucomisd -0x68(%rbp),%xmm0
jb     14da <Min_Search_Parabolic_Interpolation+0x37a>
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x30(%rbp)
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x50(%rbp),%rsi
lea    -0x80(%rbp),%rdx
call   1080 <Right_Interior_Point@plt>
jmp    1567 <Min_Search_Parabolic_Interpolation+0x407>
movsd  -0xa0(%rbp),%xmm0
ff
ucomisd -0x70(%rbp),%xmm0
jb     1520 <Min_Search_Parabolic_Interpolation+0x3c0>
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x38(%rbp)
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x68(%rbp)
jmp    1562 <Min_Search_Parabolic_Interpolation+0x402>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x40(%rbp)
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x70(%rbp)
jmp    1567 <Min_Search_Parabolic_Interpolation+0x407>
jmp    156c <Min_Search_Parabolic_Interpolation+0x40c>
jmp    1325 <Min_Search_Parabolic_Interpolation+0x1c5>
cmpl   $0x0,-0xa4(%rbp)
jne    15d0 <Min_Search_Parabolic_Interpolation+0x470>
movsd  -0x48(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x40(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x38(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0x78(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x70(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x68(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0xa4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Min_Search_Parabolic_Interpolation>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
movapd %xmm0,%xmm5
movupd (%rsi),%xmm4
movlpd %xmm4,0x30(%rsp)
movupd %xmm4,0x38(%rsp)
movsd  0x10(%rsi),%xmm2
movsd  %xmm2,0x48(%rsp)
movsd  %xmm2,0x50(%rsp)
movupd (%rdx),%xmm1
movlpd %xmm1,(%rsp)
movupd %xmm1,0x8(%rsp)
movsd  0x10(%rdx),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  %xmm0,0x20(%rsp)
movapd %xmm4,%xmm3
unpckhpd %xmm4,%xmm3
ucomisd %xmm3,%xmm4
mov    $0xfffffffd,%ebp
ja     1455 <Min_Search_Parabolic_Interpolation+0x305>
ucomisd %xmm2,%xmm3
ja     1455 <Min_Search_Parabolic_Interpolation+0x305>
movapd %xmm1,%xmm2
unpckhpd %xmm1,%xmm2
ucomisd %xmm1,%xmm2
ja     1455 <Min_Search_Parabolic_Interpolation+0x305>
ucomisd %xmm0,%xmm2
ja     1455 <Min_Search_Parabolic_Interpolation+0x305>
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %rdi,%r15
ucomisd %xmm2,%xmm1
jne    1200 <Min_Search_Parabolic_Interpolation+0xb0>
jp     1200 <Min_Search_Parabolic_Interpolation+0xb0>
ucomisd %xmm0,%xmm2
jne    1200 <Min_Search_Parabolic_Interpolation+0xb0>
jnp    1455 <Min_Search_Parabolic_Interpolation+0x305>
xorpd  %xmm1,%xmm1
movapd %xmm5,%xmm0
cmpnlesd %xmm1,%xmm0
movapd %xmm0,%xmm2
andpd  %xmm5,%xmm2
movsd  0xdf3(%rip),%xmm1
andnpd %xmm1,%xmm0
orpd   %xmm2,%xmm0
lea    0x30(%rsp),%rdi
movapd %xmm0,0x60(%rsp)
movapd %xmm5,0x80(%rsp)
call   1060 <Stopping_Rule@plt>
xor    %ebp,%ebp
test   %rax,%rax
jne    1455 <Min_Search_Parabolic_Interpolation+0x305>
lea    0x30(%rsp),%r12
mov    %rsp,%rdx
mov    %r15,%rdi
mov    %r12,%rsi
call   1070 <Right_Interior_Point@plt>
mov    %r12,%rdi
movapd 0x60(%rsp),%xmm0
call   1060 <Stopping_Rule@plt>
test   %rax,%rax
je     129c <Min_Search_Parabolic_Interpolation+0x14c>
movups 0x38(%rsp),%xmm0
movups %xmm0,(%rbx)
movsd  0x48(%rsp),%xmm0
movsd  %xmm0,0x10(%rbx)
movups 0x8(%rsp),%xmm0
movups %xmm0,(%r14)
movsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x10(%r14)
jmp    1455 <Min_Search_Parabolic_Interpolation+0x305>
movsd  0xd5c(%rip),%xmm1
movapd 0x80(%rsp),%xmm0
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x90(%rsp)
mulsd  0xd46(%rip),%xmm0
movapd %xmm0,0x80(%rsp)
lea    0x30(%rsp),%r12
lea    0x78(%rsp),%r13
jmp    1308 <Min_Search_Parabolic_Interpolation+0x1b8>
movsd  %xmm1,0x50(%rsp)
movsd  %xmm0,0x20(%rsp)
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rsp,%rdx
call   1070 <Right_Interior_Point@plt>
movapd 0x60(%rsp),%xmm0
mov    %r12,%rdi
call   1060 <Stopping_Rule@plt>
test   %rax,%rax
jne    126f <Min_Search_Parabolic_Interpolation+0x11f>
mov    %r12,%rdi
mov    %rsp,%rsi
mov    %r13,%rdx
call   1050 <Parabolic_Minimum@plt>
test   %eax,%eax
jne    1453 <Min_Search_Parabolic_Interpolation+0x303>
mov    %r12,%rdi
mov    %r13,%rsi
movsd  0x90(%rsp),%xmm0
movaps 0x80(%rsp),%xmm1
call   1040 <Check_New_Test_Point@plt>
movsd  0x78(%rsp),%xmm0
call   *%r15
movsd  0x78(%rsp),%xmm1
movsd  0x40(%rsp),%xmm2
ucomisd %xmm1,%xmm2
jbe    13a0 <Min_Search_Parabolic_Interpolation+0x250>
movsd  0x8(%rsp),%xmm3
ucomisd %xmm3,%xmm0
jae    13f0 <Min_Search_Parabolic_Interpolation+0x2a0>
movsd  0x10(%rsp),%xmm4
ucomisd %xmm4,%xmm0
jae    140e <Min_Search_Parabolic_Interpolation+0x2be>
movsd  0x48(%rsp),%xmm3
movsd  %xmm3,0x50(%rsp)
movsd  0x18(%rsp),%xmm3
movsd  %xmm3,0x20(%rsp)
movsd  %xmm2,0x48(%rsp)
movsd  %xmm4,0x18(%rsp)
jmp    13df <Min_Search_Parabolic_Interpolation+0x28f>
nopl   0x0(%rax,%rax,1)
movsd  0x18(%rsp),%xmm3
ucomisd %xmm3,%xmm0
jae    12d7 <Min_Search_Parabolic_Interpolation+0x187>
movsd  0x10(%rsp),%xmm4
ucomisd %xmm4,%xmm0
jae    1430 <Min_Search_Parabolic_Interpolation+0x2e0>
movsd  0x38(%rsp),%xmm3
movsd  %xmm3,0x30(%rsp)
movsd  0x8(%rsp),%xmm3
movsd  %xmm3,(%rsp)
movsd  %xmm2,0x38(%rsp)
movsd  %xmm4,0x8(%rsp)
movsd  %xmm1,0x40(%rsp)
movsd  %xmm0,0x10(%rsp)
jmp    12f1 <Min_Search_Parabolic_Interpolation+0x1a1>
movsd  %xmm1,0x30(%rsp)
movsd  %xmm0,(%rsp)
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rsp,%rdx
call   1030 <Left_Interior_Point@plt>
jmp    12f1 <Min_Search_Parabolic_Interpolation+0x1a1>
movsd  0x38(%rsp),%xmm2
movsd  %xmm2,0x30(%rsp)
movsd  %xmm3,(%rsp)
movsd  %xmm1,0x38(%rsp)
movsd  %xmm0,0x8(%rsp)
jmp    12f1 <Min_Search_Parabolic_Interpolation+0x1a1>
movsd  0x48(%rsp),%xmm2
movsd  %xmm2,0x50(%rsp)
movsd  %xmm3,0x20(%rsp)
movsd  %xmm1,0x48(%rsp)
movsd  %xmm0,0x18(%rsp)
jmp    12f1 <Min_Search_Parabolic_Interpolation+0x1a1>
mov    %eax,%ebp
mov    %ebp,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @Min_Search_Parabolic_Interpolation(double (double)* %0, double* %1, double* %2, double %3) {
%5 = alloca i32
%6 = alloca double (double)*
%7 = alloca double*
%8 = alloca double*
%9 = alloca double
%10 = alloca [5 x double]
%11 = alloca [5 x double]
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca i32
store double (double)* %0, double (double)** %6
store double* %1, double** %7
store double* %2, double** %8
store double %3, double* %9
%17 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
%18 = load double*, double** %7
%19 = getelementptr inbounds double, double* %18, i64 0
%20 = load double, double* %19
store double %20, double* %17
%21 = getelementptr inbounds double, double* %17, i64 1
%22 = load double*, double** %7
%23 = getelementptr inbounds double, double* %22, i64 0
%24 = load double, double* %23
store double %24, double* %21
%25 = getelementptr inbounds double, double* %21, i64 1
%26 = load double*, double** %7
%27 = getelementptr inbounds double, double* %26, i64 1
%28 = load double, double* %27
store double %28, double* %25
%29 = getelementptr inbounds double, double* %25, i64 1
%30 = load double*, double** %7
%31 = getelementptr inbounds double, double* %30, i64 2
%32 = load double, double* %31
store double %32, double* %29
%33 = getelementptr inbounds double, double* %29, i64 1
%34 = load double*, double** %7
%35 = getelementptr inbounds double, double* %34, i64 2
%36 = load double, double* %35
store double %36, double* %33
%37 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 0
%38 = load double*, double** %8
%39 = getelementptr inbounds double, double* %38, i64 0
%40 = load double, double* %39
store double %40, double* %37
%41 = getelementptr inbounds double, double* %37, i64 1
%42 = load double*, double** %8
%43 = getelementptr inbounds double, double* %42, i64 0
%44 = load double, double* %43
store double %44, double* %41
%45 = getelementptr inbounds double, double* %41, i64 1
%46 = load double*, double** %8
%47 = getelementptr inbounds double, double* %46, i64 1
%48 = load double, double* %47
store double %48, double* %45
%49 = getelementptr inbounds double, double* %45, i64 1
%50 = load double*, double** %8
%51 = getelementptr inbounds double, double* %50, i64 2
%52 = load double, double* %51
store double %52, double* %49
%53 = getelementptr inbounds double, double* %49, i64 1
%54 = load double*, double** %8
%55 = getelementptr inbounds double, double* %54, i64 2
%56 = load double, double* %55
store double %56, double* %53
%57 = load double, double* %9
%58 = fmul double 1.000000e-02, %57
store double %58, double* %12
%59 = load double, double* %9
%60 = fmul double 3.333330e-01, %59
store double %60, double* %13
store i32 0, i32* %16
%61 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
%62 = load double, double* %61
%63 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 2
%64 = load double, double* %63
%65 = fcmp ogt double %62, %64
br i1 %65, label %72, label %66
66: ; preds = %4
%67 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 4
%68 = load double, double* %67
%69 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 2
%70 = load double, double* %69
%71 = fcmp olt double %68, %70
br i1 %71, label %72, label %73
72: ; preds = %66, %4
store i32 -3, i32* %5
br label %269
73: ; preds = %66
%74 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 0
%75 = load double, double* %74
%76 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 2
%77 = load double, double* %76
%78 = fcmp olt double %75, %77
br i1 %78, label %85, label %79
79: ; preds = %73
%80 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 2
%81 = load double, double* %80
%82 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 4
%83 = load double, double* %82
%84 = fcmp ogt double %81, %83
br i1 %84, label %85, label %86
85: ; preds = %79, %73
store i32 -3, i32* %5
br label %269
86: ; preds = %79
%87 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 0
%88 = load double, double* %87
%89 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 2
%90 = load double, double* %89
%91 = fcmp oeq double %88, %90
br i1 %91, label %92, label %99
92: ; preds = %86
%93 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 2
%94 = load double, double* %93
%95 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 4
%96 = load double, double* %95
%97 = fcmp oeq double %94, %96
br i1 %97, label %98, label %99
98: ; preds = %92
store i32 -3, i32* %5
br label %269
99: ; preds = %92, %86
%100 = load double, double* %9
%101 = fcmp ole double %100, 0.000000e+00
br i1 %101, label %102, label %104
102: ; preds = %99
%103 = call double @sqrt(double 1.000000e-05)
store double %103, double* %9
br label %104
104: ; preds = %102, %99
%105 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
%106 = load double, double* %9
%107 = call i64 @Stopping_Rule(double* %105, double %106)
%108 = icmp ne i64 %107, 0
br i1 %108, label %109, label %110
109: ; preds = %104
store i32 0, i32* %5
br label %269
110: ; preds = %104
%111 = load double (double)*, double (double)** %6
%112 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
%113 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 0
%114 = call i32 @Right_Interior_Point(double (double)* %111, double* %112, double* %113)
br label %115
115: ; preds = %238, %110
%116 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
%117 = load double, double* %9
%118 = call i64 @Stopping_Rule(double* %116, double %117)
%119 = icmp ne i64 %118, 0
%120 = xor i1 %119, true
br i1 %120, label %121, label %239
121: ; preds = %115
%122 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
%123 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 0
%124 = call i32 @Parabolic_Minimum(double* %122, double* %123, double* %14)
store i32 %124, i32* %16
%125 = load i32, i32* %16
%126 = icmp ne i32 %125, 0
br i1 %126, label %127, label %128
127: ; preds = %121
br label %239
128: ; preds = %121
%129 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
%130 = load double, double* %12
%131 = load double, double* %13
%132 = call i32 @Check_New_Test_Point(double* %129, double* %14, double %130, double %131)
%133 = load double (double)*, double (double)** %6
%134 = load double, double* %14
%135 = call double %133(double %134)
store double %135, double* %15
%136 = load double, double* %14
%137 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 2
%138 = load double, double* %137
%139 = fcmp olt double %136, %138
br i1 %139, label %140, label %189
140: ; preds = %128
%141 = load double, double* %15
%142 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 1
%143 = load double, double* %142
%144 = fcmp oge double %141, %143
br i1 %144, label %145, label %154
145: ; preds = %140
%146 = load double, double* %14
%147 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
store double %146, double* %147
%148 = load double, double* %15
%149 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 0
store double %148, double* %149
%150 = load double (double)*, double (double)** %6
%151 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
%152 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 0
%153 = call i32 @Left_Interior_Point(double (double)* %150, double* %151, double* %152)
br label %188
154: ; preds = %140
%155 = load double, double* %15
%156 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 2
%157 = load double, double* %156
%158 = fcmp oge double %155, %157
br i1 %158, label %159, label %170
159: ; preds = %154
%160 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 1
%161 = load double, double* %160
%162 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
store double %161, double* %162
%163 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 1
%164 = load double, double* %163
%165 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 0
store double %164, double* %165
%166 = load double, double* %14
%167 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 1
store double %166, double* %167
%168 = load double, double* %15
%169 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 1
store double %168, double* %169
br label %187
170: ; preds = %154
%171 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 3
%172 = load double, double* %171
%173 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 4
store double %172, double* %173
%174 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 3
%175 = load double, double* %174
%176 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 4
store double %175, double* %176
%177 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 2
%178 = load double, double* %177
%179 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 3
store double %178, double* %179
%180 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 2
%181 = load double, double* %180
%182 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 3
store double %181, double* %182
%183 = load double, double* %14
%184 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 2
store double %183, double* %184
%185 = load double, double* %15
%186 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 2
store double %185, double* %186
br label %187
187: ; preds = %170, %159
br label %188
188: ; preds = %187, %145
br label %238
189: ; preds = %128
%190 = load double, double* %15
%191 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 3
%192 = load double, double* %191
%193 = fcmp oge double %190, %192
br i1 %193, label %194, label %203
194: ; preds = %189
%195 = load double, double* %14
%196 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 4
store double %195, double* %196
%197 = load double, double* %15
%198 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 4
store double %197, double* %198
%199 = load double (double)*, double (double)** %6
%200 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
%201 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 0
%202 = call i32 @Right_Interior_Point(double (double)* %199, double* %200, double* %201)
br label %237
203: ; preds = %189
%204 = load double, double* %15
%205 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 2
%206 = load double, double* %205
%207 = fcmp oge double %204, %206
br i1 %207, label %208, label %219
208: ; preds = %203
%209 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 3
%210 = load double, double* %209
%211 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 4
store double %210, double* %211
%212 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 3
%213 = load double, double* %212
%214 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 4
store double %213, double* %214
%215 = load double, double* %14
%216 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 3
store double %215, double* %216
%217 = load double, double* %15
%218 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 3
store double %217, double* %218
br label %236
219: ; preds = %203
%220 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 1
%221 = load double, double* %220
%222 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
store double %221, double* %222
%223 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 1
%224 = load double, double* %223
%225 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 0
store double %224, double* %225
%226 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 2
%227 = load double, double* %226
%228 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 1
store double %227, double* %228
%229 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 2
%230 = load double, double* %229
%231 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 1
store double %230, double* %231
%232 = load double, double* %14
%233 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 2
store double %232, double* %233
%234 = load double, double* %15
%235 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 2
store double %234, double* %235
br label %236
236: ; preds = %219, %208
br label %237
237: ; preds = %236, %194
br label %238
238: ; preds = %237, %188
br label %115
239: ; preds = %127, %115
%240 = load i32, i32* %16
%241 = icmp eq i32 %240, 0
br i1 %241, label %242, label %267
242: ; preds = %239
%243 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 1
%244 = load double, double* %243
%245 = load double*, double** %7
%246 = getelementptr inbounds double, double* %245, i64 0
store double %244, double* %246
%247 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 2
%248 = load double, double* %247
%249 = load double*, double** %7
%250 = getelementptr inbounds double, double* %249, i64 1
store double %248, double* %250
%251 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 3
%252 = load double, double* %251
%253 = load double*, double** %7
%254 = getelementptr inbounds double, double* %253, i64 2
store double %252, double* %254
%255 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 1
%256 = load double, double* %255
%257 = load double*, double** %8
%258 = getelementptr inbounds double, double* %257, i64 0
store double %256, double* %258
%259 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 2
%260 = load double, double* %259
%261 = load double*, double** %8
%262 = getelementptr inbounds double, double* %261, i64 1
store double %260, double* %262
%263 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 3
%264 = load double, double* %263
%265 = load double*, double** %8
%266 = getelementptr inbounds double, double* %265, i64 2
store double %264, double* %266
br label %267
267: ; preds = %242, %239
%268 = load i32, i32* %16
store i32 %268, i32* %5
br label %269
269: ; preds = %267, %109, %98, %85, %72
%270 = load i32, i32* %5
ret i32 %270
}

LLVM IR (-O2):
define i32 @Min_Search_Parabolic_Interpolation(double (double)* %0, double* nocapture %1, double* nocapture %2, double %3) {
%5 = alloca [5 x double]
%6 = alloca [5 x double]
%7 = alloca double
%8 = bitcast [5 x double]* %5 to i8*
%9 = getelementptr inbounds [5 x double], [5 x double]* %5, i64 0, i64 0
%10 = bitcast double* %1 to <2 x double>*
%11 = load <2 x double>, <2 x double>* %10
%12 = extractelement <2 x double> %11, i64 0
store double %12, double* %9
%13 = getelementptr inbounds [5 x double], [5 x double]* %5, i64 0, i64 1
%14 = getelementptr inbounds [5 x double], [5 x double]* %5, i64 0, i64 2
%15 = bitcast double* %13 to <2 x double>*
store <2 x double> %11, <2 x double>* %15
%16 = getelementptr inbounds [5 x double], [5 x double]* %5, i64 0, i64 3
%17 = getelementptr inbounds double, double* %1, i64 2
%18 = load double, double* %17
store double %18, double* %16
%19 = getelementptr inbounds [5 x double], [5 x double]* %5, i64 0, i64 4
store double %18, double* %19
%20 = bitcast [5 x double]* %6 to i8*
%21 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 0
%22 = bitcast double* %2 to <2 x double>*
%23 = load <2 x double>, <2 x double>* %22
%24 = extractelement <2 x double> %23, i64 0
store double %24, double* %21
%25 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 1
%26 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 2
%27 = bitcast double* %25 to <2 x double>*
store <2 x double> %23, <2 x double>* %27
%28 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 3
%29 = getelementptr inbounds double, double* %2, i64 2
%30 = load double, double* %29
store double %30, double* %28
%31 = getelementptr inbounds [5 x double], [5 x double]* %6, i64 0, i64 4
store double %30, double* %31
%32 = fmul double %3, 1.000000e-02
%33 = fmul double %3, 3.333330e-01
%34 = bitcast double* %7 to i8*
%35 = extractelement <2 x double> %11, i64 1
%36 = fcmp ogt double %12, %35
%37 = fcmp olt double %18, %35
%38 = select i1 %36, i1 true, i1 %37
%39 = extractelement <2 x double> %23, i64 1
%40 = fcmp olt double %24, %39
%41 = select i1 %38, i1 true, i1 %40
%42 = fcmp ogt double %39, %30
%43 = select i1 %41, i1 true, i1 %42
br i1 %43, label %105, label %44
44: ; preds = %4
%45 = fcmp oeq double %24, %39
%46 = fcmp oeq double %39, %30
%47 = select i1 %45, i1 %46, i1 false
br i1 %47, label %105, label %48
48: ; preds = %44
%49 = fcmp ugt double %3, 0.000000e+00
%50 = select i1 %49, double %3, double 0x3F69E7C6E43390B7
%51 = call i64 @Stopping_Rule(double* %9, double %50)
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %105
53: ; preds = %48
%54 = call i32 @Right_Interior_Point(double (double)* %0, double* %9, double* %21)
%55 = call i64 @Stopping_Rule(double* %9, double %50)
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %96
57: ; preds = %53, %93
%58 = call i32 @Parabolic_Minimum(double* %9, double* %21, double* %7)
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %105
60: ; preds = %57
%61 = call i32 @Check_New_Test_Point(double* %9, double* %7, double %32, double %33)
%62 = load double, double* %7
%63 = call double %0(double %62)
%64 = load double, double* %7
%65 = load double, double* %14
%66 = fcmp olt double %64, %65
br i1 %66, label %67, label %80
67: ; preds = %60
%68 = load double, double* %25
%69 = fcmp ult double %63, %68
br i1 %69, label %72, label %70
70: ; preds = %67
store double %64, double* %9
store double %63, double* %21
%71 = call i32 @Left_Interior_Point(double (double)* %0, double* %9, double* %21)
br label %93
72: ; preds = %67
%73 = load double, double* %26
%74 = fcmp ult double %63, %73
br i1 %74, label %77, label %75
75: ; preds = %72
%76 = load double, double* %13
store double %76, double* %9
store double %68, double* %21
store double %64, double* %13
store double %63, double* %25
br label %93
77: ; preds = %72
%78 = load double, double* %16
store double %78, double* %19
%79 = load double, double* %28
store double %79, double* %31
store double %65, double* %16
store double %73, double* %28
store double %64, double* %14
store double %63, double* %26
br label %93
80: ; preds = %60
%81 = load double, double* %28
%82 = fcmp ult double %63, %81
br i1 %82, label %85, label %83
83: ; preds = %80
store double %64, double* %19
store double %63, double* %31
%84 = call i32 @Right_Interior_Point(double (double)* %0, double* %9, double* %21)
br label %93
85: ; preds = %80
%86 = load double, double* %26
%87 = fcmp ult double %63, %86
br i1 %87, label %90, label %88
88: ; preds = %85
%89 = load double, double* %16
store double %89, double* %19
store double %81, double* %31
store double %64, double* %16
store double %63, double* %28
br label %93
90: ; preds = %85
%91 = load double, double* %13
store double %91, double* %9
%92 = load double, double* %25
store double %92, double* %21
store double %65, double* %13
store double %86, double* %25
store double %64, double* %14
store double %63, double* %26
br label %93
93: ; preds = %83, %90, %88, %70, %77, %75
%94 = call i64 @Stopping_Rule(double* %9, double %50)
%95 = icmp eq i64 %94, 0
br i1 %95, label %57, label %96
96: ; preds = %93, %53
%97 = bitcast double* %13 to <2 x double>*
%98 = load <2 x double>, <2 x double>* %97
%99 = bitcast double* %1 to <2 x double>*
store <2 x double> %98, <2 x double>* %99
%100 = load double, double* %16
store double %100, double* %17
%101 = bitcast double* %25 to <2 x double>*
%102 = load <2 x double>, <2 x double>* %101
%103 = bitcast double* %2 to <2 x double>*
store <2 x double> %102, <2 x double>* %103
%104 = load double, double* %28
store double %104, double* %29
br label %105
105: ; preds = %57, %96, %48, %44, %4
%106 = phi i32 [ -3, %4 ], [ -3, %44 ], [ 0, %48 ], [ 0, %96 ], [ %58, %57 ]
ret i32 %106
}