#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 /*<<< orphan*/ atanh(double);
int /*<<< orphan*/ atanhf(float);
int /*<<< orphan*/ atanhl(long double);
void invalidFunctionArg_atanh(void) {
  float f = 1.00001f;
  (void)atanhf(f);
  f = 1.0f;
  (void)atanhf(f);
  f = -1.0f;
  (void)atanhf(f);
  f = -1.00001f;
  (void)atanhf(f);
  double d = 1.00001;
  (void)atanh(d);
  d = 1.0;
  (void)atanh(d);
  d = -1.0;
  (void)atanh(d);
  d = -1.00001;
  (void)atanh(d);
  long double ld = 1.00001L;
  (void)atanhl(ld);
  ld = 1.0L;
  (void)atanhl(ld);
  ld = -1.0L;
  (void)atanhl(ld);
  ld = -1.00001L;
  (void)atanhl(ld);
}


x86 assembly (clang, -O0):
<invalidFunctionArg_atanh>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x3f800054,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1040 <atanhf@plt>
movl   $0x3f800000,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1040 <atanhf@plt>
movl   $0xbf800000,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1040 <atanhf@plt>
movl   $0xbf800054,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1040 <atanhf@plt>
movabs $0x3ff0000a7c5ac472,%rax
mov    %rax,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1030 <atanh@plt>
movabs $0x3ff0000000000000,%rax
mov    %rax,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1030 <atanh@plt>
movabs $0xbff0000000000000,%rax
mov    %rax,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1030 <atanh@plt>
movabs $0xbff0000a7c5ac472,%rax
mov    %rax,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1030 <atanh@plt>
fldt   0xe1e(%rip)
fstpt  -0x20(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <atanhl@plt>
fld1
fld    %st(0)
fstpt  -0x2c(%rbp)
fstpt  -0x20(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <atanhl@plt>
fldt   -0x2c(%rbp)
fchs
fstpt  -0x20(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <atanhl@plt>
fldt   0xdec(%rip)
fstpt  -0x20(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <atanhl@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<invalidFunctionArg_atanh>:
sub    $0x28,%rsp
movss  0xec4(%rip),%xmm0
call   1040 <atanhf@plt>
movss  0xebb(%rip),%xmm0
call   1040 <atanhf@plt>
movss  0xeb2(%rip),%xmm0
call   1040 <atanhf@plt>
movss  0xea9(%rip),%xmm0
call   1040 <atanhf@plt>
movsd  0xea0(%rip),%xmm0
call   1030 <atanh@plt>
movsd  0xe9b(%rip),%xmm0
call   1030 <atanh@plt>
movsd  0xe96(%rip),%xmm0
call   1030 <atanh@plt>
movsd  0xe91(%rip),%xmm0
call   1030 <atanh@plt>
fldt   0xe8e(%rip)
fstpt  (%rsp)
call   1050 <atanhl@plt>
fld1
fld    %st(0)
fstpt  0x1c(%rsp)
fstpt  (%rsp)
call   1050 <atanhl@plt>
fldt   0x1c(%rsp)
fchs
fstpt  (%rsp)
call   1050 <atanhl@plt>
fldt   0xe72(%rip)
fstpt  (%rsp)
call   1050 <atanhl@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
define void @invalidFunctionArg_atanh() {
%1 = alloca float
%2 = alloca double
%3 = alloca x86_fp80
store float 0x3FF0000A80000000, float* %1
%4 = load float, float* %1
%5 = call i32 @atanhf(float %4)
store float 1.000000e+00, float* %1
%6 = load float, float* %1
%7 = call i32 @atanhf(float %6)
store float -1.000000e+00, float* %1
%8 = load float, float* %1
%9 = call i32 @atanhf(float %8)
store float 0xBFF0000A80000000, float* %1
%10 = load float, float* %1
%11 = call i32 @atanhf(float %10)
store double 1.000010e+00, double* %2
%12 = load double, double* %2
%13 = call i32 @atanh(double %12)
store double 1.000000e+00, double* %2
%14 = load double, double* %2
%15 = call i32 @atanh(double %14)
store double -1.000000e+00, double* %2
%16 = load double, double* %2
%17 = call i32 @atanh(double %16)
store double -1.000010e+00, double* %2
%18 = load double, double* %2
%19 = call i32 @atanh(double %18)
store x86_fp80 0xK3FFF800053E2D6238DA4, x86_fp80* %3
%20 = load x86_fp80, x86_fp80* %3
%21 = call i32 @atanhl(x86_fp80 %20)
store x86_fp80 0xK3FFF8000000000000000, x86_fp80* %3
%22 = load x86_fp80, x86_fp80* %3
%23 = call i32 @atanhl(x86_fp80 %22)
store x86_fp80 0xKBFFF8000000000000000, x86_fp80* %3
%24 = load x86_fp80, x86_fp80* %3
%25 = call i32 @atanhl(x86_fp80 %24)
store x86_fp80 0xKBFFF800053E2D6238DA4, x86_fp80* %3
%26 = load x86_fp80, x86_fp80* %3
%27 = call i32 @atanhl(x86_fp80 %26)
ret void
}

LLVM IR (-O2):
define void @invalidFunctionArg_atanh() {
%1 = tail call i32 @atanhf(float 0x3FF0000A80000000)
%2 = tail call i32 @atanhf(float 1.000000e+00)
%3 = tail call i32 @atanhf(float -1.000000e+00)
%4 = tail call i32 @atanhf(float 0xBFF0000A80000000)
%5 = tail call i32 @atanh(double 1.000010e+00)
%6 = tail call i32 @atanh(double 1.000000e+00)
%7 = tail call i32 @atanh(double -1.000000e+00)
%8 = tail call i32 @atanh(double -1.000010e+00)
%9 = tail call i32 @atanhl(x86_fp80 0xK3FFF800053E2D6238DA4)
%10 = tail call i32 @atanhl(x86_fp80 0xK3FFF8000000000000000)
%11 = tail call i32 @atanhl(x86_fp80 0xKBFFF8000000000000000)
%12 = tail call i32 @atanhl(x86_fp80 0xKBFFF800053E2D6238DA4)
ret void
}