#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 cos(double);
double fabs(double);
double pow(double, double);
double sin(double);
double sqrt(double);
double airy_neg(double x) {
  double z = sqrt(0.37 + pow(fabs(x), 3.0));
  double t = (2.0 / 3.0) * pow(fabs(x), 1.5);
  double y = 0;
  y += (-0.043883564 + 0.3989422 * z) * cos(t) / pow(z, 7.0 / 6.0);
  y += x * (-0.013883003 - 0.3989422 * z) * sin(t) /
       (pow(z, 5.0 / 6.0) * 1.5 * t);
  return y;
}


x86 assembly (clang, -O0):
<airy_neg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movaps 0xef7(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xee3(%rip),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xecb(%rip),%xmm0
addsd  %xmm1,%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movaps 0xec1(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xe65(%rip),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe8d(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe5f(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe5b(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe1a(%rip),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
divsd  %xmm1,%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xddd(%rip),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xdd9(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xd94(%rip),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
movsd  0xd77(%rip),%xmm2
mulsd  %xmm2,%xmm1
mulsd  -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<airy_neg>:
sub    $0x68,%rsp
movapd 0xeb4(%rip),%xmm2
movapd %xmm0,0x50(%rsp)
andpd  %xmm0,%xmm2
movsd  0xeb2(%rip),%xmm1
movapd %xmm2,0x10(%rsp)
movapd %xmm2,%xmm0
call   1050 <pow@plt>
addsd  0xea3(%rip),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1185 <airy_neg+0x45>
sqrtsd %xmm0,%xmm0
jmp    118a <airy_neg+0x4a>
call   1060 <sqrt@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0xe88(%rip),%xmm1
movapd 0x10(%rsp),%xmm0
call   1050 <pow@plt>
mulsd  0xe7d(%rip),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0xe77(%rip),%xmm1
mulsd  0x8(%rsp),%xmm1
addsd  0xe71(%rip),%xmm1
movapd %xmm1,0x10(%rsp)
call   1040 <cos@plt>
movapd %xmm0,0x30(%rsp)
movsd  0xe60(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1050 <pow@plt>
movaps %xmm0,0x40(%rsp)
movsd  0xe50(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  0xe4a(%rip),%xmm0
mulsd  0x50(%rsp),%xmm0
movapd 0x10(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
movapd %xmm1,0x10(%rsp)
movsd  0x28(%rsp),%xmm0
call   1030 <sin@plt>
movapd 0x30(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0x10(%rsp),%xmm1
movapd %xmm1,0x30(%rsp)
movsd  0xe13(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1050 <pow@plt>
mulsd  0xdc8(%rip),%xmm0
mulsd  0x28(%rsp),%xmm0
movapd 0x40(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
movapd 0x30(%rsp),%xmm0
divpd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
add    $0x68,%rsp
ret

LLVM IR (-O0):
define double @airy_neg(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %2
%6 = load double, double* %2
%7 = call double @llvm.fabs.f64(double %6)
%8 = call double @pow(double %7, double 3.000000e+00)
%9 = fadd double 3.700000e-01, %8
%10 = call double @sqrt(double %9)
store double %10, double* %3
%11 = load double, double* %2
%12 = call double @llvm.fabs.f64(double %11)
%13 = call double @pow(double %12, double 1.500000e+00)
%14 = fmul double 0x3FE5555555555555, %13
store double %14, double* %4
store double 0.000000e+00, double* %5
%15 = load double, double* %3
%16 = call double @llvm.fmuladd.f64(double 0x3FD98844DD7FA278, double %15, double 0xBFA677E8106C812A)
%17 = load double, double* %4
%18 = call double @cos(double %17)
%19 = fmul double %16, %18
%20 = load double, double* %3
%21 = call double @pow(double %20, double 0x3FF2AAAAAAAAAAAB)
%22 = fdiv double %19, %21
%23 = load double, double* %5
%24 = fadd double %23, %22
store double %24, double* %5
%25 = load double, double* %2
%26 = load double, double* %3
%27 = call double @llvm.fmuladd.f64(double 0xBFD98844DD7FA278, double %26, double 0xBF8C6EB11ED797BD)
%28 = fmul double %25, %27
%29 = load double, double* %4
%30 = call double @sin(double %29)
%31 = fmul double %28, %30
%32 = load double, double* %3
%33 = call double @pow(double %32, double 0x3FEAAAAAAAAAAAAB)
%34 = fmul double %33, 1.500000e+00
%35 = load double, double* %4
%36 = fmul double %34, %35
%37 = fdiv double %31, %36
%38 = load double, double* %5
%39 = fadd double %38, %37
store double %39, double* %5
%40 = load double, double* %5
ret double %40
}

LLVM IR (-O2):
define double @airy_neg(double %0) {
%2 = tail call double @llvm.fabs.f64(double %0)
%3 = tail call double @pow(double %2, double 3.000000e+00)
%4 = fadd double %3, 3.700000e-01
%5 = tail call double @sqrt(double %4)
%6 = tail call double @pow(double %2, double 1.500000e+00)
%7 = fmul double %6, 0x3FE5555555555555
%8 = tail call double @llvm.fmuladd.f64(double %5, double 0x3FD98844DD7FA278, double 0xBFA677E8106C812A)
%9 = tail call double @cos(double %7)
%10 = tail call double @pow(double %5, double 0x3FF2AAAAAAAAAAAB)
%11 = tail call double @llvm.fmuladd.f64(double %5, double 0xBFD98844DD7FA278, double 0xBF8C6EB11ED797BD)
%12 = fmul double %11, %0
%13 = tail call double @sin(double %7)
%14 = insertelement <2 x double> poison, double %8, i64 0
%15 = insertelement <2 x double> %14, double %12, i64 1
%16 = insertelement <2 x double> poison, double %9, i64 0
%17 = insertelement <2 x double> %16, double %13, i64 1
%18 = fmul <2 x double> %15, %17
%19 = tail call double @pow(double %5, double 0x3FEAAAAAAAAAAAAB)
%20 = fmul double %19, 1.500000e+00
%21 = fmul double %7, %20
%22 = insertelement <2 x double> poison, double %10, i64 0
%23 = insertelement <2 x double> %22, double %21, i64 1
%24 = fdiv <2 x double> %18, %23
%25 = extractelement <2 x double> %24, i64 0
%26 = fadd double %25, 0.000000e+00
%27 = extractelement <2 x double> %24, i64 1
%28 = fadd double %26, %27
ret double %28
}