#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 atan(int);
double cos(double);
double cosh(double);
int fabs(double);
double pow(int, int);
double sin(double);
double sinh(double);
int sqrt(double);
int tan(double);
int tanh(double);
void anomaly(double ma, double s, double *nu, double *ea) {
  double m, fea, corr;
  if (s < 1.0) {
    double dla;
    m = ma - (2 * 3.141592653589793) * (long)(ma / (2 * 3.141592653589793));
    if (m > 3.141592653589793)
      m -= (2 * 3.141592653589793);
    if (m < -3.141592653589793)
      m += (2 * 3.141592653589793);
    fea = m;
    for (;;) {
      dla = fea - (s * sin(fea)) - m;
      if (fabs(dla) < (1e-8))
        break;
      corr = 1 - (s * cos(fea));
      if (corr < .1)
        corr = .1;
      dla /= corr;
      fea -= dla;
    }
    *nu = 2 * atan(sqrt((1 + s) / (1 - s)) * tan(fea / 2));
  } else {
    double fea1;
    m = fabs(ma);
    fea = m / (s - 1.);
    fea1 = pow(6 * m / (s * s), 1. / 3.);
    if (fea1 < fea)
      fea = fea1;
    corr = 1;
    while (fabs(corr) > (1e-8)) {
      corr = (m - s * sinh(fea) + fea) / (s * cosh(fea) - 1);
      fea += corr;
    }
    if (ma < 0.)
      fea = -fea;
    *nu = 2 * atan(sqrt((s + 1) / (s - 1)) * tanh(fea / 2));
  }
  *ea = fea;
}


