#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 fabs(float);
int /*<<< orphan*/ log(int);
int /*<<< orphan*/ nrerror(char *);
float sqrt(int /*<<< orphan*/);
float erfinv(float y) {
  float a[4];
  float b[4];
  float c[4];
  float d[2];
  float y0 = 0.7;
  float z;
  float x = 0;
  if (y == -1)
    return -1000;
  if (y == 1)
    return 1000;
  if (fabs(y) > 1)
    nrerror("error in my_math_package/erfinv:\tabs(y) must be <=1\n");
  a[0] = 0.886226899;
  a[1] = -1.645349621;
  a[2] = 0.914624893;
  a[3] = -0.140543331;
  b[0] = -2.118377725;
  b[1] = 1.442710462;
  b[2] = -0.329097515;
  b[3] = 0.012229801;
  c[0] = -1.970840454;
  c[1] = -1.624906493;
  c[2] = 3.429567803;
  c[3] = 1.641345311;
  d[0] = 3.543889200;
  d[1] = 1.637067800;
  if (fabs(y) <= y0) {
    z = y * y;
    x = y * (((a[3] * z + a[2]) * z + a[1]) * z + a[0]) /
        ((((b[3] * z + b[2]) * z + b[1]) * z + b[0]) * z + 1);
    return x;
  }
  if ((y > y0) & (y < 1)) {
    z = sqrt(-log((1 - y) / 2));
    x = (((c[3] * z + c[2]) * z + c[1]) * z + c[0]) /
        ((d[1] * z + d[0]) * z + 1);
    return x;
  }
  if ((-y0 > y) & (y > -1)) {
    z = sqrt(-log((1 + y) / 2));
    x = -(((c[3] * z + c[2]) * z + c[1]) * z + c[0]) /
        ((d[1] * z + d[0]) * z + 1);
    return x;
  }
  return x;
}


