#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 */
float sqrt(float);
void bwpvtipseudop(float dt2, float **p1, float **p2, float **p3, float **q1,
                   float **q2, float **q3, float *coeff_x, float *coeff_z,
                   int nx, int nz, float **vp0, float **vs0, float **epsilon,
                   float **delta) {
  int i, j, k, im, jm, km;
  float px, pz, qx, qz, vp2, vs2, vpx2, vpn2, ep, de, coef;
  for (i = 5; i < nx + 5; i++) {
    im = i - 5;
    for (j = 5; j < nz + 5; j++) {
      jm = j - 5;
      vp2 = vp0[im][jm] * vp0[im][jm];
      vs2 = vs0[im][jm] * vs0[im][jm];
      ep = 1 + 2 * epsilon[im][jm];
      de = 1 + 2 * delta[im][jm];
      vpx2 = vp2 * ep;
      vpn2 = vp2 * de;
      coef = sqrt((vpn2 - vs2) * (vp2 - vs2));
      px = 0;
      qx = 0;
      pz = 0;
      qz = 0;
      for (k = -5; k <= 5; k++) {
        km = k + 5;
        px += coeff_x[km] * p2[i + k][j];
        pz += coeff_z[km] * p2[i][j + k];
        qx += coeff_x[km] * q2[i + k][j];
        qz += coeff_z[km] * q2[i][j + k];
      }
      p3[i][j] =
          2 * p2[i][j] - p1[i][j] + dt2 * (vpx2 * px + vs2 * pz + coef * qx);
      q3[i][j] =
          2 * q2[i][j] - q1[i][j] + dt2 * (coef * pz + vs2 * qx + vp2 * qz);
    }
  }
}


