#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 */
double erf(double);
double gp_exp(double);
double log(double);
int /*<<< orphan*/ printf(char *);
double sqrt(double);
double inverse_error_func(double y) {
  double x = 0.0;
  double z = 0.0;
  double y0 = 0.7;
  static const double a[4] = {0.886226899, -1.645349621, 0.914624893,
                              -0.140543331};
  static const double b[4] = {-2.118377725, 1.442710462, -0.329097515,
                              0.012229801};
  static const double c[4] = {-1.970840454, -1.624906493, 3.429567803,
                              1.641345311};
  static const double d[2] = {3.543889200, 1.637067800};
  if ((y < -1.0) || (1.0 < y)) {
    printf("inverse_error_func: The value out of the range of the function");
    x = log(-1.0);
    return (x);
  } else if ((y == -1.0) || (1.0 == y)) {
    x = -y * log(0.0);
    return (x);
  } else if ((-1.0 < y) && (y < -y0)) {
    z = sqrt(-log((1.0 + y) / 2.0));
    x = -(((c[3] * z + c[2]) * z + c[1]) * z + c[0]) /
        ((d[1] * z + d[0]) * z + 1.0);
  } else {
    if ((-y0 <= y) && (y <= y0)) {
      z = y * y;
      x = y * (((a[3] * z + a[2]) * z + a[1]) * z + a[0]) /
          ((((b[3] * z + b[3]) * z + b[1]) * z + b[0]) * z + 1.0);
    } else if ((y0 < y) && (y < 1.0)) {
      z = sqrt(-log((1.0 - y) / 2.0));
      x = (((c[3] * z + c[2]) * z + c[1]) * z + c[0]) /
          ((d[1] * z + d[0]) * z + 1.0);
    }
  }
  x = x - (erf(x) - y) / (2.0 / sqrt(3.14159265358979323846) * gp_exp(-x * x));
  x = x - (erf(x) - y) / (2.0 / sqrt(3.14159265358979323846) * gp_exp(-x * x));
  x = x - (erf(x) - y) / (2.0 / sqrt(3.14159265358979323846) * gp_exp(-x * x));
  x = x - (erf(x) - y) / (2.0 / sqrt(3.14159265358979323846) * gp_exp(-x * x));
  return (x);
}