x86 assembly (clang, -O0):
<anomaly>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
movsd  0xe3b(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    13c8 <anomaly+0x228>
movsd  -0x8(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm0
movsd  0xe56(%rip),%xmm2
divsd  %xmm2,%xmm0
cvttsd2si %xmm0,%rax
cvtsi2sd %rax,%xmm0
movsd  0xe38(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  0xe16(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1232 <anomaly+0x92>
movsd  -0x28(%rbp),%xmm0
movsd  0xe0f(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe06(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    1257 <anomaly+0xb7>
movsd  0xdeb(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1070 <sin@plt>
movsd  -0x58(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x50(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
subsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1060 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0xd45(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    12da <anomaly+0x13a>
jmp    136d <anomaly+0x1cd>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x30(%rbp),%xmm0
call   10a0 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xce7(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xd1e(%rip),%xmm0
ucomisd -0x38(%rbp),%xmm0
jbe    1342 <anomaly+0x1a2>
movsd  0xd0b(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    1261 <anomaly+0xc1>
movsd  0xc8b(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  0xc7e(%rip),%xmm1
subsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   10c0 <sqrt@plt>
mov    %eax,-0x64(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  0xc78(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1090 <tan@plt>
mov    -0x64(%rbp),%edi
imul   %eax,%edi
call   1080 <atan@plt>
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    15a7 <anomaly+0x407>
movsd  -0x8(%rbp),%xmm0
call   1060 <fabs@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xc13(%rip),%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xc06(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
xor    %esi,%esi
call   10b0 <pow@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1443 <anomaly+0x2a3>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xbb5(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1060 <fabs@plt>
cvtsi2sd %eax,%xmm0
movsd  0xbaa(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1518 <anomaly+0x378>
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1030 <sinh@plt>
movsd  -0x88(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x80(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1050 <cosh@plt>
movsd  -0x78(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x70(%rbp),%xmm0
mulsd  %xmm2,%xmm1
movsd  0xb29(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    1450 <anomaly+0x2b0>
xorps  %xmm0,%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    1547 <anomaly+0x3a7>
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xab1(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xa9f(%rip),%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   10c0 <sqrt@plt>
mov    %eax,-0x8c(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  0xa97(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1040 <tanh@plt>
mov    -0x8c(%rbp),%edi
imul   %eax,%edi
call   1080 <atan@plt>
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x30(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<anomaly>:
push   %rbp
push   %r14
push   %rbx
sub    $0x70,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  0xe4a(%rip),%xmm2
movapd %xmm1,0x20(%rsp)
ucomisd %xmm1,%xmm2
jbe    12f6 <anomaly+0x156>
movsd  0xe52(%rip),%xmm4
movapd %xmm0,%xmm1
divsd  %xmm4,%xmm1
cvttsd2si %xmm1,%rax
xorps  %xmm1,%xmm1
cvtsi2sd %rax,%xmm1
movsd  0xe3d(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
addsd  %xmm1,%xmm2
movsd  0xe31(%rip),%xmm3
cmpltsd %xmm1,%xmm3
andpd  %xmm3,%xmm2
andnpd %xmm1,%xmm3
orpd   %xmm2,%xmm3
movapd %xmm3,%xmm0
cmpltsd 0xe1b(%rip),%xmm0
addsd  %xmm3,%xmm4
andpd  %xmm0,%xmm4
andnpd %xmm3,%xmm0
orpd   %xmm4,%xmm0
movapd %xmm0,0x30(%rsp)
call   1070 <sin@plt>
mulsd  0x20(%rsp),%xmm0
movapd 0x30(%rsp),%xmm2
movapd %xmm2,%xmm1
subsd  %xmm0,%xmm1
subsd  %xmm2,%xmm1
movapd %xmm1,0x10(%rsp)
movapd %xmm1,%xmm0
call   1060 <fabs@plt>
test   %eax,%eax
jle    1455 <anomaly+0x2b5>
movaps 0xde2(%rip),%xmm0
xorps  0x20(%rsp),%xmm0
movaps %xmm0,0x40(%rsp)
movapd 0x30(%rsp),%xmm0
movapd %xmm0,(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movapd (%rsp),%xmm0
call   10a0 <cos@plt>
mulsd  0x40(%rsp),%xmm0
addsd  0xd58(%rip),%xmm0
movsd  0xd90(%rip),%xmm1
maxsd  %xmm0,%xmm1
movapd 0x10(%rsp),%xmm2
divsd  %xmm1,%xmm2
movapd (%rsp),%xmm0
subsd  %xmm2,%xmm0
movapd %xmm0,(%rsp)
call   1070 <sin@plt>
mulsd  0x40(%rsp),%xmm0
addsd  (%rsp),%xmm0
subsd  0x30(%rsp),%xmm0
movapd %xmm0,0x10(%rsp)
call   1060 <fabs@plt>
test   %eax,%eax
jg     1290 <anomaly+0xf0>
jmp    1460 <anomaly+0x2c0>
movaps %xmm0,(%rsp)
call   1060 <fabs@plt>
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
movsd  0xcfa(%rip),%xmm0
movapd 0x20(%rsp),%xmm1
addsd  %xmm1,%xmm0
movapd %xmm2,%xmm3
movsd  %xmm0,0x58(%rsp)
divsd  %xmm0,%xmm3
movsd  %xmm3,0x10(%rsp)
movsd  0xcdc(%rip),%xmm0
movsd  %xmm2,0x30(%rsp)
mulsd  %xmm2,%xmm0
mulsd  %xmm1,%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
xor    %esi,%esi
call   10b0 <pow@plt>
minsd  0x10(%rsp),%xmm0
movapd %xmm0,0x10(%rsp)
movsd  0xc9b(%rip),%xmm0
call   1060 <fabs@plt>
test   %eax,%eax
jle    13f5 <anomaly+0x255>
movapd 0xcd6(%rip),%xmm0
xorpd  0x20(%rsp),%xmm0
movapd %xmm0,0x60(%rsp)
cs nopw 0x0(%rax,%rax,1)
movapd 0x10(%rsp),%xmm0
call   1030 <sinh@plt>
movapd %xmm0,%xmm1
mulsd  0x60(%rsp),%xmm1
addsd  0x30(%rsp),%xmm1
movapd 0x10(%rsp),%xmm0
addsd  %xmm0,%xmm1
movsd  %xmm1,0x40(%rsp)
call   1050 <cosh@plt>
mulsd  0x20(%rsp),%xmm0
addsd  0xc3a(%rip),%xmm0
movsd  0x40(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd 0x10(%rsp),%xmm0
addsd  %xmm1,%xmm0
movapd %xmm0,0x10(%rsp)
movapd %xmm1,%xmm0
call   1060 <fabs@plt>
test   %eax,%eax
jg     1390 <anomaly+0x1f0>
movapd 0xc53(%rip),%xmm0
movapd 0x10(%rsp),%xmm2
xorpd  %xmm2,%xmm0
xorpd  %xmm1,%xmm1
movapd (%rsp),%xmm3
cmpltsd %xmm1,%xmm3
andpd  %xmm3,%xmm0
andnpd %xmm2,%xmm3
orpd   %xmm0,%xmm3
movapd %xmm3,(%rsp)
movapd 0x20(%rsp),%xmm0
addsd  0xbcc(%rip),%xmm0
divsd  0x58(%rsp),%xmm0
call   10c0 <sqrt@plt>
mov    %eax,%ebp
movapd (%rsp),%xmm0
mulsd  0xbca(%rip),%xmm0
call   1040 <tanh@plt>
jmp    1497 <anomaly+0x2f7>
movapd 0x30(%rsp),%xmm0
movapd %xmm0,(%rsp)
movapd 0x20(%rsp),%xmm1
movapd %xmm1,%xmm0
movsd  0xb8e(%rip),%xmm2
addsd  %xmm2,%xmm0
subsd  %xmm1,%xmm2
divsd  %xmm2,%xmm0
call   10c0 <sqrt@plt>
mov    %eax,%ebp
movsd  0xb8b(%rip),%xmm0
mulsd  (%rsp),%xmm0
call   1090 <tan@plt>
imul   %ebp,%eax
mov    %eax,%edi
call   1080 <atan@plt>
add    %eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,(%rbx)
movaps (%rsp),%xmm0
movsd  %xmm0,(%r14)
add    $0x70,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @anomaly(double %0, double %1, double* %2, double* %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double*
%8 = alloca double*
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
store double %0, double* %5
store double %1, double* %6
store double* %2, double** %7
store double* %3, double** %8
%14 = load double, double* %6
%15 = fcmp olt double %14, 1.000000e+00
br i1 %15, label %16, label %81
16: ; preds = %4
%17 = load double, double* %5
%18 = load double, double* %5
%19 = fdiv double %18, 0x401921FB54442D18
%20 = fptosi double %19 to i64
%21 = sitofp i64 %20 to double
%22 = call double @llvm.fmuladd.f64(double 0xC01921FB54442D18, double %21, double %17)
store double %22, double* %9
%23 = load double, double* %9
%24 = fcmp ogt double %23, 0x400921FB54442D18
br i1 %24, label %25, label %28
25: ; preds = %16
%26 = load double, double* %9
%27 = fsub double %26, 0x401921FB54442D18
store double %27, double* %9
br label %28
28: ; preds = %25, %16
%29 = load double, double* %9
%30 = fcmp olt double %29, 0xC00921FB54442D18
br i1 %30, label %31, label %34
31: ; preds = %28
%32 = load double, double* %9
%33 = fadd double %32, 0x401921FB54442D18
store double %33, double* %9
br label %34
34: ; preds = %31, %28
%35 = load double, double* %9
store double %35, double* %10
br label %36
36: ; preds = %59, %34
%37 = load double, double* %10
%38 = load double, double* %6
%39 = load double, double* %10
%40 = call double @sin(double %39)
%41 = fneg double %38
%42 = call double @llvm.fmuladd.f64(double %41, double %40, double %37)
%43 = load double, double* %9
%44 = fsub double %42, %43
store double %44, double* %12
%45 = load double, double* %12
%46 = call i32 @fabs(double %45)
%47 = sitofp i32 %46 to double
%48 = fcmp olt double %47, 1.000000e-08
br i1 %48, label %49, label %50
49: ; preds = %36
br label %66
50: ; preds = %36
%51 = load double, double* %6
%52 = load double, double* %10
%53 = call double @cos(double %52)
%54 = fneg double %51
%55 = call double @llvm.fmuladd.f64(double %54, double %53, double 1.000000e+00)
store double %55, double* %11
%56 = load double, double* %11
%57 = fcmp olt double %56, 1.000000e-01
br i1 %57, label %58, label %59
58: ; preds = %50
store double 1.000000e-01, double* %11
br label %59
59: ; preds = %58, %50
%60 = load double, double* %11
%61 = load double, double* %12
%62 = fdiv double %61, %60
store double %62, double* %12
%63 = load double, double* %12
%64 = load double, double* %10
%65 = fsub double %64, %63
store double %65, double* %10
br label %36
66: ; preds = %49
%67 = load double, double* %6
%68 = fadd double 1.000000e+00, %67
%69 = load double, double* %6
%70 = fsub double 1.000000e+00, %69
%71 = fdiv double %68, %70
%72 = call i32 @sqrt(double %71)
%73 = load double, double* %10
%74 = fdiv double %73, 2.000000e+00
%75 = call i32 @tan(double %74)
%76 = mul nsw i32 %72, %75
%77 = call i32 @atan(i32 %76)
%78 = mul nsw i32 2, %77
%79 = sitofp i32 %78 to double
%80 = load double*, double** %7
store double %79, double* %80
br label %146
81: ; preds = %4
%82 = load double, double* %5
%83 = call i32 @fabs(double %82)
%84 = sitofp i32 %83 to double
store double %84, double* %9
%85 = load double, double* %9
%86 = load double, double* %6
%87 = fsub double %86, 1.000000e+00
%88 = fdiv double %85, %87
store double %88, double* %10
%89 = load double, double* %9
%90 = fmul double 6.000000e+00, %89
%91 = load double, double* %6
%92 = load double, double* %6
%93 = fmul double %91, %92
%94 = fdiv double %90, %93
%95 = fptosi double %94 to i32
%96 = call double @pow(i32 %95, i32 0)
store double %96, double* %13
%97 = load double, double* %13
%98 = load double, double* %10
%99 = fcmp olt double %97, %98
br i1 %99, label %100, label %102
100: ; preds = %81
%101 = load double, double* %13
store double %101, double* %10
br label %102
102: ; preds = %100, %81
store double 1.000000e+00, double* %11
br label %103
103: ; preds = %108, %102
%104 = load double, double* %11
%105 = call i32 @fabs(double %104)
%106 = sitofp i32 %105 to double
%107 = fcmp ogt double %106, 1.000000e-08
br i1 %107, label %108, label %125
108: ; preds = %103
%109 = load double, double* %9
%110 = load double, double* %6
%111 = load double, double* %10
%112 = call double @sinh(double %111)
%113 = fneg double %110
%114 = call double @llvm.fmuladd.f64(double %113, double %112, double %109)
%115 = load double, double* %10
%116 = fadd double %114, %115
%117 = load double, double* %6
%118 = load double, double* %10
%119 = call double @cosh(double %118)
%120 = call double @llvm.fmuladd.f64(double %117, double %119, double -1.000000e+00)
%121 = fdiv double %116, %120
store double %121, double* %11
%122 = load double, double* %11
%123 = load double, double* %10
%124 = fadd double %123, %122
store double %124, double* %10
br label %103
125: ; preds = %103
%126 = load double, double* %5
%127 = fcmp olt double %126, 0.000000e+00
br i1 %127, label %128, label %131
128: ; preds = %125
%129 = load double, double* %10
%130 = fneg double %129
store double %130, double* %10
br label %131
131: ; preds = %128, %125
%132 = load double, double* %6
%133 = fadd double %132, 1.000000e+00
%134 = load double, double* %6
%135 = fsub double %134, 1.000000e+00
%136 = fdiv double %133, %135
%137 = call i32 @sqrt(double %136)
%138 = load double, double* %10
%139 = fdiv double %138, 2.000000e+00
%140 = call i32 @tanh(double %139)
%141 = mul nsw i32 %137, %140
%142 = call i32 @atan(i32 %141)
%143 = mul nsw i32 2, %142
%144 = sitofp i32 %143 to double
%145 = load double*, double** %7
store double %144, double* %145
br label %146
146: ; preds = %131, %66
%147 = load double, double* %10
%148 = load double*, double** %8
store double %147, double* %148
ret void
}

LLVM IR (-O2):
define void @anomaly(double %0, double %1, double* nocapture writeonly %2, double* nocapture writeonly %3) {
%5 = fcmp olt double %1, 1.000000e+00
br i1 %5, label %6, label %46
6: ; preds = %4
%7 = fdiv double %0, 0x401921FB54442D18
%8 = fptosi double %7 to i64
%9 = sitofp i64 %8 to double
%10 = tail call double @llvm.fmuladd.f64(double %9, double 0xC01921FB54442D18, double %0)
%11 = fcmp ogt double %10, 0x400921FB54442D18
%12 = fadd double %10, 0xC01921FB54442D18
%13 = select i1 %11, double %12, double %10
%14 = fcmp olt double %13, 0xC00921FB54442D18
%15 = fadd double %13, 0x401921FB54442D18
%16 = select i1 %14, double %15, double %13
%17 = fneg double %1
%18 = tail call double @sin(double %16)
%19 = tail call double @llvm.fmuladd.f64(double %17, double %18, double %16)
%20 = fsub double %19, %16
%21 = tail call i32 @fabs(double %20)
%22 = icmp slt i32 %21, 1
br i1 %22, label %37, label %23
23: ; preds = %6, %23
%24 = phi double [ %34, %23 ], [ %20, %6 ]
%25 = phi double [ %31, %23 ], [ %16, %6 ]
%26 = tail call double @cos(double %25)
%27 = tail call double @llvm.fmuladd.f64(double %17, double %26, double 1.000000e+00)
%28 = fcmp olt double %27, 1.000000e-01
%29 = select i1 %28, double 1.000000e-01, double %27
%30 = fdiv double %24, %29
%31 = fsub double %25, %30
%32 = tail call double @sin(double %31)
%33 = tail call double @llvm.fmuladd.f64(double %17, double %32, double %31)
%34 = fsub double %33, %16
%35 = tail call i32 @fabs(double %34)
%36 = icmp slt i32 %35, 1
br i1 %36, label %37, label %23
37: ; preds = %23, %6
%38 = phi double [ %16, %6 ], [ %31, %23 ]
%39 = fadd double %1, 1.000000e+00
%40 = fsub double 1.000000e+00, %1
%41 = fdiv double %39, %40
%42 = tail call i32 @sqrt(double %41)
%43 = fmul double %38, 5.000000e-01
%44 = tail call i32 @tan(double %43)
%45 = mul nsw i32 %44, %42
br label %84
46: ; preds = %4
%47 = tail call i32 @fabs(double %0)
%48 = sitofp i32 %47 to double
%49 = fadd double %1, -1.000000e+00
%50 = fdiv double %48, %49
%51 = fmul double %48, 6.000000e+00
%52 = fmul double %1, %1
%53 = fdiv double %51, %52
%54 = fptosi double %53 to i32
%55 = tail call double @pow(i32 %54, i32 0)
%56 = fcmp olt double %55, %50
%57 = select i1 %56, double %55, double %50
%58 = tail call i32 @fabs(double 1.000000e+00)
%59 = icmp sgt i32 %58, 0
br i1 %59, label %60, label %73
60: ; preds = %46
%61 = fneg double %1
br label %62
62: ; preds = %60, %62
%63 = phi double [ %57, %60 ], [ %70, %62 ]
%64 = tail call double @sinh(double %63)
%65 = tail call double @llvm.fmuladd.f64(double %61, double %64, double %48)
%66 = fadd double %63, %65
%67 = tail call double @cosh(double %63)
%68 = tail call double @llvm.fmuladd.f64(double %1, double %67, double -1.000000e+00)
%69 = fdiv double %66, %68
%70 = fadd double %63, %69
%71 = tail call i32 @fabs(double %69)
%72 = icmp sgt i32 %71, 0
br i1 %72, label %62, label %73
73: ; preds = %62, %46
%74 = phi double [ %57, %46 ], [ %70, %62 ]
%75 = fcmp olt double %0, 0.000000e+00
%76 = fneg double %74
%77 = select i1 %75, double %76, double %74
%78 = fadd double %1, 1.000000e+00
%79 = fdiv double %78, %49
%80 = tail call i32 @sqrt(double %79)
%81 = fmul double %77, 5.000000e-01
%82 = tail call i32 @tanh(double %81)
%83 = mul nsw i32 %82, %80
br label %84
84: ; preds = %73, %37
%85 = phi i32 [ %83, %73 ], [ %45, %37 ]
%86 = phi double [ %77, %73 ], [ %38, %37 ]
%87 = tail call i32 @atan(i32 %85)
%88 = shl nsw i32 %87, 1
%89 = sitofp i32 %88 to double
store double %89, double* %2
store double %86, double* %3
ret void
}