x86 assembly (clang, -O0):
<bwpvtipseudop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
movl   $0x5,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    0x20(%rbp),%ecx
add    $0x5,%ecx
cmp    %ecx,%eax
jge    14f5 <bwpvtipseudop+0x3e5>
mov    -0x3c(%rbp),%eax
sub    $0x5,%eax
mov    %eax,-0x48(%rbp)
movl   $0x5,-0x40(%rbp)
mov    -0x40(%rbp),%eax
mov    0x28(%rbp),%ecx
add    $0x5,%ecx
cmp    %ecx,%eax
jge    14e2 <bwpvtipseudop+0x3d2>
mov    -0x40(%rbp),%eax
sub    $0x5,%eax
mov    %eax,-0x4c(%rbp)
mov    0x30(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x4c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    0x30(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x4c(%rbp),%rcx
mulss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x64(%rbp)
mov    0x38(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x4c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    0x38(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x4c(%rbp),%rcx
mulss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x68(%rbp)
mov    0x40(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x4c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
addss  %xmm0,%xmm0
movss  0xde9(%rip),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x74(%rbp)
mov    0x48(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x4c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
addss  %xmm0,%xmm0
movss  0xdbf(%rip),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x78(%rbp)
movss  -0x64(%rbp),%xmm0
mulss  -0x74(%rbp),%xmm0
movss  %xmm0,-0x6c(%rbp)
movss  -0x64(%rbp),%xmm0
mulss  -0x78(%rbp),%xmm0
movss  %xmm0,-0x70(%rbp)
movss  -0x70(%rbp),%xmm0
subss  -0x68(%rbp),%xmm0
movss  -0x64(%rbp),%xmm1
subss  -0x68(%rbp),%xmm1
mulss  %xmm1,%xmm0
call   1030 <sqrt@plt>
movss  %xmm0,-0x7c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x54(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x58(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x60(%rbp)
movl   $0xfffffffb,-0x44(%rbp)
cmpl   $0x5,-0x44(%rbp)
jg     13b6 <bwpvtipseudop+0x2a6>
mov    -0x44(%rbp),%eax
add    $0x5,%eax
mov    %eax,-0x50(%rbp)
mov    0x10(%rbp),%rax
movslq -0x50(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x44(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x54(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
mov    0x18(%rbp),%rax
movslq -0x50(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x40(%rbp),%ecx
add    -0x44(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x58(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x58(%rbp)
mov    0x10(%rbp),%rax
movslq -0x50(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x30(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x44(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x5c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x5c(%rbp)
mov    0x18(%rbp),%rax
movslq -0x50(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x40(%rbp),%ecx
add    -0x44(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x60(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x60(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    12b1 <bwpvtipseudop+0x1a1>
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
addss  %xmm1,%xmm1
addss  %xmm0,%xmm1
movss  -0x4(%rbp),%xmm0
movss  -0x6c(%rbp),%xmm3
movss  -0x54(%rbp),%xmm4
movss  -0x68(%rbp),%xmm2
mulss  -0x58(%rbp),%xmm2
mulss  %xmm4,%xmm3
addss  %xmm2,%xmm3
movss  -0x7c(%rbp),%xmm2
movss  -0x5c(%rbp),%xmm4
mulss  %xmm4,%xmm2
addss  %xmm3,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
addss  %xmm1,%xmm1
addss  %xmm0,%xmm1
movss  -0x4(%rbp),%xmm0
movss  -0x7c(%rbp),%xmm3
movss  -0x58(%rbp),%xmm4
movss  -0x68(%rbp),%xmm2
mulss  -0x5c(%rbp),%xmm2
mulss  %xmm4,%xmm3
addss  %xmm2,%xmm3
movss  -0x64(%rbp),%xmm2
movss  -0x60(%rbp),%xmm4
mulss  %xmm4,%xmm2
addss  %xmm3,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    117e <bwpvtipseudop+0x6e>
jmp    14e7 <bwpvtipseudop+0x3d7>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    115d <bwpvtipseudop+0x4d>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bwpvtipseudop>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r9,0x50(%rsp)
mov    %rcx,0x48(%rsp)
mov    %rdx,0x40(%rsp)
mov    %rsi,0x10(%rsp)
mov    %rdi,0x38(%rsp)
mov    0xa0(%rsp),%eax
test   %eax,%eax
jle    1407 <bwpvtipseudop+0x2f7>
movaps %xmm0,%xmm9
mov    %rax,%rcx
mov    0xa8(%rsp),%eax
mov    0x98(%rsp),%r14
mov    0x90(%rsp),%r15
lea    0x4(%rax),%edx
cmp    $0x6,%edx
mov    $0x5,%eax
cmovl  %eax,%edx
add    $0x1,%edx
mov    %rdx,0x30(%rsp)
add    $0x4,%ecx
cmp    $0x6,%ecx
cmovl  %eax,%ecx
add    $0x1,%ecx
mov    %rcx,0x18(%rsp)
mov    $0x5,%r13d
movss  0xe67(%rip),%xmm7
xorps  %xmm8,%xmm8
mov    %r8,%rbx
mov    0x10(%rsp),%rbp
mov    %r8,0x20(%rsp)
movss  %xmm0,(%rsp)
jmp    11d7 <bwpvtipseudop+0xc7>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r13
add    $0x8,%rbp
add    $0x8,%rbx
cmp    0x18(%rsp),%r13
je     1407 <bwpvtipseudop+0x2f7>
mov    0xa8(%rsp),%eax
test   %eax,%eax
jle    11c0 <bwpvtipseudop+0xb0>
mov    $0x5,%r12d
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
mov    0xb0(%rsp),%rax
mov    -0x28(%rax,%r13,8),%rax
movss  -0x14(%rax,%r12,4),%xmm10
mulss  %xmm10,%xmm10
mov    0xb8(%rsp),%rax
mov    -0x28(%rax,%r13,8),%rax
movss  -0x14(%rax,%r12,4),%xmm11
mulss  %xmm11,%xmm11
mov    0xc0(%rsp),%rax
mov    -0x28(%rax,%r13,8),%rax
movss  -0x14(%rax,%r12,4),%xmm6
mov    0xc8(%rsp),%rax
mov    -0x28(%rax,%r13,8),%rax
movss  -0x14(%rax,%r12,4),%xmm1
addss  %xmm1,%xmm1
addss  %xmm7,%xmm1
mulss  %xmm10,%xmm1
subss  %xmm11,%xmm1
movaps %xmm10,%xmm0
subss  %xmm11,%xmm0
mulss  %xmm1,%xmm0
ucomiss %xmm8,%xmm0
jb     1280 <bwpvtipseudop+0x170>
sqrtss %xmm0,%xmm0
jmp    12ce <bwpvtipseudop+0x1be>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rcx,0x28(%rsp)
movss  %xmm10,0xc(%rsp)
movss  %xmm11,0x8(%rsp)
movss  %xmm6,0x4(%rsp)
call   1030 <sqrt@plt>
movss  0x4(%rsp),%xmm6
movss  0x8(%rsp),%xmm11
movss  0xc(%rsp),%xmm10
mov    0x28(%rsp),%rcx
xorps  %xmm8,%xmm8
movss  0xd3d(%rip),%xmm7
movss  (%rsp),%xmm9
mov    0x20(%rsp),%r8
mov    0x10(%rsp),%rax
mov    (%rax,%r13,8),%r10
mov    (%r8,%r13,8),%r11
lea    (%r10,%rcx,4),%rdx
mov    %rcx,%r9
lea    (%r11,%rcx,4),%rsi
xorps  %xmm1,%xmm1
xor    %edi,%edi
nopl   0x0(%rax,%rax,1)
mov    0x0(%rbp,%rdi,2),%rax
mov    (%rbx,%rdi,2),%rcx
movss  (%r14,%rdi,1),%xmm2
movss  (%r15,%rdi,1),%xmm3
unpcklps %xmm2,%xmm3
movlhps %xmm3,%xmm3
movss  (%rsi,%rdi,1),%xmm2
movss  (%rcx,%r12,4),%xmm4
unpcklps %xmm2,%xmm4
movss  (%rdx,%rdi,1),%xmm2
movss  (%rax,%r12,4),%xmm5
unpcklps %xmm2,%xmm5
movlhps %xmm4,%xmm5
mulps  %xmm3,%xmm5
addps  %xmm5,%xmm1
add    $0x4,%rdi
cmp    $0x2c,%rdi
jne    12f0 <bwpvtipseudop+0x1e0>
addss  %xmm6,%xmm6
addss  %xmm7,%xmm6
mulss  %xmm10,%xmm6
movss  (%r10,%r12,4),%xmm3
mov    0x38(%rsp),%rax
mov    (%rax,%r13,8),%rax
addss  %xmm3,%xmm3
subss  (%rax,%r12,4),%xmm3
movaps %xmm1,%xmm2
shufps $0x55,%xmm1,%xmm2
movaps %xmm11,%xmm4
mulss  %xmm2,%xmm4
mulss  %xmm1,%xmm6
addss  %xmm4,%xmm6
movaps %xmm1,%xmm4
unpckhpd %xmm1,%xmm4
movaps %xmm0,%xmm5
mulss  %xmm4,%xmm5
addss  %xmm6,%xmm5
mulss  %xmm9,%xmm5
addss  %xmm3,%xmm5
mov    0x40(%rsp),%rax
mov    (%rax,%r13,8),%rax
movss  %xmm5,(%rax,%r12,4)
movss  (%r11,%r12,4),%xmm3
mov    0x48(%rsp),%rax
mov    (%rax,%r13,8),%rax
addss  %xmm3,%xmm3
subss  (%rax,%r12,4),%xmm3
mulss  %xmm11,%xmm4
mulss  %xmm0,%xmm2
addss  %xmm4,%xmm2
shufps $0xff,%xmm1,%xmm1
mulss  %xmm10,%xmm1
addss  %xmm2,%xmm1
mulss  %xmm9,%xmm1
addss  %xmm3,%xmm1
mov    0x50(%rsp),%rax
mov    (%rax,%r13,8),%rax
movss  %xmm1,(%rax,%r12,4)
add    $0x1,%r12
mov    %r9,%rcx
add    $0x1,%rcx
cmp    0x30(%rsp),%r12
jne    11f0 <bwpvtipseudop+0xe0>
jmp    11c0 <bwpvtipseudop+0xb0>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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