#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 exp(double);
double exparg(int);
double fabs(double);
double erfc1__(int ind, double x) {
  double c = .564189583547756;
  double a[5] = {7.7105849500132e-5, -.00133733772997339, .0323076579225834,
                 .0479137145607681, .128379167095513};
  double b[3] = {.00301048631703895, .0538971687740286, .375795757275549};
  double p[8] = {-1.36864857382717e-7, .564195517478974, 7.21175825088309,
                 43.1622272220567,     152.98928504694,  339.320816734344,
                 451.918953711873,     300.459261020162};
  double q[8] = {1.,
                 12.7827273196294,
                 77.0001529352295,
                 277.585444743988,
                 638.980264465631,
                 931.35409485061,
                 790.950925327898,
                 300.459260956983};
  double r[5] = {2.10144126479064, 26.2370141675169, 21.3688200555087,
                 4.6580782871847, .282094791773523};
  double s[4] = {94.153775055546, 187.11481179959, 99.0191814623914,
                 18.0124575948747};
  double ret_val;
  double e, t, w, bot, top;
  double ax = fabs(x);
  if (ax <= 0.5) {
    double t = x * x,
           top = (((a[0] * t + a[1]) * t + a[2]) * t + a[3]) * t + a[4] + 1.0,
           bot = ((b[0] * t + b[1]) * t + b[2]) * t + 1.0;
    ret_val = 0.5 - x * (top / bot) + 0.5;
    if (ind != 0) {
      ret_val = exp(t) * ret_val;
    }
    return ret_val;
  }
  if (ax <= 4.0) {
    top = ((((((p[0] * ax + p[1]) * ax + p[2]) * ax + p[3]) * ax + p[4]) * ax +
            p[5]) *
               ax +
           p[6]) *
              ax +
          p[7];
    bot = ((((((q[0] * ax + q[1]) * ax + q[2]) * ax + q[3]) * ax + q[4]) * ax +
            q[5]) *
               ax +
           q[6]) *
              ax +
          q[7];
    ret_val = top / bot;
  } else {
    if (x <= -5.6) {
      ret_val = 2.0;
      if (ind != 0) {
        ret_val = exp(x * x) * 2.0;
      }
      return ret_val;
    }
    if (ind == 0 && (x > 100.0 || x * x > -exparg(1))) {
      return 0.0;
    }
    t = 1. / (x * x);
    top = (((r[0] * t + r[1]) * t + r[2]) * t + r[3]) * t + r[4];
    bot = (((s[0] * t + s[1]) * t + s[2]) * t + s[3]) * t + 1.0;
    ret_val = (c - t * top / bot) / ax;
  }
  if (ind != 0) {
    if (x < 0.0)
      ret_val = exp(x * x) * 2.0 - ret_val;
  } else {
    w = x * x;
    t = w;
    e = w - t;
    ret_val = (0.5 - e + 0.5) * exp(-t) * ret_val;
    if (x < 0.0)
      ret_val = 2.0 - ret_val;
  }
  return ret_val;
}


