#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 SL_G1(int, int);
double SL_G2(int, int);
void twobody_XC_slip_18(int n, double l, double *f, double *fk) {
  int q;
  for (q = 0; q <= 18; q++)
    fk[q] = 0.0;
  fk[6] = 2621440.0 * SL_G1(-3, 6) * SL_G1(0, 3) * SL_G1(0, 3) * SL_G2(0, 3) *
          SL_G2(0, 3);
  fk[8] = 15728640.0 * SL_G1(-2, 5) * SL_G2(-1, 4) * SL_G1(0, 3) * SL_G1(0, 3) *
          SL_G2(0, 3);
  fk[9] = 262144.0 * SL_G1(0, 3) * SL_G1(0, 3) * SL_G1(0, 3) * SL_G1(0, 3) *
          SL_G2(0, 3) * SL_G2(0, 3) * SL_G2(0, 3);
  fk[10] =
      3145728.0 * SL_G1(-1, 4) * SL_G1(0, 3) * SL_G1(0, 3) *
      (5.0 * SL_G2(-2, 5) * SL_G2(0, 3) + 4.0 * SL_G2(-1, 4) * SL_G2(-1, 4));
  fk[12] =
      1048576.0 * SL_G1(0, 3) * SL_G1(0, 3) * SL_G1(0, 3) *
      (5.0 * SL_G2(-3, 6) * SL_G2(0, 3) + 9.0 * SL_G2(-2, 5) * SL_G2(-1, 4));
  fk[15] = 7340032.0 * SL_G2(-6, 9) * SL_G1(0, 3) * SL_G1(0, 3);
  f[18] = 0.0;
  for (q = 0; q <= 18; q++)
    f[18] = f[18] * l + fk[18 - q];
}


