#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 atan(double);
int /*<<< orphan*/ ln_rad_to_deg(double);
double ln_range_degrees(int /*<<< orphan*/);
double ln_solve_hyp_barker(double, double, double);
double sqrt(double);
double ln_get_hyp_true_anomaly(double q, double e, double t) {
  double v, s, Q, gama;
  Q = (0.01720209895 / (2.0 * q)) * sqrt((1.0 + e) / q);
  gama = (1.0 - e) / (1.0 + e);
  s = ln_solve_hyp_barker(Q, gama, t);
  v = 2.0 * atan(s);
  return ln_range_degrees(ln_rad_to_deg(v));
}


x86 assembly (clang, -O0):
<ln_get_hyp_true_anomaly>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  0xe91(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
movsd  0xe94(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe7b(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1070 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe53(%rip),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  0xe46(%rip),%xmm1
addsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
call   1060 <ln_solve_hyp_barker@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1040 <atan@plt>
movaps %xmm0,%xmm1
movsd  0xe02(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1050 <ln_rad_to_deg@plt>
mov    %eax,%edi
call   1030 <ln_range_degrees@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ln_get_hyp_true_anomaly>:
sub    $0x28,%rsp
movapd %xmm1,%xmm3
movapd %xmm0,%xmm1
movsd  0xea4(%rip),%xmm4
addsd  %xmm3,%xmm4
movapd %xmm4,%xmm0
divsd  %xmm1,%xmm0
addsd  %xmm1,%xmm1
movsd  0xe84(%rip),%xmm5
divsd  %xmm1,%xmm5
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1190 <ln_get_hyp_true_anomaly+0x40>
sqrtsd %xmm0,%xmm0
jmp    11c5 <ln_get_hyp_true_anomaly+0x75>
movsd  %xmm2,0x20(%rsp)
movsd  %xmm3,0x18(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm5,0x8(%rsp)
call   1070 <sqrt@plt>
movsd  0x8(%rsp),%xmm5
movsd  0x10(%rsp),%xmm4
movsd  0x18(%rsp),%xmm3
movsd  0x20(%rsp),%xmm2
mulsd  %xmm0,%xmm5
movsd  0xe37(%rip),%xmm1
subsd  %xmm3,%xmm1
divsd  %xmm4,%xmm1
movapd %xmm5,%xmm0
call   1060 <ln_solve_hyp_barker@plt>
call   1040 <atan@plt>
addsd  %xmm0,%xmm0
call   1050 <ln_rad_to_deg@plt>
mov    %eax,%edi
add    $0x28,%rsp
jmp    1030 <ln_range_degrees@plt>

LLVM IR (-O0):
define double @ln_get_hyp_true_anomaly(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
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%11 = load double, double* %4
%12 = fmul double 2.000000e+00, %11
%13 = fdiv double 0x3F919D6D51A6B69A, %12
%14 = load double, double* %5
%15 = fadd double 1.000000e+00, %14
%16 = load double, double* %4
%17 = fdiv double %15, %16
%18 = call double @sqrt(double %17)
%19 = fmul double %13, %18
store double %19, double* %9
%20 = load double, double* %5
%21 = fsub double 1.000000e+00, %20
%22 = load double, double* %5
%23 = fadd double 1.000000e+00, %22
%24 = fdiv double %21, %23
store double %24, double* %10
%25 = load double, double* %9
%26 = load double, double* %10
%27 = load double, double* %6
%28 = call double @ln_solve_hyp_barker(double %25, double %26, double %27)
store double %28, double* %8
%29 = load double, double* %8
%30 = call double @atan(double %29)
%31 = fmul double 2.000000e+00, %30
store double %31, double* %7
%32 = load double, double* %7
%33 = call i32 @ln_rad_to_deg(double %32)
%34 = call double @ln_range_degrees(i32 %33)
ret double %34
}

LLVM IR (-O2):
define double @ln_get_hyp_true_anomaly(double %0, double %1, double %2) {
%4 = fmul double %0, 2.000000e+00
%5 = fdiv double 0x3F919D6D51A6B69A, %4
%6 = fadd double %1, 1.000000e+00
%7 = fdiv double %6, %0
%8 = tail call double @sqrt(double %7)
%9 = fmul double %5, %8
%10 = fsub double 1.000000e+00, %1
%11 = fdiv double %10, %6
%12 = tail call double @ln_solve_hyp_barker(double %9, double %11, double %2)
%13 = tail call double @atan(double %12)
%14 = fmul double %13, 2.000000e+00
%15 = tail call i32 @ln_rad_to_deg(double %14)
%16 = tail call double @ln_range_degrees(i32 %15)
ret double %16
}