#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 atan2(double, int);
double fabs(double);
double atnabova(double a, double b, double c) {
  double xi = a * b, eta = a * c, vsq = xi * xi + eta * eta, t;
  if (vsq - 2. * eta + 1. <= 0.)
    return 0.;
  if (fabs(xi) > .01 * (1. - eta)) {
    return atan2(xi, 1. - eta) / a;
  } else {
    t = xi / (1. - eta);
    t *= t;
    return b / (1. - eta) *
           (1. - t * (1. / 3. - t * (1. / 5. - t * (1. / 7.))));
  }
}


x86 assembly (clang, -O0):
<atnabova>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x10(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm1
mulsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
addsd  %xmm0,%xmm0
subsd  %xmm0,%xmm1
movsd  0xe80(%rip),%xmm0
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jb     119e <atnabova+0x8e>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    12d0 <atnabova+0x1c0>
movsd  -0x28(%rbp),%xmm0
movaps 0xe86(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xe4a(%rip),%xmm2
subsd  -0x30(%rbp),%xmm2
movsd  0xe45(%rip),%xmm1
mulsd  %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jbe    11fb <atnabova+0xeb>
movsd  -0x28(%rbp),%xmm0
movsd  0xe22(%rip),%xmm1
subsd  -0x30(%rbp),%xmm1
cvttsd2si %xmm1,%edi
call   1030 <atan2@plt>
divsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    12d0 <atnabova+0x1c0>
movsd  -0x28(%rbp),%xmm0
movsd  0xdf8(%rip),%xmm1
subsd  -0x30(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xdce(%rip),%xmm1
subsd  -0x30(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm3
movq   %xmm3,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm3
movsd  0xdaf(%rip),%xmm4
mulsd  %xmm4,%xmm3
movsd  0xdab(%rip),%xmm4
addsd  %xmm4,%xmm3
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm2
movsd  0xd74(%rip),%xmm3
addsd  %xmm3,%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
movsd  0xd3d(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<atnabova>:
push   %rax
movapd %xmm0,%xmm5
mulsd  %xmm1,%xmm0
mulsd  %xmm5,%xmm2
movapd %xmm2,%xmm3
mulsd  %xmm2,%xmm3
movapd %xmm0,%xmm4
mulsd  %xmm0,%xmm4
addsd  %xmm3,%xmm4
movapd %xmm2,%xmm3
addsd  %xmm2,%xmm3
subsd  %xmm3,%xmm4
addsd  0xebb(%rip),%xmm4
xorpd  %xmm3,%xmm3
ucomisd %xmm4,%xmm3
jae    11de <atnabova+0xce>
movapd 0xed5(%rip),%xmm3
andpd  %xmm0,%xmm3
movsd  0xe99(%rip),%xmm4
subsd  %xmm2,%xmm4
movsd  0xe95(%rip),%xmm2
mulsd  %xmm4,%xmm2
ucomisd %xmm2,%xmm3
jbe    1196 <atnabova+0x86>
cvttsd2si %xmm4,%edi
movsd  %xmm5,(%rsp)
call   1030 <atan2@plt>
movapd %xmm0,%xmm3
divsd  (%rsp),%xmm3
jmp    11de <atnabova+0xce>
divsd  %xmm4,%xmm0
movapd 0xe9e(%rip),%xmm2
xorpd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
movsd  0xe5e(%rip),%xmm3
mulsd  %xmm2,%xmm3
addsd  0xe5a(%rip),%xmm3
divsd  %xmm4,%xmm1
mulsd  %xmm2,%xmm3
addsd  0xe52(%rip),%xmm3
mulsd  %xmm2,%xmm3
addsd  0xe26(%rip),%xmm3
mulsd  %xmm1,%xmm3
movapd %xmm3,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @atnabova(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
%12 = load double, double* %5
%13 = load double, double* %6
%14 = fmul double %12, %13
store double %14, double* %8
%15 = load double, double* %5
%16 = load double, double* %7
%17 = fmul double %15, %16
store double %17, double* %9
%18 = load double, double* %8
%19 = load double, double* %8
%20 = load double, double* %9
%21 = load double, double* %9
%22 = fmul double %20, %21
%23 = call double @llvm.fmuladd.f64(double %18, double %19, double %22)
store double %23, double* %10
%24 = load double, double* %10
%25 = load double, double* %9
%26 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %25, double %24)
%27 = fadd double %26, 1.000000e+00
%28 = fcmp ole double %27, 0.000000e+00
br i1 %28, label %29, label %30
29: ; preds = %3
store double 0.000000e+00, double* %4
br label %67
30: ; preds = %3
%31 = load double, double* %8
%32 = call double @llvm.fabs.f64(double %31)
%33 = load double, double* %9
%34 = fsub double 1.000000e+00, %33
%35 = fmul double 1.000000e-02, %34
%36 = fcmp ogt double %32, %35
br i1 %36, label %37, label %45
37: ; preds = %30
%38 = load double, double* %8
%39 = load double, double* %9
%40 = fsub double 1.000000e+00, %39
%41 = fptosi double %40 to i32
%42 = call double @atan2(double %38, i32 %41)
%43 = load double, double* %5
%44 = fdiv double %42, %43
store double %44, double* %4
br label %67
45: ; preds = %30
%46 = load double, double* %8
%47 = load double, double* %9
%48 = fsub double 1.000000e+00, %47
%49 = fdiv double %46, %48
store double %49, double* %11
%50 = load double, double* %11
%51 = load double, double* %11
%52 = fmul double %51, %50
store double %52, double* %11
%53 = load double, double* %6
%54 = load double, double* %9
%55 = fsub double 1.000000e+00, %54
%56 = fdiv double %53, %55
%57 = load double, double* %11
%58 = load double, double* %11
%59 = load double, double* %11
%60 = fneg double %59
%61 = call double @llvm.fmuladd.f64(double %60, double 0x3FC2492492492492, double 2.000000e-01)
%62 = fneg double %58
%63 = call double @llvm.fmuladd.f64(double %62, double %61, double 0x3FD5555555555555)
%64 = fneg double %57
%65 = call double @llvm.fmuladd.f64(double %64, double %63, double 1.000000e+00)
%66 = fmul double %56, %65
store double %66, double* %4
br label %67
67: ; preds = %45, %37, %29
%68 = load double, double* %4
ret double %68
}

LLVM IR (-O2):
define double @atnabova(double %0, double %1, double %2) {
%4 = fmul double %0, %1
%5 = fmul double %0, %2
%6 = fmul double %5, %5
%7 = tail call double @llvm.fmuladd.f64(double %4, double %4, double %6)
%8 = tail call double @llvm.fmuladd.f64(double %5, double -2.000000e+00, double %7)
%9 = fadd double %8, 1.000000e+00
%10 = fcmp ugt double %9, 0.000000e+00
br i1 %10, label %11, label %29
11: ; preds = %3
%12 = tail call double @llvm.fabs.f64(double %4)
%13 = fsub double 1.000000e+00, %5
%14 = fmul double %13, 1.000000e-02
%15 = fcmp ogt double %12, %14
br i1 %15, label %16, label %20
16: ; preds = %11
%17 = fptosi double %13 to i32
%18 = tail call double @atan2(double %4, i32 %17)
%19 = fdiv double %18, %0
br label %29
20: ; preds = %11
%21 = fdiv double %4, %13
%22 = fdiv double %1, %13
%23 = fneg double %21
%24 = fmul double %21, %23
%25 = tail call double @llvm.fmuladd.f64(double %24, double 0x3FC2492492492492, double 2.000000e-01)
%26 = tail call double @llvm.fmuladd.f64(double %24, double %25, double 0x3FD5555555555555)
%27 = tail call double @llvm.fmuladd.f64(double %24, double %26, double 1.000000e+00)
%28 = fmul double %22, %27
br label %29
29: ; preds = %3, %20, %16
%30 = phi double [ %19, %16 ], [ %28, %20 ], [ 0.000000e+00, %3 ]
ret double %30
}