x86 assembly (clang, -O0):
<twobody_XC_slip_18>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x12,-0x24(%rbp)
jg     116a <twobody_XC_slip_18+0x4a>
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1142 <twobody_XC_slip_18+0x22>
mov    $0xfffffffd,%edi
mov    $0x6,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  0xebc(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  -0x108(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  -0x100(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
movaps %xmm0,%xmm1
movsd  -0xf8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
movaps %xmm0,%xmm1
movsd  -0xf0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    $0xfffffffe,%edi
mov    $0x5,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  0xe01(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
mov    $0xffffffff,%edi
mov    $0x4,%esi
call   1030 <SL_G2@plt>
movaps %xmm0,%xmm1
movsd  -0xe8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  -0xd8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
movaps %xmm0,%xmm1
movsd  -0xd0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x40(%rax)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  0xd46(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  -0xc8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  -0xc0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
movaps %xmm0,%xmm1
movsd  -0xb0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
movaps %xmm0,%xmm1
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
movaps %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x48(%rax)
mov    $0xffffffff,%edi
mov    $0x4,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  0xc45(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  -0x98(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  -0x90(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    $0xfffffffe,%edi
mov    $0x5,%esi
call   1030 <SL_G2@plt>
movaps %xmm0,%xmm1
movsd  0xbc4(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
movsd  %xmm0,-0x78(%rbp)
mov    $0xffffffff,%edi
mov    $0x4,%esi
call   1030 <SL_G2@plt>
movaps %xmm0,%xmm1
movsd  0xba0(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    $0xffffffff,%edi
mov    $0x4,%esi
call   1030 <SL_G2@plt>
movsd  -0x88(%rbp),%xmm2
ff
movsd  -0x80(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm3
movaps %xmm0,%xmm4
movsd  -0x70(%rbp),%xmm0
mulsd  %xmm4,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x50(%rax)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  0xb33(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    $0xfffffffd,%edi
mov    $0x6,%esi
call   1030 <SL_G2@plt>
movaps %xmm0,%xmm1
movsd  0xace(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
movsd  %xmm0,-0x48(%rbp)
mov    $0xfffffffe,%edi
mov    $0x5,%esi
call   1030 <SL_G2@plt>
movaps %xmm0,%xmm1
movsd  0xa92(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    $0xffffffff,%edi
mov    $0x4,%esi
call   1030 <SL_G2@plt>
movsd  -0x58(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm3
movaps %xmm0,%xmm4
movsd  -0x40(%rbp),%xmm0
mulsd  %xmm4,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x60(%rax)
mov    $0xfffffffa,%edi
mov    $0x9,%esi
call   1030 <SL_G2@plt>
movaps %xmm0,%xmm1
movsd  0xa28(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x78(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x90(%rax)
movl   $0x0,-0x24(%rbp)
cmpl   $0x12,-0x24(%rbp)
jg     1686 <twobody_XC_slip_18+0x566>
mov    -0x18(%rbp),%rax
movsd  0x90(%rax),%xmm0
movsd  -0x10(%rbp),%xmm2
mov    -0x20(%rbp),%rax
mov    $0x12,%ecx
sub    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x90(%rax)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1635 <twobody_XC_slip_18+0x515>
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<twobody_XC_slip_18>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %rdx,%rbx
mov    %rsi,%r14
movsd  %xmm0,0x20(%rsp)
xorpd  %xmm0,%xmm0
movupd %xmm0,0x80(%rdx)
movupd %xmm0,0x70(%rdx)
movupd %xmm0,0x60(%rdx)
movupd %xmm0,0x50(%rdx)
movupd %xmm0,0x40(%rdx)
movupd %xmm0,0x30(%rdx)
movupd %xmm0,0x20(%rdx)
movupd %xmm0,0x10(%rdx)
movupd %xmm0,(%rdx)
movq   $0x0,0x90(%rdx)
mov    $0xfffffffd,%edi
mov    $0x6,%esi
call   1040 <SL_G1@plt>
mulsd  0xe78(%rip),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,0x30(%rbx)
mov    $0xfffffffe,%edi
mov    $0x5,%esi
call   1040 <SL_G1@plt>
mulsd  0xe0c(%rip),%xmm0
movsd  %xmm0,(%rsp)
mov    $0xffffffff,%edi
mov    $0x4,%esi
call   1030 <SL_G2@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,0x40(%rbx)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
mulsd  0xda0(%rip),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,0x48(%rbx)
mov    $0xffffffff,%edi
mov    $0x4,%esi
call   1040 <SL_G1@plt>
mulsd  0xd08(%rip),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
mov    $0xfffffffe,%edi
mov    $0x5,%esi
call   1030 <SL_G2@plt>
mulsd  0xcc8(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
movsd  %xmm0,0x10(%rsp)
mov    $0xffffffff,%edi
mov    $0x4,%esi
call   1030 <SL_G2@plt>
mulsd  0xca1(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    $0xffffffff,%edi
mov    $0x4,%esi
call   1030 <SL_G2@plt>
mulsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  0x18(%rsp),%xmm1
addsd  %xmm0,%xmm1
mulsd  (%rsp),%xmm1
movsd  %xmm1,0x50(%rbx)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
mulsd  0xc60(%rip),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
mov    $0xfffffffd,%edi
mov    $0x6,%esi
call   1030 <SL_G2@plt>
mulsd  0xc08(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <SL_G2@plt>
movsd  %xmm0,0x10(%rsp)
mov    $0xfffffffe,%edi
mov    $0x5,%esi
call   1030 <SL_G2@plt>
mulsd  0xbf1(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    $0xffffffff,%edi
mov    $0x4,%esi
call   1030 <SL_G2@plt>
mulsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  0x18(%rsp),%xmm1
addsd  %xmm0,%xmm1
mulsd  (%rsp),%xmm1
movsd  %xmm1,0x60(%rbx)
mov    $0xfffffffa,%edi
mov    $0x9,%esi
call   1030 <SL_G2@plt>
mulsd  0xbad(%rip),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <SL_G1@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,0x78(%rbx)
movq   $0x0,0x90(%r14)
xorpd  %xmm0,%xmm0
movsd  0x20(%rsp),%xmm1
mulsd  %xmm1,%xmm0
addsd  0x90(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x88(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x80(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x78(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x70(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x68(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x60(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x58(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x50(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x48(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x40(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x38(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x30(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x28(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x20(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x18(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x10(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  0x8(%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
mulsd  %xmm1,%xmm0
addsd  (%rbx),%xmm0
movsd  %xmm0,0x90(%r14)
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @twobody_XC_slip_18(i32 %0, double %1, double* %2, double* %3) {
%5 = alloca i32
%6 = alloca double
%7 = alloca double*
%8 = alloca double*
%9 = alloca i32
store i32 %0, i32* %5
store double %1, double* %6
store double* %2, double** %7
store double* %3, double** %8
store i32 0, i32* %9
br label %10
10: ; preds = %18, %4
%11 = load i32, i32* %9
%12 = icmp sle i32 %11, 18
br i1 %12, label %13, label %21
13: ; preds = %10
%14 = load double*, double** %8
%15 = load i32, i32* %9
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds double, double* %14, i64 %16
store double 0.000000e+00, double* %17
br label %18
18: ; preds = %13
%19 = load i32, i32* %9
%20 = add nsw i32 %19, 1
store i32 %20, i32* %9
br label %10
21: ; preds = %10
%22 = call double @SL_G1(i32 -3, i32 6)
%23 = fmul double 2.621440e+06, %22
%24 = call double @SL_G1(i32 0, i32 3)
%25 = fmul double %23, %24
%26 = call double @SL_G1(i32 0, i32 3)
%27 = fmul double %25, %26
%28 = call double @SL_G2(i32 0, i32 3)
%29 = fmul double %27, %28
%30 = call double @SL_G2(i32 0, i32 3)
%31 = fmul double %29, %30
%32 = load double*, double** %8
%33 = getelementptr inbounds double, double* %32, i64 6
store double %31, double* %33
%34 = call double @SL_G1(i32 -2, i32 5)
%35 = fmul double 0x416E000000000000, %34
%36 = call double @SL_G2(i32 -1, i32 4)
%37 = fmul double %35, %36
%38 = call double @SL_G1(i32 0, i32 3)
%39 = fmul double %37, %38
%40 = call double @SL_G1(i32 0, i32 3)
%41 = fmul double %39, %40
%42 = call double @SL_G2(i32 0, i32 3)
%43 = fmul double %41, %42
%44 = load double*, double** %8
%45 = getelementptr inbounds double, double* %44, i64 8
store double %43, double* %45
%46 = call double @SL_G1(i32 0, i32 3)
%47 = fmul double 2.621440e+05, %46
%48 = call double @SL_G1(i32 0, i32 3)
%49 = fmul double %47, %48
%50 = call double @SL_G1(i32 0, i32 3)
%51 = fmul double %49, %50
%52 = call double @SL_G1(i32 0, i32 3)
%53 = fmul double %51, %52
%54 = call double @SL_G2(i32 0, i32 3)
%55 = fmul double %53, %54
%56 = call double @SL_G2(i32 0, i32 3)
%57 = fmul double %55, %56
%58 = call double @SL_G2(i32 0, i32 3)
%59 = fmul double %57, %58
%60 = load double*, double** %8
%61 = getelementptr inbounds double, double* %60, i64 9
store double %59, double* %61
%62 = call double @SL_G1(i32 -1, i32 4)
%63 = fmul double 0x4148000000000000, %62
%64 = call double @SL_G1(i32 0, i32 3)
%65 = fmul double %63, %64
%66 = call double @SL_G1(i32 0, i32 3)
%67 = fmul double %65, %66
%68 = call double @SL_G2(i32 -2, i32 5)
%69 = fmul double 5.000000e+00, %68
%70 = call double @SL_G2(i32 0, i32 3)
%71 = call double @SL_G2(i32 -1, i32 4)
%72 = fmul double 4.000000e+00, %71
%73 = call double @SL_G2(i32 -1, i32 4)
%74 = fmul double %72, %73
%75 = call double @llvm.fmuladd.f64(double %69, double %70, double %74)
%76 = fmul double %67, %75
%77 = load double*, double** %8
%78 = getelementptr inbounds double, double* %77, i64 10
store double %76, double* %78
%79 = call double @SL_G1(i32 0, i32 3)
%80 = fmul double 0x4130000000000000, %79
%81 = call double @SL_G1(i32 0, i32 3)
%82 = fmul double %80, %81
%83 = call double @SL_G1(i32 0, i32 3)
%84 = fmul double %82, %83
%85 = call double @SL_G2(i32 -3, i32 6)
%86 = fmul double 5.000000e+00, %85
%87 = call double @SL_G2(i32 0, i32 3)
%88 = call double @SL_G2(i32 -2, i32 5)
%89 = fmul double 9.000000e+00, %88
%90 = call double @SL_G2(i32 -1, i32 4)
%91 = fmul double %89, %90
%92 = call double @llvm.fmuladd.f64(double %86, double %87, double %91)
%93 = fmul double %84, %92
%94 = load double*, double** %8
%95 = getelementptr inbounds double, double* %94, i64 12
store double %93, double* %95
%96 = call double @SL_G2(i32 -6, i32 9)
%97 = fmul double 0x415C000000000000, %96
%98 = call double @SL_G1(i32 0, i32 3)
%99 = fmul double %97, %98
%100 = call double @SL_G1(i32 0, i32 3)
%101 = fmul double %99, %100
%102 = load double*, double** %8
%103 = getelementptr inbounds double, double* %102, i64 15
store double %101, double* %103
%104 = load double*, double** %7
%105 = getelementptr inbounds double, double* %104, i64 18
store double 0.000000e+00, double* %105
store i32 0, i32* %9
br label %106
106: ; preds = %123, %21
%107 = load i32, i32* %9
%108 = icmp sle i32 %107, 18
br i1 %108, label %109, label %126
109: ; preds = %106
%110 = load double*, double** %7
%111 = getelementptr inbounds double, double* %110, i64 18
%112 = load double, double* %111
%113 = load double, double* %6
%114 = load double*, double** %8
%115 = load i32, i32* %9
%116 = sub nsw i32 18, %115
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds double, double* %114, i64 %117
%119 = load double, double* %118
%120 = call double @llvm.fmuladd.f64(double %112, double %113, double %119)
%121 = load double*, double** %7
%122 = getelementptr inbounds double, double* %121, i64 18
store double %120, double* %122
br label %123
123: ; preds = %109
%124 = load i32, i32* %9
%125 = add nsw i32 %124, 1
store i32 %125, i32* %9
br label %106
126: ; preds = %106
ret void
}

LLVM IR (-O2):
define void @twobody_XC_slip_18(i32 %0, double %1, double* nocapture %2, double* nocapture %3) {
%5 = bitcast double* %3 to i8*
%6 = tail call double @SL_G1(i32 -3, i32 6)
%7 = fmul double %6, 2.621440e+06
%8 = tail call double @SL_G1(i32 0, i32 3)
%9 = fmul double %7, %8
%10 = tail call double @SL_G1(i32 0, i32 3)
%11 = fmul double %9, %10
%12 = tail call double @SL_G2(i32 0, i32 3)
%13 = fmul double %11, %12
%14 = tail call double @SL_G2(i32 0, i32 3)
%15 = fmul double %13, %14
%16 = getelementptr inbounds double, double* %3, i64 6
store double %15, double* %16
%17 = tail call double @SL_G1(i32 -2, i32 5)
%18 = fmul double %17, 0x416E000000000000
%19 = tail call double @SL_G2(i32 -1, i32 4)
%20 = fmul double %18, %19
%21 = tail call double @SL_G1(i32 0, i32 3)
%22 = fmul double %20, %21
%23 = tail call double @SL_G1(i32 0, i32 3)
%24 = fmul double %22, %23
%25 = tail call double @SL_G2(i32 0, i32 3)
%26 = fmul double %24, %25
%27 = getelementptr inbounds double, double* %3, i64 8
store double %26, double* %27
%28 = tail call double @SL_G1(i32 0, i32 3)
%29 = fmul double %28, 2.621440e+05
%30 = tail call double @SL_G1(i32 0, i32 3)
%31 = fmul double %29, %30
%32 = tail call double @SL_G1(i32 0, i32 3)
%33 = fmul double %31, %32
%34 = tail call double @SL_G1(i32 0, i32 3)
%35 = fmul double %33, %34
%36 = tail call double @SL_G2(i32 0, i32 3)
%37 = fmul double %35, %36
%38 = tail call double @SL_G2(i32 0, i32 3)
%39 = fmul double %37, %38
%40 = tail call double @SL_G2(i32 0, i32 3)
%41 = fmul double %39, %40
%42 = getelementptr inbounds double, double* %3, i64 9
store double %41, double* %42
%43 = tail call double @SL_G1(i32 -1, i32 4)
%44 = fmul double %43, 0x4148000000000000
%45 = tail call double @SL_G1(i32 0, i32 3)
%46 = fmul double %44, %45
%47 = tail call double @SL_G1(i32 0, i32 3)
%48 = fmul double %46, %47
%49 = tail call double @SL_G2(i32 -2, i32 5)
%50 = fmul double %49, 5.000000e+00
%51 = tail call double @SL_G2(i32 0, i32 3)
%52 = tail call double @SL_G2(i32 -1, i32 4)
%53 = fmul double %52, 4.000000e+00
%54 = tail call double @SL_G2(i32 -1, i32 4)
%55 = fmul double %53, %54
%56 = tail call double @llvm.fmuladd.f64(double %50, double %51, double %55)
%57 = fmul double %48, %56
%58 = getelementptr inbounds double, double* %3, i64 10
store double %57, double* %58
%59 = tail call double @SL_G1(i32 0, i32 3)
%60 = fmul double %59, 0x4130000000000000
%61 = tail call double @SL_G1(i32 0, i32 3)
%62 = fmul double %60, %61
%63 = tail call double @SL_G1(i32 0, i32 3)
%64 = fmul double %62, %63
%65 = tail call double @SL_G2(i32 -3, i32 6)
%66 = fmul double %65, 5.000000e+00
%67 = tail call double @SL_G2(i32 0, i32 3)
%68 = tail call double @SL_G2(i32 -2, i32 5)
%69 = fmul double %68, 9.000000e+00
%70 = tail call double @SL_G2(i32 -1, i32 4)
%71 = fmul double %69, %70
%72 = tail call double @llvm.fmuladd.f64(double %66, double %67, double %71)
%73 = fmul double %64, %72
%74 = getelementptr inbounds double, double* %3, i64 12
store double %73, double* %74
%75 = tail call double @SL_G2(i32 -6, i32 9)
%76 = fmul double %75, 0x415C000000000000
%77 = tail call double @SL_G1(i32 0, i32 3)
%78 = fmul double %76, %77
%79 = tail call double @SL_G1(i32 0, i32 3)
%80 = fmul double %78, %79
%81 = getelementptr inbounds double, double* %3, i64 15
store double %80, double* %81
%82 = getelementptr inbounds double, double* %2, i64 18
store double 0.000000e+00, double* %82
%83 = getelementptr inbounds double, double* %3, i64 18
%84 = load double, double* %83
%85 = tail call double @llvm.fmuladd.f64(double %1, double 0.000000e+00, double %84)
store double %85, double* %82
%86 = getelementptr inbounds double, double* %3, i64 17
%87 = load double, double* %86
%88 = tail call double @llvm.fmuladd.f64(double %85, double %1, double %87)
store double %88, double* %82
%89 = getelementptr inbounds double, double* %3, i64 16
%90 = load double, double* %89
%91 = tail call double @llvm.fmuladd.f64(double %88, double %1, double %90)
store double %91, double* %82
%92 = load double, double* %81
%93 = tail call double @llvm.fmuladd.f64(double %91, double %1, double %92)
store double %93, double* %82
%94 = getelementptr inbounds double, double* %3, i64 14
%95 = load double, double* %94
%96 = tail call double @llvm.fmuladd.f64(double %93, double %1, double %95)
store double %96, double* %82
%97 = getelementptr inbounds double, double* %3, i64 13
%98 = load double, double* %97
%99 = tail call double @llvm.fmuladd.f64(double %96, double %1, double %98)
store double %99, double* %82
%100 = load double, double* %74
%101 = tail call double @llvm.fmuladd.f64(double %99, double %1, double %100)
store double %101, double* %82
%102 = getelementptr inbounds double, double* %3, i64 11
%103 = load double, double* %102
%104 = tail call double @llvm.fmuladd.f64(double %101, double %1, double %103)
store double %104, double* %82
%105 = load double, double* %58
%106 = tail call double @llvm.fmuladd.f64(double %104, double %1, double %105)
store double %106, double* %82
%107 = load double, double* %42
%108 = tail call double @llvm.fmuladd.f64(double %106, double %1, double %107)
store double %108, double* %82
%109 = load double, double* %27
%110 = tail call double @llvm.fmuladd.f64(double %108, double %1, double %109)
store double %110, double* %82
%111 = getelementptr inbounds double, double* %3, i64 7
%112 = load double, double* %111
%113 = tail call double @llvm.fmuladd.f64(double %110, double %1, double %112)
store double %113, double* %82
%114 = load double, double* %16
%115 = tail call double @llvm.fmuladd.f64(double %113, double %1, double %114)
store double %115, double* %82
%116 = getelementptr inbounds double, double* %3, i64 5
%117 = load double, double* %116
%118 = tail call double @llvm.fmuladd.f64(double %115, double %1, double %117)
store double %118, double* %82
%119 = getelementptr inbounds double, double* %3, i64 4
%120 = load double, double* %119
%121 = tail call double @llvm.fmuladd.f64(double %118, double %1, double %120)
store double %121, double* %82
%122 = getelementptr inbounds double, double* %3, i64 3
%123 = load double, double* %122
%124 = tail call double @llvm.fmuladd.f64(double %121, double %1, double %123)
store double %124, double* %82
%125 = getelementptr inbounds double, double* %3, i64 2
%126 = load double, double* %125
%127 = tail call double @llvm.fmuladd.f64(double %124, double %1, double %126)
store double %127, double* %82
%128 = getelementptr inbounds double, double* %3, i64 1
%129 = load double, double* %128
%130 = tail call double @llvm.fmuladd.f64(double %127, double %1, double %129)
store double %130, double* %82
%131 = load double, double* %3
%132 = tail call double @llvm.fmuladd.f64(double %130, double %1, double %131)
store double %132, double* %82
ret void
}