#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_table0_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 + 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;
      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 + 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;
        r_ck[kk] += coef1r * v2r;
        i_ck[kk] += coef1r * v2i;
      }
    }
  }
}


x86 assembly (clang, -O0):
<interp2_table0_real_per_adj>:
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   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
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%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    14d0 <interp2_table0_real_per_adj+0x3b0>
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  0xd95(%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  0xd6c(%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    14bd <interp2_table0_real_per_adj+0x39d>
movsd  -0x48(%rbp),%xmm0
cvtsi2sdl -0x68(%rbp),%xmm1
subsd  %xmm1,%xmm0
cvtsi2sdl 0x28(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xd26(%rip),%xmm0
addsd  -0x70(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <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   1040 <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)
movsd  -0x80(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
mulsd  -0x60(%rbp),%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    14a1 <interp2_table0_real_per_adj+0x381>
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  0xc57(%rip),%xmm0
addsd  -0xb0(%rbp),%xmm0
ff
cvttsd2si %xmm0,%edi
call   1040 <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   1040 <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
movsd  -0x98(%rbp),%xmm2
ff
mov    -0x8(%rbp),%rax
movslq -0xcc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xc0(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
mov    -0x10(%rbp),%rax
movslq -0xcc(%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    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    137b <interp2_table0_real_per_adj+0x25b>
jmp    14a6 <interp2_table0_real_per_adj+0x386>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    12b2 <interp2_table0_real_per_adj+0x192>
jmp    14c2 <interp2_table0_real_per_adj+0x3a2>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11f3 <interp2_table0_real_per_adj+0xd3>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interp2_table0_real_per_adj>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
mov    %r9,0x8(%rsp)
mov    %r8,0x20(%rsp)
mov    %ecx,%r15d
mov    %edx,%r12d
mov    %rsi,%r13
mov    %rdi,%rbp
mov    0x118(%rsp),%ebx
mov    0x110(%rsp),%eax
imul   0x100(%rsp),%eax
mov    %eax,%edi
shr    $0x1f,%edi
add    %eax,%edi
sar    %edi
call   1040 <floor@plt>
mov    %eax,(%rsp)
mov    %ebx,%eax
imul   0x108(%rsp),%eax
mov    %eax,%edi
shr    $0x1f,%edi
add    %eax,%edi
sar    %edi
call   1040 <floor@plt>
mov    %eax,%r14d
mov    %r12d,0x18(%rsp)
mov    %r15d,0x10(%rsp)
imul   %r15d,%r12d
shl    $0x3,%r12d
xor    %ebx,%ebx
mov    %rbp,0xa0(%rsp)
mov    %rbp,%rdi
xor    %esi,%esi
mov    %r12d,%edx
call   1030 <memset@plt>
mov    %r13,0xa8(%rsp)
mov    %r13,%rdi
xor    %esi,%esi
mov    %r12d,%edx
call   1030 <memset@plt>
cmpl   $0x0,0x128(%rsp)
jle    152b <interp2_table0_real_per_adj+0x40b>
mov    0x138(%rsp),%rcx
mov    0x130(%rsp),%rdx
mov    0x120(%rsp),%rsi
movslq (%rsp),%rax
mov    0x20(%rsp),%rdi
lea    (%rdi,%rax,8),%rax
mov    %rax,0xb8(%rsp)
movslq %r14d,%rax
mov    0x8(%rsp),%rdi
lea    (%rdi,%rax,8),%rax
mov    %rax,0x98(%rsp)
cvtsi2sdl 0x100(%rsp),%xmm0
movsd  0xdd9(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x58(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x108(%rsp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x50(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x118(%rsp),%xmm0
movsd  %xmm0,0x90(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x10(%rsp),%xmm0
movsd  %xmm0,0x88(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x110(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x18(%rsp),%xmm0
movsd  %xmm0,0xb0(%rsp)
mov    0xa8(%rsp),%rbp
mov    0xa0(%rsp),%r13
jmp    12df <interp2_table0_real_per_adj+0x1bf>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x60(%rsp),%rsi
add    $0x8,%rsi
mov    0x68(%rsp),%rdx
add    $0x8,%rdx
mov    0x70(%rsp),%rcx
add    $0x8,%rcx
mov    0x2c(%rsp),%ebx
add    $0x1,%ebx
cmp    0x128(%rsp),%ebx
je     152b <interp2_table0_real_per_adj+0x40b>
mov    %ebx,0x2c(%rsp)
mov    0x128(%rsp),%eax
movsd  (%rsi,%rax,8),%xmm0
movsd  %xmm0,0x38(%rsp)
mov    %rsi,0x60(%rsp)
movsd  (%rsi),%xmm0
mov    %rdx,0x68(%rsp)
movsd  (%rdx),%xmm1
movsd  %xmm1,0x80(%rsp)
mov    %rcx,0x70(%rsp)
movsd  (%rcx),%xmm1
movsd  %xmm1,0x78(%rsp)
movsd  %xmm0,0x48(%rsp)
subsd  0x58(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
mov    %eax,0x14(%rsp)
movsd  0x38(%rsp),%xmm0
subsd  0x50(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
movsd  0xcab(%rip),%xmm1
cmpl   $0x0,0x108(%rsp)
jle    12b0 <interp2_table0_real_per_adj+0x190>
mov    %eax,%ecx
add    $0x1,%ecx
addl   $0x1,0x14(%rsp)
xor    %edx,%edx
jmp    13a7 <interp2_table0_real_per_adj+0x287>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x30(%rsp),%edx
add    $0x1,%edx
mov    0x1c(%rsp),%ecx
add    $0x1,%ecx
cmp    0x108(%rsp),%edx
movsd  0xc63(%rip),%xmm1
mov    0x34(%rsp),%eax
je     12b0 <interp2_table0_real_per_adj+0x190>
mov    %ecx,0x1c(%rsp)
mov    %edx,0x30(%rsp)
add    $0x1,%eax
mov    %eax,0x34(%rsp)
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
movsd  %xmm2,0x8(%rsp)
movsd  0x38(%rsp),%xmm0
subsd  %xmm2,%xmm0
mulsd  0x90(%rsp),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
cltq
mov    0x98(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
divsd  0x88(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
cmpl   $0x0,0x100(%rsp)
mov    0x18(%rsp),%ebx
movsd  0x40(%rsp),%xmm1
movsd  0x48(%rsp),%xmm2
jle    1380 <interp2_table0_real_per_adj+0x260>
mov    %eax,%r14d
imul   0x10(%rsp),%r14d
movsd  0x80(%rsp),%xmm3
movsd  (%rsp),%xmm0
mulsd  %xmm0,%xmm3
movsd  %xmm3,0xc0(%rsp)
mulsd  0x78(%rsp),%xmm0
movsd  %xmm0,(%rsp)
mov    0x100(%rsp),%r15d
mov    0x14(%rsp),%r12d
nopl   0x0(%rax)
xorps  %xmm3,%xmm3
cvtsi2sd %r12d,%xmm3
movsd  %xmm3,0x20(%rsp)
movapd %xmm2,%xmm0
subsd  %xmm3,%xmm0
mulsd  %xmm1,%xmm0
addsd  0xb6e(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
cltq
mov    0xb8(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
divsd  0xb0(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <floor@plt>
movsd  0x48(%rsp),%xmm2
movsd  0x40(%rsp),%xmm1
add    %r14d,%eax
mov    0x1c(%rsp),%ecx
sub    %eax,%ecx
imul   %ebx,%ecx
add    %r12d,%ecx
movslq %ecx,%rax
movsd  0x8(%rsp),%xmm3
movapd %xmm3,%xmm0
mulsd  0xc0(%rsp),%xmm0
addsd  0x0(%r13,%rax,8),%xmm0
movsd  %xmm0,0x0(%r13,%rax,8)
mulsd  (%rsp),%xmm3
addsd  0x0(%rbp,%rax,8),%xmm3
movsd  %xmm3,0x0(%rbp,%rax,8)
add    $0x1,%r12d
add    $0xffffffff,%r15d
jne    1470 <interp2_table0_real_per_adj+0x350>
jmp    1380 <interp2_table0_real_per_adj+0x260>
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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