x86 assembly (clang, -O0):
<erfinv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movss  %xmm0,-0x8(%rbp)
movss  0xeaf(%rip),%xmm0
movss  %xmm0,-0x4c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0x8(%rbp),%xmm0
movss  0xe91(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    1190 <erfinv+0x50>
jp     1190 <erfinv+0x50>
movss  0xec6(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1559 <erfinv+0x419>
movss  -0x8(%rbp),%xmm0
movss  0xe6b(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    11be <erfinv+0x7e>
jp     11be <erfinv+0x7e>
movss  0xe94(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1559 <erfinv+0x419>
movss  -0x8(%rbp),%xmm0
call   1040 <fabs@plt>
movss  0xe38(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11e5 <erfinv+0xa5>
lea    0xe70(%rip),%rdi
call   1030 <nrerror@plt>
movss  0xe53(%rip),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  0xe42(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  0xe31(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  0xe20(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  0xe0f(%rip),%xmm0
movss  %xmm0,-0x30(%rbp)
movss  0xdfe(%rip),%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  0xded(%rip),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  0xddc(%rip),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  0xdcb(%rip),%xmm0
movss  %xmm0,-0x40(%rbp)
movss  0xdba(%rip),%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  0xda9(%rip),%xmm0
movss  %xmm0,-0x38(%rbp)
movss  0xd98(%rip),%xmm0
movss  %xmm0,-0x34(%rbp)
movss  0xd87(%rip),%xmm0
movss  %xmm0,-0x48(%rbp)
movss  0xd76(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x8(%rbp),%xmm0
call   1040 <fabs@plt>
movaps %xmm0,%xmm1
movss  -0x4c(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     1371 <erfinv+0x231>
movss  -0x8(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x50(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
movss  -0x50(%rbp),%xmm3
movss  -0x18(%rbp),%xmm2
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
movss  -0x50(%rbp),%xmm3
movss  -0x1c(%rbp),%xmm2
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
movss  -0x50(%rbp),%xmm3
movss  -0x20(%rbp),%xmm2
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
mulss  %xmm1,%xmm0
movss  -0x24(%rbp),%xmm1
movss  -0x50(%rbp),%xmm3
movss  -0x28(%rbp),%xmm2
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
movss  -0x50(%rbp),%xmm3
movss  -0x2c(%rbp),%xmm2
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
movss  -0x50(%rbp),%xmm3
movss  -0x30(%rbp),%xmm2
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
movss  -0x50(%rbp),%xmm2
mulss  %xmm2,%xmm1
movss  0xcb3(%rip),%xmm2
addss  %xmm2,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0x54(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1559 <erfinv+0x419>
movss  -0x8(%rbp),%xmm0
ucomiss -0x4c(%rbp),%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%eax
movss  0xc7e(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
seta   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1451 <erfinv+0x311>
movss  0xc5e(%rip),%xmm0
subss  -0x8(%rbp),%xmm0
movss  0xc8d(%rip),%xmm1
divss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1050 <log@plt>
xor    %edi,%edi
sub    %eax,%edi
call   1060 <sqrt@plt>
movss  %xmm0,-0x50(%rbp)
movss  -0x34(%rbp),%xmm0
movss  -0x50(%rbp),%xmm2
movss  -0x38(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x50(%rbp),%xmm2
movss  -0x3c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x50(%rbp),%xmm2
movss  -0x40(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x44(%rbp),%xmm1
movss  -0x50(%rbp),%xmm3
movss  -0x48(%rbp),%xmm2
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
movss  -0x50(%rbp),%xmm2
mulss  %xmm2,%xmm1
movss  0xbd3(%rip),%xmm2
addss  %xmm2,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0x54(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1559 <erfinv+0x419>
movss  -0x4c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
ucomiss -0x8(%rbp),%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%eax
movss  -0x8(%rbp),%xmm0
movss  0xb84(%rip),%xmm1
ucomiss %xmm1,%xmm0
seta   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     154f <erfinv+0x40f>
movss  0xb6d(%rip),%xmm0
addss  -0x8(%rbp),%xmm0
movss  0xb9c(%rip),%xmm1
divss  %xmm1,%xmm0
cvttss2si %xmm0,%edi
call   1050 <log@plt>
xor    %edi,%edi
sub    %eax,%edi
call   1060 <sqrt@plt>
movss  %xmm0,-0x50(%rbp)
movss  -0x34(%rbp),%xmm0
movss  -0x50(%rbp),%xmm2
movss  -0x38(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x50(%rbp),%xmm2
movss  -0x3c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x50(%rbp),%xmm2
movss  -0x40(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  -0x44(%rbp),%xmm1
movss  -0x50(%rbp),%xmm3
movss  -0x48(%rbp),%xmm2
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
movss  -0x50(%rbp),%xmm2
mulss  %xmm2,%xmm1
movss  0xad5(%rip),%xmm2
addss  %xmm2,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0x54(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1559 <erfinv+0x419>
movss  -0x54(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<erfinv>:
sub    $0x28,%rsp
ucomiss 0xec9(%rip),%xmm0
jne    114c <erfinv+0x1c>
jp     114c <erfinv+0x1c>
movss  0xeb9(%rip),%xmm0
add    $0x28,%rsp
ret
movaps %xmm0,%xmm3
ucomiss 0xeb6(%rip),%xmm0
jne    1167 <erfinv+0x37>
jp     1167 <erfinv+0x37>
movss  0xea6(%rip),%xmm0
add    $0x28,%rsp
ret
movaps 0xef2(%rip),%xmm1
andps  %xmm3,%xmm1
ucomiss 0xe94(%rip),%xmm1
jbe    1198 <erfinv+0x68>
lea    0xf2f(%rip),%rdi
movaps %xmm3,0x10(%rsp)
movaps %xmm1,(%rsp)
call   1030 <nrerror@plt>
movaps (%rsp),%xmm1
movaps 0x10(%rsp),%xmm3
movss  0xe70(%rip),%xmm0
ucomiss %xmm1,%xmm0
jae    122f <erfinv+0xff>
ucomiss 0xe60(%rip),%xmm3
jbe    1297 <erfinv+0x167>
movss  0xe4e(%rip),%xmm0
ucomiss %xmm3,%xmm0
jbe    1297 <erfinv+0x167>
subss  %xmm3,%xmm0
mulss  0xe65(%rip),%xmm0
cvttss2si %xmm0,%edi
call   1040 <log@plt>
neg    %eax
mov    %eax,%edi
call   1050 <sqrt@plt>
movss  0xe4f(%rip),%xmm1
mulss  %xmm0,%xmm1
addss  0xe47(%rip),%xmm1
unpcklps %xmm0,%xmm1
movaps 0xe7d(%rip),%xmm2
movss  %xmm0,%xmm2
mulps  %xmm1,%xmm2
addps  0xe7f(%rip),%xmm2
shufps $0x0,%xmm0,%xmm0
mulps  %xmm2,%xmm0
addps  0xe81(%rip),%xmm0
movaps %xmm0,%xmm1
shufps $0x55,%xmm0,%xmm1
divss  %xmm1,%xmm0
add    $0x28,%rsp
ret
movaps %xmm3,%xmm1
mulss  %xmm3,%xmm1
movss  0xdd6(%rip),%xmm0
mulss  %xmm1,%xmm0
addss  0xdce(%rip),%xmm0
mulss  %xmm1,%xmm0
addss  0xdc6(%rip),%xmm0
mulss  %xmm1,%xmm0
addss  0xdbe(%rip),%xmm0
movss  0xdba(%rip),%xmm2
mulss  %xmm1,%xmm2
addss  0xdb2(%rip),%xmm2
mulss  %xmm1,%xmm2
addss  0xdaa(%rip),%xmm2
mulss  %xmm3,%xmm0
mulss  %xmm1,%xmm2
addss  0xd9e(%rip),%xmm2
jmp    1320 <erfinv+0x1f0>
movss  0xd95(%rip),%xmm0
ucomiss %xmm3,%xmm0
xorps  %xmm0,%xmm0
jbe    1330 <erfinv+0x200>
ucomiss 0xd52(%rip),%xmm3
jbe    1330 <erfinv+0x200>
addss  0xd50(%rip),%xmm3
mulss  0xd74(%rip),%xmm3
cvttss2si %xmm3,%edi
call   1040 <log@plt>
neg    %eax
mov    %eax,%edi
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movss  0xd5b(%rip),%xmm0
mulss  %xmm1,%xmm0
addss  0xd53(%rip),%xmm0
mulss  %xmm1,%xmm0
addss  0xd4b(%rip),%xmm0
mulss  %xmm1,%xmm0
addss  0xd43(%rip),%xmm0
xorps  0xd64(%rip),%xmm0
movss  0xd38(%rip),%xmm2
mulss  %xmm1,%xmm2
addss  0xd30(%rip),%xmm2
mulss  %xmm1,%xmm2
addss  0xce0(%rip),%xmm2
divss  %xmm2,%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
@.str = [53 x i8] c"error in my_math_package/erfinv:\09abs(y) must be <=1\0A\00"
define float @erfinv(float %0) {
%2 = alloca float
%3 = alloca float
%4 = alloca [4 x float]
%5 = alloca [4 x float]
%6 = alloca [4 x float]
%7 = alloca [2 x float]
%8 = alloca float
%9 = alloca float
%10 = alloca float
store float %0, float* %3
store float 0x3FE6666660000000, float* %8
store float 0.000000e+00, float* %10
%11 = load float, float* %3
%12 = fcmp oeq float %11, -1.000000e+00
br i1 %12, label %13, label %14
13: ; preds = %1
store float -1.000000e+03, float* %2
br label %169
14: ; preds = %1
%15 = load float, float* %3
%16 = fcmp oeq float %15, 1.000000e+00
br i1 %16, label %17, label %18
17: ; preds = %14
store float 1.000000e+03, float* %2
br label %169
18: ; preds = %14
%19 = load float, float* %3
%20 = call float @fabs(float %19)
%21 = fcmp ogt float %20, 1.000000e+00
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = call i32 @nrerror(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
br label %24
24: ; preds = %22, %18
%25 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 0
store float 0x3FEC5BF880000000, float* %25
%26 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 1
store float 0xBFFA535A20000000, float* %26
%27 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 2
store float 0x3FED449B60000000, float* %27
%28 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 3
store float 0xBFC1FD52E0000000, float* %28
%29 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 0
store float 0xC000F27000000000, float* %29
%30 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 1
store float 0x3FF71557A0000000, float* %30
%31 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 2
store float 0xBFD50FEF00000000, float* %31
%32 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 3
store float 0x3F890BF020000000, float* %32
%33 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 0
store float 0xBFFF889000000000, float* %33
%34 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 1
store float 0xBFF9FF9E00000000, float* %34
%35 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 2
store float 0x400B6FC140000000, float* %35
%36 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 3
store float 0x3FFA42F340000000, float* %36
%37 = getelementptr inbounds [2 x float], [2 x float]* %7, i64 0, i64 0
store float 0x400C59E2A0000000, float* %37
%38 = getelementptr inbounds [2 x float], [2 x float]* %7, i64 0, i64 1
store float 0x3FFA316E00000000, float* %38
%39 = load float, float* %3
%40 = call float @fabs(float %39)
%41 = load float, float* %8
%42 = fcmp ole float %40, %41
br i1 %42, label %43, label %81
43: ; preds = %24
%44 = load float, float* %3
%45 = load float, float* %3
%46 = fmul float %44, %45
store float %46, float* %9
%47 = load float, float* %3
%48 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 3
%49 = load float, float* %48
%50 = load float, float* %9
%51 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 2
%52 = load float, float* %51
%53 = call float @llvm.fmuladd.f32(float %49, float %50, float %52)
%54 = load float, float* %9
%55 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 1
%56 = load float, float* %55
%57 = call float @llvm.fmuladd.f32(float %53, float %54, float %56)
%58 = load float, float* %9
%59 = getelementptr inbounds [4 x float], [4 x float]* %4, i64 0, i64 0
%60 = load float, float* %59
%61 = call float @llvm.fmuladd.f32(float %57, float %58, float %60)
%62 = fmul float %47, %61
%63 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 3
%64 = load float, float* %63
%65 = load float, float* %9
%66 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 2
%67 = load float, float* %66
%68 = call float @llvm.fmuladd.f32(float %64, float %65, float %67)
%69 = load float, float* %9
%70 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 1
%71 = load float, float* %70
%72 = call float @llvm.fmuladd.f32(float %68, float %69, float %71)
%73 = load float, float* %9
%74 = getelementptr inbounds [4 x float], [4 x float]* %5, i64 0, i64 0
%75 = load float, float* %74
%76 = call float @llvm.fmuladd.f32(float %72, float %73, float %75)
%77 = load float, float* %9
%78 = call float @llvm.fmuladd.f32(float %76, float %77, float 1.000000e+00)
%79 = fdiv float %62, %78
store float %79, float* %10
%80 = load float, float* %10
store float %80, float* %2
br label %169
81: ; preds = %24
%82 = load float, float* %3
%83 = load float, float* %8
%84 = fcmp ogt float %82, %83
%85 = zext i1 %84 to i32
%86 = load float, float* %3
%87 = fcmp olt float %86, 1.000000e+00
%88 = zext i1 %87 to i32
%89 = and i32 %85, %88
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %123
91: ; preds = %81
%92 = load float, float* %3
%93 = fsub float 1.000000e+00, %92
%94 = fdiv float %93, 2.000000e+00
%95 = fptosi float %94 to i32
%96 = call i32 @log(i32 %95)
%97 = sub nsw i32 0, %96
%98 = call float @sqrt(i32 %97)
store float %98, float* %9
%99 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 3
%100 = load float, float* %99
%101 = load float, float* %9
%102 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 2
%103 = load float, float* %102
%104 = call float @llvm.fmuladd.f32(float %100, float %101, float %103)
%105 = load float, float* %9
%106 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 1
%107 = load float, float* %106
%108 = call float @llvm.fmuladd.f32(float %104, float %105, float %107)
%109 = load float, float* %9
%110 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 0
%111 = load float, float* %110
%112 = call float @llvm.fmuladd.f32(float %108, float %109, float %111)
%113 = getelementptr inbounds [2 x float], [2 x float]* %7, i64 0, i64 1
%114 = load float, float* %113
%115 = load float, float* %9
%116 = getelementptr inbounds [2 x float], [2 x float]* %7, i64 0, i64 0
%117 = load float, float* %116
%118 = call float @llvm.fmuladd.f32(float %114, float %115, float %117)
%119 = load float, float* %9
%120 = call float @llvm.fmuladd.f32(float %118, float %119, float 1.000000e+00)
%121 = fdiv float %112, %120
store float %121, float* %10
%122 = load float, float* %10
store float %122, float* %2
br label %169
123: ; preds = %81
%124 = load float, float* %8
%125 = fneg float %124
%126 = load float, float* %3
%127 = fcmp ogt float %125, %126
%128 = zext i1 %127 to i32
%129 = load float, float* %3
%130 = fcmp ogt float %129, -1.000000e+00
%131 = zext i1 %130 to i32
%132 = and i32 %128, %131
%133 = icmp ne i32 %132, 0
br i1 %133, label %134, label %167
134: ; preds = %123
%135 = load float, float* %3
%136 = fadd float 1.000000e+00, %135
%137 = fdiv float %136, 2.000000e+00
%138 = fptosi float %137 to i32
%139 = call i32 @log(i32 %138)
%140 = sub nsw i32 0, %139
%141 = call float @sqrt(i32 %140)
store float %141, float* %9
%142 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 3
%143 = load float, float* %142
%144 = load float, float* %9
%145 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 2
%146 = load float, float* %145
%147 = call float @llvm.fmuladd.f32(float %143, float %144, float %146)
%148 = load float, float* %9
%149 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 1
%150 = load float, float* %149
%151 = call float @llvm.fmuladd.f32(float %147, float %148, float %150)
%152 = load float, float* %9
%153 = getelementptr inbounds [4 x float], [4 x float]* %6, i64 0, i64 0
%154 = load float, float* %153
%155 = call float @llvm.fmuladd.f32(float %151, float %152, float %154)
%156 = fneg float %155
%157 = getelementptr inbounds [2 x float], [2 x float]* %7, i64 0, i64 1
%158 = load float, float* %157
%159 = load float, float* %9
%160 = getelementptr inbounds [2 x float], [2 x float]* %7, i64 0, i64 0
%161 = load float, float* %160
%162 = call float @llvm.fmuladd.f32(float %158, float %159, float %161)
%163 = load float, float* %9
%164 = call float @llvm.fmuladd.f32(float %162, float %163, float 1.000000e+00)
%165 = fdiv float %156, %164
store float %165, float* %10
%166 = load float, float* %10
store float %166, float* %2
br label %169
167: ; preds = %123
%168 = load float, float* %10
store float %168, float* %2
br label %169
169: ; preds = %167, %134, %91, %43, %17, %13
%170 = load float, float* %2
ret float %170
}

LLVM IR (-O2):
@.str = [53 x i8] c"error in my_math_package/erfinv:\09abs(y) must be <=1\0A\00"
define float @erfinv(float %0) {
%2 = fcmp oeq float %0, -1.000000e+00
br i1 %2, label %63, label %3
3: ; preds = %1
%4 = fcmp oeq float %0, 1.000000e+00
br i1 %4, label %63, label %5
5: ; preds = %3
%6 = tail call float @llvm.fabs.f32(float %0)
%7 = fcmp ogt float %6, 1.000000e+00
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = tail call i32 @nrerror(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8, %5
%11 = fcmp ugt float %6, 0x3FE6666660000000
br i1 %11, label %23, label %12
12: ; preds = %10
%13 = fmul float %0, %0
%14 = tail call float @llvm.fmuladd.f32(float %13, float 0xBFC1FD52E0000000, float 0x3FED449B60000000)
%15 = tail call float @llvm.fmuladd.f32(float %14, float %13, float 0xBFFA535A20000000)
%16 = tail call float @llvm.fmuladd.f32(float %15, float %13, float 0x3FEC5BF880000000)
%17 = fmul float %16, %0
%18 = tail call float @llvm.fmuladd.f32(float %13, float 0x3F890BF020000000, float 0xBFD50FEF00000000)
%19 = tail call float @llvm.fmuladd.f32(float %18, float %13, float 0x3FF71557A0000000)
%20 = tail call float @llvm.fmuladd.f32(float %19, float %13, float 0xC000F27000000000)
%21 = tail call float @llvm.fmuladd.f32(float %20, float %13, float 1.000000e+00)
%22 = fdiv float %17, %21
br label %63
23: ; preds = %10
%24 = fcmp ogt float %0, 0x3FE6666660000000
%25 = fcmp olt float %0, 1.000000e+00
%26 = and i1 %24, %25
br i1 %26, label %27, label %45
27: ; preds = %23
%28 = fsub float 1.000000e+00, %0
%29 = fmul float %28, 5.000000e-01
%30 = fptosi float %29 to i32
%31 = tail call i32 @log(i32 %30)
%32 = sub nsw i32 0, %31
%33 = tail call float @sqrt(i32 %32)
%34 = tail call float @llvm.fmuladd.f32(float %33, float 0x3FFA42F340000000, float 0x400B6FC140000000)
%35 = insertelement <2 x float> poison, float %34, i64 0
%36 = insertelement <2 x float> %35, float %33, i64 1
%37 = insertelement <2 x float> <float poison, float 0x3FFA316E00000000>, float %33, i64 0
%38 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %36, <2 x float> %37, <2 x float> <float 0xBFF9FF9E00000000, float 0x400C59E2A0000000>)
%39 = insertelement <2 x float> poison, float %33, i64 0
%40 = shufflevector <2 x float> %39, <2 x float> poison, <2 x i32> zeroinitializer
%41 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %38, <2 x float> %40, <2 x float> <float 0xBFFF889000000000, float 1.000000e+00>)
%42 = extractelement <2 x float> %41, i64 0
%43 = extractelement <2 x float> %41, i64 1
%44 = fdiv float %42, %43
br label %63
45: ; preds = %23
%46 = fcmp olt float %0, 0xBFE6666660000000
%47 = fcmp ogt float %0, -1.000000e+00
%48 = and i1 %46, %47
br i1 %48, label %49, label %63
49: ; preds = %45
%50 = fadd float %0, 1.000000e+00
%51 = fmul float %50, 5.000000e-01
%52 = fptosi float %51 to i32
%53 = tail call i32 @log(i32 %52)
%54 = sub nsw i32 0, %53
%55 = tail call float @sqrt(i32 %54)
%56 = tail call float @llvm.fmuladd.f32(float %55, float 0x3FFA42F340000000, float 0x400B6FC140000000)
%57 = tail call float @llvm.fmuladd.f32(float %56, float %55, float 0xBFF9FF9E00000000)
%58 = tail call float @llvm.fmuladd.f32(float %57, float %55, float 0xBFFF889000000000)
%59 = fneg float %58
%60 = tail call float @llvm.fmuladd.f32(float %55, float 0x3FFA316E00000000, float 0x400C59E2A0000000)
%61 = tail call float @llvm.fmuladd.f32(float %60, float %55, float 1.000000e+00)
%62 = fdiv float %59, %61
br label %63
63: ; preds = %45, %3, %1, %49, %27, %12
%64 = phi float [ %22, %12 ], [ %44, %27 ], [ %62, %49 ], [ -1.000000e+03, %1 ], [ 1.000000e+03, %3 ], [ 0.000000e+00, %45 ]
ret float %64
}