#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 binary_search(float *, int, float);
int floor(float);
float fmod(float, double);
float trilinear_interp(float *, int, float *, int, float *, int, float);
float *get_all_radar_pts(float *output, int len, float *coords_rad_pts,
                         int crp_x, int crp_y, float *radar_heights, int rh_x,
                         float *model_data, int md_x, int md_y, int md_z,
                         float *model_heights, int mh_x, int mh_y, int mh_z,
                         float *llc_cosmo, int llc_cosmo_x, float *res_cosmo,
                         int res_cosmo_x) {
  float radar_pts[crp_x];
  int i = 0;
  int llc_i = 0;
  int llc_j = 0;
  int current_llc_i = 0;
  int current_llc_j = 0;
  int flag = 1;
  float interp_topo = 0.0;
  float diff_i = 0;
  float diff_j = 0;
  float v[4];
  float pos_i = 0.0;
  float pos_j = 0.0;
  float pos_radar_bin[2];
  float coords_neighbours[8];
  float val_neighbours[8];
  int j = 0;
  float slice_vert[mh_x];
  int k = 0;
  int idx = 0;
  int closest_1, closest_2;
  for (i = 0; i < crp_x; i++) {
    pos_radar_bin[0] =
        (coords_rad_pts[i * crp_y + 0] - llc_cosmo[0]) / res_cosmo[0];
    pos_radar_bin[1] =
        (coords_rad_pts[i * crp_y + 1] - llc_cosmo[1]) / res_cosmo[1];
    llc_i = floor(pos_radar_bin[1]);
    llc_j = floor(pos_radar_bin[0]);
    current_llc_i = llc_i;
    current_llc_j = llc_j;
    int neighb[4][2] = {{llc_i, llc_j},
                        {llc_i, llc_j + 1},
                        {llc_i + 1, llc_j},
                        {llc_i + 1, llc_j + 1}};
    flag = 1;
    pos_i = fmod(pos_radar_bin[1], 1.0);
    pos_j = fmod(pos_radar_bin[0], 1.0);
    diff_i = 1.0 - pos_i;
    diff_j = 1.0 - pos_j;
    for (k = 0; k < 4; k++) {
      v[k] = model_heights[(mh_x - 1) * mh_y * mh_z + neighb[k][0] * mh_z +
                           neighb[k][1]];
    }
    interp_topo = diff_i * diff_j * v[0] + pos_i * v[2] * diff_j +
                  diff_i * v[1] * pos_j + pos_i * pos_j * v[3];
    if (interp_topo < radar_heights[i]) {
      for (j = 0; j < 4; j++) {
        int n[2] = {neighb[j][0], neighb[j][1]};
        slice_vert[mh_x];
        for (k = 0; k < mh_x; k++) {
          slice_vert[k] = model_heights[k * mh_y * mh_z + n[0] * mh_z + n[1]];
        }
        idx = binary_search(slice_vert, mh_x, radar_heights[i]);
        if (idx == -1) {
          flag = 2;
          break;
        }
        if (idx == -2) {
          closest_1 = mh_x - 3;
          closest_2 = mh_x - 2;
        } else {
          if (idx == (mh_x - 2)) {
            idx--;
          }
          closest_1 = idx;
          closest_2 = idx + 1;
        }
        coords_neighbours[2 * j] = slice_vert[closest_1];
        coords_neighbours[2 * j + 1] = slice_vert[closest_2];
        val_neighbours[2 * j] =
            model_data[closest_1 * md_z * md_y + n[0] * md_z + n[1]];
        val_neighbours[2 * j + 1] =
            model_data[closest_2 * md_z * md_y + n[0] * md_z + n[1]];
      }
      if (flag == 2) {
        for (k = i; k < crp_x; k++) {
          output[k] = -9999;
        }
      } else {
        output[i] = trilinear_interp(coords_neighbours, 8, val_neighbours, 8,
                                     pos_radar_bin, 2, radar_heights[i]);
      }
    } else {
      for (k = i; k < crp_x; k++) {
        output[k] = 0.0 / 0.0;
      }
    }
  }
  return output;
}


