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


x86 assembly (clang, -O0):
<HO_3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xeb6(%rip),%xmm0
call   1050 <sqrt@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xec7(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  0xe99(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xe86(%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  0xe43(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe11(%rip),%xmm0
movsd  0xe11(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xde8(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HO_3>:
sub    $0x18,%rsp
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
movsd  0xec9(%rip),%xmm1
call   1040 <pow@plt>
mulsd  0xec4(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm0
movapd %xmm0,%xmm2
movsd  (%rsp),%xmm3
movapd %xmm3,%xmm0
addsd  %xmm3,%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
addsd  0xea1(%rip),%xmm0
mulsd  %xmm0,%xmm2
movsd  %xmm2,0x10(%rsp)
movapd %xmm3,%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  0xe8b(%rip),%xmm0
call   1030 <exp@plt>
mulsd  0x10(%rsp),%xmm0
mulsd  0xe80(%rip),%xmm0
divsd  0xe80(%rip),%xmm0
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
define double @HO_3(double %0, double %1) {
%3 = tail call double @pow(double %0, double 7.500000e-01)
%4 = fmul double %3, 0x3FFBB67AE8584CAA
%5 = fmul double %4, %1
%6 = fmul double %0, 2.000000e+00
%7 = fmul double %6, %1
%8 = tail call double @llvm.fmuladd.f64(double %7, double %1, double -3.000000e+00)
%9 = fmul double %8, %5
%10 = fneg double %0
%11 = fmul double %10, %1
%12 = fmul double %11, %1
%13 = fmul double %12, 5.000000e-01
%14 = tail call double @exp(double %13)
%15 = fmul double %14, %9
%16 = fmul double %15, 0x3FE809387011FA5F
%17 = fdiv double %16, 3.000000e+00
ret double %17
}