#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_table0_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 + 0.5);
      double coef2r = r_h2[n2];
      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 + 0.5);
        register double coef1r = r_h1[n1];
        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_table0_real_per>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%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    14c8 <interp2_table0_real_per+0x3b8>
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    148a <interp2_table0_real_per+0x37a>
movsd  -0x48(%rbp),%xmm0
cvtsi2sdl -0x68(%rbp),%xmm1
subsd  %xmm1,%xmm0
cvtsi2sdl 0x28(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xd8a(%rip),%xmm0
addsd  -0x70(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <floor@plt>
mov    %eax,-0x74(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x74(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
cvtsi2sdl -0x68(%rbp),%xmm0
cvtsi2sdl -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <floor@plt>
mov    %eax,-0x84(%rbp)
mov    -0x68(%rbp),%eax
mov    -0x18(%rbp),%ecx
imul   -0x84(%rbp),%ecx
sub    %ecx,%eax
mov    %eax,-0x88(%rbp)
mov    -0x88(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    %eax,-0x8c(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x64(%rbp),%eax
mov    %eax,-0xa4(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    1435 <interp2_table0_real_per+0x325>
movsd  -0x50(%rbp),%xmm0
cvtsi2sdl -0xa4(%rbp),%xmm1
ff
subsd  %xmm1,%xmm0
cvtsi2sdl 0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  0xcc9(%rip),%xmm0
addsd  -0xb0(%rbp),%xmm0
ff
cvttsd2si %xmm0,%edi
call   1030 <floor@plt>
mov    %eax,-0xb4(%rbp)
mov    -0x20(%rbp),%rax
movslq -0xb4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
cvtsi2sdl -0xa4(%rbp),%xmm0
ff
cvtsi2sdl -0x14(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <floor@plt>
mov    %eax,-0xc4(%rbp)
mov    -0xa4(%rbp),%eax
mov    -0x14(%rbp),%ecx
imul   -0xc4(%rbp),%ecx
sub    %ecx,%eax
mov    %eax,-0xc8(%rbp)
mov    -0x8c(%rbp),%eax
add    -0xc8(%rbp),%eax
mov    %eax,-0xcc(%rbp)
movsd  -0xc0(%rbp),%xmm0
ff
mov    -0x8(%rbp),%rax
movslq -0xcc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movslq -0xcc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    1309 <interp2_table0_real_per+0x1f9>
movsd  -0x80(%rbp),%xmm0
movsd  -0x98(%rbp),%xmm2
ff
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x80(%rbp),%xmm0
movsd  -0xa0(%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_table0_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_table0_real_per+0x9f>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interp2_table0_real_per>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
mov    %r9,0x20(%rsp)
mov    %r8,%rbp
mov    %ecx,0x8(%rsp)
mov    %edx,%r15d
mov    %rsi,%r12
mov    %rdi,0x78(%rsp)
mov    0x128(%rsp),%ebx
mov    0x120(%rsp),%r14d
mov    %r14d,%eax
imul   0x110(%rsp),%eax
mov    %eax,%edi
shr    $0x1f,%edi
add    %eax,%edi
sar    %edi
call   1030 <floor@plt>
mov    %eax,%r13d
imul   0x118(%rsp),%ebx
mov    %ebx,%edi
shr    $0x1f,%edi
add    %ebx,%edi
sar    %edi
call   1030 <floor@plt>
cmpl   $0x0,0x138(%rsp)
jle    14e9 <interp2_table0_real_per+0x3d9>
mov    %r14d,%edi
mov    0x148(%rsp),%rbx
mov    0x140(%rsp),%r14
mov    0x130(%rsp),%rsi
movslq %r13d,%rcx
lea    0x0(%rbp,%rcx,8),%rcx
cltq
mov    0x20(%rsp),%rbp
lea    0x0(%rbp,%rax,8),%rax
mov    %rax,0x90(%rsp)
cvtsi2sdl 0x110(%rsp),%xmm0
movsd  0xe31(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x58(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x118(%rsp),%xmm0
cvtsi2sdl 0x128(%rsp),%xmm2
movsd  %xmm2,0x88(%rsp)
xorps  %xmm2,%xmm2
cvtsi2sdl 0x8(%rsp),%xmm2
movsd  %xmm2,0x80(%rsp)
xorps  %xmm2,%xmm2
cvtsi2sd %edi,%xmm2
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x50(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %r15d,%xmm0
xor    %eax,%eax
mov    %r15d,0x10(%rsp)
mov    %rcx,0x70(%rsp)
movsd  %xmm2,0xa0(%rsp)
movsd  %xmm0,0x98(%rsp)
jmp    128c <interp2_table0_real_per+0x17c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
addpd  %xmm2,%xmm3
mov    0x68(%rsp),%rbx
mov    0x60(%rsp),%r14
mov    0x30(%rsp),%rsi
mov    0x4(%rsp),%eax
add    $0x8,%rsi
movhpd %xmm3,(%r14)
add    $0x8,%r14
movlpd %xmm3,(%rbx)
add    $0x8,%rbx
add    $0x1,%eax
cmp    0x138(%rsp),%eax
je     14e9 <interp2_table0_real_per+0x3d9>
mov    %eax,0x4(%rsp)
mov    0x138(%rsp),%eax
movsd  (%rsi,%rax,8),%xmm0
movsd  %xmm0,0x38(%rsp)
mov    %rsi,0x30(%rsp)
movsd  (%rsi),%xmm0
movsd  %xmm0,0xa8(%rsp)
subsd  0x58(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <floor@plt>
mov    %eax,%r13d
movsd  0x38(%rsp),%xmm0
subsd  0x50(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <floor@plt>
cmpl   $0x0,0x118(%rsp)
jle    14e0 <interp2_table0_real_per+0x3d0>
mov    %eax,%ebp
mov    %r14,0x60(%rsp)
mov    %rbx,0x68(%rsp)
mov    %eax,%r14d
add    $0x1,%r14d
add    $0x1,%r13d
xorpd  %xmm0,%xmm0
xor    %ebx,%ebx
mov    0x110(%rsp),%r15d
movsd  0xcea(%rip),%xmm1
mov    %r13d,0x14(%rsp)
jmp    135e <interp2_table0_real_per+0x24e>
nopl   (%rax)
movapd 0xb0(%rsp),%xmm3
unpcklpd %xmm3,%xmm3
mulpd  %xmm0,%xmm3
movapd %xmm3,%xmm0
movapd 0xc0(%rsp),%xmm2
addpd  %xmm2,%xmm0
add    $0x1,%ebx
add    $0x1,%r14d
cmp    0x118(%rsp),%ebx
movsd  0xca8(%rip),%xmm1
je     1250 <interp2_table0_real_per+0x140>
movapd %xmm0,0xc0(%rsp)
add    $0x1,%ebp
xorps  %xmm2,%xmm2
cvtsi2sd %ebp,%xmm2
movsd  %xmm2,0x20(%rsp)
movsd  0x38(%rsp),%xmm0
subsd  %xmm2,%xmm0
mulsd  0x88(%rsp),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <floor@plt>
cltq
mov    0x90(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movaps %xmm0,0xb0(%rsp)
movsd  0x20(%rsp),%xmm0
divsd  0x80(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <floor@plt>
mov    %eax,(%rsp)
xorpd  %xmm0,%xmm0
test   %r15d,%r15d
jle    1320 <interp2_table0_real_per+0x210>
mov    %ebx,0x18(%rsp)
mov    %ebp,0x1c(%rsp)
mov    (%rsp),%eax
imul   0x8(%rsp),%eax
mov    %eax,(%rsp)
xorpd  %xmm1,%xmm1
mov    %r13d,%ebx
mov    0x10(%rsp),%ebp
mov    0x78(%rsp),%r13
mov    %r14d,0xc(%rsp)
mov    0x70(%rsp),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movapd %xmm1,0x20(%rsp)
xorps  %xmm1,%xmm1
cvtsi2sd %ebx,%xmm1
movsd  %xmm1,0x40(%rsp)
movsd  0xa8(%rsp),%xmm0
subsd  %xmm1,%xmm0
mulsd  0xa0(%rsp),%xmm0
addsd  0xbbf(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <floor@plt>
cltq
movsd  0x40(%rsp),%xmm0
divsd  0x98(%rsp),%xmm0
cvttsd2si %xmm0,%edi
movsd  (%r14,%rax,8),%xmm0
movaps %xmm0,0x40(%rsp)
call   1030 <floor@plt>
movapd 0x20(%rsp),%xmm2
add    (%rsp),%eax
mov    0xc(%rsp),%ecx
sub    %eax,%ecx
imul   %ebp,%ecx
add    %ebx,%ecx
movslq %ecx,%rax
movapd 0x40(%rsp),%xmm1
unpcklpd %xmm1,%xmm1
movsd  (%r12,%rax,8),%xmm0
movhpd 0x0(%r13,%rax,8),%xmm0
mulpd  %xmm1,%xmm0
movapd %xmm0,%xmm1
addpd  %xmm2,%xmm1
add    $0x1,%ebx
add    $0xffffffff,%r15d
jne    1410 <interp2_table0_real_per+0x300>
addpd  %xmm2,%xmm0
mov    0x110(%rsp),%r15d
mov    0x14(%rsp),%r13d
mov    0x1c(%rsp),%ebp
mov    0xc(%rsp),%r14d
mov    0x18(%rsp),%ebx
jmp    1320 <interp2_table0_real_per+0x210>
nopl   0x0(%rax)
xorpd  %xmm3,%xmm3
jmp    125e <interp2_table0_real_per+0x14e>
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @interp2_table0_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 %123
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, %115
%39 = phi double* [ %10, %26 ], [ %45, %115 ]
%40 = phi double* [ %12, %26 ], [ %117, %115 ]
%41 = phi double* [ %13, %26 ], [ %119, %115 ]
%42 = phi i32 [ 0, %26 ], [ %121, %115 ]
%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 %115
53: ; preds = %38, %106
%54 = phi i32 [ %57, %106 ], [ %52, %38 ]
%55 = phi i32 [ %111, %106 ], [ 0, %38 ]
%56 = phi <2 x double> [ %110, %106 ], [ 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 = fadd double %60, 5.000000e-01
%62 = fptosi double %61 to i32
%63 = tail call i32 @floor(i32 %62)
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, double* %24, i64 %64
%66 = load double, double* %65
%67 = fdiv double %58, %34
%68 = fptosi double %67 to i32
%69 = tail call i32 @floor(i32 %68)
%70 = mul nsw i32 %69, %3
br i1 %35, label %71, label %106
71: ; preds = %53, %71
%72 = phi i32 [ %75, %71 ], [ %49, %53 ]
%73 = phi i32 [ %102, %71 ], [ 0, %53 ]
%74 = phi <2 x double> [ %101, %71 ], [ zeroinitializer, %53 ]
%75 = add nsw i32 %72, 1
%76 = sitofp i32 %75 to double
%77 = fsub double %46, %76
%78 = fmul double %77, %36
%79 = fadd double %78, 5.000000e-01
%80 = fptosi double %79 to i32
%81 = tail call i32 @floor(i32 %80)
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, double* %19, i64 %82
%84 = load double, double* %83
%85 = fdiv double %76, %37
%86 = fptosi double %85 to i32
%87 = tail call i32 @floor(i32 %86)
%88 = add i32 %70, %87
%89 = sub i32 %57, %88
%90 = mul i32 %89, %2
%91 = add i32 %90, %75
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, double* %0, i64 %92
%94 = load double, double* %93
%95 = getelementptr inbounds double, double* %1, i64 %92
%96 = load double, double* %95
%97 = insertelement <2 x double> poison, double %84, i64 0
%98 = shufflevector <2 x double> %97, <2 x double> poison, <2 x i32> zeroinitializer
%99 = insertelement <2 x double> poison, double %96, i64 0
%100 = insertelement <2 x double> %99, double %94, i64 1
%101 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %98, <2 x double> %100, <2 x double> %74)
%102 = add nuw nsw i32 %73, 1
%103 = icmp eq i32 %102, %6
br i1 %103, label %104, label %71
104: ; preds = %71
%105 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %98, <2 x double> %100, <2 x double> %74)
br label %106
106: ; preds = %104, %53
%107 = phi <2 x double> [ zeroinitializer, %53 ], [ %105, %104 ]
%108 = insertelement <2 x double> poison, double %66, i64 0
%109 = shufflevector <2 x double> %108, <2 x double> poison, <2 x i32> zeroinitializer
%110 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %109, <2 x double> %107, <2 x double> %56)
%111 = add nuw nsw i32 %55, 1
%112 = icmp eq i32 %111, %7
br i1 %112, label %113, label %53
113: ; preds = %106
%114 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %109, <2 x double> %107, <2 x double> %56)
br label %115
115: ; preds = %113, %38
%116 = phi <2 x double> [ zeroinitializer, %38 ], [ %114, %113 ]
%117 = getelementptr inbounds double, double* %40, i64 1
%118 = extractelement <2 x double> %116, i64 1
store double %118, double* %40
%119 = getelementptr inbounds double, double* %41, i64 1
%120 = extractelement <2 x double> %116, i64 0
store double %120, double* %41
%121 = add nuw nsw i32 %42, 1
%122 = icmp eq i32 %121, %11
br i1 %122, label %123, label %38
123: ; preds = %115, %14
ret void
}