#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 log(int);
double sqrt(int);
double inverseCDF(double value) {
  double c1[6] = {-3.969683028665376e+01, 2.209460984245205e+02,
                  -2.759285104469687e+02, 1.383577518672690e+02,
                  -3.066479806614716e+01, 2.506628277459239e+00};
  double c2[5] = {-5.447609879822406e+01, 1.615858368580409e+02,
                  -1.556989798598866e+02, 6.680131188771972e+01,
                  -1.328068155288572e+01};
  double c3[6] = {-7.784894002430293e-03, -3.223964580411365e-01,
                  -2.400758277161838e+00, -2.549732539343734e+00,
                  4.374664141464968e+00,  2.938163982698783e+00};
  double c4[4] = {7.784695709041462e-03, 3.224671290700398e-01,
                  2.445134137142996e+00, 3.754408661907416e+00};
  double p_low = 0.02425;
  double p_high = 1 - p_low;
  double val1, val2;
  if (value <= 0)
    value = -40;
  else if (value >= 1)
    value = 40;
  else if (value < p_low) {
    val1 = sqrt(-2 * log(value));
    value =
        (((((c3[0] * val1 + c3[1]) * val1 + c3[2]) * val1 + c3[3]) * val1 +
          c3[4]) *
             val1 +
         c3[5]) /
        ((((c4[0] * val1 + c4[1]) * val1 + c4[2]) * val1 + c4[3]) * val1 + 1);
  } else if (value > p_high) {
    val1 = sqrt(-2 * log(1 - value));
    value =
        -1 *
        (((((c3[0] * val1 + c3[1]) * val1 + c3[2]) * val1 + c3[3]) * val1 +
          c3[4]) *
             val1 +
         c3[5]) /
        ((((c4[0] * val1 + c4[1]) * val1 + c4[2]) * val1 + c4[3]) * val1 + 1);
  } else {
    val2 = value - 0.5;
    val1 = val2 * val2;
    value = (((((c1[0] * val1 + c1[1]) * val1 + c1[2]) * val1 + c1[3]) * val1 +
              c1[4]) *
                 val1 +
             c1[5]) *
            val2 /
            (((((c2[0] * val1 + c2[1]) * val1 + c2[2]) * val1 + c2[3]) * val1 +
              c2[4]) *
                 val1 +
             1);
  }
  return value;
}


