#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 */
double WENO5_Reconstruct1d(double, double, double, double, double, double,
                           double, double, double, double);
void Compute_Adv_y(double *u, double *Lu, const double alpha,
                   const unsigned int nx, const unsigned int ny,
                   const double dy) {
  double fu, fu_old, fp, fp_old;
  double f1mm, f1m, f1, f1p, f1pp;
  double g1mm, g1m, g1, g1p, g1pp;
  unsigned int i, j;
#pragma omp parallel shared(u, Lu) private(i, f1mm, f1m, f1, f1p, f1pp, g1mm,  \
                                           g1m, g1, g1p, g1pp, fu, fu_old, fp, \
                                           fp_old)
  {
#pragma omp for
    for (i = 2; i < nx - 3; i++) {
      fu_old = 0;
      fp_old = 0;
      f1mm = 0.5 * (alpha * u[i + nx * 0] + alpha * u[i + nx * 0]);
      f1m = 0.5 * (alpha * u[i + nx * 1] + alpha * u[i + nx * 1]);
      f1 = 0.5 * (alpha * u[i + nx * 2] + alpha * u[i + nx * 2]);
      f1p = 0.5 * (alpha * u[i + nx * 3] + alpha * u[i + nx * 3]);
      g1mm = 0.5 * (alpha * u[i + nx * 1] - alpha * u[i + nx * 1]);
      g1m = 0.5 * (alpha * u[i + nx * 2] - alpha * u[i + nx * 2]);
      g1 = 0.5 * (alpha * u[i + nx * 3] - alpha * u[i + nx * 3]);
      g1p = 0.5 * (alpha * u[i + nx * 4] - alpha * u[i + nx * 4]);
      for (j = 2; j < ny - 3; j++) {
        f1pp =
            0.5 * (alpha * u[i + nx * (j + 2)] + alpha * u[i + nx * (j + 2)]);
        g1pp =
            0.5 * (alpha * u[i + nx * (j + 3)] - alpha * u[i + nx * (j + 3)]);
        fu = WENO5_Reconstruct1d(f1mm, f1m, f1, f1p, f1pp, g1mm, g1m, g1, g1p,
                                 g1pp);
        Lu[i + nx * j] -= (fu - fu_old) / dy;
        fu_old = fu;
        f1mm = f1m;
        f1m = f1;
        f1 = f1p;
        f1p = f1pp;
        g1mm = g1m;
        g1m = g1;
        g1 = g1p;
        g1p = g1pp;
      }
    }
  }
}


