#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 sqrt(int);
void reb_drift_kepmd(double dm, double es, double ec, double *x, double *s,
                     double *c) {
  const double A0 = 39916800.;
  const double A1 = 6652800.;
  const double A2 = 332640.;
  const double A3 = 7920.;
  const double A4 = 110.;
  double fac1 = 1. / (1. - ec);
  double q = fac1 * dm;
  double fac2 = es * es * fac1 - ec / 3.;
  *x = q * (1. - 0.5 * fac1 * q * (es - q * fac2));
  double y = (*x) * (*x);
  *s = (*x) * (A0 - y * (A1 - y * (A2 - y * (A3 - y * (A4 - y))))) / A0;
  *c = sqrt(1. - (*s) * (*s));
  double f = (*x) - ec * (*s) + es * (1. - (*c)) - dm;
  double fp = 1. - ec * (*c) + es * (*s);
  double fpp = ec * (*s) + es * (*c);
  double fppp = ec * (*c) - es * (*s);
  double dx = -f / fp;
  dx = -f / (fp + 0.5 * dx * fpp);
  dx = -f / (fp + 0.5 * dx * fpp + 0.16666666666666666666 * dx * dx * fppp);
  *x = (*x) + dx;
  y = (*x) * (*x);
  *s = (*x) * (A0 - y * (A1 - y * (A2 - y * (A3 - y * (A4 - y))))) / A0;
  *c = sqrt(1. - (*s) * (*s));
}


