#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 dqage(double (*)(double, void *), void *, double, double, double, double,
             int, double *, int *, int *, int *);
double dqag(double f(double, void *), void *cbData, double a, double b,
            double epsabs, double epsrel, int irule, double *abserr, int *neval,
            int *ier) {
  double result;
  int last;
  result =
      dqage(f, cbData, a, b, epsabs, epsrel, irule, abserr, neval, ier, &last);
  return result;
}


x86 assembly (clang, -O0):
<dqag>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
movsd  %xmm1,-0x20(%rbp)
movsd  %xmm2,-0x28(%rbp)
movsd  %xmm3,-0x30(%rbp)
mov    %edx,-0x34(%rbp)
mov    %rcx,-0x40(%rbp)
mov    %r8,-0x48(%rbp)
mov    %r9,-0x50(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
mov    -0x34(%rbp),%edx
mov    -0x40(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x50(%rbp),%r9
lea    -0x5c(%rbp),%rax
mov    %rax,(%rsp)
call   1030 <dqage@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dqag>:
sub    $0x18,%rsp
lea    0x14(%rsp),%rax
mov    %rax,(%rsp)
call   1030 <dqage@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @dqag(double (double, i8*)* %0, i8* %1, double %2, double %3, double %4, double %5, i32 %6, double* %7, i32* %8, i32* %9) {
%11 = alloca double (double, i8*)*
%12 = alloca i8*
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca i32
%18 = alloca double*
%19 = alloca i32*
%20 = alloca i32*
%21 = alloca double
%22 = alloca i32
store double (double, i8*)* %0, double (double, i8*)** %11
store i8* %1, i8** %12
store double %2, double* %13
store double %3, double* %14
store double %4, double* %15
store double %5, double* %16
store i32 %6, i32* %17
store double* %7, double** %18
store i32* %8, i32** %19
store i32* %9, i32** %20
%23 = load double (double, i8*)*, double (double, i8*)** %11
%24 = load i8*, i8** %12
%25 = load double, double* %13
%26 = load double, double* %14
%27 = load double, double* %15
%28 = load double, double* %16
%29 = load i32, i32* %17
%30 = load double*, double** %18
%31 = load i32*, i32** %19
%32 = load i32*, i32** %20
%33 = call double @dqage(double (double, i8*)* %23, i8* %24, double %25, double %26, double %27, double %28, i32 %29, double* %30, i32* %31, i32* %32, i32* %22)
store double %33, double* %21
%34 = load double, double* %21
ret double %34
}

LLVM IR (-O2):
define double @dqag(double (double, i8*)* %0, i8* %1, double %2, double %3, double %4, double %5, i32 %6, double* %7, i32* %8, i32* %9) {
%11 = alloca i32
%12 = bitcast i32* %11 to i8*
%13 = call double @dqage(double (double, i8*)* %0, i8* %1, double %2, double %3, double %4, double %5, i32 %6, double* %7, i32* %8, i32* %9, i32* %11)
ret double %13
}