x86 assembly (clang, -O0):
<Compute_Adv_y>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %ecx,-0x20(%rbp)
movsd  %xmm1,-0x28(%rbp)
movl   $0x2,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jae    1684 <Compute_Adv_y+0x574>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
imul   $0x0,-0x1c(%rbp),%edx
add    %edx,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
imul   $0x0,-0x1c(%rbp),%edx
add    %edx,%ecx
mov    %ecx,%ecx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe57(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
mov    -0x1c(%rbp),%edx
shl    $0x0,%edx
add    %edx,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
mov    -0x1c(%rbp),%edx
shl    $0x0,%edx
add    %edx,%ecx
mov    %ecx,%ecx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe02(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
mov    -0x1c(%rbp),%edx
shl    $0x1,%edx
add    %edx,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
mov    -0x1c(%rbp),%edx
shl    $0x1,%edx
add    %edx,%ecx
mov    %ecx,%ecx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xdad(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
imul   $0x3,-0x1c(%rbp),%edx
add    %edx,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
imul   $0x3,-0x1c(%rbp),%edx
add    %edx,%ecx
mov    %ecx,%ecx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xd5c(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
mov    -0x1c(%rbp),%edx
shl    $0x0,%edx
add    %edx,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
mov    -0x1c(%rbp),%edx
shl    $0x0,%edx
add    %edx,%ecx
mov    %ecx,%ecx
mulsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xcf0(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
mov    -0x1c(%rbp),%edx
shl    $0x1,%edx
add    %edx,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
mov    -0x1c(%rbp),%edx
shl    $0x1,%edx
add    %edx,%ecx
mov    %ecx,%ecx
mulsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xc84(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
imul   $0x3,-0x1c(%rbp),%edx
add    %edx,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
imul   $0x3,-0x1c(%rbp),%edx
add    %edx,%ecx
mov    %ecx,%ecx
mulsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xc1c(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
mov    -0x1c(%rbp),%edx
shl    $0x2,%edx
add    %edx,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
mov    -0x1c(%rbp),%edx
shl    $0x2,%edx
add    %edx,%ecx
mov    %ecx,%ecx
mulsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xbad(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movl   $0x2,-0xa0(%rbp)
mov    -0xa0(%rbp),%eax
mov    -0x20(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jae    166b <Compute_Adv_y+0x55b>
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
mov    -0x1c(%rbp),%edx
mov    -0xa0(%rbp),%esi
add    $0x2,%esi
imul   %esi,%edx
add    %edx,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
mov    -0x1c(%rbp),%edx
mov    -0xa0(%rbp),%esi
add    $0x2,%esi
imul   %esi,%edx
add    %edx,%ecx
mov    %ecx,%ecx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xb25(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
mov    -0x1c(%rbp),%edx
mov    -0xa0(%rbp),%esi
add    $0x3,%esi
imul   %esi,%edx
add    %edx,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
mov    -0x1c(%rbp),%edx
mov    -0xa0(%rbp),%esi
add    $0x3,%esi
imul   %esi,%edx
add    %edx,%ecx
mov    %ecx,%ecx
mulsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xaa7(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm3
movsd  -0x70(%rbp),%xmm4
movsd  -0x78(%rbp),%xmm5
movsd  -0x80(%rbp),%xmm6
movsd  -0x88(%rbp),%xmm7
ff
movsd  -0x90(%rbp),%xmm9
ff ff
movsd  -0x98(%rbp),%xmm8
ff ff
movsd  %xmm9,(%rsp)
movsd  %xmm8,0x8(%rsp)
call   1030 <WENO5_Reconstruct1d@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm1
subsd  -0x38(%rbp),%xmm1
divsd  -0x28(%rbp),%xmm1
mov    -0x10(%rbp),%rax
mov    -0x9c(%rbp),%ecx
mov    -0x1c(%rbp),%edx
imul   -0xa0(%rbp),%edx
add    %edx,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x80(%rbp)
movsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
jmp    1469 <Compute_Adv_y+0x359>
jmp    1670 <Compute_Adv_y+0x560>
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    113d <Compute_Adv_y+0x2d>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Compute_Adv_y>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
movapd %xmm0,0x70(%rsp)
lea    -0x3(%rdx),%eax
cmp    $0x3,%eax
jb     143f <Compute_Adv_y+0x32f>
mov    %rsi,%r12
lea    (%rdx,%rdx,1),%ebp
mov    %rbp,0x40(%rsp)
lea    (%rdx,%rdx,2),%ebp
mov    %rbp,0x38(%rsp)
lea    0x0(,%rdx,4),%ebp
mov    %rbp,0x30(%rsp)
add    $0xfffffffd,%ecx
mov    %eax,%eax
mov    %rax,0x48(%rsp)
movapd 0x70(%rsp),%xmm15
unpcklpd %xmm15,%xmm15
lea    0x2(%rdx,%rdx,1),%eax
mov    %eax,0x1c(%rsp)
lea    0x2(%rdx,%rdx,4),%eax
mov    %eax,0x18(%rsp)
lea    0x2(,%rdx,4),%eax
mov    %eax,0x14(%rsp)
mov    %rcx,0x50(%rsp)
lea    -0x2(%rcx),%rax
mov    %rax,0x28(%rsp)
mov    $0x2,%eax
mov    %rax,0x20(%rsp)
movapd 0xe5c(%rip),%xmm12
movapd 0xe63(%rip),%xmm11
movsd  %xmm1,0x58(%rsp)
movapd %xmm15,0x80(%rsp)
jmp    11e8 <Compute_Adv_y+0xd8>
nop
mov    0x20(%rsp),%rax
add    $0x1,%rax
addl   $0x1,0x1c(%rsp)
addl   $0x1,0x18(%rsp)
addl   $0x1,0x14(%rsp)
mov    %rax,0x20(%rsp)
cmp    0x48(%rsp),%rax
je     143f <Compute_Adv_y+0x32f>
cmpl   $0x3,0x50(%rsp)
jb     11c0 <Compute_Adv_y+0xb0>
mov    0x20(%rsp),%rbx
lea    (%rbx,%rdx,1),%eax
mov    0x40(%rsp),%rcx
add    %ebx,%ecx
mov    0x38(%rsp),%rbp
lea    0x0(%rbp,%rbx,1),%r8d
mov    0x30(%rsp),%rbp
lea    0x0(%rbp,%rbx,1),%ebp
movsd  (%rdi,%rbx,8),%xmm8
movsd  (%rdi,%rax,8),%xmm5
movapd %xmm5,%xmm2
movapd 0x70(%rsp),%xmm10
mulsd  %xmm10,%xmm2
movsd  (%rdi,%rcx,8),%xmm13
movapd %xmm13,%xmm0
mulsd  %xmm10,%xmm0
movsd  (%rdi,%r8,8),%xmm14
movapd %xmm14,%xmm3
mulsd  %xmm10,%xmm3
movsd  (%rdi,%rbp,8),%xmm7
movapd %xmm7,%xmm4
movapd 0xda2(%rip),%xmm9
xorpd  %xmm9,%xmm4
mulsd  %xmm10,%xmm4
unpcklpd %xmm3,%xmm4
xorpd  %xmm9,%xmm3
unpcklpd %xmm0,%xmm3
xorpd  %xmm9,%xmm0
unpcklpd %xmm2,%xmm0
xorpd  %xmm9,%xmm2
unpcklpd %xmm14,%xmm7
mulpd  %xmm15,%xmm7
addpd  %xmm4,%xmm7
movapd 0xd77(%rip),%xmm4
mulpd  %xmm4,%xmm7
unpcklpd %xmm13,%xmm14
mulpd  %xmm15,%xmm14
addpd  %xmm3,%xmm14
mulpd  %xmm4,%xmm14
unpcklpd %xmm5,%xmm13
mulpd  %xmm15,%xmm13
addpd  %xmm0,%xmm13
mulpd  %xmm4,%xmm13
unpcklpd %xmm8,%xmm5
mulsd  %xmm10,%xmm8
unpcklpd %xmm8,%xmm2
mulpd  %xmm15,%xmm5
addpd  %xmm2,%xmm5
mulpd  %xmm4,%xmm5
xorpd  %xmm0,%xmm0
mov    0x28(%rsp),%rax
mov    0x14(%rsp),%r14d
mov    0x18(%rsp),%r13d
mov    0x1c(%rsp),%r15d
nopl   0x0(%rax)
movsd  %xmm0,0x60(%rsp)
mov    %rax,0x68(%rsp)
movapd %xmm13,0xc0(%rsp)
movapd %xmm7,%xmm6
movapd %xmm7,0xb0(%rsp)
mov    %r14d,%eax
mov    %r13d,%ecx
movsd  (%rdi,%rcx,8),%xmm2
movapd %xmm2,%xmm0
xorpd  %xmm12,%xmm0
movsd  (%rdi,%rax,8),%xmm1
unpcklpd %xmm1,%xmm0
mulpd  %xmm15,%xmm0
unpcklpd %xmm1,%xmm2
mulpd  %xmm15,%xmm2
addpd  %xmm0,%xmm2
mulpd  %xmm11,%xmm2
movapd %xmm7,%xmm3
unpckhpd %xmm7,%xmm3
movapd %xmm2,%xmm4
movapd %xmm2,%xmm7
movapd %xmm2,0xa0(%rsp)
unpckhpd %xmm2,%xmm4
movapd %xmm14,%xmm2
movapd %xmm14,0x90(%rsp)
unpckhpd %xmm14,%xmm2
movapd %xmm13,%xmm1
unpckhpd %xmm13,%xmm1
movapd %xmm5,%xmm0
unpckhpd %xmm5,%xmm0
unpcklpd %xmm7,%xmm6
movupd %xmm6,(%rsp)
movapd %xmm13,%xmm6
movapd %xmm14,%xmm7
mov    %rdi,%rbx
mov    %rdx,%rbp
call   1030 <WENO5_Reconstruct1d@plt>
movaps 0xa0(%rsp),%xmm7
movaps 0xb0(%rsp),%xmm14
movaps 0x90(%rsp),%xmm13
movapd 0xc36(%rip),%xmm11
movapd 0xc1d(%rip),%xmm12
movapd 0x80(%rsp),%xmm15
mov    %rbp,%rdx
mov    %rbx,%rdi
movsd  0x58(%rsp),%xmm1
movapd %xmm0,%xmm3
subsd  0x60(%rsp),%xmm3
divsd  %xmm1,%xmm3
mov    %r15d,%eax
movsd  (%r12,%rax,8),%xmm2
subsd  %xmm3,%xmm2
movsd  %xmm2,(%r12,%rax,8)
mov    0x68(%rsp),%rax
add    %edx,%r15d
add    %edx,%r13d
add    %edx,%r14d
movaps 0xc0(%rsp),%xmm5
add    $0xffffffffffffffff,%rax
jne    1300 <Compute_Adv_y+0x1f0>
jmp    11c0 <Compute_Adv_y+0xb0>
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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