x86 assembly (clang, -O0):
<inverse_error_func>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe90(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe7b(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
ja     11a7 <inverse_error_func+0x57>
movsd  -0x10(%rbp),%xmm0
movsd  0xe73(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11d4 <inverse_error_func+0x84>
lea    0xef2(%rip),%rdi
call   1040 <printf@plt>
movsd  0xe45(%rip),%xmm0
call   1050 <log@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    17b1 <inverse_error_func+0x661>
movsd  -0x10(%rbp),%xmm0
movsd  0xe1f(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11f6 <inverse_error_func+0xa6>
jp     11f6 <inverse_error_func+0xa6>
jmp    120f <inverse_error_func+0xbf>
movsd  0xe12(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jne    1258 <inverse_error_func+0x108>
jp     1258 <inverse_error_func+0x108>
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
call   1050 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    17b1 <inverse_error_func+0x661>
movsd  -0x10(%rbp),%xmm0
movsd  0xd9b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1377 <inverse_error_func+0x227>
movsd  -0x10(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
ucomisd %xmm1,%xmm0
jbe    1377 <inverse_error_func+0x227>
movsd  0xd6e(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  0xd69(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1050 <log@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  0xda7(%rip),%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  0xd92(%rip),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  0xd75(%rip),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  0xd58(%rip),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xd59(%rip),%xmm1
movsd  -0x20(%rbp),%xmm3
movsd  0xd44(%rip),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xcab(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    1571 <inverse_error_func+0x421>
movsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  -0x10(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     147f <inverse_error_func+0x32f>
movsd  -0x10(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     147f <inverse_error_func+0x32f>
movsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xc76(%rip),%xmm1
movsd  -0x20(%rbp),%xmm3
movsd  0xc61(%rip),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0x20(%rbp),%xmm3
movsd  0xc44(%rip),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0x20(%rbp),%xmm3
movsd  0xc27(%rip),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc4b(%rip),%xmm1
movsd  -0x20(%rbp),%xmm3
movsd  0xc3e(%rip),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0x20(%rbp),%xmm3
movsd  0xc19(%rip),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0x20(%rbp),%xmm3
movsd  0xbfc(%rip),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xba3(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    156c <inverse_error_func+0x41c>
movsd  -0x28(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1567 <inverse_error_func+0x417>
movsd  0xb75(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1567 <inverse_error_func+0x417>
movsd  0xb62(%rip),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  0xb5d(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1050 <log@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  0xb9b(%rip),%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  0xb86(%rip),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  0xb69(%rip),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  0xb4c(%rip),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xb64(%rip),%xmm1
movsd  -0x20(%rbp),%xmm3
movsd  0xb4f(%rip),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xab6(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    156c <inverse_error_func+0x41c>
jmp    1571 <inverse_error_func+0x421>
jmp    1576 <inverse_error_func+0x426>
jmp    157b <inverse_error_func+0x42b>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1070 <erf@plt>
subsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xa7c(%rip),%xmm0
call   1060 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0xa64(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1030 <gp_exp@plt>
movsd  -0x90(%rbp),%xmm2
ff
movsd  -0x88(%rbp),%xmm1
ff
movaps %xmm0,%xmm3
movsd  -0x80(%rbp),%xmm0
mulsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1070 <erf@plt>
subsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0x9eb(%rip),%xmm0
call   1060 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0x9d3(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1030 <gp_exp@plt>
movsd  -0x78(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
movaps %xmm0,%xmm3
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1070 <erf@plt>
subsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0x963(%rip),%xmm0
call   1060 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0x94b(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1030 <gp_exp@plt>
movsd  -0x60(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
movaps %xmm0,%xmm3
movsd  -0x50(%rbp),%xmm0
mulsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1070 <erf@plt>
subsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0x8db(%rip),%xmm0
call   1060 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0x8c3(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1030 <gp_exp@plt>
movsd  -0x48(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
movaps %xmm0,%xmm3
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inverse_error_func>:
sub    $0x38,%rsp
movapd %xmm0,%xmm3
movsd  0xea0(%rip),%xmm0
ucomisd %xmm3,%xmm0
ja     1202 <inverse_error_func+0xb2>
ucomisd 0xe96(%rip),%xmm3
ja     1202 <inverse_error_func+0xb2>
ucomisd 0xe80(%rip),%xmm3
jne    1188 <inverse_error_func+0x38>
jnp    121f <inverse_error_func+0xcf>
ucomisd 0xe78(%rip),%xmm3
jne    1198 <inverse_error_func+0x48>
jnp    121f <inverse_error_func+0xcf>
ucomisd 0xe60(%rip),%xmm3
movapd %xmm3,0x20(%rsp)
jbe    1245 <inverse_error_func+0xf5>
movsd  0xe5c(%rip),%xmm0
ucomisd %xmm3,%xmm0
jbe    1245 <inverse_error_func+0xf5>
movsd  0xe42(%rip),%xmm0
addsd  %xmm3,%xmm0
mulsd  0xe86(%rip),%xmm0
call   1050 <log@plt>
movapd %xmm0,%xmm1
movapd 0xebd(%rip),%xmm0
xorpd  %xmm1,%xmm0
movsd  0xe71(%rip),%xmm2
ucomisd %xmm1,%xmm2
jb     133d <inverse_error_func+0x1ed>
sqrtsd %xmm0,%xmm0
jmp    1342 <inverse_error_func+0x1f2>
lea    0xed7(%rip),%rdi
call   1040 <printf@plt>
movsd  0xdea(%rip),%xmm0
add    $0x38,%rsp
jmp    1050 <log@plt>
xorpd  0xe79(%rip),%xmm3
movapd %xmm3,0x20(%rsp)
xorpd  %xmm0,%xmm0
call   1050 <log@plt>
movapd %xmm0,%xmm1
mulsd  0x20(%rsp),%xmm1
jmp    14cd <inverse_error_func+0x37d>
ucomisd 0xdc3(%rip),%xmm3
jb     12da <inverse_error_func+0x18a>
movsd  0xdbd(%rip),%xmm0
ucomisd %xmm3,%xmm0
jb     12da <inverse_error_func+0x18a>
movapd %xmm3,%xmm0
mulsd  %xmm3,%xmm0
movsd  0xdaf(%rip),%xmm4
mulsd  %xmm0,%xmm4
addsd  0xdab(%rip),%xmm4
mulsd  %xmm0,%xmm4
addsd  0xda7(%rip),%xmm4
mulsd  %xmm0,%xmm4
addsd  0xda3(%rip),%xmm4
movsd  0xda3(%rip),%xmm1
movapd %xmm0,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
addsd  0xd93(%rip),%xmm2
mulsd  %xmm3,%xmm4
mulsd  %xmm0,%xmm2
addsd  0xd8b(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  0xd37(%rip),%xmm2
divsd  %xmm2,%xmm4
jmp    139a <inverse_error_func+0x24a>
ucomisd 0xd36(%rip),%xmm3
xorpd  %xmm4,%xmm4
jbe    139a <inverse_error_func+0x24a>
movsd  0xd14(%rip),%xmm0
ucomisd %xmm3,%xmm0
jbe    139a <inverse_error_func+0x24a>
subsd  %xmm3,%xmm0
mulsd  0xd4e(%rip),%xmm0
call   1050 <log@plt>
movapd %xmm0,%xmm1
movapd 0xd85(%rip),%xmm0
xorpd  %xmm1,%xmm0
movsd  0xd39(%rip),%xmm2
ucomisd %xmm1,%xmm2
jb     14d6 <inverse_error_func+0x386>
xorps  %xmm4,%xmm4
sqrtsd %xmm0,%xmm4
jmp    14df <inverse_error_func+0x38f>
call   1060 <sqrt@plt>
movsd  0xd1e(%rip),%xmm4
mulsd  %xmm0,%xmm4
addsd  0xd1a(%rip),%xmm4
mulsd  %xmm0,%xmm4
addsd  0xd16(%rip),%xmm4
mulsd  %xmm0,%xmm4
addsd  0xd12(%rip),%xmm4
xorpd  0xd2a(%rip),%xmm4
movsd  0xd0a(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xd06(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xc72(%rip),%xmm1
divsd  %xmm1,%xmm4
movapd %xmm4,(%rsp)
movapd %xmm4,%xmm0
call   1070 <erf@plt>
subsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movapd (%rsp),%xmm0
xorpd  0xcdf(%rip),%xmm0
mulsd  (%rsp),%xmm0
call   1030 <gp_exp@plt>
mulsd  0xcc5(%rip),%xmm0
movsd  0x18(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd (%rsp),%xmm0
subsd  %xmm1,%xmm0
movapd %xmm0,(%rsp)
movapd (%rsp),%xmm0
call   1070 <erf@plt>
subsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movapd (%rsp),%xmm0
xorpd  0xc92(%rip),%xmm0
mulsd  (%rsp),%xmm0
call   1030 <gp_exp@plt>
mulsd  0xc78(%rip),%xmm0
movsd  0x18(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd (%rsp),%xmm0
subsd  %xmm1,%xmm0
movapd %xmm0,(%rsp)
movapd (%rsp),%xmm0
call   1070 <erf@plt>
subsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movapd (%rsp),%xmm0
xorpd  0xc45(%rip),%xmm0
mulsd  (%rsp),%xmm0
call   1030 <gp_exp@plt>
mulsd  0xc2b(%rip),%xmm0
movsd  0x18(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd (%rsp),%xmm0
subsd  %xmm1,%xmm0
movapd %xmm0,(%rsp)
movapd (%rsp),%xmm0
call   1070 <erf@plt>
subsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movapd 0xbfd(%rip),%xmm0
xorpd  (%rsp),%xmm0
mulsd  (%rsp),%xmm0
call   1030 <gp_exp@plt>
movapd (%rsp),%xmm1
mulsd  0xbd9(%rip),%xmm0
movsd  0x20(%rsp),%xmm2
divsd  %xmm0,%xmm2
subsd  %xmm2,%xmm1
movapd %xmm1,%xmm0
add    $0x38,%rsp
ret
call   1060 <sqrt@plt>
movapd %xmm0,%xmm4
movsd  0xb81(%rip),%xmm0
mulsd  %xmm4,%xmm0
addsd  0xb7d(%rip),%xmm0
unpcklpd %xmm4,%xmm0
movapd 0xbb1(%rip),%xmm1
movsd  %xmm4,%xmm1
mulpd  %xmm0,%xmm1
addpd  0xbb1(%rip),%xmm1
unpcklpd %xmm4,%xmm4
mulpd  %xmm1,%xmm4
addpd  0xbb1(%rip),%xmm4
movapd %xmm4,%xmm0
unpckhpd %xmm4,%xmm0
divsd  %xmm0,%xmm4
jmp    139a <inverse_error_func+0x24a>

LLVM IR (-O0):
@inverse_error_func.a = internal constant [4 x double] [double 0x3FEC5BF883814BBC, double 0xBFFA535A1FCAE55B, double 0x3FED449B6C715C28, double 0xBFC1FD52E9286F82]
@inverse_error_func.b = internal constant [4 x double] [double 0xC000F270054B995C, double 0x3FF7155790BE315C, double 0xBFD50FEF0607ABF1, double 0x3F890BF01AA717A9]
@inverse_error_func.c = internal constant [4 x double] [double 0xBFFF888FFFF9054B, double 0xBFF9FF9DF367E38B, double 0x400B6FC13E8A6585, double 0x3FFA42F34D0301D7]
@inverse_error_func.d = internal constant [2 x double] [double 0x400C59E294B52E4B, double 0x3FFA316E01655ACE]
@.str = [63 x i8] c"inverse_error_func: The value out of the range of the function\00"
define double @inverse_error_func(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %3
store double 0.000000e+00, double* %4
store double 0.000000e+00, double* %5
store double 0x3FE6666666666666, double* %6
%7 = load double, double* %3
%8 = fcmp olt double %7, -1.000000e+00
br i1 %8, label %12, label %9
9: ; preds = %1
%10 = load double, double* %3
%11 = fcmp olt double 1.000000e+00, %10
br i1 %11, label %12, label %16
12: ; preds = %9, %1
%13 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
%14 = call double @log(double -1.000000e+00)
store double %14, double* %4
%15 = load double, double* %4
store double %15, double* %2
br label %196
16: ; preds = %9
%17 = load double, double* %3
%18 = fcmp oeq double %17, -1.000000e+00
br i1 %18, label %22, label %19
19: ; preds = %16
%20 = load double, double* %3
%21 = fcmp oeq double 1.000000e+00, %20
br i1 %21, label %22, label %28
22: ; preds = %19, %16
%23 = load double, double* %3
%24 = fneg double %23
%25 = call double @log(double 0.000000e+00)
%26 = fmul double %24, %25
store double %26, double* %4
%27 = load double, double* %4
store double %27, double* %2
br label %196
28: ; preds = %19
%29 = load double, double* %3
%30 = fcmp olt double -1.000000e+00, %29
br i1 %30, label %31, label %61
31: ; preds = %28
%32 = load double, double* %3
%33 = load double, double* %6
%34 = fneg double %33
%35 = fcmp olt double %32, %34
br i1 %35, label %36, label %61
36: ; preds = %31
%37 = load double, double* %3
%38 = fadd double 1.000000e+00, %37
%39 = fdiv double %38, 2.000000e+00
%40 = call double @log(double %39)
%41 = fneg double %40
%42 = call double @sqrt(double %41)
store double %42, double* %5
%43 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.c, i64 0, i64 3)
%44 = load double, double* %5
%45 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.c, i64 0, i64 2)
%46 = call double @llvm.fmuladd.f64(double %43, double %44, double %45)
%47 = load double, double* %5
%48 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.c, i64 0, i64 1)
%49 = call double @llvm.fmuladd.f64(double %46, double %47, double %48)
%50 = load double, double* %5
%51 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.c, i64 0, i64 0)
%52 = call double @llvm.fmuladd.f64(double %49, double %50, double %51)
%53 = fneg double %52
%54 = load double, double* getelementptr inbounds ([2 x double], [2 x double]* @inverse_error_func.d, i64 0, i64 1)
%55 = load double, double* %5
%56 = load double, double* getelementptr inbounds ([2 x double], [2 x double]* @inverse_error_func.d, i64 0, i64 0)
%57 = call double @llvm.fmuladd.f64(double %54, double %55, double %56)
%58 = load double, double* %5
%59 = call double @llvm.fmuladd.f64(double %57, double %58, double 1.000000e+00)
%60 = fdiv double %53, %59
store double %60, double* %4
br label %132
61: ; preds = %31, %28
%62 = load double, double* %6
%63 = fneg double %62
%64 = load double, double* %3
%65 = fcmp ole double %63, %64
br i1 %65, label %66, label %99
66: ; preds = %61
%67 = load double, double* %3
%68 = load double, double* %6
%69 = fcmp ole double %67, %68
br i1 %69, label %70, label %99
70: ; preds = %66
%71 = load double, double* %3
%72 = load double, double* %3
%73 = fmul double %71, %72
store double %73, double* %5
%74 = load double, double* %3
%75 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.a, i64 0, i64 3)
%76 = load double, double* %5
%77 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.a, i64 0, i64 2)
%78 = call double @llvm.fmuladd.f64(double %75, double %76, double %77)
%79 = load double, double* %5
%80 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.a, i64 0, i64 1)
%81 = call double @llvm.fmuladd.f64(double %78, double %79, double %80)
%82 = load double, double* %5
%83 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.a, i64 0, i64 0)
%84 = call double @llvm.fmuladd.f64(double %81, double %82, double %83)
%85 = fmul double %74, %84
%86 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.b, i64 0, i64 3)
%87 = load double, double* %5
%88 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.b, i64 0, i64 3)
%89 = call double @llvm.fmuladd.f64(double %86, double %87, double %88)
%90 = load double, double* %5
%91 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.b, i64 0, i64 1)
%92 = call double @llvm.fmuladd.f64(double %89, double %90, double %91)
%93 = load double, double* %5
%94 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.b, i64 0, i64 0)
%95 = call double @llvm.fmuladd.f64(double %92, double %93, double %94)
%96 = load double, double* %5
%97 = call double @llvm.fmuladd.f64(double %95, double %96, double 1.000000e+00)
%98 = fdiv double %85, %97
store double %98, double* %4
br label %131
99: ; preds = %66, %61
%100 = load double, double* %6
%101 = load double, double* %3
%102 = fcmp olt double %100, %101
br i1 %102, label %103, label %130
103: ; preds = %99
%104 = load double, double* %3
%105 = fcmp olt double %104, 1.000000e+00
br i1 %105, label %106, label %130
106: ; preds = %103
%107 = load double, double* %3
%108 = fsub double 1.000000e+00, %107
%109 = fdiv double %108, 2.000000e+00
%110 = call double @log(double %109)
%111 = fneg double %110
%112 = call double @sqrt(double %111)
store double %112, double* %5
%113 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.c, i64 0, i64 3)
%114 = load double, double* %5
%115 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.c, i64 0, i64 2)
%116 = call double @llvm.fmuladd.f64(double %113, double %114, double %115)
%117 = load double, double* %5
%118 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.c, i64 0, i64 1)
%119 = call double @llvm.fmuladd.f64(double %116, double %117, double %118)
%120 = load double, double* %5
%121 = load double, double* getelementptr inbounds ([4 x double], [4 x double]* @inverse_error_func.c, i64 0, i64 0)
%122 = call double @llvm.fmuladd.f64(double %119, double %120, double %121)
%123 = load double, double* getelementptr inbounds ([2 x double], [2 x double]* @inverse_error_func.d, i64 0, i64 1)
%124 = load double, double* %5
%125 = load double, double* getelementptr inbounds ([2 x double], [2 x double]* @inverse_error_func.d, i64 0, i64 0)
%126 = call double @llvm.fmuladd.f64(double %123, double %124, double %125)
%127 = load double, double* %5
%128 = call double @llvm.fmuladd.f64(double %126, double %127, double 1.000000e+00)
%129 = fdiv double %122, %128
store double %129, double* %4
br label %130
130: ; preds = %106, %103, %99
br label %131
131: ; preds = %130, %70
br label %132
132: ; preds = %131, %36
br label %133
133: ; preds = %132
br label %134
134: ; preds = %133
%135 = load double, double* %4
%136 = load double, double* %4
%137 = call double @erf(double %136)
%138 = load double, double* %3
%139 = fsub double %137, %138
%140 = call double @sqrt(double 0x400921FB54442D18)
%141 = fdiv double 2.000000e+00, %140
%142 = load double, double* %4
%143 = fneg double %142
%144 = load double, double* %4
%145 = fmul double %143, %144
%146 = call double @gp_exp(double %145)
%147 = fmul double %141, %146
%148 = fdiv double %139, %147
%149 = fsub double %135, %148
store double %149, double* %4
%150 = load double, double* %4
%151 = load double, double* %4
%152 = call double @erf(double %151)
%153 = load double, double* %3
%154 = fsub double %152, %153
%155 = call double @sqrt(double 0x400921FB54442D18)
%156 = fdiv double 2.000000e+00, %155
%157 = load double, double* %4
%158 = fneg double %157
%159 = load double, double* %4
%160 = fmul double %158, %159
%161 = call double @gp_exp(double %160)
%162 = fmul double %156, %161
%163 = fdiv double %154, %162
%164 = fsub double %150, %163
store double %164, double* %4
%165 = load double, double* %4
%166 = load double, double* %4
%167 = call double @erf(double %166)
%168 = load double, double* %3
%169 = fsub double %167, %168
%170 = call double @sqrt(double 0x400921FB54442D18)
%171 = fdiv double 2.000000e+00, %170
%172 = load double, double* %4
%173 = fneg double %172
%174 = load double, double* %4
%175 = fmul double %173, %174
%176 = call double @gp_exp(double %175)
%177 = fmul double %171, %176
%178 = fdiv double %169, %177
%179 = fsub double %165, %178
store double %179, double* %4
%180 = load double, double* %4
%181 = load double, double* %4
%182 = call double @erf(double %181)
%183 = load double, double* %3
%184 = fsub double %182, %183
%185 = call double @sqrt(double 0x400921FB54442D18)
%186 = fdiv double 2.000000e+00, %185
%187 = load double, double* %4
%188 = fneg double %187
%189 = load double, double* %4
%190 = fmul double %188, %189
%191 = call double @gp_exp(double %190)
%192 = fmul double %186, %191
%193 = fdiv double %184, %192
%194 = fsub double %180, %193
store double %194, double* %4
%195 = load double, double* %4
store double %195, double* %2
br label %196
196: ; preds = %134, %22, %12
%197 = load double, double* %2
ret double %197
}

LLVM IR (-O2):
@.str = [63 x i8] c"inverse_error_func: The value out of the range of the function\00"
define double @inverse_error_func(double %0) {
%2 = fcmp olt double %0, -1.000000e+00
%3 = fcmp ogt double %0, 1.000000e+00
%4 = or i1 %2, %3
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
%7 = tail call double @log(double -1.000000e+00)
br label %103
8: ; preds = %1
%9 = fcmp oeq double %0, -1.000000e+00
%10 = fcmp oeq double %0, 1.000000e+00
%11 = or i1 %9, %10
br i1 %11, label %12, label %16
12: ; preds = %8
%13 = fneg double %0
%14 = tail call double @log(double 0.000000e+00)
%15 = fmul double %14, %13
br label %103
16: ; preds = %8
%17 = fcmp ogt double %0, -1.000000e+00
%18 = fcmp olt double %0, 0xBFE6666666666666
%19 = and i1 %17, %18
br i1 %19, label %20, label %33
20: ; preds = %16
%21 = fadd double %0, 1.000000e+00
%22 = fmul double %21, 5.000000e-01
%23 = tail call double @log(double %22)
%24 = fneg double %23
%25 = tail call double @sqrt(double %24)
%26 = tail call double @llvm.fmuladd.f64(double %25, double 0x3FFA42F34D0301D7, double 0x400B6FC13E8A6585)
%27 = tail call double @llvm.fmuladd.f64(double %26, double %25, double 0xBFF9FF9DF367E38B)
%28 = tail call double @llvm.fmuladd.f64(double %27, double %25, double 0xBFFF888FFFF9054B)
%29 = fneg double %28
%30 = tail call double @llvm.fmuladd.f64(double %25, double 0x3FFA316E01655ACE, double 0x400C59E294B52E4B)
%31 = tail call double @llvm.fmuladd.f64(double %30, double %25, double 1.000000e+00)
%32 = fdiv double %29, %31
br label %69
33: ; preds = %16
%34 = fcmp ult double %0, 0xBFE6666666666666
%35 = fcmp ugt double %0, 0x3FE6666666666666
%36 = or i1 %34, %35
br i1 %36, label %48, label %37
37: ; preds = %33
%38 = fmul double %0, %0
%39 = tail call double @llvm.fmuladd.f64(double %38, double 0xBFC1FD52E9286F82, double 0x3FED449B6C715C28)
%40 = tail call double @llvm.fmuladd.f64(double %39, double %38, double 0xBFFA535A1FCAE55B)
%41 = tail call double @llvm.fmuladd.f64(double %40, double %38, double 0x3FEC5BF883814BBC)
%42 = fmul double %41, %0
%43 = tail call double @llvm.fmuladd.f64(double %38, double 0x3F890BF01AA717A9, double 0x3F890BF01AA717A9)
%44 = tail call double @llvm.fmuladd.f64(double %43, double %38, double 0x3FF7155790BE315C)
%45 = tail call double @llvm.fmuladd.f64(double %44, double %38, double 0xC000F270054B995C)
%46 = tail call double @llvm.fmuladd.f64(double %45, double %38, double 1.000000e+00)
%47 = fdiv double %42, %46
br label %69
48: ; preds = %33
%49 = fcmp ogt double %0, 0x3FE6666666666666
%50 = fcmp olt double %0, 1.000000e+00
%51 = and i1 %49, %50
br i1 %51, label %52, label %69
52: ; preds = %48
%53 = fsub double 1.000000e+00, %0
%54 = fmul double %53, 5.000000e-01
%55 = tail call double @log(double %54)
%56 = fneg double %55
%57 = tail call double @sqrt(double %56)
%58 = tail call double @llvm.fmuladd.f64(double %57, double 0x3FFA42F34D0301D7, double 0x400B6FC13E8A6585)
%59 = insertelement <2 x double> poison, double %58, i64 0
%60 = insertelement <2 x double> %59, double %57, i64 1
%61 = insertelement <2 x double> <double poison, double 0x3FFA316E01655ACE>, double %57, i64 0
%62 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %60, <2 x double> %61, <2 x double> <double 0xBFF9FF9DF367E38B, double 0x400C59E294B52E4B>)
%63 = insertelement <2 x double> poison, double %57, i64 0
%64 = shufflevector <2 x double> %63, <2 x double> poison, <2 x i32> zeroinitializer
%65 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %62, <2 x double> %64, <2 x double> <double 0xBFFF888FFFF9054B, double 1.000000e+00>)
%66 = extractelement <2 x double> %65, i64 0
%67 = extractelement <2 x double> %65, i64 1
%68 = fdiv double %66, %67
br label %69
69: ; preds = %37, %52, %48, %20
%70 = phi double [ %32, %20 ], [ %47, %37 ], [ %68, %52 ], [ 0.000000e+00, %48 ]
%71 = tail call double @erf(double %70)
%72 = fsub double %71, %0
%73 = fneg double %70
%74 = fmul double %70, %73
%75 = tail call double @gp_exp(double %74)
%76 = fmul double %75, 0x3FF20DD750429B6D
%77 = fdiv double %72, %76
%78 = fsub double %70, %77
%79 = tail call double @erf(double %78)
%80 = fsub double %79, %0
%81 = fneg double %78
%82 = fmul double %78, %81
%83 = tail call double @gp_exp(double %82)
%84 = fmul double %83, 0x3FF20DD750429B6D
%85 = fdiv double %80, %84
%86 = fsub double %78, %85
%87 = tail call double @erf(double %86)
%88 = fsub double %87, %0
%89 = fneg double %86
%90 = fmul double %86, %89
%91 = tail call double @gp_exp(double %90)
%92 = fmul double %91, 0x3FF20DD750429B6D
%93 = fdiv double %88, %92
%94 = fsub double %86, %93
%95 = tail call double @erf(double %94)
%96 = fsub double %95, %0
%97 = fneg double %94
%98 = fmul double %94, %97
%99 = tail call double @gp_exp(double %98)
%100 = fmul double %99, 0x3FF20DD750429B6D
%101 = fdiv double %96, %100
%102 = fsub double %94, %101
br label %103
103: ; preds = %69, %12, %5
%104 = phi double [ %7, %5 ], [ %15, %12 ], [ %102, %69 ]
ret double %104
}