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


x86 assembly (clang, -O0):
<HO_deriv_2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xec3(%rip),%xmm1
addsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe8b(%rip),%xmm0
movsd  0xe8b(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe5d(%rip),%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
mulsd  -0x10(%rbp),%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  0xe14(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xde5(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HO_deriv_2>:
sub    $0x18,%rsp
movsd  %xmm0,0x10(%rsp)
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xec6(%rip),%xmm2
addsd  %xmm0,%xmm2
mulsd  0xec2(%rip),%xmm2
mulsd  0xec2(%rip),%xmm2
mulsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
mulsd  0xeb8(%rip),%xmm0
call   1030 <exp@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xea7(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
call   1040 <pow@plt>
mulsd  0x8(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @HO_deriv_2(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 = load double, double* %4
%8 = fmul double %6, %7
%9 = load double, double* %4
%10 = call double @llvm.fmuladd.f64(double %8, double %9, double -2.500000e+00)
%11 = fneg double %10
%12 = call double @pow(double 0x400921FB54524550, double -2.500000e-01)
%13 = fmul double %11, %12
%14 = call double @sqrt(double 2.000000e+00)
%15 = fmul double %13, %14
%16 = load double, double* %4
%17 = fmul double %15, %16
%18 = load double, double* %3
%19 = fneg double %18
%20 = load double, double* %4
%21 = fmul double %19, %20
%22 = load double, double* %4
%23 = fmul double %21, %22
%24 = fdiv double %23, 2.000000e+00
%25 = call double @exp(double %24)
%26 = fmul double %17, %25
%27 = load double, double* %3
%28 = call double @pow(double %27, double 1.250000e+00)
%29 = fmul double %26, %28
store double %29, double* %5
%30 = load double, double* %5
ret double %30
}

LLVM IR (-O2):
define double @HO_deriv_2(double %0, double %1) {
%3 = fmul double %0, %1
%4 = tail call double @llvm.fmuladd.f64(double %3, double %1, double -2.500000e+00)
%5 = fmul double %4, 0xBFE809387011FA5F
%6 = fmul double %5, 0x3FF6A09E667F3BCD
%7 = fmul double %6, %1
%8 = fneg double %0
%9 = fmul double %8, %1
%10 = fmul double %9, %1
%11 = fmul double %10, 5.000000e-01
%12 = tail call double @exp(double %11)
%13 = fmul double %7, %12
%14 = tail call double @pow(double %0, double 1.250000e+00)
%15 = fmul double %13, %14
ret double %15
}