x86 assembly (clang, -O0):
<erfc1__>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
mov    %edi,-0xc(%rbp)
movsd  %xmm0,-0x18(%rbp)
movsd  0xefd(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
movsd  0xed8(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xec3(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xeae(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe99(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe84(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    0xee8(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xee5(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0xee2(%rip),%rax
mov    %rax,-0x60(%rbp)
lea    -0xb0(%rbp),%rdi
lea    0xee0(%rip),%rsi
mov    $0x40,%edx
call   1040 <memcpy@plt>
lea    -0xf0(%rbp),%rdi
lea    0xf08(%rip),%rsi
mov    $0x40,%edx
call   1040 <memcpy@plt>
lea    -0x120(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
movsd  0xe0b(%rip),%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  0xdf3(%rip),%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movsd  0xddb(%rip),%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  0xdc3(%rip),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  0xdab(%rip),%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
mov    0xed4(%rip),%rax
mov    %rax,-0x140(%rbp)
mov    0xece(%rip),%rax
mov    %rax,-0x138(%rbp)
mov    0xec8(%rip),%rax
mov    %rax,-0x130(%rbp)
mov    0xec2(%rip),%rax
mov    %rax,-0x128(%rbp)
movsd  -0x18(%rbp),%xmm0
movaps 0xde7(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x178(%rbp)
ff
movsd  0xd43(%rip),%xmm0
ucomisd -0x178(%rbp),%xmm0
ff
jb     1422 <erfc1__+0x2e2>
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x180(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
movsd  -0x180(%rbp),%xmm2
ff
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x180(%rbp),%xmm2
ff
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x180(%rbp),%xmm2
ff
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x180(%rbp),%xmm2
ff
movsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xd3a(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x188(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  -0x180(%rbp),%xmm2
ff
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x180(%rbp),%xmm2
ff
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x180(%rbp),%xmm1
ff
mulsd  %xmm1,%xmm0
movsd  0xceb(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x190(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  -0x188(%rbp),%xmm1
ff
divsd  -0x190(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xc2f(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xc23(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x148(%rbp)
ff
cmpl   $0x0,-0xc(%rbp)
je     1410 <erfc1__+0x2d0>
movsd  -0x180(%rbp),%xmm0
ff
call   1050 <exp@plt>
mulsd  -0x148(%rbp),%xmm0
ff
movsd  %xmm0,-0x148(%rbp)
ff
movsd  -0x148(%rbp),%xmm0
ff
movsd  %xmm0,-0x8(%rbp)
jmp    18fa <erfc1__+0x7ba>
movsd  0xc36(%rip),%xmm0
ucomisd -0x178(%rbp),%xmm0
ff
jb     15bf <erfc1__+0x47f>
movsd  -0xb0(%rbp),%xmm0
ff
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0xa8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0x78(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x170(%rbp)
ff
movsd  -0xf0(%rbp),%xmm0
ff
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0xe8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0xe0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0xd8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0xd0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0xc8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0xc0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0xb8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x168(%rbp)
ff
movsd  -0x170(%rbp),%xmm0
ff
divsd  -0x168(%rbp),%xmm0
ff
movsd  %xmm0,-0x148(%rbp)
ff
jmp    17c6 <erfc1__+0x686>
movsd  0xaa1(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
jb     1621 <erfc1__+0x4e1>
movsd  0xaa6(%rip),%xmm0
movsd  %xmm0,-0x148(%rbp)
ff
cmpl   $0x0,-0xc(%rbp)
je     160f <erfc1__+0x4cf>
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1050 <exp@plt>
movsd  0xa7d(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x148(%rbp)
ff
movsd  -0x148(%rbp),%xmm0
ff
movsd  %xmm0,-0x8(%rbp)
jmp    18fa <erfc1__+0x7ba>
cmpl   $0x0,-0xc(%rbp)
jne    1697 <erfc1__+0x557>
movsd  -0x18(%rbp),%xmm0
movsd  0xa38(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     168a <erfc1__+0x54a>
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x198(%rbp)
ff
mov    $0x1,%edi
call   1060 <exparg@plt>
movaps %xmm0,%xmm1
movsd  -0x198(%rbp),%xmm0
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
ucomisd %xmm1,%xmm0
jbe    1697 <erfc1__+0x557>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    18fa <erfc1__+0x7ba>
movsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  0x9cf(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x158(%rbp)
ff
movsd  -0x120(%rbp),%xmm0
ff
movsd  -0x158(%rbp),%xmm2
ff
movsd  -0x118(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x158(%rbp),%xmm2
ff
movsd  -0x110(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x158(%rbp),%xmm2
ff
movsd  -0x108(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x158(%rbp),%xmm2
ff
movsd  -0x100(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x170(%rbp)
ff
movsd  -0x140(%rbp),%xmm0
ff
movsd  -0x158(%rbp),%xmm2
ff
movsd  -0x138(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x158(%rbp),%xmm2
ff
movsd  -0x130(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x158(%rbp),%xmm2
ff
movsd  -0x128(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x158(%rbp),%xmm1
ff
mulsd  %xmm1,%xmm0
movsd  0x8ef(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x168(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  -0x158(%rbp),%xmm1
ff
mulsd  -0x170(%rbp),%xmm1
ff
divsd  -0x168(%rbp),%xmm1
ff
subsd  %xmm1,%xmm0
divsd  -0x178(%rbp),%xmm0
ff
movsd  %xmm0,-0x148(%rbp)
ff
cmpl   $0x0,-0xc(%rbp)
je     1821 <erfc1__+0x6e1>
xorps  %xmm0,%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    181c <erfc1__+0x6dc>
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1050 <exp@plt>
movsd  -0x148(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x148(%rbp)
ff
jmp    18ed <erfc1__+0x7ad>
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x160(%rbp)
ff
movsd  -0x160(%rbp),%xmm0
ff
movsd  %xmm0,-0x158(%rbp)
ff
movsd  -0x160(%rbp),%xmm0
ff
subsd  -0x158(%rbp),%xmm0
ff
movsd  %xmm0,-0x150(%rbp)
ff
movsd  0x79d(%rip),%xmm0
subsd  -0x150(%rbp),%xmm0
ff
movsd  0x78d(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x1a0(%rbp)
ff
movsd  -0x158(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1050 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x1a0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
mulsd  -0x148(%rbp),%xmm0
ff
movsd  %xmm0,-0x148(%rbp)
ff
xorps  %xmm0,%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    18e8 <erfc1__+0x7a8>
movsd  0x7a8(%rip),%xmm0
subsd  -0x148(%rbp),%xmm0
ff
movsd  %xmm0,-0x148(%rbp)
ff
jmp    18ed <erfc1__+0x7ad>
movsd  -0x148(%rbp),%xmm0
ff
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<erfc1__>:
push   %rbx
sub    $0x30,%rsp
movapd %xmm0,%xmm4
mov    %edi,%ebx
movapd 0xecd(%rip),%xmm6
andpd  %xmm0,%xmm6
movsd  0xf41(%rip),%xmm5
ucomisd %xmm6,%xmm5
jae    1283 <erfc1__+0x163>
movsd  0xf7f(%rip),%xmm0
ucomisd %xmm6,%xmm0
jae    132b <erfc1__+0x20b>
movsd  0xf8d(%rip),%xmm0
ucomisd %xmm4,%xmm0
jae    13dd <erfc1__+0x2bd>
test   %ebx,%ebx
je     13f8 <erfc1__+0x2d8>
movapd %xmm4,%xmm0
mulsd  %xmm4,%xmm0
movsd  0xf2b(%rip),%xmm2
movapd %xmm2,%xmm1
divsd  %xmm0,%xmm1
movsd  0xf73(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xf6f(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xf6b(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xf67(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xf63(%rip),%xmm0
movsd  0xf63(%rip),%xmm3
mulsd  %xmm1,%xmm3
addsd  0xf5f(%rip),%xmm3
mulsd  %xmm1,%xmm3
addsd  0xf5b(%rip),%xmm3
mulsd  %xmm1,%xmm3
addsd  0xf57(%rip),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
mulsd  %xmm1,%xmm0
divsd  %xmm3,%xmm0
movsd  0xf47(%rip),%xmm2
subsd  %xmm0,%xmm2
divsd  %xmm6,%xmm2
test   %ebx,%ebx
jne    13af <erfc1__+0x28f>
movapd %xmm4,%xmm0
mulsd  %xmm4,%xmm0
movapd %xmm0,%xmm1
subsd  %xmm0,%xmm1
addsd  %xmm5,%xmm1
addsd  %xmm5,%xmm1
movapd %xmm1,0x10(%rsp)
xorpd  0xe31(%rip),%xmm0
movapd %xmm4,0x20(%rsp)
movapd %xmm2,(%rsp)
call   1030 <exp@plt>
movapd (%rsp),%xmm2
mulsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm2
xorpd  %xmm0,%xmm0
ucomisd 0x20(%rsp),%xmm0
jbe    1466 <erfc1__+0x346>
movsd  0xe82(%rip),%xmm0
subsd  %xmm2,%xmm0
movapd %xmm0,%xmm2
jmp    1466 <erfc1__+0x346>
movapd %xmm4,%xmm0
mulsd  %xmm4,%xmm0
movsd  0xdf5(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xdf1(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xded(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xde9(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xde5(%rip),%xmm1
movsd  0xded(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  0xde9(%rip),%xmm2
movsd  0xdd1(%rip),%xmm3
mulsd  %xmm0,%xmm2
addsd  0xddd(%rip),%xmm2
addsd  %xmm3,%xmm1
mulsd  %xmm0,%xmm2
addsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
mulsd  %xmm4,%xmm1
movapd %xmm5,%xmm2
subsd  %xmm1,%xmm2
addsd  %xmm5,%xmm2
test   %ebx,%ebx
je     1466 <erfc1__+0x346>
movapd %xmm2,(%rsp)
call   1030 <exp@plt>
movapd (%rsp),%xmm2
mulsd  %xmm0,%xmm2
jmp    1466 <erfc1__+0x346>
movsd  0xda5(%rip),%xmm2
mulsd  %xmm6,%xmm2
addsd  0xda1(%rip),%xmm2
movapd %xmm6,%xmm0
addsd  0xd9d(%rip),%xmm0
unpcklpd %xmm0,%xmm2
unpcklpd %xmm6,%xmm6
mulpd  %xmm6,%xmm2
addpd  0xcb1(%rip),%xmm2
mulpd  %xmm6,%xmm2
addpd  0xcb5(%rip),%xmm2
mulpd  %xmm6,%xmm2
addpd  0xcb9(%rip),%xmm2
mulpd  %xmm6,%xmm2
addpd  0xcbd(%rip),%xmm2
mulpd  %xmm6,%xmm2
addpd  0xcc1(%rip),%xmm2
mulpd  %xmm6,%xmm2
addpd  0xcc5(%rip),%xmm2
movapd %xmm2,%xmm0
unpckhpd %xmm2,%xmm0
divsd  %xmm0,%xmm2
test   %ebx,%ebx
je     1219 <erfc1__+0xf9>
xorpd  %xmm0,%xmm0
ucomisd %xmm4,%xmm0
jbe    1466 <erfc1__+0x346>
mulsd  %xmm4,%xmm4
movapd %xmm4,%xmm0
movapd %xmm2,(%rsp)
call   1030 <exp@plt>
addsd  %xmm0,%xmm0
subsd  (%rsp),%xmm0
jmp    146a <erfc1__+0x34a>
test   %ebx,%ebx
je     145e <erfc1__+0x33e>
mulsd  %xmm4,%xmm4
movapd %xmm4,%xmm0
call   1030 <exp@plt>
movapd %xmm0,%xmm2
addsd  %xmm0,%xmm2
jmp    1466 <erfc1__+0x346>
xorpd  %xmm2,%xmm2
ucomisd 0xcfc(%rip),%xmm4
ja     1466 <erfc1__+0x346>
movapd %xmm4,%xmm0
mulsd  %xmm4,%xmm0
movapd %xmm0,0x10(%rsp)
mov    $0x1,%edi
movapd %xmm4,0x20(%rsp)
movapd %xmm6,(%rsp)
call   1040 <exparg@plt>
movapd (%rsp),%xmm6
xorpd  %xmm2,%xmm2
movsd  0xc46(%rip),%xmm5
movapd 0x20(%rsp),%xmm4
xorpd  0xc28(%rip),%xmm0
movapd 0x10(%rsp),%xmm1
ucomisd %xmm0,%xmm1
movapd %xmm1,%xmm0
jbe    117d <erfc1__+0x5d>
jmp    1466 <erfc1__+0x346>
movsd  0xc92(%rip),%xmm2
movapd %xmm2,%xmm0
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.erfc1__.b = [3 x double] [double 0x3F68A97288DB092F, double 0x3FAB9868E2767FFE, double 0x3FD80D09A5DE569F]
@__const.erfc1__.p = [8 x double] [double 0xBE825EA4045ABDE7, double 0x3FE20DE3C203E757, double 0x401CD8D727A8CDDC, double 0x404594C3DC92A092, double 0x40631FA8391D60EF, double 0x4075352210BA6046, double 0x407C3EB408CEB084, double 0x4072C75922155EC6]
@__const.erfc1__.q = [8 x double] [double 1.000000e+00, double 0x402990C1A29EFCEF, double 0x405340028174F3C8, double 0x4071595DFB4ED0B2, double 0x4083F7D794E56A87, double 0x408D1AD52FAE586A, double 0x4088B79B7EBD0214, double 0x4072C75922046925]
@__const.erfc1__.s = [4 x double] [double 0x405789D77354A0AF, double 0x406763AC89CB8DE3, double 0x4058C13A44E26A46, double 0x403203306BC292DB]
define double @erfc1__(i32 %0, double %1) {
%3 = alloca double
%4 = alloca i32
%5 = alloca double
%6 = alloca double
%7 = alloca [5 x double]
%8 = alloca [3 x double]
%9 = alloca [8 x double]
%10 = alloca [8 x double]
%11 = alloca [5 x double]
%12 = alloca [4 x double]
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
store i32 %0, i32* %4
store double %1, double* %5
store double 0x3FE20DD750429B6A, double* %6
%23 = bitcast [5 x double]* %7 to i8*
%24 = bitcast i8* %23 to [5 x double]*
%25 = getelementptr inbounds [5 x double], [5 x double]* %24, i32 0, i32 0
store double 0x3F14367C68613852, double* %25
%26 = getelementptr inbounds [5 x double], [5 x double]* %24, i32 0, i32 1
store double 0xBF55E9337417A2A8, double* %26
%27 = getelementptr inbounds [5 x double], [5 x double]* %24, i32 0, i32 2
store double 0x3FA08AA11C602E02, double* %27
%28 = getelementptr inbounds [5 x double], [5 x double]* %24, i32 0, i32 3
store double 0x3FA888257A230271, double* %28
%29 = getelementptr inbounds [5 x double], [5 x double]* %24, i32 0, i32 4
store double 0x3FC06EBA8214DB78, double* %29
%30 = bitcast [3 x double]* %8 to i8*
%31 = bitcast [8 x double]* %9 to i8*
%32 = bitcast [8 x double]* %10 to i8*
%33 = bitcast [5 x double]* %11 to i8*
%34 = bitcast i8* %33 to [5 x double]*
%35 = getelementptr inbounds [5 x double], [5 x double]* %34, i32 0, i32 0
store double 0x4000CFC07015ECE7, double* %35
%36 = getelementptr inbounds [5 x double], [5 x double]* %34, i32 0, i32 1
store double 0x403A3CACF5E22C7B, double* %36
%37 = getelementptr inbounds [5 x double], [5 x double]* %34, i32 0, i32 2
store double 0x40355E6AFDBC84CE, double* %37
%38 = getelementptr inbounds [5 x double], [5 x double]* %34, i32 0, i32 3
store double 0x4012A1DF4646A9F7, double* %38
%39 = getelementptr inbounds [5 x double], [5 x double]* %34, i32 0, i32 4
store double 0x3FD20DD75042826F, double* %39
%40 = bitcast [4 x double]* %12 to i8*
%41 = load double, double* %5
%42 = call double @llvm.fabs.f64(double %41)
store double %42, double* %19
%43 = load double, double* %19
%44 = fcmp ole double %43, 5.000000e-01
br i1 %44, label %45, label %96
45: ; preds = %2
%46 = load double, double* %5
%47 = load double, double* %5
%48 = fmul double %46, %47
store double %48, double* %20
%49 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%50 = load double, double* %49
%51 = load double, double* %20
%52 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 1
%53 = load double, double* %52
%54 = call double @llvm.fmuladd.f64(double %50, double %51, double %53)
%55 = load double, double* %20
%56 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 2
%57 = load double, double* %56
%58 = call double @llvm.fmuladd.f64(double %54, double %55, double %57)
%59 = load double, double* %20
%60 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 3
%61 = load double, double* %60
%62 = call double @llvm.fmuladd.f64(double %58, double %59, double %61)
%63 = load double, double* %20
%64 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 4
%65 = load double, double* %64
%66 = call double @llvm.fmuladd.f64(double %62, double %63, double %65)
%67 = fadd double %66, 1.000000e+00
store double %67, double* %21
%68 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 0
%69 = load double, double* %68
%70 = load double, double* %20
%71 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 1
%72 = load double, double* %71
%73 = call double @llvm.fmuladd.f64(double %69, double %70, double %72)
%74 = load double, double* %20
%75 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 2
%76 = load double, double* %75
%77 = call double @llvm.fmuladd.f64(double %73, double %74, double %76)
%78 = load double, double* %20
%79 = call double @llvm.fmuladd.f64(double %77, double %78, double 1.000000e+00)
store double %79, double* %22
%80 = load double, double* %5
%81 = load double, double* %21
%82 = load double, double* %22
%83 = fdiv double %81, %82
%84 = fneg double %80
%85 = call double @llvm.fmuladd.f64(double %84, double %83, double 5.000000e-01)
%86 = fadd double %85, 5.000000e-01
store double %86, double* %13
%87 = load i32, i32* %4
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %94
89: ; preds = %45
%90 = load double, double* %20
%91 = call double @exp(double %90)
%92 = load double, double* %13
%93 = fmul double %91, %92
store double %93, double* %13
br label %94
94: ; preds = %89, %45
%95 = load double, double* %13
store double %95, double* %3
br label %279
96: ; preds = %2
%97 = load double, double* %19
%98 = fcmp ole double %97, 4.000000e+00
br i1 %98, label %99, label %163
99: ; preds = %96
%100 = getelementptr inbounds [8 x double], [8 x double]* %9, i64 0, i64 0
%101 = load double, double* %100
%102 = load double, double* %19
%103 = getelementptr inbounds [8 x double], [8 x double]* %9, i64 0, i64 1
%104 = load double, double* %103
%105 = call double @llvm.fmuladd.f64(double %101, double %102, double %104)
%106 = load double, double* %19
%107 = getelementptr inbounds [8 x double], [8 x double]* %9, i64 0, i64 2
%108 = load double, double* %107
%109 = call double @llvm.fmuladd.f64(double %105, double %106, double %108)
%110 = load double, double* %19
%111 = getelementptr inbounds [8 x double], [8 x double]* %9, i64 0, i64 3
%112 = load double, double* %111
%113 = call double @llvm.fmuladd.f64(double %109, double %110, double %112)
%114 = load double, double* %19
%115 = getelementptr inbounds [8 x double], [8 x double]* %9, i64 0, i64 4
%116 = load double, double* %115
%117 = call double @llvm.fmuladd.f64(double %113, double %114, double %116)
%118 = load double, double* %19
%119 = getelementptr inbounds [8 x double], [8 x double]* %9, i64 0, i64 5
%120 = load double, double* %119
%121 = call double @llvm.fmuladd.f64(double %117, double %118, double %120)
%122 = load double, double* %19
%123 = getelementptr inbounds [8 x double], [8 x double]* %9, i64 0, i64 6
%124 = load double, double* %123
%125 = call double @llvm.fmuladd.f64(double %121, double %122, double %124)
%126 = load double, double* %19
%127 = getelementptr inbounds [8 x double], [8 x double]* %9, i64 0, i64 7
%128 = load double, double* %127
%129 = call double @llvm.fmuladd.f64(double %125, double %126, double %128)
store double %129, double* %18
%130 = getelementptr inbounds [8 x double], [8 x double]* %10, i64 0, i64 0
%131 = load double, double* %130
%132 = load double, double* %19
%133 = getelementptr inbounds [8 x double], [8 x double]* %10, i64 0, i64 1
%134 = load double, double* %133
%135 = call double @llvm.fmuladd.f64(double %131, double %132, double %134)
%136 = load double, double* %19
%137 = getelementptr inbounds [8 x double], [8 x double]* %10, i64 0, i64 2
%138 = load double, double* %137
%139 = call double @llvm.fmuladd.f64(double %135, double %136, double %138)
%140 = load double, double* %19
%141 = getelementptr inbounds [8 x double], [8 x double]* %10, i64 0, i64 3
%142 = load double, double* %141
%143 = call double @llvm.fmuladd.f64(double %139, double %140, double %142)
%144 = load double, double* %19
%145 = getelementptr inbounds [8 x double], [8 x double]* %10, i64 0, i64 4
%146 = load double, double* %145
%147 = call double @llvm.fmuladd.f64(double %143, double %144, double %146)
%148 = load double, double* %19
%149 = getelementptr inbounds [8 x double], [8 x double]* %10, i64 0, i64 5
%150 = load double, double* %149
%151 = call double @llvm.fmuladd.f64(double %147, double %148, double %150)
%152 = load double, double* %19
%153 = getelementptr inbounds [8 x double], [8 x double]* %10, i64 0, i64 6
%154 = load double, double* %153
%155 = call double @llvm.fmuladd.f64(double %151, double %152, double %154)
%156 = load double, double* %19
%157 = getelementptr inbounds [8 x double], [8 x double]* %10, i64 0, i64 7
%158 = load double, double* %157
%159 = call double @llvm.fmuladd.f64(double %155, double %156, double %158)
store double %159, double* %17
%160 = load double, double* %18
%161 = load double, double* %17
%162 = fdiv double %160, %161
store double %162, double* %13
br label %239
163: ; preds = %96
%164 = load double, double* %5
%165 = fcmp ole double %164, -5.600000e+00
br i1 %165, label %166, label %177
166: ; preds = %163
store double 2.000000e+00, double* %13
%167 = load i32, i32* %4
%168 = icmp ne i32 %167, 0
br i1 %168, label %169, label %175
169: ; preds = %166
%170 = load double, double* %5
%171 = load double, double* %5
%172 = fmul double %170, %171
%173 = call double @exp(double %172)
%174 = fmul double %173, 2.000000e+00
store double %174, double* %13
br label %175
175: ; preds = %169, %166
%176 = load double, double* %13
store double %176, double* %3
br label %279
177: ; preds = %163
%178 = load i32, i32* %4
%179 = icmp eq i32 %178, 0
br i1 %179, label %180, label %191
180: ; preds = %177
%181 = load double, double* %5
%182 = fcmp ogt double %181, 1.000000e+02
br i1 %182, label %190, label %183
183: ; preds = %180
%184 = load double, double* %5
%185 = load double, double* %5
%186 = fmul double %184, %185
%187 = call double @exparg(i32 1)
%188 = fneg double %187
%189 = fcmp ogt double %186, %188
br i1 %189, label %190, label %191
190: ; preds = %183, %180
store double 0.000000e+00, double* %3
br label %279
191: ; preds = %183, %177
%192 = load double, double* %5
%193 = load double, double* %5
%194 = fmul double %192, %193
%195 = fdiv double 1.000000e+00, %194
store double %195, double* %15
%196 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 0
%197 = load double, double* %196
%198 = load double, double* %15
%199 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 1
%200 = load double, double* %199
%201 = call double @llvm.fmuladd.f64(double %197, double %198, double %200)
%202 = load double, double* %15
%203 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 2
%204 = load double, double* %203
%205 = call double @llvm.fmuladd.f64(double %201, double %202, double %204)
%206 = load double, double* %15
%207 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 3
%208 = load double, double* %207
%209 = call double @llvm.fmuladd.f64(double %205, double %206, double %208)
%210 = load double, double* %15
%211 = getelementptr inbounds [5 x double], [5 x double]* %11, i64 0, i64 4
%212 = load double, double* %211
%213 = call double @llvm.fmuladd.f64(double %209, double %210, double %212)
store double %213, double* %18
%214 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 0
%215 = load double, double* %214
%216 = load double, double* %15
%217 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 1
%218 = load double, double* %217
%219 = call double @llvm.fmuladd.f64(double %215, double %216, double %218)
%220 = load double, double* %15
%221 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 2
%222 = load double, double* %221
%223 = call double @llvm.fmuladd.f64(double %219, double %220, double %222)
%224 = load double, double* %15
%225 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 3
%226 = load double, double* %225
%227 = call double @llvm.fmuladd.f64(double %223, double %224, double %226)
%228 = load double, double* %15
%229 = call double @llvm.fmuladd.f64(double %227, double %228, double 1.000000e+00)
store double %229, double* %17
%230 = load double, double* %6
%231 = load double, double* %15
%232 = load double, double* %18
%233 = fmul double %231, %232
%234 = load double, double* %17
%235 = fdiv double %233, %234
%236 = fsub double %230, %235
%237 = load double, double* %19
%238 = fdiv double %236, %237
store double %238, double* %13
br label %239
239: ; preds = %191, %99
%240 = load i32, i32* %4
%241 = icmp ne i32 %240, 0
br i1 %241, label %242, label %254
242: ; preds = %239
%243 = load double, double* %5
%244 = fcmp olt double %243, 0.000000e+00
br i1 %244, label %245, label %253
245: ; preds = %242
%246 = load double, double* %5
%247 = load double, double* %5
%248 = fmul double %246, %247
%249 = call double @exp(double %248)
%250 = load double, double* %13
%251 = fneg double %250
%252 = call double @llvm.fmuladd.f64(double %249, double 2.000000e+00, double %251)
store double %252, double* %13
br label %253
253: ; preds = %245, %242
br label %277
254: ; preds = %239
%255 = load double, double* %5
%256 = load double, double* %5
%257 = fmul double %255, %256
store double %257, double* %16
%258 = load double, double* %16
store double %258, double* %15
%259 = load double, double* %16
%260 = load double, double* %15
%261 = fsub double %259, %260
store double %261, double* %14
%262 = load double, double* %14
%263 = fsub double 5.000000e-01, %262
%264 = fadd double %263, 5.000000e-01
%265 = load double, double* %15
%266 = fneg double %265
%267 = call double @exp(double %266)
%268 = fmul double %264, %267
%269 = load double, double* %13
%270 = fmul double %268, %269
store double %270, double* %13
%271 = load double, double* %5
%272 = fcmp olt double %271, 0.000000e+00
br i1 %272, label %273, label %276
273: ; preds = %254
%274 = load double, double* %13
%275 = fsub double 2.000000e+00, %274
store double %275, double* %13
br label %276
276: ; preds = %273, %254
br label %277
277: ; preds = %276, %253
%278 = load double, double* %13
store double %278, double* %3
br label %279
279: ; preds = %277, %190, %175, %94
%280 = load double, double* %3
ret double %280
}

LLVM IR (-O2):
define double @erfc1__(i32 %0, double %1) {
%3 = tail call double @llvm.fabs.f64(double %1)
%4 = fcmp ugt double %3, 5.000000e-01
br i1 %4, label %23, label %5
5: ; preds = %2
%6 = fmul double %1, %1
%7 = tail call double @llvm.fmuladd.f64(double %6, double 0x3F14367C68613852, double 0xBF55E9337417A2A8)
%8 = tail call double @llvm.fmuladd.f64(double %7, double %6, double 0x3FA08AA11C602E02)
%9 = tail call double @llvm.fmuladd.f64(double %8, double %6, double 0x3FA888257A230271)
%10 = tail call double @llvm.fmuladd.f64(double %9, double %6, double 0x3FC06EBA8214DB78)
%11 = fadd double %10, 1.000000e+00
%12 = tail call double @llvm.fmuladd.f64(double %6, double 0x3F68A97288DB092F, double 0x3FAB9868E2767FFE)
%13 = tail call double @llvm.fmuladd.f64(double %12, double %6, double 0x3FD80D09A5DE569F)
%14 = tail call double @llvm.fmuladd.f64(double %13, double %6, double 1.000000e+00)
%15 = fdiv double %11, %14
%16 = fneg double %1
%17 = tail call double @llvm.fmuladd.f64(double %16, double %15, double 5.000000e-01)
%18 = fadd double %17, 5.000000e-01
%19 = icmp eq i32 %0, 0
br i1 %19, label %96, label %20
20: ; preds = %5
%21 = tail call double @exp(double %6)
%22 = fmul double %18, %21
br label %96
23: ; preds = %2
%24 = fcmp ugt double %3, 4.000000e+00
br i1 %24, label %41, label %25
25: ; preds = %23
%26 = tail call double @llvm.fmuladd.f64(double %3, double 0xBE825EA4045ABDE7, double 0x3FE20DE3C203E757)
%27 = fadd double %3, 0x402990C1A29EFCEF
%28 = insertelement <2 x double> poison, double %26, i64 0
%29 = insertelement <2 x double> %28, double %27, i64 1
%30 = insertelement <2 x double> poison, double %3, i64 0
%31 = shufflevector <2 x double> %30, <2 x double> poison, <2 x i32> zeroinitializer
%32 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %29, <2 x double> %31, <2 x double> <double 0x401CD8D727A8CDDC, double 0x405340028174F3C8>)
%33 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %32, <2 x double> %31, <2 x double> <double 0x404594C3DC92A092, double 0x4071595DFB4ED0B2>)
%34 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %33, <2 x double> %31, <2 x double> <double 0x40631FA8391D60EF, double 0x4083F7D794E56A87>)
%35 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %34, <2 x double> %31, <2 x double> <double 0x4075352210BA6046, double 0x408D1AD52FAE586A>)
%36 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %35, <2 x double> %31, <2 x double> <double 0x407C3EB408CEB084, double 0x4088B79B7EBD0214>)
%37 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %36, <2 x double> %31, <2 x double> <double 0x4072C75922155EC6, double 0x4072C75922046925>)
%38 = extractelement <2 x double> %37, i64 0
%39 = extractelement <2 x double> %37, i64 1
%40 = fdiv double %38, %39
br label %74
41: ; preds = %23
%42 = fcmp ugt double %1, -5.600000e+00
%43 = icmp eq i32 %0, 0
br i1 %42, label %49, label %44
44: ; preds = %41
br i1 %43, label %96, label %45
45: ; preds = %44
%46 = fmul double %1, %1
%47 = tail call double @exp(double %46)
%48 = fmul double %47, 2.000000e+00
br label %96
49: ; preds = %41
br i1 %43, label %52, label %50
50: ; preds = %49
%51 = fmul double %1, %1
br label %59
52: ; preds = %49
%53 = fcmp ogt double %1, 1.000000e+02
br i1 %53, label %96, label %54
54: ; preds = %52
%55 = fmul double %1, %1
%56 = tail call double @exparg(i32 1)
%57 = fneg double %56
%58 = fcmp ogt double %55, %57
br i1 %58, label %96, label %59
59: ; preds = %50, %54
%60 = phi double [ %51, %50 ], [ %55, %54 ]
%61 = fdiv double 1.000000e+00, %60
%62 = tail call double @llvm.fmuladd.f64(double %61, double 0x4000CFC07015ECE7, double 0x403A3CACF5E22C7B)
%63 = tail call double @llvm.fmuladd.f64(double %62, double %61, double 0x40355E6AFDBC84CE)
%64 = tail call double @llvm.fmuladd.f64(double %63, double %61, double 0x4012A1DF4646A9F7)
%65 = tail call double @llvm.fmuladd.f64(double %64, double %61, double 0x3FD20DD75042826F)
%66 = tail call double @llvm.fmuladd.f64(double %61, double 0x405789D77354A0AF, double 0x406763AC89CB8DE3)
%67 = tail call double @llvm.fmuladd.f64(double %66, double %61, double 0x4058C13A44E26A46)
%68 = tail call double @llvm.fmuladd.f64(double %67, double %61, double 0x403203306BC292DB)
%69 = tail call double @llvm.fmuladd.f64(double %68, double %61, double 1.000000e+00)
%70 = fmul double %61, %65
%71 = fdiv double %70, %69
%72 = fsub double 0x3FE20DD750429B6A, %71
%73 = fdiv double %72, %3
br label %74
74: ; preds = %59, %25
%75 = phi double [ %40, %25 ], [ %73, %59 ]
%76 = icmp eq i32 %0, 0
br i1 %76, label %84, label %77
77: ; preds = %74
%78 = fcmp olt double %1, 0.000000e+00
br i1 %78, label %79, label %96
79: ; preds = %77
%80 = fmul double %1, %1
%81 = tail call double @exp(double %80)
%82 = fneg double %75
%83 = tail call double @llvm.fmuladd.f64(double %81, double 2.000000e+00, double %82)
br label %96
84: ; preds = %74
%85 = fmul double %1, %1
%86 = fsub double %85, %85
%87 = fadd double %86, 5.000000e-01
%88 = fadd double %87, 5.000000e-01
%89 = fneg double %85
%90 = tail call double @exp(double %89)
%91 = fmul double %88, %90
%92 = fmul double %75, %91
%93 = fcmp olt double %1, 0.000000e+00
br i1 %93, label %94, label %96
94: ; preds = %84
%95 = fsub double 2.000000e+00, %92
br label %96
96: ; preds = %79, %77, %94, %84, %52, %54, %44, %45, %5, %20
%97 = phi double [ %22, %20 ], [ %18, %5 ], [ %48, %45 ], [ 2.000000e+00, %44 ], [ 0.000000e+00, %54 ], [ 0.000000e+00, %52 ], [ %83, %79 ], [ %75, %77 ], [ %95, %94 ], [ %92, %84 ]
ret double %97
}