#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 */
int sqrt(int);
double Ex2y2z2(double l, double m, double n) {
  return sqrt(3) / 2 * l * l * (n * n - l * l / 2) * -0.03753 -
         sqrt(3) * l * l * n * n * 0.02719 +
         sqrt(3) / 4 * l * l * (1 + n * n) * -0.00488;
}


x86 assembly (clang, -O0):
<Ex2y2z2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    $0x3,%edi
call   1030 <sqrt@plt>
mov    $0x2,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm3
movsd  -0x8(%rbp),%xmm2
mulsd  -0x8(%rbp),%xmm2
movsd  0xebd(%rip),%xmm4
divsd  %xmm4,%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    $0x3,%edi
call   1030 <sqrt@plt>
movsd  -0x28(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  0xe5a(%rip),%xmm2
mulsd  %xmm2,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xe2f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    $0x3,%edi
call   1030 <sqrt@plt>
movsd  -0x20(%rbp),%xmm1
mov    $0x4,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm3
mulsd  %xmm3,%xmm2
movsd  0xddf(%rip),%xmm3
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
movsd  0xdc7(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Ex2y2z2>:
sub    $0x28,%rsp
movsd  %xmm2,0x18(%rsp)
movsd  %xmm0,0x8(%rsp)
mov    $0x3,%edi
call   1030 <sqrt@plt>
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm0
movapd %xmm1,%xmm2
mulsd  %xmm1,%xmm2
mulsd  0xeac(%rip),%xmm2
mulsd  %xmm1,%xmm0
movsd  0x18(%rsp),%xmm1
mulsd  %xmm1,%xmm1
movsd  %xmm1,0x20(%rsp)
addsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
movsd  %xmm2,0x10(%rsp)
mov    $0x3,%edi
call   1030 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movsd  0x18(%rsp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  0xe5d(%rip),%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  0xe57(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
mov    $0x3,%edi
call   1030 <sqrt@plt>
lea    0x3(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
sar    $0x2,%ecx
xorps  %xmm1,%xmm1
cvtsi2sd %ecx,%xmm1
movsd  0x8(%rsp),%xmm0
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movsd  0x20(%rsp),%xmm0
addsd  0xe1d(%rip),%xmm0
mulsd  %xmm1,%xmm0
mulsd  0xe19(%rip),%xmm0
addsd  0x10(%rsp),%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @Ex2y2z2(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%7 = call i32 @sqrt(i32 3)
%8 = sdiv i32 %7, 2
%9 = sitofp i32 %8 to double
%10 = load double, double* %4
%11 = fmul double %9, %10
%12 = load double, double* %4
%13 = fmul double %11, %12
%14 = load double, double* %6
%15 = load double, double* %6
%16 = load double, double* %4
%17 = load double, double* %4
%18 = fmul double %16, %17
%19 = fdiv double %18, 2.000000e+00
%20 = fneg double %19
%21 = call double @llvm.fmuladd.f64(double %14, double %15, double %20)
%22 = fmul double %13, %21
%23 = call i32 @sqrt(i32 3)
%24 = sitofp i32 %23 to double
%25 = load double, double* %4
%26 = fmul double %24, %25
%27 = load double, double* %4
%28 = fmul double %26, %27
%29 = load double, double* %6
%30 = fmul double %28, %29
%31 = load double, double* %6
%32 = fmul double %30, %31
%33 = fmul double %32, 2.719000e-02
%34 = fneg double %33
%35 = call double @llvm.fmuladd.f64(double %22, double -3.753000e-02, double %34)
%36 = call i32 @sqrt(i32 3)
%37 = sdiv i32 %36, 4
%38 = sitofp i32 %37 to double
%39 = load double, double* %4
%40 = fmul double %38, %39
%41 = load double, double* %4
%42 = fmul double %40, %41
%43 = load double, double* %6
%44 = load double, double* %6
%45 = call double @llvm.fmuladd.f64(double %43, double %44, double 1.000000e+00)
%46 = fmul double %42, %45
%47 = call double @llvm.fmuladd.f64(double %46, double -4.880000e-03, double %35)
ret double %47
}

LLVM IR (-O2):
define double @Ex2y2z2(double %0, double %1, double %2) {
%4 = tail call i32 @sqrt(i32 3)
%5 = sdiv i32 %4, 2
%6 = sitofp i32 %5 to double
%7 = fmul double %6, %0
%8 = fmul double %7, %0
%9 = fmul double %0, %0
%10 = fmul double %9, -5.000000e-01
%11 = tail call double @llvm.fmuladd.f64(double %2, double %2, double %10)
%12 = fmul double %11, %8
%13 = tail call i32 @sqrt(i32 3)
%14 = sitofp i32 %13 to double
%15 = fmul double %14, %0
%16 = fmul double %15, %0
%17 = fmul double %16, %2
%18 = fmul double %17, %2
%19 = fmul double %18, -2.719000e-02
%20 = tail call double @llvm.fmuladd.f64(double %12, double -3.753000e-02, double %19)
%21 = tail call i32 @sqrt(i32 3)
%22 = sdiv i32 %21, 4
%23 = sitofp i32 %22 to double
%24 = fmul double %23, %0
%25 = fmul double %24, %0
%26 = tail call double @llvm.fmuladd.f64(double %2, double %2, double 1.000000e+00)
%27 = fmul double %26, %25
%28 = tail call double @llvm.fmuladd.f64(double %27, double -4.880000e-03, double %20)
ret double %28
}