#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 f(double x1, double x2, double x3, double x4, double x5) {
  return exp(-x1 * x1 - x2 * x2 - x3 * x3 - x4 * x4 - x5 * x5);
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  -0x8(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <exp@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
movapd 0xee8(%rip),%xmm5
xorpd  %xmm0,%xmm5
mulsd  %xmm1,%xmm1
mulsd  %xmm5,%xmm0
subsd  %xmm1,%xmm0
mulsd  %xmm2,%xmm2
subsd  %xmm2,%xmm0
mulsd  %xmm3,%xmm3
subsd  %xmm3,%xmm0
mulsd  %xmm4,%xmm4
subsd  %xmm4,%xmm0
jmp    1030 <exp@plt>

LLVM IR (-O0):
define double @f(double %0, double %1, double %2, double %3, double %4) {
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
store double %0, double* %6
store double %1, double* %7
store double %2, double* %8
store double %3, double* %9
store double %4, double* %10
%11 = load double, double* %6
%12 = fneg double %11
%13 = load double, double* %6
%14 = load double, double* %7
%15 = load double, double* %7
%16 = fmul double %14, %15
%17 = fneg double %16
%18 = call double @llvm.fmuladd.f64(double %12, double %13, double %17)
%19 = load double, double* %8
%20 = load double, double* %8
%21 = fneg double %19
%22 = call double @llvm.fmuladd.f64(double %21, double %20, double %18)
%23 = load double, double* %9
%24 = load double, double* %9
%25 = fneg double %23
%26 = call double @llvm.fmuladd.f64(double %25, double %24, double %22)
%27 = load double, double* %10
%28 = load double, double* %10
%29 = fneg double %27
%30 = call double @llvm.fmuladd.f64(double %29, double %28, double %26)
%31 = call double @exp(double %30)
ret double %31
}

LLVM IR (-O2):
define double @f(double %0, double %1, double %2, double %3, double %4) {
%6 = fneg double %0
%7 = fneg double %1
%8 = fmul double %7, %1
%9 = tail call double @llvm.fmuladd.f64(double %6, double %0, double %8)
%10 = fneg double %2
%11 = tail call double @llvm.fmuladd.f64(double %10, double %2, double %9)
%12 = fneg double %3
%13 = tail call double @llvm.fmuladd.f64(double %12, double %3, double %11)
%14 = fneg double %4
%15 = tail call double @llvm.fmuladd.f64(double %14, double %4, double %13)
%16 = tail call double @exp(double %15)
ret double %16
}