#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_4(const double a, const double x) {
  double retval = -pow(a, 0.5e1 / 0.4e1) * sqrt(0.6e1) *
                  (a * a * pow(x, 0.4e1) - 0.7e1 * a * x * x + 0.27e2 / 0.4e1) *
                  exp(-a * x * x / 0.2e1) * x *
                  pow(0.3141592654e1, -0.1e1 / 0.4e1) / 0.3e1;
  return retval;
}


x86 assembly (clang, -O0):
<HO_deriv_4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xef1(%rip),%xmm1
call   1040 <pow@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xec0(%rip),%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe86(%rip),%xmm1
call   1040 <pow@plt>
movsd  -0x38(%rbp),%xmm1
movaps %xmm0,%xmm3
movsd  -0x30(%rbp),%xmm0
movsd  0xe64(%rip),%xmm2
mulsd  -0x8(%rbp),%xmm2
mulsd  -0x10(%rbp),%xmm2
mulsd  -0x10(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  0xe26(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%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  0xde3(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
mulsd  %xmm1,%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xdac(%rip),%xmm0
movsd  0xdac(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xd83(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HO_deriv_4>:
sub    $0x28,%rsp
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x18(%rsp)
movsd  0xec8(%rip),%xmm1
call   1040 <pow@plt>
mulsd  0xec3(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0xead(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
call   1040 <pow@plt>
movsd  0xea2(%rip),%xmm3
movsd  0x18(%rsp),%xmm2
mulsd  %xmm2,%xmm3
movsd  0x10(%rsp),%xmm1
mulsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm3
mulsd  0x20(%rsp),%xmm0
addsd  %xmm3,%xmm0
addsd  0xe80(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movapd %xmm2,%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  0xe68(%rip),%xmm0
call   1030 <exp@plt>
mulsd  0x8(%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
mulsd  0xe57(%rip),%xmm0
divsd  0xe57(%rip),%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @HO_deriv_4(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 6.000000e+00)
%10 = fmul double %8, %9
%11 = load double, double* %3
%12 = load double, double* %3
%13 = fmul double %11, %12
%14 = load double, double* %4
%15 = call double @pow(double %14, double 4.000000e+00)
%16 = load double, double* %3
%17 = fmul double 7.000000e+00, %16
%18 = load double, double* %4
%19 = fmul double %17, %18
%20 = load double, double* %4
%21 = fmul double %19, %20
%22 = fneg double %21
%23 = call double @llvm.fmuladd.f64(double %13, double %15, double %22)
%24 = fadd double %23, 6.750000e+00
%25 = fmul double %10, %24
%26 = load double, double* %3
%27 = fneg double %26
%28 = load double, double* %4
%29 = fmul double %27, %28
%30 = load double, double* %4
%31 = fmul double %29, %30
%32 = fdiv double %31, 2.000000e+00
%33 = call double @exp(double %32)
%34 = fmul double %25, %33
%35 = load double, double* %4
%36 = fmul double %34, %35
%37 = call double @pow(double 0x400921FB54524550, double -2.500000e-01)
%38 = fmul double %36, %37
%39 = fdiv double %38, 3.000000e+00
store double %39, double* %5
%40 = load double, double* %5
ret double %40
}

LLVM IR (-O2):
define double @HO_deriv_4(double %0, double %1) {
%3 = tail call double @pow(double %0, double 1.250000e+00)
%4 = fmul double %3, 0xC003988E1409212E
%5 = fmul double %0, %0
%6 = tail call double @pow(double %1, double 4.000000e+00)
%7 = fmul double %0, -7.000000e+00
%8 = fmul double %7, %1
%9 = fmul double %8, %1
%10 = tail call double @llvm.fmuladd.f64(double %5, double %6, double %9)
%11 = fadd double %10, 6.750000e+00
%12 = fmul double %4, %11
%13 = fneg double %0
%14 = fmul double %13, %1
%15 = fmul double %14, %1
%16 = fmul double %15, 5.000000e-01
%17 = tail call double @exp(double %16)
%18 = fmul double %17, %12
%19 = fmul double %18, %1
%20 = fmul double %19, 0x3FE809387011FA5F
%21 = fdiv double %20, 3.000000e+00
ret double %21
}