#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_2(const double L, const double x) {
  double retval = (-0.7511255442e0 * L * L + 0.1502251088e1 * x * x) *
                  exp(-0.5000000000e0 * x * x * pow(L, -0.2e1)) *
                  pow(L, -0.5e1 / 0.2e1);
  return retval;
}


x86 assembly (clang, -O0):
<HO_2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xee6(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm2
movsd  0xecc(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xea5(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe81(%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  0xe45(%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    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HO_2>:
sub    $0x18,%rsp
movsd  0xed4(%rip),%xmm3
mulsd  %xmm0,%xmm3
movsd  0xed0(%rip),%xmm2
mulsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm3
movsd  %xmm0,0x10(%rsp)
addsd  %xmm2,%xmm3
movsd  %xmm3,(%rsp)
movsd  0xeb5(%rip),%xmm2
mulsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
movsd  0xea7(%rip),%xmm1
call   1040 <pow@plt>
mulsd  0x8(%rsp),%xmm0
call   1030 <exp@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe8d(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
call   1040 <pow@plt>
mulsd  (%rsp),%xmm0
add    $0x18,%rsp
ret

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

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