#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);
void interp2_table1_real_per(const double *r_ck, const 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, double *r_fm, 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;
  }
  for (mm = 0; mm < M; mm++) {
    int jj1, jj2;
    const double t2 = p_tm[M];
    const double t1 = *p_tm++;
    double sum2r = 0;
    double sum2i = 0;
    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;
      register double sum1r = 0;
      register double sum1i = 0;
      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;
        sum1r += coef1r * r_ck[kk];
        sum1i += coef1r * i_ck[kk];
      }
      sum2r += coef2r * sum1r;
      sum2i += coef2r * sum1i;
    }
    *r_fm++ = sum2r;
    *i_fm++ = sum2i;
  }
}


x86 assembly (clang, -O0):
<interp2_table1_real_per>:
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
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
call   1030 <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
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
call   1030 <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)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    0x38(%rbp),%eax
jge    1562 <interp2_table1_real_per+0x452>
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)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x50(%rbp),%xmm0
cvtsi2sdl 0x10(%rbp),%xmm1
movsd  0xdf9(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <floor@plt>
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
movsd  -0x48(%rbp),%xmm0
cvtsi2sdl 0x18(%rbp),%xmm1
movsd  0xdd0(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <floor@plt>
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    0x18(%rbp),%eax
jge    1524 <interp2_table1_real_per+0x414>
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   1030 <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  0xd54(%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   1030 <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)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
xorps  %xmm0,%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    14c9 <interp2_table1_real_per+0x3b9>
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   1030 <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  0xc3d(%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   1030 <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
mov    -0x8(%rbp),%rax
movslq -0xec(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0xa8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movslq -0xec(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0xb0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
jmp    134d <interp2_table1_real_per+0x23d>
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0xa8(%rbp),%xmm2
ff
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0xb0(%rbp),%xmm2
ff
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    124e <interp2_table1_real_per+0x13e>
movsd  -0x58(%rbp),%xmm0
mov    0x40(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,0x40(%rbp)
movsd  %xmm0,(%rax)
movsd  -0x60(%rbp),%xmm0
mov    0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,0x48(%rbp)
movsd  %xmm0,(%rax)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11af <interp2_table1_real_per+0x9f>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interp2_table1_real_per>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
mov    %r9,0x30(%rsp)
mov    %r8,%r12
mov    %ecx,0x10(%rsp)
mov    %edx,%r15d
mov    %rsi,%r13
mov    %rdi,0x90(%rsp)
mov    0x148(%rsp),%ebx
mov    0x140(%rsp),%r14d
mov    %r14d,%eax
imul   0x130(%rsp),%eax
mov    %eax,%edi
shr    $0x1f,%edi
add    %eax,%edi
sar    %edi
call   1030 <floor@plt>
mov    %eax,%ebp
imul   0x138(%rsp),%ebx
mov    %ebx,%edi
shr    $0x1f,%edi
add    %ebx,%edi
sar    %edi
call   1030 <floor@plt>
cmpl   $0x0,0x158(%rsp)
jle    1549 <interp2_table1_real_per+0x439>
mov    %r14d,%edi
mov    0x168(%rsp),%rbx
mov    0x160(%rsp),%r14
mov    0x150(%rsp),%rsi
movslq %ebp,%rcx
lea    (%r12,%rcx,8),%rcx
cltq
mov    0x30(%rsp),%rbp
lea    0x0(%rbp,%rax,8),%rax
mov    %rax,0xa8(%rsp)
cvtsi2sdl 0x130(%rsp),%xmm1
movsd  0xe30(%rip),%xmm0
cvtsi2sdl 0x138(%rsp),%xmm2
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x70(%rsp)
mulsd  %xmm0,%xmm2
movsd  %xmm2,0x68(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x148(%rsp),%xmm0
movsd  %xmm0,0xa0(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x10(%rsp),%xmm0
movsd  %xmm0,0x98(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %edi,%xmm0
xorps  %xmm1,%xmm1
cvtsi2sd %r15d,%xmm1
xor    %eax,%eax
mov    %r15d,0x20(%rsp)
mov    %rcx,0x88(%rsp)
movsd  %xmm0,0xb8(%rsp)
movsd  %xmm1,0xb0(%rsp)
jmp    128f <interp2_table1_real_per+0x17f>
cs nopw 0x0(%rax,%rax,1)
addpd  %xmm1,%xmm2
mov    0x80(%rsp),%rbx
mov    0x78(%rsp),%r14
mov    0x40(%rsp),%rsi
mov    0xc(%rsp),%eax
add    $0x8,%rsi
movhpd %xmm2,(%r14)
add    $0x8,%r14
movlpd %xmm2,(%rbx)
add    $0x8,%rbx
add    $0x1,%eax
cmp    0x158(%rsp),%eax
je     1549 <interp2_table1_real_per+0x439>
mov    %eax,0xc(%rsp)
mov    0x158(%rsp),%eax
movsd  (%rsi,%rax,8),%xmm0
movsd  %xmm0,0x48(%rsp)
mov    %rsi,0x40(%rsp)
movsd  (%rsi),%xmm0
movsd  %xmm0,0xc0(%rsp)
subsd  0x70(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <floor@plt>
mov    %eax,%r12d
movsd  0x48(%rsp),%xmm0
subsd  0x68(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <floor@plt>
cmpl   $0x0,0x138(%rsp)
jle    1540 <interp2_table1_real_per+0x430>
mov    %eax,%ebp
mov    %r14,0x78(%rsp)
mov    %rbx,0x80(%rsp)
mov    %eax,%r14d
add    $0x1,%r14d
add    $0x1,%r12d
xorpd  %xmm0,%xmm0
xor    %ebx,%ebx
mov    0x130(%rsp),%r15d
mov    %r12d,0x24(%rsp)
jmp    135c <interp2_table1_real_per+0x24c>
nopl   0x0(%rax,%rax,1)
movapd 0xd0(%rsp),%xmm2
addsd  0x18(%rsp),%xmm2
unpcklpd %xmm2,%xmm2
mulpd  %xmm0,%xmm2
movapd %xmm2,%xmm0
movapd 0xe0(%rsp),%xmm1
addpd  %xmm1,%xmm0
add    $0x1,%ebx
add    $0x1,%r14d
cmp    0x138(%rsp),%ebx
je     1250 <interp2_table1_real_per+0x140>
movapd %xmm0,0xe0(%rsp)
add    $0x1,%ebp
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x48(%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  0xa0(%rsp),%xmm1
movsd  %xmm1,0x18(%rsp)
cvttsd2si %xmm1,%edi
call   1030 <floor@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x18(%rsp),%xmm1
subsd  %xmm0,%xmm1
cltq
movsd  0xc56(%rip),%xmm0
subsd  %xmm1,%xmm0
mov    0xa8(%rsp),%rcx
mulsd  0x8(%rcx,%rax,8),%xmm1
movsd  %xmm1,0x18(%rsp)
mulsd  (%rcx,%rax,8),%xmm0
movapd %xmm0,0xd0(%rsp)
movsd  0x30(%rsp),%xmm0
divsd  0x98(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <floor@plt>
mov    %eax,0x8(%rsp)
xorpd  %xmm0,%xmm0
test   %r15d,%r15d
jle    1320 <interp2_table1_real_per+0x210>
mov    %ebx,0x28(%rsp)
mov    %ebp,0x2c(%rsp)
mov    0x8(%rsp),%eax
imul   0x10(%rsp),%eax
mov    %eax,0x8(%rsp)
xorpd  %xmm1,%xmm1
mov    %r12d,%ebx
mov    0x20(%rsp),%ebp
mov    0x90(%rsp),%r12
mov    %r14d,0x14(%rsp)
mov    0x88(%rsp),%r14
cs nopw 0x0(%rax,%rax,1)
movapd %xmm1,0x30(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
movsd  %xmm0,0xc8(%rsp)
movsd  0xc0(%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  0xb8(%rsp),%xmm1
movsd  %xmm1,0x50(%rsp)
cvttsd2si %xmm1,%edi
call   1030 <floor@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x50(%rsp),%xmm1
subsd  %xmm0,%xmm1
cltq
movsd  0xb72(%rip),%xmm0
subsd  %xmm1,%xmm0
mulsd  0x8(%r14,%rax,8),%xmm1
mulsd  (%r14,%rax,8),%xmm0
addsd  %xmm1,%xmm0
movapd %xmm0,0x50(%rsp)
movsd  0xc8(%rsp),%xmm0
divsd  0xb0(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <floor@plt>
movapd 0x30(%rsp),%xmm2
add    0x8(%rsp),%eax
mov    0x14(%rsp),%ecx
sub    %eax,%ecx
imul   %ebp,%ecx
add    %ebx,%ecx
movslq %ecx,%rax
movapd 0x50(%rsp),%xmm1
unpcklpd %xmm1,%xmm1
movsd  0x0(%r13,%rax,8),%xmm0
movhpd (%r12,%rax,8),%xmm0
mulpd  %xmm1,%xmm0
movapd %xmm0,%xmm1
addpd  %xmm2,%xmm1
add    $0x1,%ebx
add    $0xffffffff,%r15d
jne    1440 <interp2_table1_real_per+0x330>
addpd  %xmm2,%xmm0
mov    0x130(%rsp),%r15d
mov    0x24(%rsp),%r12d
mov    0x2c(%rsp),%ebp
mov    0x14(%rsp),%r14d
mov    0x28(%rsp),%ebx
jmp    1320 <interp2_table1_real_per+0x210>
nopw   0x0(%rax,%rax,1)
xorpd  %xmm2,%xmm2
jmp    1261 <interp2_table1_real_per+0x151>
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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