x86 assembly (clang, -O0):
<reb_drift_kepmd>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
movsd  0xeca(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xec5(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xec0(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xebb(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xeb6(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe81(%rip),%xmm1
subsd  -0x18(%rbp),%xmm1
movsd  0xe74(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm1
movsd  0xe80(%rip),%xmm3
divsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  0xe43(%rip),%xmm1
mulsd  -0x60(%rbp),%xmm1
mulsd  -0x68(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm3
movsd  -0x68(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm4
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
movsd  0xdb0(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x78(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm3
movsd  -0x78(%rbp),%xmm4
movsd  0xd8f(%rip),%xmm5
subsd  -0x78(%rbp),%xmm5
movq   %xmm4,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm4
mulsd  %xmm5,%xmm4
movsd  0xd5f(%rip),%xmm5
addsd  %xmm5,%xmm4
movq   %xmm3,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm3
mulsd  %xmm4,%xmm3
movsd  0xd30(%rip),%xmm4
addsd  %xmm4,%xmm3
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm2
movsd  0xd01(%rip),%xmm3
addsd  %xmm3,%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
movsd  0xcd2(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xcc2(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xc7b(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <sqrt@plt>
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x18(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  0xc21(%rip),%xmm2
subsd  (%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
subsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xbdb(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0x10(%rbp),%xmm1
mov    -0x30(%rbp),%rax
mulsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0x10(%rbp),%xmm1
mov    -0x28(%rbp),%rax
mulsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
divsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x88(%rbp),%xmm2
movsd  0xb2f(%rip),%xmm1
mulsd  -0xa0(%rbp),%xmm1
ff
movsd  -0x90(%rbp),%xmm3
ff
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x88(%rbp),%xmm1
ff
movsd  0xadf(%rip),%xmm2
mulsd  -0xa0(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm3
ff
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  0xab7(%rip),%xmm1
mulsd  -0xa0(%rbp),%xmm1
ff
mulsd  -0xa0(%rbp),%xmm1
ff
movsd  -0x98(%rbp),%xmm3
ff
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
addsd  -0xa0(%rbp),%xmm0
ff
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x78(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm3
movsd  -0x78(%rbp),%xmm4
movsd  0xa32(%rip),%xmm5
subsd  -0x78(%rbp),%xmm5
movq   %xmm4,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm4
mulsd  %xmm5,%xmm4
movsd  0xa02(%rip),%xmm5
addsd  %xmm5,%xmm4
movq   %xmm3,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm3
mulsd  %xmm4,%xmm3
movsd  0x9d3(%rip),%xmm4
addsd  %xmm4,%xmm3
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm2
movsd  0x9a4(%rip),%xmm3
addsd  %xmm3,%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
movsd  0x975(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0x965(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0x91e(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <sqrt@plt>
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<reb_drift_kepmd>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
movsd  %xmm2,0x10(%rsp)
movsd  %xmm0,0x18(%rsp)
movsd  0xeca(%rip),%xmm5
movapd %xmm5,%xmm3
subsd  %xmm2,%xmm3
movapd %xmm5,%xmm4
movapd %xmm5,%xmm6
divsd  %xmm3,%xmm4
movapd %xmm4,%xmm5
mulsd  %xmm0,%xmm5
movapd %xmm1,%xmm0
movsd  %xmm1,0x8(%rsp)
mulsd  %xmm1,%xmm1
movapd %xmm2,%xmm3
divsd  0xe9c(%rip),%xmm3
mulsd  %xmm4,%xmm1
addsd  %xmm3,%xmm1
mulsd  %xmm5,%xmm1
movapd %xmm0,%xmm3
subsd  %xmm1,%xmm3
mulsd  0xe88(%rip),%xmm4
mulsd  %xmm5,%xmm4
mulsd  %xmm3,%xmm4
addsd  %xmm6,%xmm4
movapd %xmm6,%xmm0
mulsd  %xmm5,%xmm4
movsd  %xmm4,(%rdi)
movapd %xmm4,%xmm1
mulsd  %xmm4,%xmm1
movsd  0xe68(%rip),%xmm2
subsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
movsd  0xe60(%rip),%xmm3
subsd  %xmm2,%xmm3
mulsd  %xmm1,%xmm3
movsd  0xe58(%rip),%xmm2
subsd  %xmm3,%xmm2
mulsd  %xmm1,%xmm2
movsd  0xe50(%rip),%xmm3
subsd  %xmm2,%xmm3
mulsd  %xmm1,%xmm3
movsd  0xe48(%rip),%xmm2
movapd %xmm2,%xmm1
subsd  %xmm3,%xmm1
mulsd  %xmm4,%xmm1
divsd  %xmm2,%xmm1
movsd  %xmm1,(%rsi)
mulsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <sqrt@plt>
movsd  %xmm0,(%r14)
movsd  (%rbx),%xmm1
movsd  (%r15),%xmm3
movsd  0x10(%rsp),%xmm7
movapd %xmm7,%xmm4
mulsd  %xmm3,%xmm4
movapd %xmm1,%xmm5
subsd  %xmm4,%xmm5
movsd  0xdbe(%rip),%xmm8
movapd %xmm8,%xmm2
subsd  %xmm0,%xmm2
movsd  0x8(%rsp),%xmm6
mulsd  %xmm6,%xmm2
addsd  %xmm5,%xmm2
subsd  0x18(%rsp),%xmm2
mulsd  %xmm0,%xmm7
movapd %xmm8,%xmm5
subsd  %xmm7,%xmm5
mulsd  %xmm6,%xmm3
addsd  %xmm3,%xmm5
mulsd  %xmm6,%xmm0
addsd  %xmm4,%xmm0
subsd  %xmm3,%xmm7
movapd 0xdc8(%rip),%xmm3
xorpd  %xmm2,%xmm3
movapd %xmm2,%xmm4
divsd  %xmm5,%xmm4
mulsd  0xd74(%rip),%xmm4
mulsd  %xmm0,%xmm4
addsd  %xmm5,%xmm4
divsd  %xmm4,%xmm3
movsd  0xd90(%rip),%xmm4
mulsd  %xmm3,%xmm4
mulsd  %xmm0,%xmm4
addsd  %xmm5,%xmm4
movsd  0xd84(%rip),%xmm0
mulsd  %xmm3,%xmm0
mulsd  %xmm3,%xmm0
mulsd  %xmm7,%xmm0
addsd  %xmm4,%xmm0
divsd  %xmm0,%xmm2
subsd  %xmm2,%xmm1
movsd  %xmm1,(%rbx)
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xd28(%rip),%xmm2
subsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
movsd  0xd20(%rip),%xmm3
subsd  %xmm2,%xmm3
mulsd  %xmm0,%xmm3
movsd  0xd18(%rip),%xmm2
subsd  %xmm3,%xmm2
mulsd  %xmm0,%xmm2
movsd  0xd10(%rip),%xmm3
subsd  %xmm2,%xmm3
mulsd  %xmm0,%xmm3
movsd  0xd08(%rip),%xmm2
movapd %xmm2,%xmm0
subsd  %xmm3,%xmm0
mulsd  %xmm1,%xmm0
divsd  %xmm2,%xmm0
movsd  %xmm0,(%r15)
mulsd  %xmm0,%xmm0
movapd %xmm8,%xmm1
subsd  %xmm0,%xmm1
cvttsd2si %xmm1,%edi
call   1030 <sqrt@plt>
movsd  %xmm0,(%r14)
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @reb_drift_kepmd(double %0, double %1, double %2, double* %3, double* %4, double* %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store double* %3, double** %10
store double* %4, double** %11
store double* %5, double** %12
store double 3.991680e+07, double* %13
store double 6.652800e+06, double* %14
store double 3.326400e+05, double* %15
store double 7.920000e+03, double* %16
store double 1.100000e+02, double* %17
%27 = load double, double* %9
%28 = fsub double 1.000000e+00, %27
%29 = fdiv double 1.000000e+00, %28
store double %29, double* %18
%30 = load double, double* %18
%31 = load double, double* %7
%32 = fmul double %30, %31
store double %32, double* %19
%33 = load double, double* %8
%34 = load double, double* %8
%35 = fmul double %33, %34
%36 = load double, double* %18
%37 = load double, double* %9
%38 = fdiv double %37, 3.000000e+00
%39 = fneg double %38
%40 = call double @llvm.fmuladd.f64(double %35, double %36, double %39)
store double %40, double* %20
%41 = load double, double* %19
%42 = load double, double* %18
%43 = fmul double 5.000000e-01, %42
%44 = load double, double* %19
%45 = fmul double %43, %44
%46 = load double, double* %8
%47 = load double, double* %19
%48 = load double, double* %20
%49 = fneg double %47
%50 = call double @llvm.fmuladd.f64(double %49, double %48, double %46)
%51 = fneg double %45
%52 = call double @llvm.fmuladd.f64(double %51, double %50, double 1.000000e+00)
%53 = fmul double %41, %52
%54 = load double*, double** %10
store double %53, double* %54
%55 = load double*, double** %10
%56 = load double, double* %55
%57 = load double*, double** %10
%58 = load double, double* %57
%59 = fmul double %56, %58
store double %59, double* %21
%60 = load double*, double** %10
%61 = load double, double* %60
%62 = load double, double* %21
%63 = load double, double* %21
%64 = load double, double* %21
%65 = load double, double* %21
%66 = load double, double* %21
%67 = fsub double 1.100000e+02, %66
%68 = fneg double %65
%69 = call double @llvm.fmuladd.f64(double %68, double %67, double 7.920000e+03)
%70 = fneg double %64
%71 = call double @llvm.fmuladd.f64(double %70, double %69, double 3.326400e+05)
%72 = fneg double %63
%73 = call double @llvm.fmuladd.f64(double %72, double %71, double 6.652800e+06)
%74 = fneg double %62
%75 = call double @llvm.fmuladd.f64(double %74, double %73, double 3.991680e+07)
%76 = fmul double %61, %75
%77 = fdiv double %76, 3.991680e+07
%78 = load double*, double** %11
store double %77, double* %78
%79 = load double*, double** %11
%80 = load double, double* %79
%81 = load double*, double** %11
%82 = load double, double* %81
%83 = fneg double %80
%84 = call double @llvm.fmuladd.f64(double %83, double %82, double 1.000000e+00)
%85 = fptosi double %84 to i32
%86 = call double @sqrt(i32 %85)
%87 = load double*, double** %12
store double %86, double* %87
%88 = load double*, double** %10
%89 = load double, double* %88
%90 = load double, double* %9
%91 = load double*, double** %11
%92 = load double, double* %91
%93 = fneg double %90
%94 = call double @llvm.fmuladd.f64(double %93, double %92, double %89)
%95 = load double, double* %8
%96 = load double*, double** %12
%97 = load double, double* %96
%98 = fsub double 1.000000e+00, %97
%99 = call double @llvm.fmuladd.f64(double %95, double %98, double %94)
%100 = load double, double* %7
%101 = fsub double %99, %100
store double %101, double* %22
%102 = load double, double* %9
%103 = load double*, double** %12
%104 = load double, double* %103
%105 = fneg double %102
%106 = call double @llvm.fmuladd.f64(double %105, double %104, double 1.000000e+00)
%107 = load double, double* %8
%108 = load double*, double** %11
%109 = load double, double* %108
%110 = call double @llvm.fmuladd.f64(double %107, double %109, double %106)
store double %110, double* %23
%111 = load double, double* %9
%112 = load double*, double** %11
%113 = load double, double* %112
%114 = load double, double* %8
%115 = load double*, double** %12
%116 = load double, double* %115
%117 = fmul double %114, %116
%118 = call double @llvm.fmuladd.f64(double %111, double %113, double %117)
store double %118, double* %24
%119 = load double, double* %9
%120 = load double*, double** %12
%121 = load double, double* %120
%122 = load double, double* %8
%123 = load double*, double** %11
%124 = load double, double* %123
%125 = fmul double %122, %124
%126 = fneg double %125
%127 = call double @llvm.fmuladd.f64(double %119, double %121, double %126)
store double %127, double* %25
%128 = load double, double* %22
%129 = fneg double %128
%130 = load double, double* %23
%131 = fdiv double %129, %130
store double %131, double* %26
%132 = load double, double* %22
%133 = fneg double %132
%134 = load double, double* %23
%135 = load double, double* %26
%136 = fmul double 5.000000e-01, %135
%137 = load double, double* %24
%138 = call double @llvm.fmuladd.f64(double %136, double %137, double %134)
%139 = fdiv double %133, %138
store double %139, double* %26
%140 = load double, double* %22
%141 = fneg double %140
%142 = load double, double* %23
%143 = load double, double* %26
%144 = fmul double 5.000000e-01, %143
%145 = load double, double* %24
%146 = call double @llvm.fmuladd.f64(double %144, double %145, double %142)
%147 = load double, double* %26
%148 = fmul double 0x3FC5555555555555, %147
%149 = load double, double* %26
%150 = fmul double %148, %149
%151 = load double, double* %25
%152 = call double @llvm.fmuladd.f64(double %150, double %151, double %146)
%153 = fdiv double %141, %152
store double %153, double* %26
%154 = load double*, double** %10
%155 = load double, double* %154
%156 = load double, double* %26
%157 = fadd double %155, %156
%158 = load double*, double** %10
store double %157, double* %158
%159 = load double*, double** %10
%160 = load double, double* %159
%161 = load double*, double** %10
%162 = load double, double* %161
%163 = fmul double %160, %162
store double %163, double* %21
%164 = load double*, double** %10
%165 = load double, double* %164
%166 = load double, double* %21
%167 = load double, double* %21
%168 = load double, double* %21
%169 = load double, double* %21
%170 = load double, double* %21
%171 = fsub double 1.100000e+02, %170
%172 = fneg double %169
%173 = call double @llvm.fmuladd.f64(double %172, double %171, double 7.920000e+03)
%174 = fneg double %168
%175 = call double @llvm.fmuladd.f64(double %174, double %173, double 3.326400e+05)
%176 = fneg double %167
%177 = call double @llvm.fmuladd.f64(double %176, double %175, double 6.652800e+06)
%178 = fneg double %166
%179 = call double @llvm.fmuladd.f64(double %178, double %177, double 3.991680e+07)
%180 = fmul double %165, %179
%181 = fdiv double %180, 3.991680e+07
%182 = load double*, double** %11
store double %181, double* %182
%183 = load double*, double** %11
%184 = load double, double* %183
%185 = load double*, double** %11
%186 = load double, double* %185
%187 = fneg double %184
%188 = call double @llvm.fmuladd.f64(double %187, double %186, double 1.000000e+00)
%189 = fptosi double %188 to i32
%190 = call double @sqrt(i32 %189)
%191 = load double*, double** %12
store double %190, double* %191
ret void
}

LLVM IR (-O2):
define void @reb_drift_kepmd(double %0, double %1, double %2, double* nocapture %3, double* nocapture %4, double* nocapture writeonly %5) {
%7 = fsub double 1.000000e+00, %2
%8 = fdiv double 1.000000e+00, %7
%9 = fmul double %8, %0
%10 = fmul double %1, %1
%11 = fdiv double %2, -3.000000e+00
%12 = tail call double @llvm.fmuladd.f64(double %10, double %8, double %11)
%13 = fneg double %9
%14 = tail call double @llvm.fmuladd.f64(double %13, double %12, double %1)
%15 = fmul double %8, -5.000000e-01
%16 = fmul double %15, %9
%17 = tail call double @llvm.fmuladd.f64(double %16, double %14, double 1.000000e+00)
%18 = fmul double %9, %17
store double %18, double* %3
%19 = fmul double %18, %18
%20 = fsub double 1.100000e+02, %19
%21 = fneg double %19
%22 = tail call double @llvm.fmuladd.f64(double %21, double %20, double 7.920000e+03)
%23 = tail call double @llvm.fmuladd.f64(double %21, double %22, double 3.326400e+05)
%24 = tail call double @llvm.fmuladd.f64(double %21, double %23, double 6.652800e+06)
%25 = tail call double @llvm.fmuladd.f64(double %21, double %24, double 3.991680e+07)
%26 = fmul double %18, %25
%27 = fdiv double %26, 3.991680e+07
store double %27, double* %4
%28 = fneg double %27
%29 = tail call double @llvm.fmuladd.f64(double %28, double %27, double 1.000000e+00)
%30 = fptosi double %29 to i32
%31 = tail call double @sqrt(i32 %30)
store double %31, double* %5
%32 = load double, double* %3
%33 = load double, double* %4
%34 = fneg double %2
%35 = tail call double @llvm.fmuladd.f64(double %34, double %33, double %32)
%36 = fsub double 1.000000e+00, %31
%37 = tail call double @llvm.fmuladd.f64(double %1, double %36, double %35)
%38 = fsub double %37, %0
%39 = tail call double @llvm.fmuladd.f64(double %34, double %31, double 1.000000e+00)
%40 = tail call double @llvm.fmuladd.f64(double %1, double %33, double %39)
%41 = fmul double %31, %1
%42 = tail call double @llvm.fmuladd.f64(double %2, double %33, double %41)
%43 = fneg double %33
%44 = fmul double %43, %1
%45 = tail call double @llvm.fmuladd.f64(double %2, double %31, double %44)
%46 = fneg double %38
%47 = fdiv double %46, %40
%48 = fmul double %47, 5.000000e-01
%49 = tail call double @llvm.fmuladd.f64(double %48, double %42, double %40)
%50 = fdiv double %46, %49
%51 = fmul double %50, 5.000000e-01
%52 = tail call double @llvm.fmuladd.f64(double %51, double %42, double %40)
%53 = fmul double %50, 0x3FC5555555555555
%54 = fmul double %50, %53
%55 = tail call double @llvm.fmuladd.f64(double %54, double %45, double %52)
%56 = fdiv double %38, %55
%57 = fsub double %32, %56
store double %57, double* %3
%58 = fmul double %57, %57
%59 = fsub double 1.100000e+02, %58
%60 = fneg double %58
%61 = tail call double @llvm.fmuladd.f64(double %60, double %59, double 7.920000e+03)
%62 = tail call double @llvm.fmuladd.f64(double %60, double %61, double 3.326400e+05)
%63 = tail call double @llvm.fmuladd.f64(double %60, double %62, double 6.652800e+06)
%64 = tail call double @llvm.fmuladd.f64(double %60, double %63, double 3.991680e+07)
%65 = fmul double %57, %64
%66 = fdiv double %65, 3.991680e+07
store double %66, double* %4
%67 = fneg double %66
%68 = tail call double @llvm.fmuladd.f64(double %67, double %66, double 1.000000e+00)
%69 = fptosi double %68 to i32
%70 = tail call double @sqrt(i32 %69)
store double %70, double* %5
ret void
}