#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 /*<<< orphan*/ error2(char *);
double sqrt(double);
double PDFt2(double x, double m, double s) {
  double y = (x - m) / s;
  y = 2 + y * y;
  y *= y * y;
  if (y < 1e-300)
    error2("y==0");
  return 1 / (sqrt(y) * s);
}


x86 assembly (clang, -O0):
<PDFt2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
divsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xea7(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe7a(%rip),%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    119d <PDFt2+0x7d>
lea    0xe80(%rip),%rdi
call   1030 <error2@plt>
movsd  -0x20(%rbp),%xmm0
call   1040 <sqrt@plt>
movaps %xmm0,%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  0xe59(%rip),%xmm0
divsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PDFt2>:
sub    $0x18,%rsp
subsd  %xmm1,%xmm0
movsd  %xmm2,0x10(%rsp)
divsd  %xmm2,%xmm0
mulsd  %xmm0,%xmm0
addsd  0xec2(%rip),%xmm0
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xeb6(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1170 <PDFt2+0x50>
lea    0xeb9(%rip),%rdi
movsd  %xmm1,0x8(%rsp)
call   1030 <error2@plt>
movsd  0x8(%rsp),%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jb     1183 <PDFt2+0x63>
xorps  %xmm0,%xmm0
sqrtsd %xmm1,%xmm0
jmp    118c <PDFt2+0x6c>
movapd %xmm1,%xmm0
call   1040 <sqrt@plt>
mulsd  0x10(%rsp),%xmm0
movsd  0xe76(%rip),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"y==0\00"
define double @PDFt2(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%8 = load double, double* %4
%9 = load double, double* %5
%10 = fsub double %8, %9
%11 = load double, double* %6
%12 = fdiv double %10, %11
store double %12, double* %7
%13 = load double, double* %7
%14 = load double, double* %7
%15 = call double @llvm.fmuladd.f64(double %13, double %14, double 2.000000e+00)
store double %15, double* %7
%16 = load double, double* %7
%17 = load double, double* %7
%18 = fmul double %16, %17
%19 = load double, double* %7
%20 = fmul double %19, %18
store double %20, double* %7
%21 = load double, double* %7
%22 = fcmp olt double %21, 1.000000e-300
br i1 %22, label %23, label %25
23: ; preds = %3
%24 = call i32 @error2(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %25
25: ; preds = %23, %3
%26 = load double, double* %7
%27 = call double @sqrt(double %26)
%28 = load double, double* %6
%29 = fmul double %27, %28
%30 = fdiv double 1.000000e+00, %29
ret double %30
}

LLVM IR (-O2):
@.str = [5 x i8] c"y==0\00"
define double @PDFt2(double %0, double %1, double %2) {
%4 = fsub double %0, %1
%5 = fdiv double %4, %2
%6 = tail call double @llvm.fmuladd.f64(double %5, double %5, double 2.000000e+00)
%7 = fmul double %6, %6
%8 = fmul double %6, %7
%9 = fcmp olt double %8, 1.000000e-300
br i1 %9, label %10, label %12
10: ; preds = %3
%11 = tail call i32 @error2(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %12
12: ; preds = %10, %3
%13 = tail call double @sqrt(double %8)
%14 = fmul double %13, %2
%15 = fdiv double 1.000000e+00, %14
ret double %15
}