#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 const exp(double const);
double const pow(double const, double);
double const sqrt(double);
double HO_deriv_8(const double a, const double x) {
  double retval =
      -pow(a, 0.5e1 / 0.4e1) * sqrt(0.70e2) * exp(-a * x * x / 0.2e1) * x *
      (pow(a, 0.4e1) * pow(x, 0.8e1) - 0.22e2 * pow(a, 0.3e1) * pow(x, 0.6e1) +
       0.273e3 / 0.2e1 * a * a * pow(x, 0.4e1) - 0.525e3 / 0.2e1 * a * x * x +
       0.1785e4 / 0.16e2) *
      pow(0.3141592654e1, -0.1e1 / 0.4e1) / 0.105e3;
  return retval;
}


x86 assembly (clang, -O0):
<HO_deriv_8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xf19(%rip),%xmm1
call   1040 <pow@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xee8(%rip),%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  0xe9c(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
mulsd  %xmm1,%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe40(%rip),%xmm1
call   1040 <pow@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe51(%rip),%xmm1
call   1040 <pow@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe32(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe1a(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xdfc(%rip),%xmm1
call   1040 <pow@plt>
movsd  -0x50(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x40(%rbp),%xmm0
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xdad(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xd89(%rip),%xmm1
call   1040 <pow@plt>
movsd  -0x38(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm1
movaps %xmm0,%xmm3
movsd  -0x28(%rbp),%xmm0
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  0xd5a(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm3
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  0xd1c(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xcf7(%rip),%xmm0
movsd  0xcf7(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xcce(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HO_deriv_8>:
sub    $0x38,%rsp
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x10(%rsp)
movsd  0xec8(%rip),%xmm1
call   1040 <pow@plt>
mulsd  0xec3(%rip),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  0xea9(%rip),%xmm0
call   1030 <exp@plt>
mulsd  0x28(%rsp),%xmm0
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0xe92(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
call   1040 <pow@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0xe81(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1040 <pow@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0xe70(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
call   1040 <pow@plt>
movsd  %xmm0,0x30(%rsp)
movsd  0xe5f(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1040 <pow@plt>
movsd  0x30(%rsp),%xmm1
mulsd  0xe4e(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0x18(%rsp),%xmm1
mulsd  0x20(%rsp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0xe34(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xdea(%rip),%xmm1
call   1040 <pow@plt>
mulsd  0x18(%rsp),%xmm0
addsd  0x20(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  0xdfb(%rip),%xmm1
movsd  0x8(%rsp),%xmm2
mulsd  %xmm2,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
addsd  0xde9(%rip),%xmm0
mulsd  0x28(%rsp),%xmm0
mulsd  0xde3(%rip),%xmm0
divsd  0xde3(%rip),%xmm0
add    $0x38,%rsp
ret

LLVM IR (-O0):
define double @HO_deriv_8(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %3
store double %1, double* %4
%6 = load double, double* %3
%7 = call double @pow(double %6, double 1.250000e+00)
%8 = fneg double %7
%9 = call double @sqrt(double 7.000000e+01)
%10 = fmul double %8, %9
%11 = load double, double* %3
%12 = fneg double %11
%13 = load double, double* %4
%14 = fmul double %12, %13
%15 = load double, double* %4
%16 = fmul double %14, %15
%17 = fdiv double %16, 2.000000e+00
%18 = call double @exp(double %17)
%19 = fmul double %10, %18
%20 = load double, double* %4
%21 = fmul double %19, %20
%22 = load double, double* %3
%23 = call double @pow(double %22, double 4.000000e+00)
%24 = load double, double* %4
%25 = call double @pow(double %24, double 8.000000e+00)
%26 = load double, double* %3
%27 = call double @pow(double %26, double 3.000000e+00)
%28 = fmul double 2.200000e+01, %27
%29 = load double, double* %4
%30 = call double @pow(double %29, double 6.000000e+00)
%31 = fmul double %28, %30
%32 = fneg double %31
%33 = call double @llvm.fmuladd.f64(double %23, double %25, double %32)
%34 = load double, double* %3
%35 = fmul double 1.365000e+02, %34
%36 = load double, double* %3
%37 = fmul double %35, %36
%38 = load double, double* %4
%39 = call double @pow(double %38, double 4.000000e+00)
%40 = call double @llvm.fmuladd.f64(double %37, double %39, double %33)
%41 = load double, double* %3
%42 = fmul double 2.625000e+02, %41
%43 = load double, double* %4
%44 = fmul double %42, %43
%45 = load double, double* %4
%46 = fneg double %44
%47 = call double @llvm.fmuladd.f64(double %46, double %45, double %40)
%48 = fadd double %47, 0x405BE40000000000
%49 = fmul double %21, %48
%50 = call double @pow(double 0x400921FB54524550, double -2.500000e-01)
%51 = fmul double %49, %50
%52 = fdiv double %51, 1.050000e+02
store double %52, double* %5
%53 = load double, double* %5
ret double %53
}

LLVM IR (-O2):
define double @HO_deriv_8(double %0, double %1) {
%3 = tail call double @pow(double %0, double 1.250000e+00)
%4 = fmul double %3, 0xC020BBB307ACAFDB
%5 = fneg double %0
%6 = fmul double %5, %1
%7 = fmul double %6, %1
%8 = fmul double %7, 5.000000e-01
%9 = tail call double @exp(double %8)
%10 = fmul double %4, %9
%11 = fmul double %10, %1
%12 = tail call double @pow(double %0, double 4.000000e+00)
%13 = tail call double @pow(double %1, double 8.000000e+00)
%14 = tail call double @pow(double %0, double 3.000000e+00)
%15 = tail call double @pow(double %1, double 6.000000e+00)
%16 = fmul double %14, -2.200000e+01
%17 = fmul double %16, %15
%18 = tail call double @llvm.fmuladd.f64(double %12, double %13, double %17)
%19 = fmul double %0, 1.365000e+02
%20 = fmul double %19, %0
%21 = tail call double @pow(double %1, double 4.000000e+00)
%22 = tail call double @llvm.fmuladd.f64(double %20, double %21, double %18)
%23 = fmul double %0, -2.625000e+02
%24 = fmul double %23, %1
%25 = tail call double @llvm.fmuladd.f64(double %24, double %1, double %22)
%26 = fadd double %25, 0x405BE40000000000
%27 = fmul double %11, %26
%28 = fmul double %27, 0x3FE809387011FA5F
%29 = fdiv double %28, 1.050000e+02
ret double %29
}