#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_x(double *u, double *Lu, const double alpha,
                   const unsigned int nx, const unsigned int ny,
                   const double dx) {
  double fu, fu_old, fp, fp_old;
  double f1mm, f1m, f1, f1p, f1pp;
  double g1mm, g1m, g1, g1p, g1pp;
  unsigned int i, j, o;
#pragma omp parallel shared(u, Lu) private(j, f1mm, f1m, f1, f1p, f1pp, g1mm,  \
                                           g1m, g1, g1p, g1pp, fu, fu_old, fp, \
                                           fp_old)
  {
#pragma omp for
    for (j = 2; j < ny - 3; j++) {
      o = nx * j;
      fu_old = 0;
      fp_old = 0;
      f1mm = 0.5 * (alpha * u[0 + o] + alpha * u[0 + o]);
      f1m = 0.5 * (alpha * u[1 + o] + alpha * u[1 + o]);
      f1 = 0.5 * (alpha * u[2 + o] + alpha * u[2 + o]);
      f1p = 0.5 * (alpha * u[3 + o] + alpha * u[3 + o]);
      g1mm = 0.5 * (alpha * u[1 + o] - alpha * u[1 + o]);
      g1m = 0.5 * (alpha * u[2 + o] - alpha * u[2 + o]);
      g1 = 0.5 * (alpha * u[3 + o] - alpha * u[3 + o]);
      g1p = 0.5 * (alpha * u[4 + o] - alpha * u[4 + o]);
      for (i = 2; i < nx - 3; i++) {
        f1pp = 0.5 * (alpha * u[i + 2 + o] + alpha * u[i + 2 + o]);
        g1pp = 0.5 * (alpha * u[i + 3 + o] - alpha * u[i + 3 + o]);
        fu = WENO5_Reconstruct1d(f1mm, f1m, f1, f1p, f1pp, g1mm, g1m, g1, g1p,
                                 g1pp);
        Lu[i + o] = -(fu - fu_old) / dx;
        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_x>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%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,-0xa0(%rbp)
mov    -0xa0(%rbp),%eax
mov    -0x20(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jae    1638 <Compute_Adv_x+0x528>
mov    -0x1c(%rbp),%eax
imul   -0xa0(%rbp),%eax
mov    %eax,-0xa4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0xa4(%rbp),%ecx
add    $0x0,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0xa4(%rbp),%ecx
add    $0x0,%ecx
mov    %ecx,%ecx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe4d(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0xa4(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0xa4(%rbp),%ecx
add    $0x1,%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    -0xa4(%rbp),%ecx
add    $0x2,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0xa4(%rbp),%ecx
add    $0x2,%ecx
mov    %ecx,%ecx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xdb7(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0xa4(%rbp),%ecx
add    $0x3,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0xa4(%rbp),%ecx
add    $0x3,%ecx
mov    %ecx,%ecx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xd6c(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0xa4(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0xa4(%rbp),%ecx
add    $0x1,%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  0xd0a(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0xa4(%rbp),%ecx
add    $0x2,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0xa4(%rbp),%ecx
add    $0x2,%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  0xca8(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0xa4(%rbp),%ecx
add    $0x3,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0xa4(%rbp),%ecx
add    $0x3,%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  0xc46(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0xa4(%rbp),%ecx
add    $0x4,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0xa4(%rbp),%ecx
add    $0x4,%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  0xbe1(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movl   $0x2,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jae    161f <Compute_Adv_x+0x50f>
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x2,%ecx
add    -0xa4(%rbp),%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x2,%ecx
add    -0xa4(%rbp),%ecx
mov    %ecx,%ecx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xb69(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x3,%ecx
add    -0xa4(%rbp),%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    $0x3,%ecx
add    -0xa4(%rbp),%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  0xafb(%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),%xmm0
subsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
divsd  -0x28(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x9c(%rbp),%ecx
add    -0xa4(%rbp),%ecx
mov    %ecx,%ecx
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    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    1435 <Compute_Adv_x+0x325>
jmp    1624 <Compute_Adv_x+0x514>
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
jmp    113d <Compute_Adv_x+0x2d>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Compute_Adv_x>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rdx,0x10(%rsp)
movapd %xmm0,0x40(%rsp)
add    $0xfffffffd,%ecx
cmp    $0x3,%ecx
jb     13af <Compute_Adv_x+0x29f>
mov    %rsi,%r15
mov    %rdi,%rbx
mov    0x10(%rsp),%rax
lea    -0x3(%rax),%edx
mov    %ecx,%ecx
mov    %rcx,0x20(%rsp)
movapd 0x40(%rsp),%xmm14
unpcklpd %xmm14,%xmm14
lea    0x2(%rax,%rax,1),%ebp
mov    %rdx,0x28(%rsp)
lea    -0x2(%rdx),%rax
mov    %rax,0x18(%rsp)
mov    $0x2,%r13d
movapd 0xe87(%rip),%xmm3
movapd 0xe8e(%rip),%xmm11
movsd  %xmm1,0x30(%rsp)
movapd %xmm14,0x50(%rsp)
jmp    11b3 <Compute_Adv_x+0xa3>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r13
add    0x10(%rsp),%ebp
cmp    0x20(%rsp),%r13
je     13af <Compute_Adv_x+0x29f>
cmpl   $0x3,0x28(%rsp)
jb     11a0 <Compute_Adv_x+0x90>
mov    %r13d,%eax
imul   0x10(%rsp),%eax
lea    0x1(%rax),%ecx
lea    0x2(%rax),%edx
lea    0x3(%rax),%esi
lea    0x4(%rax),%edi
movsd  (%rbx,%rax,8),%xmm8
movsd  (%rbx,%rcx,8),%xmm5
movapd %xmm5,%xmm2
movapd 0x40(%rsp),%xmm9
mulsd  %xmm9,%xmm2
movsd  (%rbx,%rdx,8),%xmm12
movapd %xmm12,%xmm10
mulsd  %xmm9,%xmm10
movsd  (%rbx,%rsi,8),%xmm13
movapd %xmm13,%xmm0
mulsd  %xmm9,%xmm0
movsd  (%rbx,%rdi,8),%xmm7
movapd %xmm7,%xmm4
xorpd  %xmm3,%xmm4
mulsd  %xmm9,%xmm4
unpcklpd %xmm0,%xmm4
xorpd  %xmm3,%xmm0
unpcklpd %xmm10,%xmm0
xorpd  %xmm3,%xmm10
unpcklpd %xmm2,%xmm10
xorpd  %xmm3,%xmm2
unpcklpd %xmm13,%xmm7
mulpd  %xmm14,%xmm7
addpd  %xmm4,%xmm7
movapd 0xdc4(%rip),%xmm4
mulpd  %xmm4,%xmm7
unpcklpd %xmm12,%xmm13
mulpd  %xmm14,%xmm13
addpd  %xmm0,%xmm13
mulpd  %xmm4,%xmm13
unpcklpd %xmm5,%xmm12
mulpd  %xmm14,%xmm12
addpd  %xmm10,%xmm12
mulpd  %xmm4,%xmm12
unpcklpd %xmm8,%xmm5
mulsd  %xmm9,%xmm8
unpcklpd %xmm8,%xmm2
mulpd  %xmm14,%xmm5
addpd  %xmm2,%xmm5
mulpd  %xmm4,%xmm5
xorpd  %xmm0,%xmm0
mov    0x18(%rsp),%r12
mov    %ebp,%r14d
movsd  %xmm0,0x38(%rsp)
movapd %xmm12,0x90(%rsp)
movapd %xmm7,%xmm6
movapd %xmm7,0x80(%rsp)
lea    0x2(%r14),%eax
lea    0x3(%r14),%ecx
movsd  (%rbx,%rcx,8),%xmm2
movapd %xmm2,%xmm0
xorpd  %xmm3,%xmm0
movsd  (%rbx,%rax,8),%xmm1
unpcklpd %xmm1,%xmm0
mulpd  %xmm14,%xmm0
unpcklpd %xmm1,%xmm2
mulpd  %xmm14,%xmm2
addpd  %xmm0,%xmm2
mulpd  %xmm11,%xmm2
movapd %xmm7,%xmm3
unpckhpd %xmm7,%xmm3
movapd %xmm2,%xmm4
movapd %xmm2,%xmm7
movapd %xmm2,0x70(%rsp)
unpckhpd %xmm2,%xmm4
movapd %xmm13,%xmm2
movapd %xmm13,0x60(%rsp)
unpckhpd %xmm13,%xmm2
movapd %xmm12,%xmm1
unpckhpd %xmm12,%xmm1
movapd %xmm5,%xmm0
unpckhpd %xmm5,%xmm0
unpcklpd %xmm7,%xmm6
movupd %xmm6,(%rsp)
movapd %xmm12,%xmm6
movapd %xmm13,%xmm7
call   1030 <WENO5_Reconstruct1d@plt>
movaps 0x70(%rsp),%xmm7
movaps 0x80(%rsp),%xmm13
movaps 0x60(%rsp),%xmm12
movapd 0xcac(%rip),%xmm11
movapd 0xc94(%rip),%xmm3
movapd 0x50(%rsp),%xmm14
movsd  0x30(%rsp),%xmm1
movapd %xmm0,%xmm2
subsd  0x38(%rsp),%xmm2
xorpd  %xmm3,%xmm2
divsd  %xmm1,%xmm2
mov    %r14d,%eax
movsd  %xmm2,(%r15,%rax,8)
add    $0x1,%r14d
movaps 0x90(%rsp),%xmm5
add    $0xffffffffffffffff,%r12
jne    12a0 <Compute_Adv_x+0x190>
jmp    11a0 <Compute_Adv_x+0x90>
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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