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


x86 assembly (clang, -O0):
<HO_8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xf1e(%rip),%xmm0
call   1050 <sqrt@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xeff(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xeac(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xec4(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xea6(%rip),%xmm1
call   1040 <pow@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe87(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe6f(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe51(%rip),%xmm1
call   1040 <pow@plt>
movsd  -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x48(%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,-0x38(%rbp)
movsd  0xdfa(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xde6(%rip),%xmm1
call   1040 <pow@plt>
movsd  -0x40(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm1
movaps %xmm0,%xmm3
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  0xdb7(%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  0xd79(%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  0xd36(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xd04(%rip),%xmm0
movsd  0xd04(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xcdb(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HO_8>:
sub    $0x38,%rsp
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
movsd  0xec8(%rip),%xmm1
call   1040 <pow@plt>
mulsd  0xec3(%rip),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0xebd(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1040 <pow@plt>
mulsd  0xeb2(%rip),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0xeac(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
call   1040 <pow@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0xe9b(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1040 <pow@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0xe8a(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
call   1040 <pow@plt>
movsd  0x18(%rsp),%xmm1
mulsd  0xe79(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0x20(%rsp),%xmm1
mulsd  0x28(%rsp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0xe5f(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x20(%rsp)
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  0xe07(%rip),%xmm1
call   1040 <pow@plt>
mulsd  0x18(%rsp),%xmm0
addsd  0x28(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
mulsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
subsd  %xmm2,%xmm0
addsd  0xe0e(%rip),%xmm0
mulsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  0xdf4(%rip),%xmm0
call   1030 <exp@plt>
mulsd  0x30(%rsp),%xmm0
mulsd  0xde9(%rip),%xmm0
divsd  0xde9(%rip),%xmm0
add    $0x38,%rsp
ret

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

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