#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 */
int floor(int const);
int /*<<< orphan*/ memset(void *, int /*<<< orphan*/, int const);
void interp3_table1_real_per_adj(double *r_ck, double *i_ck, const int K1,
                                 const int K2, const int K3, const double *r_h1,
                                 const double *r_h2, const double *r_h3,
                                 const int J1, const int J2, const int J3,
                                 const int L1, const int L2, const int L3,
                                 const double *p_tm, const int M,
                                 const double *r_fm, const double *i_fm) {
  int mm;
  {
    const int ncenter1 = floor(J1 * L1 / 2.);
    r_h1 += ncenter1;
  }
  {
    const int ncenter2 = floor(J2 * L2 / 2.);
    r_h2 += ncenter2;
  }
  {
    const int ncenter3 = floor(J3 * L3 / 2.);
    r_h3 += ncenter3;
  }
  (void)memset((void *)r_ck, 0, K1 * K2 * K3 * sizeof(*r_ck));
  (void)memset((void *)i_ck, 0, K1 * K2 * K3 * sizeof(*i_ck));
  for (mm = 0; mm < M; mm++) {
    int jj1, jj2, jj3;
    const double t3 = p_tm[2 * M];
    const double t2 = p_tm[M];
    const double t1 = *p_tm++;
    const double fmr = *r_fm++;
    const double fmi = *i_fm++;
    const int koff1 = 1 + floor(t1 - J1 / 2.);
    const int koff2 = 1 + floor(t2 - J2 / 2.);
    int k3 = 1 + floor(t3 - J3 / 2.);
    for (jj3 = 0; jj3 < J3; jj3++, k3++) {
      const double p3 = (t3 - k3) * L3;
      const int n3 = floor(p3);
      const double alf3 = p3 - n3;
      register const double *ph3 = r_h3 + n3;
      double coef3r = (1 - alf3) * *ph3 + alf3 * *(ph3 + 1);
      const int wrap3 = floor(k3 / (double)K3);
      const int k3mod = k3 - K3 * wrap3;
      const double v3r = coef3r * fmr;
      const double v3i = coef3r * fmi;
      int k2 = koff2;
      for (jj2 = 0; jj2 < J2; jj2++, k2++) {
        const double p2 = (t2 - k2) * L2;
        const int n2 = floor(p2);
        const double alf2 = p2 - n2;
        register const double *ph2 = r_h2 + n2;
        double coef2r = (1 - alf2) * *ph2 + alf2 * *(ph2 + 1);
        const int wrap2 = floor(k2 / (double)K2);
        const int k2mod = k2 - K2 * wrap2;
        const int k23mod = (k3mod * K2 + k2mod) * K1;
        const double v2r = coef2r * v3r;
        const double v2i = coef2r * v3i;
        int k1 = koff1;
        for (jj1 = 0; jj1 < J1; jj1++, k1++) {
          const double p1 = (t1 - k1) * L1;
          const int n1 = floor(p1);
          const double alf1 = p1 - n1;
          register const double *ph1 = r_h1 + n1;
          register double coef1r = (1 - alf1) * *ph1 + alf1 * *(ph1 + 1);
          const int wrap1 = floor(k1 / (double)K1);
          const int k1mod = k1 - K1 * wrap1;
          const int kk = k23mod + k1mod;
          r_ck[kk] += coef1r * v2r;
          i_ck[kk] += coef1r * v2i;
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<interp3_table1_real_per_adj>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
mov    0x68(%rbp),%rax
mov    0x60(%rbp),%rax
mov    0x58(%rbp),%eax
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%eax
mov    0x40(%rbp),%eax
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9,-0x28(%rbp)
mov    0x20(%rbp),%eax
imul   0x38(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xe83(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%ecx
mov    -0x28(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    0x28(%rbp),%eax
imul   0x40(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xe4b(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%ecx
mov    0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x10(%rbp)
mov    0x30(%rbp),%eax
imul   0x48(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xe13(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%ecx
mov    0x18(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
imul   -0x1c(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1030 <memset@plt>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
imul   -0x1c(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1030 <memset@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    0x58(%rbp),%eax
jge    1780 <interp3_table1_real_per_adj+0x660>
mov    0x50(%rbp),%rax
mov    0x58(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x50(%rbp),%rax
movslq 0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    0x50(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,0x50(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    0x60(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,0x60(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    0x68(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,0x68(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x60(%rbp),%xmm0
cvtsi2sdl 0x20(%rbp),%xmm1
movsd  0xd1c(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
movsd  -0x58(%rbp),%xmm0
cvtsi2sdl 0x28(%rbp),%xmm1
movsd  0xcf3(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
movsd  -0x50(%rbp),%xmm0
cvtsi2sdl 0x30(%rbp),%xmm1
movsd  0xcca(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    0x30(%rbp),%eax
jge    176d <interp3_table1_real_per_adj+0x64d>
movsd  -0x50(%rbp),%xmm0
cvtsi2sdl -0x7c(%rbp),%xmm1
subsd  %xmm1,%xmm0
cvtsi2sdl 0x48(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
cvttsd2si -0x88(%rbp),%edi
ff
call   1040 <floor@plt>
mov    %eax,-0x8c(%rbp)
movsd  -0x88(%rbp),%xmm0
ff
cvtsi2sdl -0x8c(%rbp),%xmm1
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    0x18(%rbp),%rax
movslq -0x8c(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xa0(%rbp)
movsd  0xc39(%rip),%xmm0
subsd  -0x98(%rbp),%xmm0
ff
mov    -0xa0(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mov    -0xa0(%rbp),%rax
mulsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
cvtsi2sdl -0x7c(%rbp),%xmm0
cvtsi2sdl -0x1c(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,-0xac(%rbp)
mov    -0x7c(%rbp),%eax
mov    -0x1c(%rbp),%ecx
imul   -0xac(%rbp),%ecx
sub    %ecx,%eax
mov    %eax,-0xb0(%rbp)
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
mov    -0x78(%rbp),%eax
mov    %eax,-0xc4(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    0x28(%rbp),%eax
jge    1751 <interp3_table1_real_per_adj+0x631>
movsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0xc4(%rbp),%xmm1
ff
subsd  %xmm1,%xmm0
cvtsi2sdl 0x40(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
cvttsd2si -0xd0(%rbp),%edi
ff
call   1040 <floor@plt>
mov    %eax,-0xd4(%rbp)
movsd  -0xd0(%rbp),%xmm0
ff
cvtsi2sdl -0xd4(%rbp),%xmm1
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
mov    0x10(%rbp),%rax
movslq -0xd4(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xe8(%rbp)
movsd  0xb18(%rip),%xmm0
subsd  -0xe0(%rbp),%xmm0
ff
mov    -0xe8(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0xe0(%rbp),%xmm1
ff
mov    -0xe8(%rbp),%rax
mulsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
cvtsi2sdl -0xc4(%rbp),%xmm0
ff
cvtsi2sdl -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,-0xf4(%rbp)
mov    -0xc4(%rbp),%eax
mov    -0x18(%rbp),%ecx
imul   -0xf4(%rbp),%ecx
sub    %ecx,%eax
mov    %eax,-0xf8(%rbp)
mov    -0xb0(%rbp),%eax
imul   -0x18(%rbp),%eax
add    -0xf8(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    %eax,-0xfc(%rbp)
movsd  -0xf0(%rbp),%xmm0
ff
mulsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0xf0(%rbp),%xmm0
ff
mulsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0x110(%rbp)
ff
mov    -0x74(%rbp),%eax
mov    %eax,-0x114(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    0x20(%rbp),%eax
jge    172f <interp3_table1_real_per_adj+0x60f>
movsd  -0x60(%rbp),%xmm0
cvtsi2sdl -0x114(%rbp),%xmm1
ff
subsd  %xmm1,%xmm0
cvtsi2sdl 0x38(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
cvttsd2si -0x120(%rbp),%edi
ff
call   1040 <floor@plt>
mov    %eax,-0x124(%rbp)
movsd  -0x120(%rbp),%xmm0
ff
cvtsi2sdl -0x124(%rbp),%xmm1
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
mov    -0x28(%rbp),%rax
movslq -0x124(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x138(%rbp)
movsd  0x9d1(%rip),%xmm0
subsd  -0x130(%rbp),%xmm0
ff
mov    -0x138(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0x130(%rbp),%xmm1
ff
mov    -0x138(%rbp),%rax
mulsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
cvtsi2sdl -0x114(%rbp),%xmm0
ff
cvtsi2sdl -0x14(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,-0x144(%rbp)
mov    -0x114(%rbp),%eax
mov    -0x14(%rbp),%ecx
imul   -0x144(%rbp),%ecx
sub    %ecx,%eax
mov    %eax,-0x148(%rbp)
mov    -0xfc(%rbp),%eax
add    -0x148(%rbp),%eax
mov    %eax,-0x14c(%rbp)
movsd  -0x140(%rbp),%xmm0
ff
movsd  -0x108(%rbp),%xmm2
ff
mov    -0x8(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x140(%rbp),%xmm0
ff
movsd  -0x110(%rbp),%xmm2
ff
mov    -0x10(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    15b9 <interp3_table1_real_per_adj+0x499>
jmp    1734 <interp3_table1_real_per_adj+0x614>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1472 <interp3_table1_real_per_adj+0x352>
jmp    1756 <interp3_table1_real_per_adj+0x636>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
jmp    1354 <interp3_table1_real_per_adj+0x234>
jmp    1772 <interp3_table1_real_per_adj+0x652>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1255 <interp3_table1_real_per_adj+0x135>
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interp3_table1_real_per_adj>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
mov    %r9,(%rsp)
mov    %r8d,%r15d
mov    %ecx,%r12d
mov    %edx,%r14d
mov    %rsi,%r13
mov    %rdi,%rbx
mov    0x1a0(%rsp),%ebp
mov    0x198(%rsp),%eax
imul   0x180(%rsp),%eax
cvtsi2sd %eax,%xmm0
mulsd  0xe9a(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %ebp,%ecx
imul   0x188(%rsp),%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
mov    %eax,0x8(%rsp)
mulsd  0xe74(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    0x1a8(%rsp),%ecx
imul   0x190(%rsp),%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
mov    %eax,0x18(%rsp)
mulsd  0xe49(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,0x40(%rsp)
mov    %r14d,0x38(%rsp)
mov    %r12d,0x2c(%rsp)
imul   %r12d,%r14d
mov    %r15d,0x24(%rsp)
imul   %r15d,%r14d
shl    $0x3,%r14d
xor    %ebp,%ebp
mov    %rbx,0x118(%rsp)
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r14d,%edx
call   1030 <memset@plt>
mov    %r13,0x120(%rsp)
mov    %r13,%rdi
xor    %esi,%esi
mov    %r14d,%edx
call   1030 <memset@plt>
mov    0x1b8(%rsp),%eax
test   %eax,%eax
jle    17a1 <interp3_table1_real_per_adj+0x681>
mov    0x1c8(%rsp),%rdx
movslq 0x8(%rsp),%rax
mov    (%rsp),%rcx
lea    (%rcx,%rax,8),%rax
mov    %rax,0x110(%rsp)
mov    0x1c0(%rsp),%rsi
movslq 0x18(%rsp),%rax
shl    $0x3,%rax
add    0x170(%rsp),%rax
mov    %rax,0x108(%rsp)
movslq 0x40(%rsp),%rax
shl    $0x3,%rax
add    0x178(%rsp),%rax
mov    %rax,0xe8(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x1a8(%rsp),%xmm0
movsd  %xmm0,0xe0(%rsp)
mov    0x1b0(%rsp),%rdi
xorps  %xmm0,%xmm0
cvtsi2sdl 0x1a0(%rsp),%xmm0
movsd  %xmm0,0x100(%rsp)
mov    0x1b8(%rsp),%eax
mov    %rax,%rcx
lea    (%rax,%rax,1),%eax
cltq
mov    %rax,0xa8(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x198(%rsp),%xmm0
movsd  %xmm0,0x80(%rsp)
mov    %ecx,%eax
mov    %rax,0xa0(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x180(%rsp),%xmm0
cvtsi2sdl 0x188(%rsp),%xmm1
movsd  0xd0a(%rip),%xmm2
mulsd  %xmm2,%xmm0
movsd  %xmm0,0x98(%rsp)
mulsd  %xmm2,%xmm1
movsd  %xmm1,0x90(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x190(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl 0x24(%rsp),%xmm1
movsd  %xmm1,0xd8(%rsp)
xorps  %xmm1,%xmm1
cvtsi2sdl 0x2c(%rsp),%xmm1
movsd  %xmm1,0xf8(%rsp)
mulsd  %xmm2,%xmm0
movsd  %xmm0,0x88(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x38(%rsp),%xmm0
movsd  %xmm0,0x128(%rsp)
mov    0x38(%rsp),%r13d
mov    0x120(%rsp),%rbx
mov    0x118(%rsp),%r15
jmp    13ba <interp3_table1_real_per_adj+0x29a>
cs nopw 0x0(%rax,%rax,1)
mov    0xb0(%rsp),%rdi
add    $0x8,%rdi
mov    0xb8(%rsp),%rsi
add    $0x8,%rsi
mov    0xc0(%rsp),%rdx
add    $0x8,%rdx
mov    0x54(%rsp),%ebp
add    $0x1,%ebp
mov    0x1b8(%rsp),%eax
cmp    %eax,%ebp
je     17a1 <interp3_table1_real_per_adj+0x681>
mov    %ebp,0x54(%rsp)
mov    0xa8(%rsp),%rax
movsd  (%rdi,%rax,8),%xmm0
movsd  %xmm0,0x70(%rsp)
mov    0xa0(%rsp),%rax
movsd  (%rdi,%rax,8),%xmm0
movsd  %xmm0,0x78(%rsp)
mov    %rdi,0xb0(%rsp)
movsd  (%rdi),%xmm0
mov    %rsi,0xb8(%rsp)
movsd  (%rsi),%xmm1
movsd  %xmm1,0xd0(%rsp)
mov    %rdx,0xc0(%rsp)
movsd  (%rdx),%xmm1
movsd  %xmm1,0xc8(%rsp)
movsd  %xmm0,0x40(%rsp)
subsd  0x98(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,0x30(%rsp)
movsd  0x78(%rsp),%xmm0
subsd  0x90(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,0x28(%rsp)
movsd  0x70(%rsp),%xmm0
subsd  0x88(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
cmpl   $0x0,0x190(%rsp)
jle    1380 <interp3_table1_real_per_adj+0x260>
mov    0x28(%rsp),%ecx
add    $0x1,%ecx
mov    %ecx,0x58(%rsp)
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,0x34(%rsp)
addl   $0x1,0x30(%rsp)
xor    %ecx,%ecx
jmp    14bd <interp3_table1_real_per_adj+0x39d>
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x5c(%rsp),%ecx
add    $0x1,%ecx
addl   $0x1,0x34(%rsp)
cmp    0x190(%rsp),%ecx
mov    0x60(%rsp),%eax
je     1380 <interp3_table1_real_per_adj+0x260>
mov    %ecx,0x5c(%rsp)
add    $0x1,%eax
mov    %eax,0x60(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x70(%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  0xe0(%rsp),%xmm1
movsd  %xmm1,(%rsp)
cvttsd2si %xmm1,%edi
call   1040 <floor@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rsp),%xmm1
subsd  %xmm0,%xmm1
cltq
movsd  0xaf8(%rip),%xmm0
subsd  %xmm1,%xmm0
mov    0xe8(%rsp),%rcx
mulsd  0x8(%rcx,%rax,8),%xmm1
movsd  %xmm1,(%rsp)
mulsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x48(%rsp)
movsd  0x8(%rsp),%xmm0
divsd  0xd8(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,0x14(%rsp)
cmpl   $0x0,0x188(%rsp)
jle    14a0 <interp3_table1_real_per_adj+0x380>
mov    0x14(%rsp),%eax
imul   0x24(%rsp),%eax
mov    %eax,0x14(%rsp)
movsd  0x48(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  0xd0(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0xf0(%rsp)
mulsd  0xc8(%rsp),%xmm0
movsd  %xmm0,0x48(%rsp)
xor    %eax,%eax
mov    0x58(%rsp),%ecx
mov    %ecx,0x3c(%rsp)
mov    0x28(%rsp),%ecx
jmp    15cd <interp3_table1_real_per_adj+0x4ad>
nopl   0x0(%rax)
mov    0x68(%rsp),%eax
add    $0x1,%eax
addl   $0x1,0x3c(%rsp)
cmp    0x188(%rsp),%eax
mov    0x64(%rsp),%ecx
je     14a0 <interp3_table1_real_per_adj+0x380>
mov    %eax,0x68(%rsp)
add    $0x1,%ecx
mov    %ecx,0x64(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x78(%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  0x100(%rsp),%xmm1
movsd  %xmm1,(%rsp)
cvttsd2si %xmm1,%edi
call   1040 <floor@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rsp),%xmm1
subsd  %xmm0,%xmm1
cltq
movsd  0x9e8(%rip),%xmm0
subsd  %xmm1,%xmm0
mov    0x108(%rsp),%rcx
mulsd  0x8(%rcx,%rax,8),%xmm1
movsd  %xmm1,(%rsp)
mulsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x8(%rsp),%xmm0
divsd  0xf8(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
cmpl   $0x0,0x180(%rsp)
mov    0x110(%rsp),%rbp
movsd  0x80(%rsp),%xmm1
movsd  0x40(%rsp),%xmm2
jle    15b0 <interp3_table1_real_per_adj+0x490>
add    0x14(%rsp),%eax
movsd  0x18(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  0xf0(%rsp),%xmm3
mulsd  %xmm0,%xmm3
movsd  %xmm3,0x130(%rsp)
mulsd  0x48(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
mov    0x34(%rsp),%ecx
sub    %eax,%ecx
imul   0x2c(%rsp),%ecx
add    0x3c(%rsp),%ecx
mov    %ecx,0x6c(%rsp)
mov    0x180(%rsp),%r14d
mov    0x30(%rsp),%r12d
xorps  %xmm0,%xmm0
cvtsi2sd %r12d,%xmm0
movsd  %xmm0,(%rsp)
subsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
cvttsd2si %xmm2,%edi
call   1040 <floor@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
cltq
movsd  0x8f9(%rip),%xmm0
subsd  %xmm1,%xmm0
mulsd  0x8(%rbp,%rax,8),%xmm1
mulsd  0x0(%rbp,%rax,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  (%rsp),%xmm0
divsd  0x128(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
movsd  0x40(%rsp),%xmm2
movsd  0x80(%rsp),%xmm1
mov    0x6c(%rsp),%ecx
sub    %eax,%ecx
imul   %r13d,%ecx
add    %r12d,%ecx
movslq %ecx,%rax
movsd  0x8(%rsp),%xmm3
movapd %xmm3,%xmm0
mulsd  0x130(%rsp),%xmm0
addsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,(%r15,%rax,8)
mulsd  0x18(%rsp),%xmm3
addsd  (%rbx,%rax,8),%xmm3
movsd  %xmm3,(%rbx,%rax,8)
add    $0x1,%r12d
add    $0xffffffff,%r14d
jne    16d0 <interp3_table1_real_per_adj+0x5b0>
jmp    15b0 <interp3_table1_real_per_adj+0x490>
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @interp3_table1_real_per_adj(double* %0, double* %1, i32 %2, i32 %3, i32 %4, double* %5, double* %6, double* %7, i32 %8, i32 %9, i32 %10, i32 %11, i32 %12, i32 %13, double* %14, i32 %15, double* %16, double* %17) {
%19 = alloca double*
%20 = alloca double*
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca double*
%25 = alloca double*
%26 = alloca double*
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca double*
%34 = alloca i32
%35 = alloca double*
%36 = alloca double*
%37 = alloca i32
%38 = alloca i32
%39 = alloca i32
%40 = alloca i32
%41 = alloca i32
%42 = alloca i32
%43 = alloca i32
%44 = alloca double
%45 = alloca double
%46 = alloca double
%47 = alloca double
%48 = alloca double
%49 = alloca i32
%50 = alloca i32
%51 = alloca i32
%52 = alloca double
%53 = alloca i32
%54 = alloca double
%55 = alloca double*
%56 = alloca double
%57 = alloca i32
%58 = alloca i32
%59 = alloca double
%60 = alloca double
%61 = alloca i32
%62 = alloca double
%63 = alloca i32
%64 = alloca double
%65 = alloca double*
%66 = alloca double
%67 = alloca i32
%68 = alloca i32
%69 = alloca i32
%70 = alloca double
%71 = alloca double
%72 = alloca i32
%73 = alloca double
%74 = alloca i32
%75 = alloca double
%76 = alloca double*
%77 = alloca double
%78 = alloca i32
%79 = alloca i32
%80 = alloca i32
store double* %0, double** %19
store double* %1, double** %20
store i32 %2, i32* %21
store i32 %3, i32* %22
store i32 %4, i32* %23
store double* %5, double** %24
store double* %6, double** %25
store double* %7, double** %26
store i32 %8, i32* %27
store i32 %9, i32* %28
store i32 %10, i32* %29
store i32 %11, i32* %30
store i32 %12, i32* %31
store i32 %13, i32* %32
store double* %14, double** %33
store i32 %15, i32* %34
store double* %16, double** %35
store double* %17, double** %36
%81 = load i32, i32* %27
%82 = load i32, i32* %30
%83 = mul nsw i32 %81, %82
%84 = sitofp i32 %83 to double
%85 = fdiv double %84, 2.000000e+00
%86 = fptosi double %85 to i32
%87 = call i32 @floor(i32 %86)
store i32 %87, i32* %38
%88 = load i32, i32* %38
%89 = load double*, double** %24
%90 = sext i32 %88 to i64
%91 = getelementptr inbounds double, double* %89, i64 %90
store double* %91, double** %24
%92 = load i32, i32* %28
%93 = load i32, i32* %31
%94 = mul nsw i32 %92, %93
%95 = sitofp i32 %94 to double
%96 = fdiv double %95, 2.000000e+00
%97 = fptosi double %96 to i32
%98 = call i32 @floor(i32 %97)
store i32 %98, i32* %39
%99 = load i32, i32* %39
%100 = load double*, double** %25
%101 = sext i32 %99 to i64
%102 = getelementptr inbounds double, double* %100, i64 %101
store double* %102, double** %25
%103 = load i32, i32* %29
%104 = load i32, i32* %32
%105 = mul nsw i32 %103, %104
%106 = sitofp i32 %105 to double
%107 = fdiv double %106, 2.000000e+00
%108 = fptosi double %107 to i32
%109 = call i32 @floor(i32 %108)
store i32 %109, i32* %40
%110 = load i32, i32* %40
%111 = load double*, double** %26
%112 = sext i32 %110 to i64
%113 = getelementptr inbounds double, double* %111, i64 %112
store double* %113, double** %26
%114 = load double*, double** %19
%115 = bitcast double* %114 to i8*
%116 = load i32, i32* %21
%117 = load i32, i32* %22
%118 = mul nsw i32 %116, %117
%119 = load i32, i32* %23
%120 = mul nsw i32 %118, %119
%121 = sext i32 %120 to i64
%122 = mul i64 %121, 8
%123 = trunc i64 %122 to i32
%124 = call i32 @memset(i8* %115, i32 0, i32 %123)
%125 = load double*, double** %20
%126 = bitcast double* %125 to i8*
%127 = load i32, i32* %21
%128 = load i32, i32* %22
%129 = mul nsw i32 %127, %128
%130 = load i32, i32* %23
%131 = mul nsw i32 %129, %130
%132 = sext i32 %131 to i64
%133 = mul i64 %132, 8
%134 = trunc i64 %133 to i32
%135 = call i32 @memset(i8* %126, i32 0, i32 %134)
store i32 0, i32* %37
br label %136
136: ; preds = %378, %18
%137 = load i32, i32* %37
%138 = load i32, i32* %34
%139 = icmp slt i32 %137, %138
br i1 %139, label %140, label %381
140: ; preds = %136
%141 = load double*, double** %33
%142 = load i32, i32* %34
%143 = mul nsw i32 2, %142
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds double, double* %141, i64 %144
%146 = load double, double* %145
store double %146, double* %44
%147 = load double*, double** %33
%148 = load i32, i32* %34
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds double, double* %147, i64 %149
%151 = load double, double* %150
store double %151, double* %45
%152 = load double*, double** %33
%153 = getelementptr inbounds double, double* %152, i32 1
store double* %153, double** %33
%154 = load double, double* %152
store double %154, double* %46
%155 = load double*, double** %35
%156 = getelementptr inbounds double, double* %155, i32 1
store double* %156, double** %35
%157 = load double, double* %155
store double %157, double* %47
%158 = load double*, double** %36
%159 = getelementptr inbounds double, double* %158, i32 1
store double* %159, double** %36
%160 = load double, double* %158
store double %160, double* %48
%161 = load double, double* %46
%162 = load i32, i32* %27
%163 = sitofp i32 %162 to double
%164 = fdiv double %163, 2.000000e+00
%165 = fsub double %161, %164
%166 = fptosi double %165 to i32
%167 = call i32 @floor(i32 %166)
%168 = add nsw i32 1, %167
store i32 %168, i32* %49
%169 = load double, double* %45
%170 = load i32, i32* %28
%171 = sitofp i32 %170 to double
%172 = fdiv double %171, 2.000000e+00
%173 = fsub double %169, %172
%174 = fptosi double %173 to i32
%175 = call i32 @floor(i32 %174)
%176 = add nsw i32 1, %175
store i32 %176, i32* %50
%177 = load double, double* %44
%178 = load i32, i32* %29
%179 = sitofp i32 %178 to double
%180 = fdiv double %179, 2.000000e+00
%181 = fsub double %177, %180
%182 = fptosi double %181 to i32
%183 = call i32 @floor(i32 %182)
%184 = add nsw i32 1, %183
store i32 %184, i32* %51
store i32 0, i32* %43
br label %185
185: ; preds = %372, %140
%186 = load i32, i32* %43
%187 = load i32, i32* %29
%188 = icmp slt i32 %186, %187
br i1 %188, label %189, label %377
189: ; preds = %185
%190 = load double, double* %44
%191 = load i32, i32* %51
%192 = sitofp i32 %191 to double
%193 = fsub double %190, %192
%194 = load i32, i32* %32
%195 = sitofp i32 %194 to double
%196 = fmul double %193, %195
store double %196, double* %52
%197 = load double, double* %52
%198 = fptosi double %197 to i32
%199 = call i32 @floor(i32 %198)
store i32 %199, i32* %53
%200 = load double, double* %52
%201 = load i32, i32* %53
%202 = sitofp i32 %201 to double
%203 = fsub double %200, %202
store double %203, double* %54
%204 = load double*, double** %26
%205 = load i32, i32* %53
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds double, double* %204, i64 %206
store double* %207, double** %55
%208 = load double, double* %54
%209 = fsub double 1.000000e+00, %208
%210 = load double*, double** %55
%211 = load double, double* %210
%212 = load double, double* %54
%213 = load double*, double** %55
%214 = getelementptr inbounds double, double* %213, i64 1
%215 = load double, double* %214
%216 = fmul double %212, %215
%217 = call double @llvm.fmuladd.f64(double %209, double %211, double %216)
store double %217, double* %56
%218 = load i32, i32* %51
%219 = sitofp i32 %218 to double
%220 = load i32, i32* %23
%221 = sitofp i32 %220 to double
%222 = fdiv double %219, %221
%223 = fptosi double %222 to i32
%224 = call i32 @floor(i32 %223)
store i32 %224, i32* %57
%225 = load i32, i32* %51
%226 = load i32, i32* %23
%227 = load i32, i32* %57
%228 = mul nsw i32 %226, %227
%229 = sub nsw i32 %225, %228
store i32 %229, i32* %58
%230 = load double, double* %56
%231 = load double, double* %47
%232 = fmul double %230, %231
store double %232, double* %59
%233 = load double, double* %56
%234 = load double, double* %48
%235 = fmul double %233, %234
store double %235, double* %60
%236 = load i32, i32* %50
store i32 %236, i32* %61
store i32 0, i32* %42
br label %237
237: ; preds = %366, %189
%238 = load i32, i32* %42
%239 = load i32, i32* %28
%240 = icmp slt i32 %238, %239
br i1 %240, label %241, label %371
241: ; preds = %237
%242 = load double, double* %45
%243 = load i32, i32* %61
%244 = sitofp i32 %243 to double
%245 = fsub double %242, %244
%246 = load i32, i32* %31
%247 = sitofp i32 %246 to double
%248 = fmul double %245, %247
store double %248, double* %62
%249 = load double, double* %62
%250 = fptosi double %249 to i32
%251 = call i32 @floor(i32 %250)
store i32 %251, i32* %63
%252 = load double, double* %62
%253 = load i32, i32* %63
%254 = sitofp i32 %253 to double
%255 = fsub double %252, %254
store double %255, double* %64
%256 = load double*, double** %25
%257 = load i32, i32* %63
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds double, double* %256, i64 %258
store double* %259, double** %65
%260 = load double, double* %64
%261 = fsub double 1.000000e+00, %260
%262 = load double*, double** %65
%263 = load double, double* %262
%264 = load double, double* %64
%265 = load double*, double** %65
%266 = getelementptr inbounds double, double* %265, i64 1
%267 = load double, double* %266
%268 = fmul double %264, %267
%269 = call double @llvm.fmuladd.f64(double %261, double %263, double %268)
store double %269, double* %66
%270 = load i32, i32* %61
%271 = sitofp i32 %270 to double
%272 = load i32, i32* %22
%273 = sitofp i32 %272 to double
%274 = fdiv double %271, %273
%275 = fptosi double %274 to i32
%276 = call i32 @floor(i32 %275)
store i32 %276, i32* %67
%277 = load i32, i32* %61
%278 = load i32, i32* %22
%279 = load i32, i32* %67
%280 = mul nsw i32 %278, %279
%281 = sub nsw i32 %277, %280
store i32 %281, i32* %68
%282 = load i32, i32* %58
%283 = load i32, i32* %22
%284 = mul nsw i32 %282, %283
%285 = load i32, i32* %68
%286 = add nsw i32 %284, %285
%287 = load i32, i32* %21
%288 = mul nsw i32 %286, %287
store i32 %288, i32* %69
%289 = load double, double* %66
%290 = load double, double* %59
%291 = fmul double %289, %290
store double %291, double* %70
%292 = load double, double* %66
%293 = load double, double* %60
%294 = fmul double %292, %293
store double %294, double* %71
%295 = load i32, i32* %49
store i32 %295, i32* %72
store i32 0, i32* %41
br label %296
296: ; preds = %360, %241
%297 = load i32, i32* %41
%298 = load i32, i32* %27
%299 = icmp slt i32 %297, %298
br i1 %299, label %300, label %365
300: ; preds = %296
%301 = load double, double* %46
%302 = load i32, i32* %72
%303 = sitofp i32 %302 to double
%304 = fsub double %301, %303
%305 = load i32, i32* %30
%306 = sitofp i32 %305 to double
%307 = fmul double %304, %306
store double %307, double* %73
%308 = load double, double* %73
%309 = fptosi double %308 to i32
%310 = call i32 @floor(i32 %309)
store i32 %310, i32* %74
%311 = load double, double* %73
%312 = load i32, i32* %74
%313 = sitofp i32 %312 to double
%314 = fsub double %311, %313
store double %314, double* %75
%315 = load double*, double** %24
%316 = load i32, i32* %74
%317 = sext i32 %316 to i64
%318 = getelementptr inbounds double, double* %315, i64 %317
store double* %318, double** %76
%319 = load double, double* %75
%320 = fsub double 1.000000e+00, %319
%321 = load double*, double** %76
%322 = load double, double* %321
%323 = load double, double* %75
%324 = load double*, double** %76
%325 = getelementptr inbounds double, double* %324, i64 1
%326 = load double, double* %325
%327 = fmul double %323, %326
%328 = call double @llvm.fmuladd.f64(double %320, double %322, double %327)
store double %328, double* %77
%329 = load i32, i32* %72
%330 = sitofp i32 %329 to double
%331 = load i32, i32* %21
%332 = sitofp i32 %331 to double
%333 = fdiv double %330, %332
%334 = fptosi double %333 to i32
%335 = call i32 @floor(i32 %334)
store i32 %335, i32* %78
%336 = load i32, i32* %72
%337 = load i32, i32* %21
%338 = load i32, i32* %78
%339 = mul nsw i32 %337, %338
%340 = sub nsw i32 %336, %339
store i32 %340, i32* %79
%341 = load i32, i32* %69
%342 = load i32, i32* %79
%343 = add nsw i32 %341, %342
store i32 %343, i32* %80
%344 = load double, double* %77
%345 = load double, double* %70
%346 = load double*, double** %19
%347 = load i32, i32* %80
%348 = sext i32 %347 to i64
%349 = getelementptr inbounds double, double* %346, i64 %348
%350 = load double, double* %349
%351 = call double @llvm.fmuladd.f64(double %344, double %345, double %350)
store double %351, double* %349
%352 = load double, double* %77
%353 = load double, double* %71
%354 = load double*, double** %20
%355 = load i32, i32* %80
%356 = sext i32 %355 to i64
%357 = getelementptr inbounds double, double* %354, i64 %356
%358 = load double, double* %357
%359 = call double @llvm.fmuladd.f64(double %352, double %353, double %358)
store double %359, double* %357
br label %360
360: ; preds = %300
%361 = load i32, i32* %41
%362 = add nsw i32 %361, 1
store i32 %362, i32* %41
%363 = load i32, i32* %72
%364 = add nsw i32 %363, 1
store i32 %364, i32* %72
br label %296
365: ; preds = %296
br label %366
366: ; preds = %365
%367 = load i32, i32* %42
%368 = add nsw i32 %367, 1
store i32 %368, i32* %42
%369 = load i32, i32* %61
%370 = add nsw i32 %369, 1
store i32 %370, i32* %61
br label %237
371: ; preds = %237
br label %372
372: ; preds = %371
%373 = load i32, i32* %43
%374 = add nsw i32 %373, 1
store i32 %374, i32* %43
%375 = load i32, i32* %51
%376 = add nsw i32 %375, 1
store i32 %376, i32* %51
br label %185
377: ; preds = %185
br label %378
378: ; preds = %377
%379 = load i32, i32* %37
%380 = add nsw i32 %379, 1
store i32 %380, i32* %37
br label %136
381: ; preds = %136
ret void
}

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