#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 fabs(float);
float erfcc(float x) {
  double t, q, ans;
  q = fabs(x);
  t = 1.0 / (1.0 + 0.5 * q);
  ans = t * exp(-q * q - 1.2655122 +
                t * (1.0000237 +
                     t * (0.374092 +
                          t * (0.0967842 +
                               t * (-0.1862881 +
                                    t * (0.2788681 +
                                         t * (-1.13520398 +
                                              t * (1.4885159 +
                                                   t * (-0.82215223 +
                                                        t * 0.17087277)))))))));
  return x >= 0.0 ? ans : 2.0 - ans;
}


x86 assembly (clang, -O0):
<erfcc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <fabs@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xf0f(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xefb(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xeef(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  -0x18(%rbp),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xea7(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm3
movsd  -0x10(%rbp),%xmm4
movsd  -0x10(%rbp),%xmm5
movsd  -0x10(%rbp),%xmm6
movsd  -0x10(%rbp),%xmm7
movsd  -0x10(%rbp),%xmm8
movsd  -0x10(%rbp),%xmm9
movsd  0xe5b(%rip),%xmm10
mulsd  %xmm10,%xmm9
movsd  0xe55(%rip),%xmm10
addsd  %xmm10,%xmm9
mulsd  %xmm9,%xmm8
movsd  0xe32(%rip),%xmm9
addsd  %xmm9,%xmm8
mulsd  %xmm8,%xmm7
movsd  0xe17(%rip),%xmm8
addsd  %xmm8,%xmm7
mulsd  %xmm7,%xmm6
movsd  0xdfe(%rip),%xmm7
addsd  %xmm7,%xmm6
mulsd  %xmm6,%xmm5
movsd  0xde6(%rip),%xmm6
addsd  %xmm6,%xmm5
mulsd  %xmm5,%xmm4
movsd  0xdce(%rip),%xmm5
addsd  %xmm5,%xmm4
mulsd  %xmm4,%xmm3
movsd  0xdb6(%rip),%xmm4
addsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm2
movsd  0xd9e(%rip),%xmm3
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     12a9 <erfcc+0x189>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    12bb <erfcc+0x19b>
movsd  0xdaf(%rip),%xmm0
subsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<erfcc>:
sub    $0x18,%rsp
movss  %xmm0,0xc(%rsp)
call   1030 <fabs@plt>
movapd %xmm0,%xmm1
movsd  0xec5(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xec1(%rip),%xmm3
addsd  %xmm3,%xmm0
divsd  %xmm0,%xmm3
movsd  %xmm3,0x10(%rsp)
movsd  0xebb(%rip),%xmm0
mulsd  %xmm3,%xmm0
addsd  0xeb7(%rip),%xmm0
mulsd  %xmm3,%xmm0
addsd  0xeb3(%rip),%xmm0
mulsd  %xmm3,%xmm0
addsd  0xeaf(%rip),%xmm0
mulsd  %xmm1,%xmm1
mulsd  %xmm3,%xmm0
addsd  0xea7(%rip),%xmm0
movsd  0xe77(%rip),%xmm2
mulsd  %xmm3,%xmm0
addsd  0xe9b(%rip),%xmm0
subsd  %xmm1,%xmm2
mulsd  %xmm3,%xmm0
addsd  0xe93(%rip),%xmm0
mulsd  %xmm3,%xmm0
addsd  0xe8f(%rip),%xmm0
mulsd  %xmm3,%xmm0
addsd  0xe8b(%rip),%xmm0
mulsd  %xmm3,%xmm0
addsd  %xmm2,%xmm0
call   1040 <exp@plt>
mulsd  0x10(%rsp),%xmm0
xorpd  %xmm1,%xmm1
movss  0xc(%rsp),%xmm2
ucomiss %xmm1,%xmm2
jae    11ff <erfcc+0xdf>
movsd  0xe69(%rip),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define float @erfcc(float %0) {
%2 = alloca float
%3 = alloca double
%4 = alloca double
%5 = alloca double
store float %0, float* %2
%6 = load float, float* %2
%7 = call double @fabs(float %6)
store double %7, double* %4
%8 = load double, double* %4
%9 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %8, double 1.000000e+00)
%10 = fdiv double 1.000000e+00, %9
store double %10, double* %3
%11 = load double, double* %3
%12 = load double, double* %4
%13 = fneg double %12
%14 = load double, double* %4
%15 = call double @llvm.fmuladd.f64(double %13, double %14, double 0xBFF43F89B87B0631)
%16 = load double, double* %3
%17 = load double, double* %3
%18 = load double, double* %3
%19 = load double, double* %3
%20 = load double, double* %3
%21 = load double, double* %3
%22 = load double, double* %3
%23 = load double, double* %3
%24 = load double, double* %3
%25 = call double @llvm.fmuladd.f64(double %24, double 0x3FC5DF28AF76A5A4, double 0xBFEA4F123185DEFD)
%26 = call double @llvm.fmuladd.f64(double %23, double %25, double 0x3FF7D0F60C613752)
%27 = call double @llvm.fmuladd.f64(double %22, double %26, double 0xBFF229CBA6063980)
%28 = call double @llvm.fmuladd.f64(double %21, double %27, double 0x3FD1D8F996597339)
%29 = call double @llvm.fmuladd.f64(double %20, double %28, double 0xBFC7D849D891262E)
%30 = call double @llvm.fmuladd.f64(double %19, double %29, double 9.678420e-02)
%31 = call double @llvm.fmuladd.f64(double %18, double %30, double 3.740920e-01)
%32 = call double @llvm.fmuladd.f64(double %17, double %31, double 0x3FF00018D9EB9941)
%33 = call double @llvm.fmuladd.f64(double %16, double %32, double %15)
%34 = call double @exp(double %33)
%35 = fmul double %11, %34
store double %35, double* %5
%36 = load float, float* %2
%37 = fpext float %36 to double
%38 = fcmp oge double %37, 0.000000e+00
br i1 %38, label %39, label %41
39: ; preds = %1
%40 = load double, double* %5
br label %44
41: ; preds = %1
%42 = load double, double* %5
%43 = fsub double 2.000000e+00, %42
br label %44
44: ; preds = %41, %39
%45 = phi double [ %40, %39 ], [ %43, %41 ]
%46 = fptrunc double %45 to float
ret float %46
}

LLVM IR (-O2):
define float @erfcc(float %0) {
%2 = tail call double @fabs(float %0)
%3 = tail call double @llvm.fmuladd.f64(double %2, double 5.000000e-01, double 1.000000e+00)
%4 = fdiv double 1.000000e+00, %3
%5 = fneg double %2
%6 = tail call double @llvm.fmuladd.f64(double %5, double %2, double 0xBFF43F89B87B0631)
%7 = tail call double @llvm.fmuladd.f64(double %4, double 0x3FC5DF28AF76A5A4, double 0xBFEA4F123185DEFD)
%8 = tail call double @llvm.fmuladd.f64(double %4, double %7, double 0x3FF7D0F60C613752)
%9 = tail call double @llvm.fmuladd.f64(double %4, double %8, double 0xBFF229CBA6063980)
%10 = tail call double @llvm.fmuladd.f64(double %4, double %9, double 0x3FD1D8F996597339)
%11 = tail call double @llvm.fmuladd.f64(double %4, double %10, double 0xBFC7D849D891262E)
%12 = tail call double @llvm.fmuladd.f64(double %4, double %11, double 9.678420e-02)
%13 = tail call double @llvm.fmuladd.f64(double %4, double %12, double 3.740920e-01)
%14 = tail call double @llvm.fmuladd.f64(double %4, double %13, double 0x3FF00018D9EB9941)
%15 = tail call double @llvm.fmuladd.f64(double %4, double %14, double %6)
%16 = tail call double @exp(double %15)
%17 = fmul double %16, %4
%18 = fcmp oge float %0, 0.000000e+00
%19 = fsub double 2.000000e+00, %17
%20 = select i1 %18, double %17, double %19
%21 = fptrunc double %20 to float
ret float %21
}