#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_deriv_12(const double a, const double x) {
  double retval = (-0.64e2 * pow(a, 0.6e1) * pow(x, 0.13e2) +
                   0.2880e4 * pow(a, 0.5e1) * pow(x, 0.11e2) -
                   0.44880e5 * pow(a, 0.4e1) * pow(x, 0.9e1) +
                   0.300960e6 * pow(a, 0.3e1) * pow(x, 0.7e1) -
                   0.873180e6 * a * a * pow(x, 0.5e1) +
                   0.956340e6 * a * pow(x, 0.3e1) - 0.259875e6 * x) *
                  sqrt(0.231e3) * pow(a, 0.5e1 / 0.4e1) *
                  pow(0.3141592654e1, -0.1e1 / 0.4e1) *
                  exp(-a * x * x / 0.2e1) / 0.332640e6;
  return retval;
}


x86 assembly (clang, -O0):
<HO_deriv_12>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xf4e(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xf36(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xf18(%rip),%xmm1
call   1040 <pow@plt>
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
movsd  0xeb6(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xee6(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  0xec5(%rip),%xmm1
call   1040 <pow@plt>
movsd  -0x90(%rbp),%xmm1
ff
movsd  -0x88(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movsd  -0x80(%rbp),%xmm0
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe82(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe6a(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe4c(%rip),%xmm1
call   1040 <pow@plt>
movsd  -0x78(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x70(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xdd9(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xdf1(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xdd3(%rip),%xmm1
call   1040 <pow@plt>
movsd  -0x68(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xda4(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xd80(%rip),%xmm1
call   1040 <pow@plt>
movsd  -0x58(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x50(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xd3a(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xd1b(%rip),%xmm1
call   1040 <pow@plt>
movsd  -0x48(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x40(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xcec(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xccf(%rip),%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xca4(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xc76(%rip),%xmm0
movsd  0xc76(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%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  0xc22(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xbfd(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HO_deriv_12>:
sub    $0x28,%rsp
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x18(%rsp)
movsd  0xec8(%rip),%xmm1
call   1040 <pow@plt>
mulsd  0xec3(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xebe(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1040 <pow@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0xead(%rip),%xmm1
movsd  0x18(%rsp),%xmm0
call   1040 <pow@plt>
mulsd  0xea2(%rip),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0xe9c(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1040 <pow@plt>
mulsd  0x20(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  (%rsp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe77(%rip),%xmm1
movsd  0x18(%rsp),%xmm0
call   1040 <pow@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0xe66(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1040 <pow@plt>
movsd  0x10(%rsp),%xmm1
mulsd  0xe55(%rip),%xmm1
mulsd  %xmm1,%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe47(%rip),%xmm1
movsd  0x18(%rsp),%xmm0
call   1040 <pow@plt>
mulsd  0xe3c(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xe36(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   1040 <pow@plt>
mulsd  0x10(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xdcd(%rip),%xmm1
call   1040 <pow@plt>
movsd  0xe08(%rip),%xmm2
movsd  0x18(%rsp),%xmm1
mulsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
mulsd  %xmm2,%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xdec(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xdb4(%rip),%xmm1
call   1040 <pow@plt>
mulsd  0x10(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  0xdc4(%rip),%xmm1
mulsd  0x8(%rsp),%xmm1
addsd  %xmm1,%xmm0
mulsd  0xdba(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xdb5(%rip),%xmm1
movsd  0x18(%rsp),%xmm0
call   1040 <pow@plt>
mulsd  (%rsp),%xmm0
mulsd  0xda5(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x18(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  0xd8c(%rip),%xmm0
call   1030 <exp@plt>
mulsd  (%rsp),%xmm0
divsd  0xd82(%rip),%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @HO_deriv_12(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 = call double @pow(double %6, double 6.000000e+00)
%8 = fmul double -6.400000e+01, %7
%9 = load double, double* %4
%10 = call double @pow(double %9, double 1.300000e+01)
%11 = load double, double* %3
%12 = call double @pow(double %11, double 5.000000e+00)
%13 = fmul double 2.880000e+03, %12
%14 = load double, double* %4
%15 = call double @pow(double %14, double 1.100000e+01)
%16 = fmul double %13, %15
%17 = call double @llvm.fmuladd.f64(double %8, double %10, double %16)
%18 = load double, double* %3
%19 = call double @pow(double %18, double 4.000000e+00)
%20 = fmul double 4.488000e+04, %19
%21 = load double, double* %4
%22 = call double @pow(double %21, double 9.000000e+00)
%23 = fneg double %20
%24 = call double @llvm.fmuladd.f64(double %23, double %22, double %17)
%25 = load double, double* %3
%26 = call double @pow(double %25, double 3.000000e+00)
%27 = fmul double 3.009600e+05, %26
%28 = load double, double* %4
%29 = call double @pow(double %28, double 7.000000e+00)
%30 = call double @llvm.fmuladd.f64(double %27, double %29, double %24)
%31 = load double, double* %3
%32 = fmul double 8.731800e+05, %31
%33 = load double, double* %3
%34 = fmul double %32, %33
%35 = load double, double* %4
%36 = call double @pow(double %35, double 5.000000e+00)
%37 = fneg double %34
%38 = call double @llvm.fmuladd.f64(double %37, double %36, double %30)
%39 = load double, double* %3
%40 = fmul double 9.563400e+05, %39
%41 = load double, double* %4
%42 = call double @pow(double %41, double 3.000000e+00)
%43 = call double @llvm.fmuladd.f64(double %40, double %42, double %38)
%44 = load double, double* %4
%45 = call double @llvm.fmuladd.f64(double -2.598750e+05, double %44, double %43)
%46 = call double @sqrt(double 2.310000e+02)
%47 = fmul double %45, %46
%48 = load double, double* %3
%49 = call double @pow(double %48, double 1.250000e+00)
%50 = fmul double %47, %49
%51 = call double @pow(double 0x400921FB54524550, double -2.500000e-01)
%52 = fmul double %50, %51
%53 = load double, double* %3
%54 = fneg double %53
%55 = load double, double* %4
%56 = fmul double %54, %55
%57 = load double, double* %4
%58 = fmul double %56, %57
%59 = fdiv double %58, 2.000000e+00
%60 = call double @exp(double %59)
%61 = fmul double %52, %60
%62 = fdiv double %61, 3.326400e+05
store double %62, double* %5
%63 = load double, double* %5
ret double %63
}

LLVM IR (-O2):
define double @HO_deriv_12(double %0, double %1) {
%3 = tail call double @pow(double %0, double 6.000000e+00)
%4 = fmul double %3, -6.400000e+01
%5 = tail call double @pow(double %1, double 1.300000e+01)
%6 = tail call double @pow(double %0, double 5.000000e+00)
%7 = fmul double %6, 2.880000e+03
%8 = tail call double @pow(double %1, double 1.100000e+01)
%9 = fmul double %7, %8
%10 = tail call double @llvm.fmuladd.f64(double %4, double %5, double %9)
%11 = tail call double @pow(double %0, double 4.000000e+00)
%12 = tail call double @pow(double %1, double 9.000000e+00)
%13 = fmul double %11, -4.488000e+04
%14 = tail call double @llvm.fmuladd.f64(double %13, double %12, double %10)
%15 = tail call double @pow(double %0, double 3.000000e+00)
%16 = fmul double %15, 3.009600e+05
%17 = tail call double @pow(double %1, double 7.000000e+00)
%18 = tail call double @llvm.fmuladd.f64(double %16, double %17, double %14)
%19 = tail call double @pow(double %1, double 5.000000e+00)
%20 = fmul double %0, -8.731800e+05
%21 = fmul double %20, %0
%22 = tail call double @llvm.fmuladd.f64(double %21, double %19, double %18)
%23 = fmul double %0, 9.563400e+05
%24 = tail call double @pow(double %1, double 3.000000e+00)
%25 = tail call double @llvm.fmuladd.f64(double %23, double %24, double %22)
%26 = tail call double @llvm.fmuladd.f64(double %1, double -2.598750e+05, double %25)
%27 = fmul double %26, 0x402E65B9EDEBA38E
%28 = tail call double @pow(double %0, double 1.250000e+00)
%29 = fmul double %28, %27
%30 = fmul double %29, 0x3FE809387011FA5F
%31 = fneg double %0
%32 = fmul double %31, %1
%33 = fmul double %32, %1
%34 = fmul double %33, 5.000000e-01
%35 = tail call double @exp(double %34)
%36 = fmul double %35, %30
%37 = fdiv double %36, 3.326400e+05
ret double %37
}