#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 expf(int);
int pow(float, int);
int sqrt(int);
float pdf_for_bivariate_distribution(float x, float x_standard_deviation,
                                     float x_mean, float y,
                                     float y_standard_deviation, float y_mean,
                                     float pearson_product) {
  return (1 / (2 * 3.14159265358979323846 * x_standard_deviation *
               y_standard_deviation * sqrt(1 - pow(pearson_product, 2)))) *
         expf(-(1 / (float)(2 * (1 - pow(pearson_product, 2)))) *
              ((pow(x - x_mean, 2) / pow(x_standard_deviation, 2)) +
               (pow(y - y_mean, 2) / pow(y_standard_deviation, 2)) -
               ((2 * pearson_product * (x - x_mean) * (y - y_mean)) /
                (x_standard_deviation * y_standard_deviation))));
}


x86 assembly (clang, -O0):
<pdf_for_bivariate_distribution>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  %xmm4,-0x14(%rbp)
movss  %xmm5,-0x18(%rbp)
movss  %xmm6,-0x1c(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xea4(%rip),%xmm0
mulsd  %xmm1,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movss  -0x1c(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
mov    $0x1,%edi
sub    %eax,%edi
call   1050 <sqrt@plt>
movsd  -0x40(%rbp),%xmm1
cvtsi2sd %eax,%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe56(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movss  -0x1c(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
mov    %eax,%ecx
mov    $0x1,%eax
sub    %ecx,%eax
shl    $0x1,%eax
cvtsi2ss %eax,%xmm1
movss  0xe22(%rip),%xmm0
divss  %xmm1,%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x34(%rbp)
movss  -0x4(%rbp),%xmm0
subss  -0xc(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
mov    %eax,-0x38(%rbp)
movss  -0x8(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
mov    %eax,%ecx
mov    -0x38(%rbp),%eax
cltd
idiv   %ecx
mov    %eax,-0x2c(%rbp)
movss  -0x10(%rbp),%xmm0
subss  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
mov    %eax,-0x30(%rbp)
movss  -0x14(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movss  -0x34(%rbp),%xmm0
mov    %eax,%ecx
mov    -0x30(%rbp),%eax
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
add    %ecx,%eax
cvtsi2ss %eax,%xmm1
movss  0xd91(%rip),%xmm2
mulss  -0x1c(%rbp),%xmm2
movss  -0x4(%rbp),%xmm3
subss  -0xc(%rbp),%xmm3
mulss  %xmm3,%xmm2
movss  -0x10(%rbp),%xmm3
subss  -0x18(%rbp),%xmm3
mulss  %xmm3,%xmm2
movss  -0x8(%rbp),%xmm3
mulss  -0x14(%rbp),%xmm3
divss  %xmm3,%xmm2
subss  %xmm2,%xmm1
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1030 <expf@plt>
movsd  -0x28(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pdf_for_bivariate_distribution>:
push   %rbp
push   %rbx
sub    $0x58,%rsp
movaps %xmm6,0x20(%rsp)
movss  %xmm5,0x1c(%rsp)
movss  %xmm4,0xc(%rsp)
movss  %xmm3,0x8(%rsp)
movss  %xmm2,0x18(%rsp)
movaps %xmm1,0x30(%rsp)
movss  %xmm0,0x4(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
mulsd  0xe93(%rip),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm4,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
mov    $0x2,%ebx
movaps %xmm6,%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
mov    $0x1,%edi
sub    %eax,%edi
call   1050 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x10(%rsp),%xmm0
movsd  0xe57(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movaps 0x20(%rsp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
add    %eax,%eax
sub    %eax,%ebx
xorps  %xmm0,%xmm0
cvtsi2ss %ebx,%xmm0
movaps %xmm0,0x40(%rsp)
movss  0x4(%rsp),%xmm0
subss  0x18(%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
mov    $0x2,%edi
call   1040 <pow@plt>
mov    %eax,%ebx
movaps 0x30(%rsp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
mov    %eax,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
mov    %eax,%ebx
movss  0x8(%rsp),%xmm0
subss  0x1c(%rsp),%xmm0
movss  %xmm0,0x8(%rsp)
mov    $0x2,%edi
call   1040 <pow@plt>
mov    %eax,%ebp
movss  0xc(%rsp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
mov    %eax,%ecx
mov    %ebp,%eax
cltd
idiv   %ecx
add    %ebx,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movaps 0x20(%rsp),%xmm1
addss  %xmm1,%xmm1
mulss  0x4(%rsp),%xmm1
mulss  0x8(%rsp),%xmm1
movaps %xmm1,%xmm2
movaps 0x30(%rsp),%xmm1
mulss  0xc(%rsp),%xmm1
movaps 0x40(%rsp),%xmm3
unpcklps %xmm1,%xmm3
movaps 0xd90(%rip),%xmm1
unpcklps %xmm2,%xmm1
divps  %xmm3,%xmm1
movaps %xmm1,%xmm2
shufps $0x55,%xmm1,%xmm2
subss  %xmm2,%xmm0
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1030 <expf@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x10(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x58,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define float @pdf_for_bivariate_distribution(float %0, float %1, float %2, float %3, float %4, float %5, float %6) {
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
store float %0, float* %8
store float %1, float* %9
store float %2, float* %10
store float %3, float* %11
store float %4, float* %12
store float %5, float* %13
store float %6, float* %14
%15 = load float, float* %9
%16 = fpext float %15 to double
%17 = fmul double 0x401921FB54442D18, %16
%18 = load float, float* %12
%19 = fpext float %18 to double
%20 = fmul double %17, %19
%21 = load float, float* %14
%22 = call i32 @pow(float %21, i32 2)
%23 = sub nsw i32 1, %22
%24 = call i32 @sqrt(i32 %23)
%25 = sitofp i32 %24 to double
%26 = fmul double %20, %25
%27 = fdiv double 1.000000e+00, %26
%28 = load float, float* %14
%29 = call i32 @pow(float %28, i32 2)
%30 = sub nsw i32 1, %29
%31 = mul nsw i32 2, %30
%32 = sitofp i32 %31 to float
%33 = fdiv float 1.000000e+00, %32
%34 = fneg float %33
%35 = load float, float* %8
%36 = load float, float* %10
%37 = fsub float %35, %36
%38 = call i32 @pow(float %37, i32 2)
%39 = load float, float* %9
%40 = call i32 @pow(float %39, i32 2)
%41 = sdiv i32 %38, %40
%42 = load float, float* %11
%43 = load float, float* %13
%44 = fsub float %42, %43
%45 = call i32 @pow(float %44, i32 2)
%46 = load float, float* %12
%47 = call i32 @pow(float %46, i32 2)
%48 = sdiv i32 %45, %47
%49 = add nsw i32 %41, %48
%50 = sitofp i32 %49 to float
%51 = load float, float* %14
%52 = fmul float 2.000000e+00, %51
%53 = load float, float* %8
%54 = load float, float* %10
%55 = fsub float %53, %54
%56 = fmul float %52, %55
%57 = load float, float* %11
%58 = load float, float* %13
%59 = fsub float %57, %58
%60 = fmul float %56, %59
%61 = load float, float* %9
%62 = load float, float* %12
%63 = fmul float %61, %62
%64 = fdiv float %60, %63
%65 = fsub float %50, %64
%66 = fmul float %34, %65
%67 = fptosi float %66 to i32
%68 = call i32 @expf(i32 %67)
%69 = sitofp i32 %68 to double
%70 = fmul double %27, %69
%71 = fptrunc double %70 to float
ret float %71
}

LLVM IR (-O2):
define float @pdf_for_bivariate_distribution(float %0, float %1, float %2, float %3, float %4, float %5, float %6) {
%8 = fpext float %1 to double
%9 = fmul double %8, 0x401921FB54442D18
%10 = fpext float %4 to double
%11 = fmul double %9, %10
%12 = tail call i32 @pow(float %6, i32 2)
%13 = sub nsw i32 1, %12
%14 = tail call i32 @sqrt(i32 %13)
%15 = sitofp i32 %14 to double
%16 = fmul double %11, %15
%17 = fdiv double 1.000000e+00, %16
%18 = tail call i32 @pow(float %6, i32 2)
%19 = mul i32 %18, -2
%20 = add i32 %19, 2
%21 = sitofp i32 %20 to float
%22 = fsub float %0, %2
%23 = tail call i32 @pow(float %22, i32 2)
%24 = tail call i32 @pow(float %1, i32 2)
%25 = sdiv i32 %23, %24
%26 = fsub float %3, %5
%27 = tail call i32 @pow(float %26, i32 2)
%28 = tail call i32 @pow(float %4, i32 2)
%29 = sdiv i32 %27, %28
%30 = add nsw i32 %29, %25
%31 = sitofp i32 %30 to float
%32 = fmul float %6, 2.000000e+00
%33 = fmul float %22, %32
%34 = fmul float %26, %33
%35 = fmul float %1, %4
%36 = insertelement <2 x float> <float -1.000000e+00, float poison>, float %34, i64 1
%37 = insertelement <2 x float> poison, float %21, i64 0
%38 = insertelement <2 x float> %37, float %35, i64 1
%39 = fdiv <2 x float> %36, %38
%40 = extractelement <2 x float> %39, i64 1
%41 = fsub float %31, %40
%42 = extractelement <2 x float> %39, i64 0
%43 = fmul float %42, %41
%44 = fptosi float %43 to i32
%45 = tail call i32 @expf(i32 %44)
%46 = sitofp i32 %45 to double
%47 = fmul double %17, %46
%48 = fptrunc double %47 to float
ret float %48
}