#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 f_bracketing(double *, double *, double *, double *, double, double,
                    double, double, double, double, double, double *, double,
                    double *, double *, double *, double *);
double f_inexact_lsearch(double *x, double *valu, double *valv,
                         double *valedges, double f_val, double *alpha,
                         double alpha_upbd, double *ax, double *avalu,
                         double *avalv, double *avaledges) {
  double sig = 0.1;
  double rho = 0.01;
  double tau1 = 9.0;
  double tau2 = 0.1;
  double tau3 = 0.5;
  double f_lower_bound = -1.0e20;
  double value;
  value = f_bracketing(x, valu, valv, valedges, f_val, sig, rho, tau1, tau2,
                       tau3, f_lower_bound, alpha, alpha_upbd, ax, avalu, avalv,
                       avaledges);
  return value;
}


x86 assembly (clang, -O0):
<f_inexact_lsearch>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movsd  %xmm0,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
movsd  %xmm1,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
movsd  0xebf(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xec2(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xead(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe98(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xe83(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xe6e(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
movsd  -0x28(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm3
movsd  -0x60(%rbp),%xmm4
movsd  -0x68(%rbp),%xmm5
movsd  -0x70(%rbp),%xmm6
mov    -0x30(%rbp),%r8
movsd  -0x38(%rbp),%xmm7
mov    -0x40(%rbp),%r9
mov    0x10(%rbp),%r11
mov    0x18(%rbp),%r10
mov    0x20(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <f_bracketing@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  -0x78(%rbp),%xmm0
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f_inexact_lsearch>:
movaps %xmm1,%xmm7
movsd  0xee5(%rip),%xmm2
movsd  0xee5(%rip),%xmm3
movsd  0xee5(%rip),%xmm1
movsd  0xee5(%rip),%xmm5
movsd  0xee5(%rip),%xmm6
movaps %xmm1,%xmm4
jmp    1030 <f_bracketing@plt>

LLVM IR (-O0):
define double @f_inexact_lsearch(double* %0, double* %1, double* %2, double* %3, double %4, double* %5, double %6, double* %7, double* %8, double* %9, double* %10) {
%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*
%21 = alloca double*
%22 = alloca double*
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
store double* %0, double** %12
store double* %1, double** %13
store double* %2, double** %14
store double* %3, double** %15
store double %4, double* %16
store double* %5, double** %17
store double %6, double* %18
store double* %7, double** %19
store double* %8, double** %20
store double* %9, double** %21
store double* %10, double** %22
store double 1.000000e-01, double* %23
store double 1.000000e-02, double* %24
store double 9.000000e+00, double* %25
store double 1.000000e-01, double* %26
store double 5.000000e-01, double* %27
store double -1.000000e+20, double* %28
%30 = load double*, double** %12
%31 = load double*, double** %13
%32 = load double*, double** %14
%33 = load double*, double** %15
%34 = load double, double* %16
%35 = load double, double* %23
%36 = load double, double* %24
%37 = load double, double* %25
%38 = load double, double* %26
%39 = load double, double* %27
%40 = load double, double* %28
%41 = load double*, double** %17
%42 = load double, double* %18
%43 = load double*, double** %19
%44 = load double*, double** %20
%45 = load double*, double** %21
%46 = load double*, double** %22
%47 = call double @f_bracketing(double* %30, double* %31, double* %32, double* %33, double %34, double %35, double %36, double %37, double %38, double %39, double %40, double* %41, double %42, double* %43, double* %44, double* %45, double* %46)
store double %47, double* %29
%48 = load double, double* %29
ret double %48
}

LLVM IR (-O2):
define double @f_inexact_lsearch(double* %0, double* %1, double* %2, double* %3, double %4, double* %5, double %6, double* %7, double* %8, double* %9, double* %10) {
%12 = tail call double @f_bracketing(double* %0, double* %1, double* %2, double* %3, double %4, double 1.000000e-01, double 1.000000e-02, double 9.000000e+00, double 1.000000e-01, double 5.000000e-01, double -1.000000e+20, double* %5, double %6, double* %7, double* %8, double* %9, double* %10)
ret double %12
}