#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 exp(double const);
double pow(double const, double);
double sqrt(double);
double HO_deriv_6(const double a, const double x) {
  double retval = (-0.8e1 * pow(a, 0.3e1) * pow(x, 0.7e1) +
                   0.108e3 * a * a * pow(x, 0.5e1) -
                   0.330e3 * a * pow(x, 0.3e1) + 0.195e3 * x) *
                  sqrt(0.5e1) * pow(a, 0.5e1 / 0.4e1) *
                  pow(0.3141592654e1, -0.1e1 / 0.4e1) *
                  exp(-a * x * x / 0.2e1) / 0.60e2;
  return retval;
}


x86 assembly (clang, -O0):
<HO_deriv_6>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xee9(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xef9(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xedb(%rip),%xmm1
call   1040 <pow@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  0xec1(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe85(%rip),%xmm1
call   1040 <pow@plt>
movsd  -0x60(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x50(%rbp),%xmm0
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe6d(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe4e(%rip),%xmm1
call   1040 <pow@plt>
movsd  -0x48(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x40(%rbp),%xmm0
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xe08(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xdeb(%rip),%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xdc0(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xd92(%rip),%xmm0
movsd  0xd92(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%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  0xd3e(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xd19(%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_6>:
sub    $0x28,%rsp
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x10(%rsp)
movsd  0xec8(%rip),%xmm1
call   1040 <pow@plt>
mulsd  0xec3(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xebe(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1040 <pow@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0xead(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  0xe99(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1040 <pow@plt>
mulsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
mulsd  (%rsp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xe46(%rip),%xmm1
call   1040 <pow@plt>
movapd %xmm0,%xmm2
movsd  0xe5d(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm1
mulsd  %xmm1,%xmm2
addsd  (%rsp),%xmm2
movsd  0xe4a(%rip),%xmm1
mulsd  0x8(%rsp),%xmm1
addsd  %xmm1,%xmm2
mulsd  0xe40(%rip),%xmm2
movsd  %xmm2,(%rsp)
movsd  0xe3b(%rip),%xmm1
call   1040 <pow@plt>
mulsd  (%rsp),%xmm0
mulsd  0xe31(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  0xe18(%rip),%xmm0
call   1030 <exp@plt>
mulsd  (%rsp),%xmm0
divsd  0xe0e(%rip),%xmm0
add    $0x28,%rsp
ret

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

LLVM IR (-O2):
define double @HO_deriv_6(double %0, double %1) {
%3 = tail call double @pow(double %0, double 3.000000e+00)
%4 = fmul double %3, -8.000000e+00
%5 = tail call double @pow(double %1, double 7.000000e+00)
%6 = fmul double %0, 1.080000e+02
%7 = fmul double %6, %0
%8 = tail call double @pow(double %1, double 5.000000e+00)
%9 = fmul double %7, %8
%10 = tail call double @llvm.fmuladd.f64(double %4, double %5, double %9)
%11 = tail call double @pow(double %1, double 3.000000e+00)
%12 = fmul double %0, -3.300000e+02
%13 = tail call double @llvm.fmuladd.f64(double %12, double %11, double %10)
%14 = tail call double @llvm.fmuladd.f64(double %1, double 1.950000e+02, double %13)
%15 = fmul double %14, 0x4001E3779B97F4A8
%16 = tail call double @pow(double %0, double 1.250000e+00)
%17 = fmul double %16, %15
%18 = fmul double %17, 0x3FE809387011FA5F
%19 = fneg double %0
%20 = fmul double %19, %1
%21 = fmul double %20, %1
%22 = fmul double %21, 5.000000e-01
%23 = tail call double @exp(double %22)
%24 = fmul double %23, %18
%25 = fdiv double %24, 6.000000e+01
ret double %25
}