#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);
double pow(double const, double);
double HO_3(const double L, const double x) {
  double retval =
      (-0.3186755793e1 * x * L * L + 0.2124503862e1 * pow(x, 0.3e1)) *
      exp(-0.5000000000e0 * x * x * pow(L, -0.2e1)) * pow(L, -0.7e1 / 0.2e1);
  return retval;
}


x86 assembly (clang, -O0):
<HO_3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xeee(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xec0(%rip),%xmm1
call   1040 <pow@plt>
movsd  -0x40(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x38(%rbp),%xmm0
movsd  0xe9e(%rip),%xmm1
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe7d(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe59(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %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  0xe1d(%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_3>:
sub    $0x18,%rsp
movapd %xmm1,%xmm2
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x10(%rsp)
movsd  0xec4(%rip),%xmm1
mulsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
movsd  0xeb7(%rip),%xmm1
movapd %xmm2,%xmm0
call   1040 <pow@plt>
movapd %xmm0,%xmm1
mulsd  0xeaa(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
movsd  (%rsp),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm2,%xmm1
movsd  %xmm1,(%rsp)
movsd  0xe92(%rip),%xmm2
movsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
movsd  0xe7e(%rip),%xmm1
call   1040 <pow@plt>
mulsd  0x8(%rsp),%xmm0
call   1030 <exp@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe64(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
call   1040 <pow@plt>
mulsd  (%rsp),%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 = load double, double* %4
%7 = fmul double 0xC0097E79D23A3039, %6
%8 = load double, double* %3
%9 = fmul double %7, %8
%10 = load double, double* %3
%11 = load double, double* %4
%12 = call double @pow(double %11, double 3.000000e+00)
%13 = fmul double 0x4000FEFBE17C2026, %12
%14 = call double @llvm.fmuladd.f64(double %9, double %10, double %13)
%15 = load double, double* %4
%16 = fmul double -5.000000e-01, %15
%17 = load double, double* %4
%18 = fmul double %16, %17
%19 = load double, double* %3
%20 = call double @pow(double %19, double -2.000000e+00)
%21 = fmul double %18, %20
%22 = call double @exp(double %21)
%23 = fmul double %14, %22
%24 = load double, double* %3
%25 = call double @pow(double %24, double -3.500000e+00)
%26 = fmul double %23, %25
store double %26, double* %5
%27 = load double, double* %5
ret double %27
}

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