#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 */
struct ln_rst_time {
  int dummy;
};
struct ln_lnlat_posn {
  int dummy;
};

/* Variables and functions */
int ln_get_body_next_rst_horizon_future(double, struct ln_lnlat_posn *,
                                        void (*)(double, struct ln_equ_posn *),
                                        double, int, struct ln_rst_time *);
int ln_get_body_next_rst_horizon(
    double JD, struct ln_lnlat_posn *observer,
    void (*get_equ_body_coords)(double, struct ln_equ_posn *), double horizon,
    struct ln_rst_time *rst) {
  return ln_get_body_next_rst_horizon_future(JD, observer, get_equ_body_coords,
                                             horizon, 1, rst);
}


x86 assembly (clang, -O0):
<ln_get_body_next_rst_horizon>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movsd  %xmm1,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
movsd  -0x20(%rbp),%xmm1
mov    -0x28(%rbp),%rcx
mov    $0x1,%edx
call   1030 <ln_get_body_next_rst_horizon_future@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ln_get_body_next_rst_horizon>:
mov    %rdx,%rcx
mov    $0x1,%edx
jmp    1030 <ln_get_body_next_rst_horizon_future@plt>

LLVM IR (-O0):
%struct.ln_lnlat_posn = type { i32 }
%struct.ln_equ_posn = type opaque
%struct.ln_rst_time = type { i32 }
%struct.ln_equ_posn.0 = type opaque
define i32 @ln_get_body_next_rst_horizon(double %0, %struct.ln_lnlat_posn* %1, void (double, %struct.ln_equ_posn*)* %2, double %3, %struct.ln_rst_time* %4) {
%6 = alloca double
%7 = alloca %struct.ln_lnlat_posn*
%8 = alloca void (double, %struct.ln_equ_posn*)*
%9 = alloca double
%10 = alloca %struct.ln_rst_time*
store double %0, double* %6
store %struct.ln_lnlat_posn* %1, %struct.ln_lnlat_posn** %7
store void (double, %struct.ln_equ_posn*)* %2, void (double, %struct.ln_equ_posn*)** %8
store double %3, double* %9
store %struct.ln_rst_time* %4, %struct.ln_rst_time** %10
%11 = load double, double* %6
%12 = load %struct.ln_lnlat_posn*, %struct.ln_lnlat_posn** %7
%13 = load void (double, %struct.ln_equ_posn*)*, void (double, %struct.ln_equ_posn*)** %8
%14 = bitcast void (double, %struct.ln_equ_posn*)* %13 to void (double, %struct.ln_equ_posn.0*)*
%15 = load double, double* %9
%16 = load %struct.ln_rst_time*, %struct.ln_rst_time** %10
%17 = call i32 @ln_get_body_next_rst_horizon_future(double %11, %struct.ln_lnlat_posn* %12, void (double, %struct.ln_equ_posn.0*)* %14, double %15, i32 1, %struct.ln_rst_time* %16)
ret i32 %17
}

LLVM IR (-O2):
%struct.ln_lnlat_posn = type { i32 }
%struct.ln_equ_posn = type opaque
%struct.ln_rst_time = type { i32 }
%struct.ln_equ_posn.0 = type opaque
define i32 @ln_get_body_next_rst_horizon(double %0, %struct.ln_lnlat_posn* %1, void (double, %struct.ln_equ_posn*)* %2, double %3, %struct.ln_rst_time* %4) {
%6 = bitcast void (double, %struct.ln_equ_posn*)* %2 to void (double, %struct.ln_equ_posn.0*)*
%7 = tail call i32 @ln_get_body_next_rst_horizon_future(double %0, %struct.ln_lnlat_posn* %1, void (double, %struct.ln_equ_posn.0*)* %6, double %3, i32 1, %struct.ln_rst_time* %4)
ret i32 %7
}