x86 assembly (clang, -O0):
<inverseCDF>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movsd  %xmm0,-0x8(%rbp)
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1030 <memset@plt>
movsd  0xf38(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xf23(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xf0e(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xef9(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xee4(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xecf(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
movsd  0xeaa(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xe95(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xe80(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xe6b(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe56(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1030 <memset@plt>
movsd  0xe2e(%rip),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xe16(%rip),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  0xdfe(%rip),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xde6(%rip),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xdce(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xdb9(%rip),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    0xe5d(%rip),%rax
mov    %rax,-0xc0(%rbp)
mov    0xe57(%rip),%rax
mov    %rax,-0xb8(%rbp)
mov    0xe51(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0xe4b(%rip),%rax
mov    %rax,-0xa8(%rbp)
movsd  0xd6c(%rip),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  0xd54(%rip),%xmm0
subsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0xd0(%rbp)
ff
xorps  %xmm0,%xmm0
ucomisd -0x8(%rbp),%xmm0
jb     12dc <inverseCDF+0x1ac>
movsd  0xdde(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1691 <inverseCDF+0x561>
movsd  -0x8(%rbp),%xmm0
movsd  0xd17(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1305 <inverseCDF+0x1d5>
movsd  0xdad(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    168c <inverseCDF+0x55c>
movsd  -0x8(%rbp),%xmm1
movsd  -0xc8(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1429 <inverseCDF+0x2f9>
cvttsd2si -0x8(%rbp),%edi
call   1040 <log@plt>
imul   $0xfffffffe,%eax,%edi
call   1050 <sqrt@plt>
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x78(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0xc0(%rbp),%xmm1
ff
movsd  -0xd8(%rbp),%xmm3
ff
movsd  -0xb8(%rbp),%xmm2
ff
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0xd8(%rbp),%xmm3
ff
movsd  -0xb0(%rbp),%xmm2
ff
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0xd8(%rbp),%xmm3
ff
movsd  -0xa8(%rbp),%xmm2
ff
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0xd8(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm1
movsd  0xbe9(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1687 <inverseCDF+0x557>
movsd  -0x8(%rbp),%xmm0
ucomisd -0xd0(%rbp),%xmm0
ff
jbe    1561 <inverseCDF+0x431>
movsd  0xbbc(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <log@plt>
imul   $0xfffffffe,%eax,%edi
call   1050 <sqrt@plt>
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xa0(%rbp),%xmm1
ff
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x98(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x88(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x80(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xbb9(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0xc0(%rbp),%xmm1
ff
movsd  -0xd8(%rbp),%xmm3
ff
movsd  -0xb8(%rbp),%xmm2
ff
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0xd8(%rbp),%xmm3
ff
movsd  -0xb0(%rbp),%xmm2
ff
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0xd8(%rbp),%xmm3
ff
movsd  -0xa8(%rbp),%xmm2
ff
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0xd8(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm1
movsd  0xab1(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1682 <inverseCDF+0x552>
movsd  -0x8(%rbp),%xmm0
movsd  0xb2a(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x28(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x20(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x18(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mulsd  -0xe0(%rbp),%xmm0
ff
movsd  -0x70(%rbp),%xmm1
movsd  -0xd8(%rbp),%xmm3
ff
movsd  -0x68(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0xd8(%rbp),%xmm3
ff
movsd  -0x60(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0xd8(%rbp),%xmm3
ff
movsd  -0x58(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0xd8(%rbp),%xmm3
ff
movsd  -0x50(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0xd8(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm1
movsd  0x98b(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1687 <inverseCDF+0x557>
jmp    168c <inverseCDF+0x55c>
jmp    1691 <inverseCDF+0x561>
movsd  -0x8(%rbp),%xmm0
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inverseCDF>:
push   %rax
movapd %xmm0,%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jae    11d0 <inverseCDF+0xb0>
ucomisd 0xed5(%rip),%xmm1
jae    11da <inverseCDF+0xba>
movsd  0xecf(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    11e4 <inverseCDF+0xc4>
cvttsd2si %xmm1,%edi
call   1030 <log@plt>
lea    (%rax,%rax,1),%edi
neg    %edi
call   1040 <sqrt@plt>
movapd %xmm0,%xmm1
movsd  0xf16(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  0xf12(%rip),%xmm2
unpcklpd %xmm0,%xmm2
movapd 0xf66(%rip),%xmm0
movsd  %xmm1,%xmm0
mulpd  %xmm2,%xmm0
addpd  0xf66(%rip),%xmm0
unpcklpd %xmm1,%xmm1
mulpd  %xmm1,%xmm0
addpd  0xf66(%rip),%xmm0
mulpd  %xmm1,%xmm0
addpd  0xf6a(%rip),%xmm0
mulpd  %xmm1,%xmm0
addpd  0xf6e(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
divsd  %xmm1,%xmm0
pop    %rax
ret
movsd  0xe28(%rip),%xmm0
pop    %rax
ret
movsd  0xe26(%rip),%xmm0
pop    %rax
ret
ucomisd 0xe34(%rip),%xmm1
jbe    129f <inverseCDF+0x17f>
movsd  0xe16(%rip),%xmm0
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <log@plt>
lea    (%rax,%rax,1),%edi
neg    %edi
call   1040 <sqrt@plt>
movapd %xmm0,%xmm1
movsd  0xe6b(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xe67(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xe63(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xe5f(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xe5b(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xe57(%rip),%xmm0
xorpd  0xe7f(%rip),%xmm0
movsd  0xe4f(%rip),%xmm2
mulsd  %xmm1,%xmm2
addsd  0xe4b(%rip),%xmm2
mulsd  %xmm1,%xmm2
addsd  0xe47(%rip),%xmm2
mulsd  %xmm1,%xmm2
addsd  0xe43(%rip),%xmm2
mulsd  %xmm1,%xmm2
addsd  0xd77(%rip),%xmm2
divsd  %xmm2,%xmm0
pop    %rax
ret
addsd  0xd81(%rip),%xmm1
movapd %xmm1,%xmm2
mulsd  %xmm1,%xmm2
movsd  0xd79(%rip),%xmm0
mulsd  %xmm2,%xmm0
addsd  0xd75(%rip),%xmm0
mulsd  %xmm2,%xmm0
addsd  0xd71(%rip),%xmm0
mulsd  %xmm2,%xmm0
addsd  0xd6d(%rip),%xmm0
mulsd  %xmm2,%xmm0
addsd  0xd69(%rip),%xmm0
mulsd  %xmm2,%xmm0
addsd  0xd65(%rip),%xmm0
movsd  0xd65(%rip),%xmm3
mulsd  %xmm2,%xmm3
addsd  0xd61(%rip),%xmm3
mulsd  %xmm2,%xmm3
addsd  0xd5d(%rip),%xmm3
mulsd  %xmm2,%xmm3
addsd  0xd59(%rip),%xmm3
mulsd  %xmm1,%xmm0
mulsd  %xmm2,%xmm3
addsd  0xd51(%rip),%xmm3
mulsd  %xmm2,%xmm3
addsd  0xcd5(%rip),%xmm3
divsd  %xmm3,%xmm0
pop    %rax
ret

LLVM IR (-O0):
@__const.inverseCDF.c4 = [4 x double] [double 0x3F7FE2D857AC9FD4, double 0x3FD4A34D2B590364, double 0x40038FA27C8AE616, double 0x400E09076895B119]
define double @inverseCDF(double %0) {
%2 = alloca double
%3 = alloca [6 x double]
%4 = alloca [5 x double]
%5 = alloca [6 x double]
%6 = alloca [4 x double]
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
store double %0, double* %2
%11 = bitcast [6 x double]* %3 to i8*
%12 = bitcast i8* %11 to [6 x double]*
%13 = getelementptr inbounds [6 x double], [6 x double]* %12, i32 0, i32 0
store double 0xC043D931BC1E0525, double* %13
%14 = getelementptr inbounds [6 x double], [6 x double]* %12, i32 0, i32 1
store double 0x406B9E467034039B, double* %14
%15 = getelementptr inbounds [6 x double], [6 x double]* %12, i32 0, i32 2
store double 0xC0713EDB2DC53B99, double* %15
%16 = getelementptr inbounds [6 x double], [6 x double]* %12, i32 0, i32 3
store double 0x40614B72B40B401B, double* %16
%17 = getelementptr inbounds [6 x double], [6 x double]* %12, i32 0, i32 4
store double 0xC03EAA3034C08BCD, double* %17
%18 = getelementptr inbounds [6 x double], [6 x double]* %12, i32 0, i32 5
store double 0x40040D9320575479, double* %18
%19 = bitcast [5 x double]* %4 to i8*
%20 = bitcast i8* %19 to [5 x double]*
%21 = getelementptr inbounds [5 x double], [5 x double]* %20, i32 0, i32 0
store double 0xC04B3CF0CE3004C4, double* %21
%22 = getelementptr inbounds [5 x double], [5 x double]* %20, i32 0, i32 1
store double 0x406432BF2CF04277, double* %22
%23 = getelementptr inbounds [5 x double], [5 x double]* %20, i32 0, i32 2
store double 0xC063765E0B02D8D2, double* %23
%24 = getelementptr inbounds [5 x double], [5 x double]* %20, i32 0, i32 3
store double 0x4050B348B1A7E9BE, double* %24
%25 = getelementptr inbounds [5 x double], [5 x double]* %20, i32 0, i32 4
store double 0xC02A8FB57E147826, double* %25
%26 = bitcast [6 x double]* %5 to i8*
%27 = bitcast i8* %26 to [6 x double]*
%28 = getelementptr inbounds [6 x double], [6 x double]* %27, i32 0, i32 0
store double 0xBF7FE30D924ACFE0, double* %28
%29 = getelementptr inbounds [6 x double], [6 x double]* %27, i32 0, i32 1
store double 0xBFD4A224C0E881B8, double* %29
%30 = getelementptr inbounds [6 x double], [6 x double]* %27, i32 0, i32 2
store double 0xC00334C0C1701758, double* %30
%31 = getelementptr inbounds [6 x double], [6 x double]* %27, i32 0, i32 3
store double 0xC00465DA2C703A1A, double* %31
%32 = getelementptr inbounds [6 x double], [6 x double]* %27, i32 0, i32 4
store double 0x40117FA7F4EA4DC7, double* %32
%33 = getelementptr inbounds [6 x double], [6 x double]* %27, i32 0, i32 5
store double 0x4007815C1E3FCFA2, double* %33
%34 = bitcast [4 x double]* %6 to i8*
store double 2.425000e-02, double* %7
%35 = load double, double* %7
%36 = fsub double 1.000000e+00, %35
store double %36, double* %8
%37 = load double, double* %2
%38 = fcmp ole double %37, 0.000000e+00
br i1 %38, label %39, label %40
39: ; preds = %1
store double -4.000000e+01, double* %2
br label %198
40: ; preds = %1
%41 = load double, double* %2
%42 = fcmp oge double %41, 1.000000e+00
br i1 %42, label %43, label %44
43: ; preds = %40
store double 4.000000e+01, double* %2
br label %197
44: ; preds = %40
%45 = load double, double* %2
%46 = load double, double* %7
%47 = fcmp olt double %45, %46
br i1 %47, label %48, label %93
48: ; preds = %44
%49 = load double, double* %2
%50 = fptosi double %49 to i32
%51 = call i32 @log(i32 %50)
%52 = mul nsw i32 -2, %51
%53 = call double @sqrt(i32 %52)
store double %53, double* %9
%54 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 0
%55 = load double, double* %54
%56 = load double, double* %9
%57 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 1
%58 = load double, double* %57
%59 = call double @llvm.fmuladd.f64(double %55, double %56, double %58)
%60 = load double, double* %9
%61 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 2
%62 = load double, double* %61
%63 = call double @llvm.fmuladd.f64(double %59, double %60, double %62)
%64 = load double, double* %9
%65 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 3
%66 = load double, double* %65
%67 = call double @llvm.fmuladd.f64(double %63, double %64, double %66)
%68 = load double, double* %9
%69 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 4
%70 = load double, double* %69
%71 = call double @llvm.fmuladd.f64(double %67, double %68, double %70)
%72 = load double, double* %9
%73 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 5
%74 = load double, double* %73
%75 = call double @llvm.fmuladd.f64(double %71, double %72, double %74)
%76 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 0
%77 = load double, double* %76
%78 = load double, double* %9
%79 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 1
%80 = load double, double* %79
%81 = call double @llvm.fmuladd.f64(double %77, double %78, double %80)
%82 = load double, double* %9
%83 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 2
%84 = load double, double* %83
%85 = call double @llvm.fmuladd.f64(double %81, double %82, double %84)
%86 = load double, double* %9
%87 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 3
%88 = load double, double* %87
%89 = call double @llvm.fmuladd.f64(double %85, double %86, double %88)
%90 = load double, double* %9
%91 = call double @llvm.fmuladd.f64(double %89, double %90, double 1.000000e+00)
%92 = fdiv double %75, %91
store double %92, double* %2
br label %196
93: ; preds = %44
%94 = load double, double* %2
%95 = load double, double* %8
%96 = fcmp ogt double %94, %95
br i1 %96, label %97, label %144
97: ; preds = %93
%98 = load double, double* %2
%99 = fsub double 1.000000e+00, %98
%100 = fptosi double %99 to i32
%101 = call i32 @log(i32 %100)
%102 = mul nsw i32 -2, %101
%103 = call double @sqrt(i32 %102)
store double %103, double* %9
%104 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 0
%105 = load double, double* %104
%106 = load double, double* %9
%107 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 1
%108 = load double, double* %107
%109 = call double @llvm.fmuladd.f64(double %105, double %106, double %108)
%110 = load double, double* %9
%111 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 2
%112 = load double, double* %111
%113 = call double @llvm.fmuladd.f64(double %109, double %110, double %112)
%114 = load double, double* %9
%115 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 3
%116 = load double, double* %115
%117 = call double @llvm.fmuladd.f64(double %113, double %114, double %116)
%118 = load double, double* %9
%119 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 4
%120 = load double, double* %119
%121 = call double @llvm.fmuladd.f64(double %117, double %118, double %120)
%122 = load double, double* %9
%123 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 5
%124 = load double, double* %123
%125 = call double @llvm.fmuladd.f64(double %121, double %122, double %124)
%126 = fmul double -1.000000e+00, %125
%127 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 0
%128 = load double, double* %127
%129 = load double, double* %9
%130 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 1
%131 = load double, double* %130
%132 = call double @llvm.fmuladd.f64(double %128, double %129, double %131)
%133 = load double, double* %9
%134 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 2
%135 = load double, double* %134
%136 = call double @llvm.fmuladd.f64(double %132, double %133, double %135)
%137 = load double, double* %9
%138 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 3
%139 = load double, double* %138
%140 = call double @llvm.fmuladd.f64(double %136, double %137, double %139)
%141 = load double, double* %9
%142 = call double @llvm.fmuladd.f64(double %140, double %141, double 1.000000e+00)
%143 = fdiv double %126, %142
store double %143, double* %2
br label %195
144: ; preds = %93
%145 = load double, double* %2
%146 = fsub double %145, 5.000000e-01
store double %146, double* %10
%147 = load double, double* %10
%148 = load double, double* %10
%149 = fmul double %147, %148
store double %149, double* %9
%150 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 0
%151 = load double, double* %150
%152 = load double, double* %9
%153 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 1
%154 = load double, double* %153
%155 = call double @llvm.fmuladd.f64(double %151, double %152, double %154)
%156 = load double, double* %9
%157 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 2
%158 = load double, double* %157
%159 = call double @llvm.fmuladd.f64(double %155, double %156, double %158)
%160 = load double, double* %9
%161 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 3
%162 = load double, double* %161
%163 = call double @llvm.fmuladd.f64(double %159, double %160, double %162)
%164 = load double, double* %9
%165 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 4
%166 = load double, double* %165
%167 = call double @llvm.fmuladd.f64(double %163, double %164, double %166)
%168 = load double, double* %9
%169 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 5
%170 = load double, double* %169
%171 = call double @llvm.fmuladd.f64(double %167, double %168, double %170)
%172 = load double, double* %10
%173 = fmul double %171, %172
%174 = getelementptr inbounds [5 x double], [5 x double]* %4, i64 0, i64 0
%175 = load double, double* %174
%176 = load double, double* %9
%177 = getelementptr inbounds [5 x double], [5 x double]* %4, i64 0, i64 1
%178 = load double, double* %177
%179 = call double @llvm.fmuladd.f64(double %175, double %176, double %178)
%180 = load double, double* %9
%181 = getelementptr inbounds [5 x double], [5 x double]* %4, i64 0, i64 2
%182 = load double, double* %181
%183 = call double @llvm.fmuladd.f64(double %179, double %180, double %182)
%184 = load double, double* %9
%185 = getelementptr inbounds [5 x double], [5 x double]* %4, i64 0, i64 3
%186 = load double, double* %185
%187 = call double @llvm.fmuladd.f64(double %183, double %184, double %186)
%188 = load double, double* %9
%189 = getelementptr inbounds [5 x double], [5 x double]* %4, i64 0, i64 4
%190 = load double, double* %189
%191 = call double @llvm.fmuladd.f64(double %187, double %188, double %190)
%192 = load double, double* %9
%193 = call double @llvm.fmuladd.f64(double %191, double %192, double 1.000000e+00)
%194 = fdiv double %173, %193
store double %194, double* %2
br label %195
195: ; preds = %144, %97
br label %196
196: ; preds = %195, %48
br label %197
197: ; preds = %196, %43
br label %198
198: ; preds = %197, %39
%199 = load double, double* %2
ret double %199
}

LLVM IR (-O2):
define double @inverseCDF(double %0) {
%2 = fcmp ugt double %0, 0.000000e+00
br i1 %2, label %3, label %59
3: ; preds = %1
%4 = fcmp ult double %0, 1.000000e+00
br i1 %4, label %5, label %59
5: ; preds = %3
%6 = fcmp olt double %0, 2.425000e-02
br i1 %6, label %7, label %25
7: ; preds = %5
%8 = fptosi double %0 to i32
%9 = tail call i32 @log(i32 %8)
%10 = mul nsw i32 %9, -2
%11 = tail call double @sqrt(i32 %10)
%12 = tail call double @llvm.fmuladd.f64(double %11, double 0xBF7FE30D924ACFE0, double 0xBFD4A224C0E881B8)
%13 = insertelement <2 x double> poison, double %12, i64 0
%14 = insertelement <2 x double> %13, double %11, i64 1
%15 = insertelement <2 x double> <double poison, double 0x3F7FE2D857AC9FD4>, double %11, i64 0
%16 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %14, <2 x double> %15, <2 x double> <double 0xC00334C0C1701758, double 0x3FD4A34D2B590364>)
%17 = insertelement <2 x double> poison, double %11, i64 0
%18 = shufflevector <2 x double> %17, <2 x double> poison, <2 x i32> zeroinitializer
%19 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %16, <2 x double> %18, <2 x double> <double 0xC00465DA2C703A1A, double 0x40038FA27C8AE616>)
%20 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %19, <2 x double> %18, <2 x double> <double 0x40117FA7F4EA4DC7, double 0x400E09076895B119>)
%21 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %20, <2 x double> %18, <2 x double> <double 0x4007815C1E3FCFA2, double 1.000000e+00>)
%22 = extractelement <2 x double> %21, i64 0
%23 = extractelement <2 x double> %21, i64 1
%24 = fdiv double %22, %23
br label %59
25: ; preds = %5
%26 = fcmp ogt double %0, 9.757500e-01
br i1 %26, label %27, label %44
27: ; preds = %25
%28 = fsub double 1.000000e+00, %0
%29 = fptosi double %28 to i32
%30 = tail call i32 @log(i32 %29)
%31 = mul nsw i32 %30, -2
%32 = tail call double @sqrt(i32 %31)
%33 = tail call double @llvm.fmuladd.f64(double %32, double 0xBF7FE30D924ACFE0, double 0xBFD4A224C0E881B8)
%34 = tail call double @llvm.fmuladd.f64(double %33, double %32, double 0xC00334C0C1701758)
%35 = tail call double @llvm.fmuladd.f64(double %34, double %32, double 0xC00465DA2C703A1A)
%36 = tail call double @llvm.fmuladd.f64(double %35, double %32, double 0x40117FA7F4EA4DC7)
%37 = tail call double @llvm.fmuladd.f64(double %36, double %32, double 0x4007815C1E3FCFA2)
%38 = fneg double %37
%39 = tail call double @llvm.fmuladd.f64(double %32, double 0x3F7FE2D857AC9FD4, double 0x3FD4A34D2B590364)
%40 = tail call double @llvm.fmuladd.f64(double %39, double %32, double 0x40038FA27C8AE616)
%41 = tail call double @llvm.fmuladd.f64(double %40, double %32, double 0x400E09076895B119)
%42 = tail call double @llvm.fmuladd.f64(double %41, double %32, double 1.000000e+00)
%43 = fdiv double %38, %42
br label %59
44: ; preds = %25
%45 = fadd double %0, -5.000000e-01
%46 = fmul double %45, %45
%47 = tail call double @llvm.fmuladd.f64(double %46, double 0xC043D931BC1E0525, double 0x406B9E467034039B)
%48 = tail call double @llvm.fmuladd.f64(double %47, double %46, double 0xC0713EDB2DC53B99)
%49 = tail call double @llvm.fmuladd.f64(double %48, double %46, double 0x40614B72B40B401B)
%50 = tail call double @llvm.fmuladd.f64(double %49, double %46, double 0xC03EAA3034C08BCD)
%51 = tail call double @llvm.fmuladd.f64(double %50, double %46, double 0x40040D9320575479)
%52 = fmul double %45, %51
%53 = tail call double @llvm.fmuladd.f64(double %46, double 0xC04B3CF0CE3004C4, double 0x406432BF2CF04277)
%54 = tail call double @llvm.fmuladd.f64(double %53, double %46, double 0xC063765E0B02D8D2)
%55 = tail call double @llvm.fmuladd.f64(double %54, double %46, double 0x4050B348B1A7E9BE)
%56 = tail call double @llvm.fmuladd.f64(double %55, double %46, double 0xC02A8FB57E147826)
%57 = tail call double @llvm.fmuladd.f64(double %56, double %46, double 1.000000e+00)
%58 = fdiv double %52, %57
br label %59
59: ; preds = %3, %1, %27, %44, %7
%60 = phi double [ %24, %7 ], [ %43, %27 ], [ %58, %44 ], [ -4.000000e+01, %1 ], [ 4.000000e+01, %3 ]
ret double %60
}