#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 */
float powf(float, int);
float chi2_ppf_95(float dof) {
  if (dof < 20) {
    return 2.10308f + 1.98911f * dof - 0.0464057f * powf(dof, 2) +
           0.00102171f * powf(dof, 3);
  }
  return 9.27863f + 1.157f * dof;
}


x86 assembly (clang, -O0):
<chi2_ppf_95>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x8(%rbp)
movss  0xedb(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    11a8 <chi2_ppf_95+0x98>
movss  -0x8(%rbp),%xmm0
movss  0xed8(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xed0(%rip),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x8(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <powf@plt>
movss  -0x10(%rbp),%xmm1
movss  0xea3(%rip),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
mov    $0x3,%edi
call   1030 <powf@plt>
movss  -0xc(%rbp),%xmm1
movss  0xe76(%rip),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    11ca <chi2_ppf_95+0xba>
movss  -0x8(%rbp),%xmm0
movss  0xe4f(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xe47(%rip),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chi2_ppf_95>:
push   %rax
movss  0xee7(%rip),%xmm1
ucomiss %xmm0,%xmm1
jbe    1178 <chi2_ppf_95+0x68>
movss  0xee6(%rip),%xmm1
mulss  %xmm0,%xmm1
addss  0xede(%rip),%xmm1
movss  %xmm1,(%rsp)
mov    $0x2,%edi
movss  %xmm0,0x4(%rsp)
call   1030 <powf@plt>
mulss  0xec5(%rip),%xmm0
addss  (%rsp),%xmm0
movss  %xmm0,(%rsp)
movss  0x4(%rsp),%xmm0
mov    $0x3,%edi
call   1030 <powf@plt>
mulss  0xea7(%rip),%xmm0
addss  (%rsp),%xmm0
pop    %rax
ret
mulss  0xe84(%rip),%xmm0
addss  0xe80(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @chi2_ppf_95(float %0) {
%2 = alloca float
%3 = alloca float
store float %0, float* %3
%4 = load float, float* %3
%5 = fcmp olt float %4, 2.000000e+01
br i1 %5, label %6, label %15
6: ; preds = %1
%7 = load float, float* %3
%8 = call float @llvm.fmuladd.f32(float 0x3FFFD36500000000, float %7, float 0x4000D31BA0000000)
%9 = load float, float* %3
%10 = call float @powf(float %9, i32 2)
%11 = call float @llvm.fmuladd.f32(float 0xBFA7C27CE0000000, float %10, float %8)
%12 = load float, float* %3
%13 = call float @powf(float %12, i32 3)
%14 = call float @llvm.fmuladd.f32(float 0x3F50BD5CC0000000, float %13, float %11)
store float %14, float* %2
br label %18
15: ; preds = %1
%16 = load float, float* %3
%17 = call float @llvm.fmuladd.f32(float 0x3FF2831260000000, float %16, float 0x40228EA8A0000000)
store float %17, float* %2
br label %18
18: ; preds = %15, %6
%19 = load float, float* %2
ret float %19
}

LLVM IR (-O2):
define float @chi2_ppf_95(float %0) {
%2 = fcmp olt float %0, 2.000000e+01
br i1 %2, label %3, label %9
3: ; preds = %1
%4 = tail call float @llvm.fmuladd.f32(float %0, float 0x3FFFD36500000000, float 0x4000D31BA0000000)
%5 = tail call float @powf(float %0, i32 2)
%6 = tail call float @llvm.fmuladd.f32(float %5, float 0xBFA7C27CE0000000, float %4)
%7 = tail call float @powf(float %0, i32 3)
%8 = tail call float @llvm.fmuladd.f32(float %7, float 0x3F50BD5CC0000000, float %6)
br label %11
9: ; preds = %1
%10 = tail call float @llvm.fmuladd.f32(float %0, float 0x3FF2831260000000, float 0x40228EA8A0000000)
br label %11
11: ; preds = %9, %3
%12 = phi float [ %8, %3 ], [ %10, %9 ]
ret float %12
}