x86 assembly (clang, -O0):
<get_all_radar_pts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
mov    0x70(%rbp),%eax
mov    0x68(%rbp),%rax
mov    0x60(%rbp),%eax
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%eax
mov    0x48(%rbp),%eax
mov    0x40(%rbp),%eax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x1c(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
movl   $0x1,-0x50(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
movl   $0x0,-0x74(%rbp)
movl   $0x0,-0x78(%rbp)
movl   $0x0,-0xc4(%rbp)
mov    0x40(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x110(%rbp)
mov    %rcx,%rsp
mov    %rax,-0xd0(%rbp)
movl   $0x0,-0xd4(%rbp)
movl   $0x0,-0xd8(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    17a0 <get_all_radar_pts+0x660>
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x20(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    0x58(%rbp),%rax
subss  (%rax),%xmm0
mov    0x68(%rbp),%rax
divss  (%rax),%xmm0
movss  %xmm0,-0x80(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    0x58(%rbp),%rax
subss  0x4(%rax),%xmm0
mov    0x68(%rbp),%rax
divss  0x4(%rax),%xmm0
movss  %xmm0,-0x7c(%rbp)
movss  -0x7c(%rbp),%xmm0
call   1060 <floor@plt>
mov    %eax,-0x40(%rbp)
movss  -0x80(%rbp),%xmm0
call   1060 <floor@plt>
mov    %eax,-0x44(%rbp)
mov    -0x40(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x40(%rbp),%eax
mov    %eax,-0x100(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0xfc(%rbp)
mov    -0x40(%rbp),%eax
mov    %eax,-0xf8(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf4(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf0(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0xec(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe8(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
movl   $0x1,-0x50(%rbp)
movss  -0x7c(%rbp),%xmm0
movsd  0xcc7(%rip),%xmm1
call   1030 <fmod@plt>
movss  %xmm0,-0x74(%rbp)
movss  -0x80(%rbp),%xmm0
movsd  0xcb0(%rip),%xmm1
call   1030 <fmod@plt>
movss  %xmm0,-0x78(%rbp)
movss  -0x74(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xc95(%rip),%xmm0
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x58(%rbp)
movss  -0x78(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xc77(%rip),%xmm0
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
movl   $0x0,-0xd4(%rbp)
cmpl   $0x4,-0xd4(%rbp)
jge    140a <get_all_radar_pts+0x2ca>
mov    0x38(%rbp),%rax
mov    0x40(%rbp),%ecx
sub    $0x1,%ecx
imul   0x48(%rbp),%ecx
imul   0x50(%rbp),%ecx
movslq -0xd4(%rbp),%rdx
mov    -0x100(%rbp,%rdx,8),%edx
imul   0x50(%rbp),%edx
add    %edx,%ecx
movslq -0xd4(%rbp),%rdx
add    -0xfc(%rbp,%rdx,8),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
movslq -0xd4(%rbp),%rax
movss  %xmm0,-0x70(%rbp,%rax,4)
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    13a0 <get_all_radar_pts+0x260>
movss  -0x58(%rbp),%xmm0
mulss  -0x5c(%rbp),%xmm0
movss  -0x70(%rbp),%xmm2
movss  -0x74(%rbp),%xmm1
mulss  -0x68(%rbp),%xmm1
mulss  -0x5c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x58(%rbp),%xmm1
mulss  -0x6c(%rbp),%xmm1
movss  -0x78(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x74(%rbp),%xmm0
mulss  -0x78(%rbp),%xmm0
movss  -0x64(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0x54(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
ucomiss %xmm1,%xmm0
jbe    1744 <get_all_radar_pts+0x604>
movl   $0x0,-0xc4(%rbp)
cmpl   $0x4,-0xc4(%rbp)
jge    16ae <get_all_radar_pts+0x56e>
movslq -0xc4(%rbp),%rax
mov    -0x100(%rbp,%rax,8),%eax
mov    %eax,-0x108(%rbp)
movslq -0xc4(%rbp),%rax
mov    -0xfc(%rbp,%rax,8),%eax
mov    %eax,-0x104(%rbp)
movl   $0x0,-0xd4(%rbp)
mov    -0xd4(%rbp),%eax
cmp    0x40(%rbp),%eax
jge    1529 <get_all_radar_pts+0x3e9>
mov    -0x110(%rbp),%rax
mov    0x38(%rbp),%rcx
mov    -0xd4(%rbp),%edx
imul   0x48(%rbp),%edx
imul   0x50(%rbp),%edx
mov    -0x108(%rbp),%esi
imul   0x50(%rbp),%esi
add    %esi,%edx
add    -0x104(%rbp),%edx
movslq %edx,%rdx
movss  (%rcx,%rdx,4),%xmm0
movslq -0xd4(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    14c7 <get_all_radar_pts+0x387>
mov    -0x110(%rbp),%rdi
mov    0x40(%rbp),%esi
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
call   1050 <binary_search@plt>
mov    %eax,-0xd8(%rbp)
cmpl   $0xffffffff,-0xd8(%rbp)
jne    1564 <get_all_radar_pts+0x424>
movl   $0x2,-0x50(%rbp)
jmp    16ae <get_all_radar_pts+0x56e>
cmpl   $0xfffffffe,-0xd8(%rbp)
jne    158e <get_all_radar_pts+0x44e>
mov    0x40(%rbp),%eax
sub    $0x3,%eax
mov    %eax,-0xdc(%rbp)
mov    0x40(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0xe0(%rbp)
jmp    15cc <get_all_radar_pts+0x48c>
mov    -0xd8(%rbp),%eax
mov    0x40(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jne    15b1 <get_all_radar_pts+0x471>
mov    -0xd8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xd8(%rbp)
mov    -0xd8(%rbp),%eax
mov    %eax,-0xdc(%rbp)
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe0(%rbp)
mov    -0x110(%rbp),%rax
movslq -0xdc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0xc4(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movss  %xmm0,-0xa0(%rbp,%rcx,4)
ff ff
movslq -0xe0(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0xc4(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
cltq
movss  %xmm0,-0xa0(%rbp,%rax,4)
ff ff
mov    0x18(%rbp),%rax
mov    -0xdc(%rbp),%ecx
imul   0x30(%rbp),%ecx
imul   0x28(%rbp),%ecx
mov    -0x108(%rbp),%edx
imul   0x30(%rbp),%edx
add    %edx,%ecx
add    -0x104(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0xc4(%rbp),%eax
shl    $0x1,%eax
cltq
movss  %xmm0,-0xc0(%rbp,%rax,4)
ff ff
mov    0x18(%rbp),%rax
mov    -0xe0(%rbp),%ecx
imul   0x30(%rbp),%ecx
imul   0x28(%rbp),%ecx
mov    -0x108(%rbp),%edx
imul   0x30(%rbp),%edx
add    %edx,%ecx
add    -0x104(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0xc4(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
cltq
movss  %xmm0,-0xc0(%rbp,%rax,4)
ff ff
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1488 <get_all_radar_pts+0x348>
cmpl   $0x2,-0x50(%rbp)
jne    1701 <get_all_radar_pts+0x5c1>
mov    -0x3c(%rbp),%eax
mov    %eax,-0xd4(%rbp)
mov    -0xd4(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    16fc <get_all_radar_pts+0x5bc>
mov    -0x8(%rbp),%rax
movslq -0xd4(%rbp),%rcx
movss  0x929(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    16c1 <get_all_radar_pts+0x581>
jmp    173f <get_all_radar_pts+0x5ff>
lea    -0xa0(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    -0x80(%rbp),%r8
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    $0x8,%ecx
mov    $0x2,%r9d
mov    %ecx,%esi
call   1040 <trilinear_interp@plt>
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
jmp    178d <get_all_radar_pts+0x64d>
mov    -0x3c(%rbp),%eax
mov    %eax,-0xd4(%rbp)
mov    -0xd4(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1788 <get_all_radar_pts+0x648>
mov    -0x8(%rbp),%rax
movslq -0xd4(%rbp),%rcx
movss  0x899(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    174d <get_all_radar_pts+0x60d>
jmp    178d <get_all_radar_pts+0x64d>
jmp    1792 <get_all_radar_pts+0x652>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1247 <get_all_radar_pts+0x107>
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%rcx
mov    %rcx,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_all_radar_pts>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
mov    %r9,-0x80(%rbp)
mov    %rdx,-0xe8(%rbp)
mov    0x40(%rbp),%eax
mov    %rsp,%r14
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r14
mov    %r14,%rsp
test   %ecx,%ecx
jle    1785 <get_all_radar_pts+0x645>
mov    0x50(%rbp),%r12d
mov    0x48(%rbp),%edx
mov    0x40(%rbp),%eax
lea    -0x1(%rax),%esi
imul   %edx,%esi
mov    %rsi,-0xe0(%rbp)
mov    0x28(%rbp),%esi
imul   0x30(%rbp),%esi
mov    %esi,-0x84(%rbp)
movslq %r8d,%rsi
mov    %rsi,-0xd8(%rbp)
mov    %ecx,%esi
mov    %eax,%r8d
and    $0xfffffffe,%r8d
imul   %edx,%r12d
add    %r12d,%r12d
lea    -0x3(%rax),%ecx
mov    %ecx,-0x88(%rbp)
add    $0xfffffffe,%eax
mov    %eax,-0x34(%rbp)
lea    0x70(%rdi),%rbx
lea    -0x8(%rsi),%r11
lea    0x10(%rdi),%r9
xor    %r10d,%r10d
mov    %rdi,-0x30(%rbp)
mov    %rsi,-0x68(%rbp)
mov    %r8,-0xa8(%rbp)
jmp    1259 <get_all_radar_pts+0x119>
nopl   0x0(%rax)
mov    -0x80(%rbp),%rax
mov    -0x60(%rbp),%rbx
movss  (%rax,%rbx,4),%xmm0
lea    -0x130(%rbp),%rdi
mov    $0x8,%esi
lea    -0x110(%rbp),%rdx
mov    $0x8,%ecx
lea    -0x3c(%rbp),%r8
mov    $0x2,%r9d
call   1040 <trilinear_interp@plt>
mov    %rbx,%r10
mov    -0x30(%rbp),%rdi
movss  %xmm0,(%rdi,%rbx,4)
mov    -0x68(%rbp),%rsi
mov    -0x58(%rbp),%rbx
mov    -0x78(%rbp),%r11
mov    -0x70(%rbp),%r9
add    $0x1,%r10
add    $0x4,%rbx
add    $0xffffffffffffffff,%r11
add    $0x4,%r9
cmp    %rsi,%r10
je     1785 <get_all_radar_pts+0x645>
mov    %r10,-0x60(%rbp)
mov    %r9,-0x70(%rbp)
mov    %r11,-0x78(%rbp)
shr    $0x3,%r11
lea    0x1(%r11),%eax
movzbl %al,%eax
and    $0x3,%eax
shl    $0x5,%rax
mov    %rax,-0x50(%rbp)
add    $0x1,%r11
and    $0xfffffffffffffffc,%r11
mov    %r11,-0x90(%rbp)
sub    %r10,%rsi
mov    %rsi,-0xa0(%rbp)
lea    -0x8(%rsi),%rdi
mov    %rdi,-0x98(%rbp)
shr    $0x3,%rdi
mov    %r10,%rax
imul   -0xd8(%rbp),%rax
ff
mov    -0xe8(%rbp),%rcx
movss  (%rcx,%rax,4),%xmm0
mov    0x58(%rbp),%rsi
subss  (%rsi),%xmm0
mov    0x68(%rbp),%rdx
divss  (%rdx),%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  0x4(%rcx,%rax,4),%xmm0
subss  0x4(%rsi),%xmm0
add    $0x1,%rdi
mov    %rdi,-0x48(%rbp)
divss  0x4(%rdx),%xmm0
movss  %xmm0,-0x38(%rbp)
call   1060 <floor@plt>
mov    %eax,%r13d
movss  -0x3c(%rbp),%xmm0
call   1060 <floor@plt>
mov    %eax,%r15d
mov    %r13d,-0xd0(%rbp)
mov    %eax,-0xcc(%rbp)
mov    %r13d,-0xc8(%rbp)
lea    0x1(%r15),%eax
mov    %eax,-0xc4(%rbp)
lea    0x1(%r13),%ecx
mov    %ecx,-0xc0(%rbp)
mov    %r15d,-0xbc(%rbp)
mov    %ecx,-0xb8(%rbp)
mov    %eax,-0xb4(%rbp)
movss  -0x38(%rbp),%xmm0
movsd  0xcb7(%rip),%xmm1
call   1030 <fmod@plt>
movss  %xmm0,-0x58(%rbp)
movss  -0x3c(%rbp),%xmm0
movsd  0xca0(%rip),%xmm1
call   1030 <fmod@plt>
mov    -0x60(%rbp),%r10
movss  0xc97(%rip),%xmm2
movaps %xmm2,%xmm1
movss  -0x58(%rbp),%xmm5
subss  %xmm5,%xmm1
mov    -0xe0(%rbp),%rdx
lea    (%rdx,%r13,1),%eax
mov    0x50(%rbp),%esi
imul   %esi,%eax
lea    (%rax,%r15,1),%ecx
movslq %ecx,%rcx
add    %r15d,%eax
add    $0x1,%eax
cltq
add    %r13d,%edx
add    $0x1,%edx
imul   %esi,%edx
lea    (%rdx,%r15,1),%esi
movslq %esi,%rsi
add    %r15d,%edx
add    $0x1,%edx
movslq %edx,%rdx
subss  %xmm0,%xmm2
movaps %xmm1,%xmm3
mulss  %xmm2,%xmm3
mov    0x38(%rbp),%rdi
movss  (%rdi,%rsi,4),%xmm4
mulss  %xmm5,%xmm4
mulss  %xmm2,%xmm4
mulss  (%rdi,%rcx,4),%xmm3
addss  %xmm4,%xmm3
mulss  (%rdi,%rax,4),%xmm1
mulss  %xmm0,%xmm1
addss  %xmm3,%xmm1
movaps %xmm5,%xmm2
mulss  %xmm0,%xmm2
mulss  (%rdi,%rdx,4),%xmm2
addss  %xmm1,%xmm2
mov    -0x80(%rbp),%rax
movss  (%rax,%r10,4),%xmm0
ucomiss %xmm2,%xmm0
jbe    15a0 <get_all_radar_pts+0x460>
mov    %r13,%r8
mov    %rbx,-0x58(%rbp)
xor    %r13d,%r13d
mov    0x40(%rbp),%esi
mov    -0xa8(%rbp),%rbx
test   %esi,%esi
jle    14b2 <get_all_radar_pts+0x372>
nopw   0x0(%rax,%rax,1)
cmp    $0x1,%esi
jne    1440 <get_all_radar_pts+0x300>
xor    %eax,%eax
jmp    148c <get_all_radar_pts+0x34c>
nopl   0x0(%rax)
mov    0x48(%rbp),%eax
lea    (%rax,%r8,1),%ecx
mov    0x50(%rbp),%eax
imul   %eax,%ecx
add    %r15d,%ecx
mov    %eax,%edx
imul   %r8d,%edx
add    %r15d,%edx
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
movslq %edx,%rdx
movss  (%rdi,%rdx,4),%xmm0
movss  %xmm0,(%r14,%rax,4)
movslq %ecx,%rcx
movss  (%rdi,%rcx,4),%xmm0
movss  %xmm0,0x4(%r14,%rax,4)
add    $0x2,%rax
add    %r12d,%ecx
add    %r12d,%edx
cmp    %rax,%rbx
jne    1460 <get_all_radar_pts+0x320>
test   $0x1,%sil
je     14b2 <get_all_radar_pts+0x372>
mov    %eax,%ecx
mov    0x48(%rbp),%edx
imul   %edx,%ecx
add    %r8d,%ecx
imul   0x50(%rbp),%ecx
add    %r15d,%ecx
movslq %ecx,%rcx
movss  (%rdi,%rcx,4),%xmm0
movss  %xmm0,(%r14,%rax,4)
mov    -0x80(%rbp),%rax
movss  (%rax,%r10,4),%xmm0
mov    %r14,%rdi
mov    %r8,%rbx
call   1050 <binary_search@plt>
mov    %rbx,%rdi
mov    -0x88(%rbp),%ecx
mov    -0x34(%rbp),%edx
cmp    $0xfffffffe,%eax
je     14f4 <get_all_radar_pts+0x3b4>
cmp    $0xffffffff,%eax
je     15e4 <get_all_radar_pts+0x4a4>
xor    %edx,%edx
cmp    -0x34(%rbp),%eax
sete   %dl
mov    %eax,%ecx
sub    %edx,%ecx
neg    %edx
add    %eax,%edx
add    $0x1,%edx
movslq %ecx,%rax
movss  (%r14,%rax,4),%xmm0
movss  %xmm0,-0x130(%rbp,%r13,8)
fe ff ff
movslq %edx,%rcx
movss  (%r14,%rcx,4),%xmm0
movss  %xmm0,-0x12c(%rbp,%r13,8)
fe ff ff
mov    -0x84(%rbp),%esi
imul   %esi,%eax
imul   0x30(%rbp),%edi
add    %edi,%r15d
add    %r15d,%eax
cltq
mov    0x18(%rbp),%rdx
movss  (%rdx,%rax,4),%xmm0
movss  %xmm0,-0x110(%rbp,%r13,8)
fe ff ff
imul   %esi,%ecx
add    %r15d,%ecx
movslq %ecx,%rax
movss  (%rdx,%rax,4),%xmm0
movss  %xmm0,-0x10c(%rbp,%r13,8)
fe ff ff
add    $0x1,%r13
cmp    $0x4,%r13
je     11f0 <get_all_radar_pts+0xb0>
mov    -0xd0(%rbp,%r13,8),%r8d
ff
mov    -0xcc(%rbp,%r13,8),%r15d
ff
mov    0x40(%rbp),%esi
mov    0x38(%rbp),%rdi
mov    -0xa8(%rbp),%rbx
mov    -0x60(%rbp),%r10
test   %esi,%esi
jg     1430 <get_all_radar_pts+0x2f0>
jmp    14b2 <get_all_radar_pts+0x372>
nopw   0x0(%rax,%rax,1)
mov    %r10,%rax
mov    -0xa0(%rbp),%r15
cmp    $0x8,%r15
mov    -0x68(%rbp),%rsi
movaps 0xa57(%rip),%xmm0
mov    -0x78(%rbp),%r11
mov    -0x70(%rbp),%r9
jb     16be <get_all_radar_pts+0x57e>
cmpq   $0x18,-0x98(%rbp)
18
jae    1634 <get_all_radar_pts+0x4f4>
xor    %ecx,%ecx
mov    -0x50(%rbp),%r13
mov    -0x48(%rbp),%rdx
mov    -0x30(%rbp),%rdi
jmp    1681 <get_all_radar_pts+0x541>
mov    -0x60(%rbp),%r10
mov    %r10,%rax
mov    -0xa0(%rbp),%r15
cmp    $0x8,%r15
mov    -0x30(%rbp),%rdi
mov    -0x68(%rbp),%rsi
movaps 0xa1b(%rip),%xmm0
mov    -0x58(%rbp),%rbx
mov    -0x78(%rbp),%r11
mov    -0x70(%rbp),%r9
jb     1770 <get_all_radar_pts+0x630>
cmpq   $0x18,-0x98(%rbp)
18
jae    16e5 <get_all_radar_pts+0x5a5>
xor    %ecx,%ecx
mov    -0x50(%rbp),%r13
mov    -0x48(%rbp),%rdx
jmp    1731 <get_all_radar_pts+0x5f1>
xor    %ecx,%ecx
mov    -0x50(%rbp),%r13
mov    -0x90(%rbp),%rax
mov    -0x48(%rbp),%rdx
mov    -0x30(%rbp),%rdi
nopl   0x0(%rax)
movups %xmm0,-0x70(%rbx,%rcx,4)
movups %xmm0,-0x60(%rbx,%rcx,4)
movups %xmm0,-0x50(%rbx,%rcx,4)
movups %xmm0,-0x40(%rbx,%rcx,4)
movups %xmm0,-0x30(%rbx,%rcx,4)
movups %xmm0,-0x20(%rbx,%rcx,4)
movups %xmm0,-0x10(%rbx,%rcx,4)
movups %xmm0,(%rbx,%rcx,4)
add    $0x20,%rcx
add    $0xfffffffffffffffc,%rax
jne    1650 <get_all_radar_pts+0x510>
mov    %r15,%rax
and    $0xfffffffffffffff8,%rax
test   $0x3,%dl
je     16b2 <get_all_radar_pts+0x572>
lea    (%r9,%rcx,4),%rcx
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups %xmm0,-0x10(%rcx,%rdx,1)
movups %xmm0,(%rcx,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%r13
jne    16a0 <get_all_radar_pts+0x560>
cmp    %rax,%r15
je     1240 <get_all_radar_pts+0x100>
add    %r10,%rax
mov    -0x30(%rbp),%rdi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movl   $0x7fc00000,(%rdi,%rax,4)
add    $0x1,%rax
cmp    %rax,%rsi
jne    16d0 <get_all_radar_pts+0x590>
jmp    1240 <get_all_radar_pts+0x100>
xor    %ecx,%ecx
mov    -0x50(%rbp),%r13
mov    -0x90(%rbp),%rax
mov    -0x48(%rbp),%rdx
cs nopw 0x0(%rax,%rax,1)
movups %xmm0,-0x70(%rbx,%rcx,4)
movups %xmm0,-0x60(%rbx,%rcx,4)
movups %xmm0,-0x50(%rbx,%rcx,4)
movups %xmm0,-0x40(%rbx,%rcx,4)
movups %xmm0,-0x30(%rbx,%rcx,4)
movups %xmm0,-0x20(%rbx,%rcx,4)
movups %xmm0,-0x10(%rbx,%rcx,4)
movups %xmm0,(%rbx,%rcx,4)
add    $0x20,%rcx
add    $0xfffffffffffffffc,%rax
jne    1700 <get_all_radar_pts+0x5c0>
mov    %r15,%rax
and    $0xfffffffffffffff8,%rax
test   $0x3,%dl
je     1762 <get_all_radar_pts+0x622>
lea    (%r9,%rcx,4),%rcx
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups %xmm0,-0x10(%rcx,%rdx,1)
movups %xmm0,(%rcx,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%r13
jne    1750 <get_all_radar_pts+0x610>
cmp    %rax,%r15
je     1240 <get_all_radar_pts+0x100>
add    %r10,%rax
xchg   %ax,%ax
movl   $0xc61c3c00,(%rdi,%rax,4)
add    $0x1,%rax
cmp    %rax,%rsi
jne    1770 <get_all_radar_pts+0x630>
jmp    1240 <get_all_radar_pts+0x100>
mov    %rdi,%rax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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