#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 interp2_table1_real_per_adj(double *r_ck, double *i_ck, const int K1,
                                 const int K2, const double *r_h1,
                                 const double *r_h2, const int J1, const int J2,
                                 const int L1, const int L2, 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;
  }
  (void)memset((void *)r_ck, 0, K1 * K2 * sizeof(*r_ck));
  (void)memset((void *)i_ck, 0, K1 * K2 * sizeof(*i_ck));
  for (mm = 0; mm < M; mm++) {
    int jj1, jj2;
    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.);
    int k2 = 1 + floor(t2 - J2 / 2.);
    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 k12mod = k2mod * K1;
      const double v2r = coef2r * fmr;
      const double v2i = coef2r * fmi;
      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 = k12mod + k1mod;
        r_ck[kk] += coef1r * v2r;
        i_ck[kk] += coef1r * v2i;
      }
    }
  }
}


x86 assembly (clang, -O0):
<interp2_table1_real_per_adj>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    0x10(%rbp),%eax
imul   0x20(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xe91(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    0x18(%rbp),%eax
imul   0x28(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xe59(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%ecx
mov    -0x28(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%eax
imul   -0x18(%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
cltq
shl    $0x3,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1030 <memset@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    0x38(%rbp),%eax
jge    157e <interp2_table1_real_per_adj+0x45e>
mov    0x30(%rbp),%rax
movslq 0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,0x30(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x40(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,0x40(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,0x48(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x50(%rbp),%xmm0
cvtsi2sdl 0x10(%rbp),%xmm1
movsd  0xd81(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
movsd  -0x48(%rbp),%xmm0
cvtsi2sdl 0x18(%rbp),%xmm1
movsd  0xd58(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    0x18(%rbp),%eax
jge    156b <interp2_table1_real_per_adj+0x44b>
movsd  -0x48(%rbp),%xmm0
cvtsi2sdl -0x68(%rbp),%xmm1
subsd  %xmm1,%xmm0
cvtsi2sdl 0x28(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
cvttsd2si -0x70(%rbp),%edi
call   1040 <floor@plt>
mov    %eax,-0x74(%rbp)
movsd  -0x70(%rbp),%xmm0
cvtsi2sdl -0x74(%rbp),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x74(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x88(%rbp)
movsd  0xcdc(%rip),%xmm0
subsd  -0x80(%rbp),%xmm0
mov    -0x88(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0x80(%rbp),%xmm1
mov    -0x88(%rbp),%rax
mulsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
cvtsi2sdl -0x68(%rbp),%xmm0
cvtsi2sdl -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,-0x94(%rbp)
mov    -0x68(%rbp),%eax
mov    -0x18(%rbp),%ecx
imul   -0x94(%rbp),%ecx
sub    %ecx,%eax
mov    %eax,-0x98(%rbp)
mov    -0x98(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    %eax,-0x9c(%rbp)
movsd  -0x90(%rbp),%xmm0
ff
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
mov    -0x64(%rbp),%eax
mov    %eax,-0xb4(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    154f <interp2_table1_real_per_adj+0x42f>
movsd  -0x50(%rbp),%xmm0
cvtsi2sdl -0xb4(%rbp),%xmm1
ff
subsd  %xmm1,%xmm0
cvtsi2sdl 0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
cvttsd2si -0xc0(%rbp),%edi
ff
call   1040 <floor@plt>
mov    %eax,-0xc4(%rbp)
movsd  -0xc0(%rbp),%xmm0
ff
cvtsi2sdl -0xc4(%rbp),%xmm1
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
mov    -0x20(%rbp),%rax
movslq -0xc4(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xd8(%rbp)
movsd  0xbb1(%rip),%xmm0
subsd  -0xd0(%rbp),%xmm0
ff
mov    -0xd8(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0xd0(%rbp),%xmm1
ff
mov    -0xd8(%rbp),%rax
mulsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
cvtsi2sdl -0xb4(%rbp),%xmm0
ff
cvtsi2sdl -0x14(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,-0xe4(%rbp)
mov    -0xb4(%rbp),%eax
mov    -0x14(%rbp),%ecx
imul   -0xe4(%rbp),%ecx
sub    %ecx,%eax
mov    %eax,-0xe8(%rbp)
mov    -0x9c(%rbp),%eax
add    -0xe8(%rbp),%eax
mov    %eax,-0xec(%rbp)
movsd  -0xe0(%rbp),%xmm0
ff
movsd  -0xa8(%rbp),%xmm2
ff
mov    -0x8(%rbp),%rax
movslq -0xec(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xe0(%rbp),%xmm0
ff
movsd  -0xb0(%rbp),%xmm2
ff
mov    -0x10(%rbp),%rax
movslq -0xec(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
jmp    13d9 <interp2_table1_real_per_adj+0x2b9>
jmp    1554 <interp2_table1_real_per_adj+0x434>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    12c6 <interp2_table1_real_per_adj+0x1a6>
jmp    1570 <interp2_table1_real_per_adj+0x450>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1207 <interp2_table1_real_per_adj+0xe7>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interp2_table1_real_per_adj>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
mov    %r9,0x10(%rsp)
mov    %r8,0x8(%rsp)
mov    %ecx,%ebx
mov    %edx,%r12d
mov    %rsi,%r15
mov    %rdi,%rbp
mov    0x128(%rsp),%r14d
mov    0x120(%rsp),%eax
imul   0x110(%rsp),%eax
cvtsi2sd %eax,%xmm0
mulsd  0xe97(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %r14d,%ecx
imul   0x118(%rsp),%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
mov    %eax,%r13d
mulsd  0xe71(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,%r14d
mov    %r12d,0x28(%rsp)
mov    %ebx,0x20(%rsp)
imul   %ebx,%r12d
shl    $0x3,%r12d
xor    %ebx,%ebx
mov    %rbp,0xb8(%rsp)
mov    %rbp,%rdi
xor    %esi,%esi
mov    %r12d,%edx
call   1030 <memset@plt>
mov    %r15,0xc0(%rsp)
mov    %r15,%rdi
xor    %esi,%esi
mov    %r12d,%edx
call   1030 <memset@plt>
cmpl   $0x0,0x138(%rsp)
jle    1595 <interp2_table1_real_per_adj+0x475>
mov    0x148(%rsp),%rcx
mov    0x140(%rsp),%rdx
mov    0x130(%rsp),%rsi
movslq %r13d,%rax
mov    0x8(%rsp),%rdi
lea    (%rdi,%rax,8),%rax
mov    %rax,0xb0(%rsp)
movslq %r14d,%rax
mov    0x10(%rsp),%rdi
lea    (%rdi,%rax,8),%rax
mov    %rax,0xa8(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x110(%rsp),%xmm0
movsd  0xdc6(%rip),%xmm2
mulsd  %xmm2,%xmm0
movsd  %xmm0,0x68(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x118(%rsp),%xmm0
cvtsi2sdl 0x128(%rsp),%xmm1
movsd  %xmm1,0xa0(%rsp)
xorps  %xmm1,%xmm1
cvtsi2sdl 0x20(%rsp),%xmm1
movsd  %xmm1,0x98(%rsp)
xorps  %xmm1,%xmm1
cvtsi2sdl 0x120(%rsp),%xmm1
movsd  %xmm1,0x50(%rsp)
mulsd  %xmm2,%xmm0
movsd  %xmm0,0x60(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x28(%rsp),%xmm0
movsd  %xmm0,0xc8(%rsp)
mov    0x28(%rsp),%r14d
mov    0xc0(%rsp),%r13
mov    0xb8(%rsp),%r12
mov    0xb0(%rsp),%rbp
jmp    1302 <interp2_table1_real_per_adj+0x1e2>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x70(%rsp),%rsi
add    $0x8,%rsi
mov    0x78(%rsp),%rdx
add    $0x8,%rdx
mov    0x80(%rsp),%rcx
add    $0x8,%rcx
mov    0x3c(%rsp),%ebx
add    $0x1,%ebx
cmp    0x138(%rsp),%ebx
je     1595 <interp2_table1_real_per_adj+0x475>
mov    %ebx,0x3c(%rsp)
mov    0x138(%rsp),%eax
movsd  (%rsi,%rax,8),%xmm0
movsd  %xmm0,0x48(%rsp)
mov    %rsi,0x70(%rsp)
movsd  (%rsi),%xmm0
mov    %rdx,0x78(%rsp)
movsd  (%rdx),%xmm1
movsd  %xmm1,0x90(%rsp)
mov    %rcx,0x80(%rsp)
movsd  (%rcx),%xmm1
movsd  %xmm1,0x88(%rsp)
movsd  %xmm0,0x58(%rsp)
subsd  0x68(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,0x24(%rsp)
movsd  0x48(%rsp),%xmm0
subsd  0x60(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
cmpl   $0x0,0x118(%rsp)
jle    12d0 <interp2_table1_real_per_adj+0x1b0>
mov    %eax,%ecx
add    $0x1,%ecx
addl   $0x1,0x24(%rsp)
xor    %edx,%edx
jmp    13bf <interp2_table1_real_per_adj+0x29f>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x40(%rsp),%edx
add    $0x1,%edx
mov    0x2c(%rsp),%ecx
add    $0x1,%ecx
cmp    0x118(%rsp),%edx
mov    0x44(%rsp),%eax
je     12d0 <interp2_table1_real_per_adj+0x1b0>
mov    %ecx,0x2c(%rsp)
mov    %edx,0x40(%rsp)
add    $0x1,%eax
mov    %eax,0x44(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x48(%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  0xa0(%rsp),%xmm1
movsd  %xmm1,0x10(%rsp)
cvttsd2si %xmm1,%edi
call   1040 <floor@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x10(%rsp),%xmm1
subsd  %xmm0,%xmm1
cltq
movsd  0xbf0(%rip),%xmm0
subsd  %xmm1,%xmm0
mov    0xa8(%rsp),%rcx
mulsd  0x8(%rcx,%rax,8),%xmm1
movsd  %xmm1,0x10(%rsp)
mulsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x8(%rsp),%xmm0
divsd  0x98(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,0x1c(%rsp)
cmpl   $0x0,0x110(%rsp)
movsd  0x50(%rsp),%xmm1
movsd  0x58(%rsp),%xmm2
jle    13a0 <interp2_table1_real_per_adj+0x280>
mov    0x1c(%rsp),%eax
imul   0x20(%rsp),%eax
mov    %eax,0x1c(%rsp)
movsd  0x30(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  0x90(%rsp),%xmm3
mulsd  %xmm0,%xmm3
movsd  %xmm3,0xd0(%rsp)
mulsd  0x88(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
mov    0x110(%rsp),%r15d
mov    0x24(%rsp),%ebx
nopl   0x0(%rax,%rax,1)
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
movsd  %xmm0,0x10(%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  0xb09(%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  0x10(%rsp),%xmm0
divsd  0xc8(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
movsd  0x58(%rsp),%xmm2
movsd  0x50(%rsp),%xmm1
add    0x1c(%rsp),%eax
mov    0x2c(%rsp),%ecx
sub    %eax,%ecx
imul   %r14d,%ecx
add    %ebx,%ecx
movslq %ecx,%rax
movsd  0x8(%rsp),%xmm3
movapd %xmm3,%xmm0
mulsd  0xd0(%rsp),%xmm0
addsd  (%r12,%rax,8),%xmm0
movsd  %xmm0,(%r12,%rax,8)
mulsd  0x30(%rsp),%xmm3
addsd  0x0(%r13,%rax,8),%xmm3
movsd  %xmm3,0x0(%r13,%rax,8)
add    $0x1,%ebx
add    $0xffffffff,%r15d
jne    14c0 <interp2_table1_real_per_adj+0x3a0>
jmp    13a0 <interp2_table1_real_per_adj+0x280>
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @interp2_table1_real_per_adj(double* %0, double* %1, i32 %2, i32 %3, double* %4, double* %5, i32 %6, i32 %7, i32 %8, i32 %9, double* %10, i32 %11, double* %12, double* %13) {
%15 = alloca double*
%16 = alloca double*
%17 = alloca i32
%18 = alloca i32
%19 = alloca double*
%20 = alloca double*
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca double*
%26 = alloca i32
%27 = alloca double*
%28 = alloca double*
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
%34 = alloca double
%35 = alloca double
%36 = alloca double
%37 = alloca double
%38 = alloca i32
%39 = alloca i32
%40 = alloca double
%41 = alloca i32
%42 = alloca double
%43 = alloca double*
%44 = alloca double
%45 = alloca i32
%46 = alloca i32
%47 = alloca i32
%48 = alloca double
%49 = alloca double
%50 = alloca i32
%51 = alloca double
%52 = alloca i32
%53 = alloca double
%54 = alloca double*
%55 = alloca double
%56 = alloca i32
%57 = alloca i32
%58 = alloca i32
store double* %0, double** %15
store double* %1, double** %16
store i32 %2, i32* %17
store i32 %3, i32* %18
store double* %4, double** %19
store double* %5, double** %20
store i32 %6, i32* %21
store i32 %7, i32* %22
store i32 %8, i32* %23
store i32 %9, i32* %24
store double* %10, double** %25
store i32 %11, i32* %26
store double* %12, double** %27
store double* %13, double** %28
%59 = load i32, i32* %21
%60 = load i32, i32* %23
%61 = mul nsw i32 %59, %60
%62 = sitofp i32 %61 to double
%63 = fdiv double %62, 2.000000e+00
%64 = fptosi double %63 to i32
%65 = call i32 @floor(i32 %64)
store i32 %65, i32* %30
%66 = load i32, i32* %30
%67 = load double*, double** %19
%68 = sext i32 %66 to i64
%69 = getelementptr inbounds double, double* %67, i64 %68
store double* %69, double** %19
%70 = load i32, i32* %22
%71 = load i32, i32* %24
%72 = mul nsw i32 %70, %71
%73 = sitofp i32 %72 to double
%74 = fdiv double %73, 2.000000e+00
%75 = fptosi double %74 to i32
%76 = call i32 @floor(i32 %75)
store i32 %76, i32* %31
%77 = load i32, i32* %31
%78 = load double*, double** %20
%79 = sext i32 %77 to i64
%80 = getelementptr inbounds double, double* %78, i64 %79
store double* %80, double** %20
%81 = load double*, double** %15
%82 = bitcast double* %81 to i8*
%83 = load i32, i32* %17
%84 = load i32, i32* %18
%85 = mul nsw i32 %83, %84
%86 = sext i32 %85 to i64
%87 = mul i64 %86, 8
%88 = trunc i64 %87 to i32
%89 = call i32 @memset(i8* %82, i32 0, i32 %88)
%90 = load double*, double** %16
%91 = bitcast double* %90 to i8*
%92 = load i32, i32* %17
%93 = load i32, i32* %18
%94 = mul nsw i32 %92, %93
%95 = sext i32 %94 to i64
%96 = mul i64 %95, 8
%97 = trunc i64 %96 to i32
%98 = call i32 @memset(i8* %91, i32 0, i32 %97)
store i32 0, i32* %29
br label %99
99: ; preds = %265, %14
%100 = load i32, i32* %29
%101 = load i32, i32* %26
%102 = icmp slt i32 %100, %101
br i1 %102, label %103, label %268
103: ; preds = %99
%104 = load double*, double** %25
%105 = load i32, i32* %26
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double, double* %104, i64 %106
%108 = load double, double* %107
store double %108, double* %34
%109 = load double*, double** %25
%110 = getelementptr inbounds double, double* %109, i32 1
store double* %110, double** %25
%111 = load double, double* %109
store double %111, double* %35
%112 = load double*, double** %27
%113 = getelementptr inbounds double, double* %112, i32 1
store double* %113, double** %27
%114 = load double, double* %112
store double %114, double* %36
%115 = load double*, double** %28
%116 = getelementptr inbounds double, double* %115, i32 1
store double* %116, double** %28
%117 = load double, double* %115
store double %117, double* %37
%118 = load double, double* %35
%119 = load i32, i32* %21
%120 = sitofp i32 %119 to double
%121 = fdiv double %120, 2.000000e+00
%122 = fsub double %118, %121
%123 = fptosi double %122 to i32
%124 = call i32 @floor(i32 %123)
%125 = add nsw i32 1, %124
store i32 %125, i32* %38
%126 = load double, double* %34
%127 = load i32, i32* %22
%128 = sitofp i32 %127 to double
%129 = fdiv double %128, 2.000000e+00
%130 = fsub double %126, %129
%131 = fptosi double %130 to i32
%132 = call i32 @floor(i32 %131)
%133 = add nsw i32 1, %132
store i32 %133, i32* %39
store i32 0, i32* %33
br label %134
134: ; preds = %259, %103
%135 = load i32, i32* %33
%136 = load i32, i32* %22
%137 = icmp slt i32 %135, %136
br i1 %137, label %138, label %264
138: ; preds = %134
%139 = load double, double* %34
%140 = load i32, i32* %39
%141 = sitofp i32 %140 to double
%142 = fsub double %139, %141
%143 = load i32, i32* %24
%144 = sitofp i32 %143 to double
%145 = fmul double %142, %144
store double %145, double* %40
%146 = load double, double* %40
%147 = fptosi double %146 to i32
%148 = call i32 @floor(i32 %147)
store i32 %148, i32* %41
%149 = load double, double* %40
%150 = load i32, i32* %41
%151 = sitofp i32 %150 to double
%152 = fsub double %149, %151
store double %152, double* %42
%153 = load double*, double** %20
%154 = load i32, i32* %41
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds double, double* %153, i64 %155
store double* %156, double** %43
%157 = load double, double* %42
%158 = fsub double 1.000000e+00, %157
%159 = load double*, double** %43
%160 = load double, double* %159
%161 = load double, double* %42
%162 = load double*, double** %43
%163 = getelementptr inbounds double, double* %162, i64 1
%164 = load double, double* %163
%165 = fmul double %161, %164
%166 = call double @llvm.fmuladd.f64(double %158, double %160, double %165)
store double %166, double* %44
%167 = load i32, i32* %39
%168 = sitofp i32 %167 to double
%169 = load i32, i32* %18
%170 = sitofp i32 %169 to double
%171 = fdiv double %168, %170
%172 = fptosi double %171 to i32
%173 = call i32 @floor(i32 %172)
store i32 %173, i32* %45
%174 = load i32, i32* %39
%175 = load i32, i32* %18
%176 = load i32, i32* %45
%177 = mul nsw i32 %175, %176
%178 = sub nsw i32 %174, %177
store i32 %178, i32* %46
%179 = load i32, i32* %46
%180 = load i32, i32* %17
%181 = mul nsw i32 %179, %180
store i32 %181, i32* %47
%182 = load double, double* %44
%183 = load double, double* %36
%184 = fmul double %182, %183
store double %184, double* %48
%185 = load double, double* %44
%186 = load double, double* %37
%187 = fmul double %185, %186
store double %187, double* %49
%188 = load i32, i32* %38
store i32 %188, i32* %50
store i32 0, i32* %32
br label %189
189: ; preds = %253, %138
%190 = load i32, i32* %32
%191 = load i32, i32* %21
%192 = icmp slt i32 %190, %191
br i1 %192, label %193, label %258
193: ; preds = %189
%194 = load double, double* %35
%195 = load i32, i32* %50
%196 = sitofp i32 %195 to double
%197 = fsub double %194, %196
%198 = load i32, i32* %23
%199 = sitofp i32 %198 to double
%200 = fmul double %197, %199
store double %200, double* %51
%201 = load double, double* %51
%202 = fptosi double %201 to i32
%203 = call i32 @floor(i32 %202)
store i32 %203, i32* %52
%204 = load double, double* %51
%205 = load i32, i32* %52
%206 = sitofp i32 %205 to double
%207 = fsub double %204, %206
store double %207, double* %53
%208 = load double*, double** %19
%209 = load i32, i32* %52
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds double, double* %208, i64 %210
store double* %211, double** %54
%212 = load double, double* %53
%213 = fsub double 1.000000e+00, %212
%214 = load double*, double** %54
%215 = load double, double* %214
%216 = load double, double* %53
%217 = load double*, double** %54
%218 = getelementptr inbounds double, double* %217, i64 1
%219 = load double, double* %218
%220 = fmul double %216, %219
%221 = call double @llvm.fmuladd.f64(double %213, double %215, double %220)
store double %221, double* %55
%222 = load i32, i32* %50
%223 = sitofp i32 %222 to double
%224 = load i32, i32* %17
%225 = sitofp i32 %224 to double
%226 = fdiv double %223, %225
%227 = fptosi double %226 to i32
%228 = call i32 @floor(i32 %227)
store i32 %228, i32* %56
%229 = load i32, i32* %50
%230 = load i32, i32* %17
%231 = load i32, i32* %56
%232 = mul nsw i32 %230, %231
%233 = sub nsw i32 %229, %232
store i32 %233, i32* %57
%234 = load i32, i32* %47
%235 = load i32, i32* %57
%236 = add nsw i32 %234, %235
store i32 %236, i32* %58
%237 = load double, double* %55
%238 = load double, double* %48
%239 = load double*, double** %15
%240 = load i32, i32* %58
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds double, double* %239, i64 %241
%243 = load double, double* %242
%244 = call double @llvm.fmuladd.f64(double %237, double %238, double %243)
store double %244, double* %242
%245 = load double, double* %55
%246 = load double, double* %49
%247 = load double*, double** %16
%248 = load i32, i32* %58
%249 = sext i32 %248 to i64
%250 = getelementptr inbounds double, double* %247, i64 %249
%251 = load double, double* %250
%252 = call double @llvm.fmuladd.f64(double %245, double %246, double %251)
store double %252, double* %250
br label %253
253: ; preds = %193
%254 = load i32, i32* %32
%255 = add nsw i32 %254, 1
store i32 %255, i32* %32
%256 = load i32, i32* %50
%257 = add nsw i32 %256, 1
store i32 %257, i32* %50
br label %189
258: ; preds = %189
br label %259
259: ; preds = %258
%260 = load i32, i32* %33
%261 = add nsw i32 %260, 1
store i32 %261, i32* %33
%262 = load i32, i32* %39
%263 = add nsw i32 %262, 1
store i32 %263, i32* %39
br label %134
264: ; preds = %134
br label %265
265: ; preds = %264
%266 = load i32, i32* %29
%267 = add nsw i32 %266, 1
store i32 %267, i32* %29
br label %99
268: ; preds = %99
ret void
}

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