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


x86 assembly (clang, -O0):
<Exzz2>:
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>
cvtsi2sd %eax,%xmm0
mulsd  -0x18(%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  -0x18(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm2
movsd  -0x8(%rbp),%xmm4
movsd  -0x18(%rbp),%xmm3
mulsd  -0x18(%rbp),%xmm3
movq   %xmm3,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm3
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
movsd  0xe2d(%rip),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xe19(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    $0x3,%edi
call   1030 <sqrt@plt>
movsd  -0x20(%rbp),%xmm1
mov    $0x2,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xdb6(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Exzz2>:
sub    $0x28,%rsp
movsd  %xmm2,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
mov    $0x3,%edi
call   1030 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0x8(%rsp),%xmm2
mulsd  %xmm2,%xmm0
movapd %xmm2,%xmm3
mulsd  %xmm2,%xmm3
movsd  %xmm3,0x20(%rsp)
movsd  0xea5(%rip),%xmm2
mulsd  %xmm3,%xmm2
mulsd  %xmm1,%xmm1
movsd  %xmm1,0x18(%rsp)
addsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
movsd  %xmm2,(%rsp)
mov    $0x3,%edi
call   1030 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x8(%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
subsd  0x18(%rsp),%xmm1
mulsd  %xmm0,%xmm1
mulsd  0xe5d(%rip),%xmm1
movsd  (%rsp),%xmm0
mulsd  0xe58(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%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
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  0x10(%rsp),%xmm0
mulsd  0xe1d(%rip),%xmm0
addsd  (%rsp),%xmm0
add    $0x28,%rsp
ret

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

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