#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 /*<<< orphan*/ dissBarrier();
void jacobi(double **grid, double **new, int gridSize, int iter) {
  for (int k = 0; k < iter; k++) {
#pragma omp for nowait schedule(static)
    for (int i = 1; i < gridSize + 1; i++) {
      for (int j = 1; j < gridSize + 1; j++) {
        new[i][j] = (grid[i - 1][j] + grid[i + 1][j] + grid[i][j - 1] +
                     grid[i][j + 1]) *
                    0.25;
      }
    }
    dissBarrier();
#pragma omp for nowait schedule(static)
    for (int i = 1; i < gridSize + 1; i++) {
      for (int j = 1; j < gridSize + 1; j++) {
        grid[i][j] =
            (new[i - 1][j] + new[i + 1][j] + new[i][j - 1] + new[i][j + 1]) *
            0.25;
      }
    }
    dissBarrier();
  }
}


x86 assembly (clang, -O0):
<jacobi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1309 <jacobi+0x1f9>
movl   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    1213 <jacobi+0x103>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    1200 <jacobi+0xf0>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  0xe27(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1158 <jacobi+0x48>
jmp    1205 <jacobi+0xf5>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1140 <jacobi+0x30>
mov    $0x0,%al
call   1030 <dissBarrier@plt>
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    12f4 <jacobi+0x1e4>
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    12e1 <jacobi+0x1d1>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  0xd46(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1239 <jacobi+0x129>
jmp    12e6 <jacobi+0x1d6>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1221 <jacobi+0x111>
mov    $0x0,%al
call   1030 <dissBarrier@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    112d <jacobi+0x1d>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<jacobi>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rdx,0x8(%rsp)
mov    %rsi,0x40(%rsp)
mov    %ecx,0x10(%rsp)
test   %ecx,%ecx
jle    15a1 <jacobi+0x491>
mov    %rdi,%r13
mov    0x8(%rsp),%rax
lea    0x1(%rax),%ebp
lea    0x1(%rbp),%rax
mov    %rax,0x28(%rsp)
lea    -0x1(%rbp),%r12
mov    %r12,%r14
and    $0xfffffffffffffffc,%r14
lea    0x1(%r14),%rax
mov    %rax,0x18(%rsp)
mov    %rbp,%rax
neg    %rax
mov    %rax,0x38(%rsp)
movsd  0xea1(%rip),%xmm4
movapd 0xe89(%rip),%xmm5
xor    %eax,%eax
mov    %rdi,0x30(%rsp)
mov    %r12,0x20(%rsp)
jmp    11bf <jacobi+0xaf>
cs nopw 0x0(%rax,%rax,1)
nop
xor    %eax,%eax
call   1030 <dissBarrier@plt>
xor    %eax,%eax
call   1030 <dissBarrier@plt>
movapd 0xe5a(%rip),%xmm5
movsd  0xe62(%rip),%xmm4
mov    0x14(%rsp),%eax
add    $0x1,%eax
cmp    0x10(%rsp),%eax
je     15a1 <jacobi+0x491>
cmpl   $0x0,0x8(%rsp)
mov    %eax,0x14(%rsp)
jle    1190 <jacobi+0x80>
mov    $0x1,%r8d
jmp    11e9 <jacobi+0xd9>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    %rbp,%r8
je     13b0 <jacobi+0x2a0>
mov    -0x8(%r13,%r8,8),%rcx
mov    0x0(%r13,%r8,8),%rdx
mov    0x40(%rsp),%rax
mov    (%rax,%r8,8),%rsi
add    $0x1,%r8
mov    %r8d,%eax
mov    0x0(%r13,%rax,8),%rdi
mov    $0x1,%eax
cmp    $0x4,%r12
jb     1310 <jacobi+0x200>
lea    0x8(%rsi),%rax
lea    (%rsi,%rbp,8),%r12
lea    0x8(%rcx),%r9
lea    (%rcx,%rbp,8),%r10
lea    0x8(%rdi),%r11
lea    (%rdi,%rbp,8),%r15
mov    0x28(%rsp),%rbx
lea    (%rdx,%rbx,8),%rbx
cmp    %r10,%rax
setb   %r13b
cmp    %r12,%r9
setb   %r10b
cmp    %r15,%rax
setb   %r15b
cmp    %r12,%r11
setb   %r11b
cmp    %rbx,%rax
setb   %r9b
cmp    %r12,%rdx
mov    0x20(%rsp),%r12
setb   %bl
mov    $0x1,%eax
test   %r10b,%r13b
mov    0x30(%rsp),%r13
jne    1310 <jacobi+0x200>
mov    $0x1,%eax
and    %r11b,%r15b
jne    1310 <jacobi+0x200>
mov    $0x1,%eax
and    %bl,%r9b
jne    1310 <jacobi+0x200>
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movupd 0x8(%rcx,%rax,8),%xmm0
movupd 0x18(%rcx,%rax,8),%xmm1
movupd 0x8(%rdi,%rax,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x18(%rdi,%rax,8),%xmm0
addpd  %xmm1,%xmm0
movupd (%rdx,%rax,8),%xmm1
addpd  %xmm2,%xmm1
movupd 0x10(%rdx,%rax,8),%xmm2
movupd 0x20(%rdx,%rax,8),%xmm3
addpd  %xmm2,%xmm0
addpd  %xmm3,%xmm0
addpd  %xmm2,%xmm1
mulpd  %xmm5,%xmm1
mulpd  %xmm5,%xmm0
movupd %xmm1,0x8(%rsi,%rax,8)
movupd %xmm0,0x18(%rsi,%rax,8)
add    $0x4,%rax
cmp    %rax,%r14
jne    12a0 <jacobi+0x190>
mov    0x18(%rsp),%rax
cmp    %r14,%r12
je     11e0 <jacobi+0xd0>
nopl   0x0(%rax)
mov    %rax,%rbx
test   $0x1,%bpl
jne    133c <jacobi+0x22c>
movsd  (%rcx,%rax,8),%xmm0
addsd  (%rdi,%rax,8),%xmm0
addsd  -0x8(%rdx,%rax,8),%xmm0
lea    0x1(%rax),%rbx
addsd  0x8(%rdx,%rax,8),%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,(%rsi,%rax,8)
not    %rax
cmp    0x38(%rsp),%rax
je     11e0 <jacobi+0xd0>
nopw   0x0(%rax,%rax,1)
movsd  (%rcx,%rbx,8),%xmm0
addsd  (%rdi,%rbx,8),%xmm0
addsd  -0x8(%rdx,%rbx,8),%xmm0
addsd  0x8(%rdx,%rbx,8),%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,(%rsi,%rbx,8)
movsd  0x8(%rcx,%rbx,8),%xmm0
addsd  0x8(%rdi,%rbx,8),%xmm0
addsd  (%rdx,%rbx,8),%xmm0
addsd  0x10(%rdx,%rbx,8),%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,0x8(%rsi,%rbx,8)
lea    0x2(%rbx),%rax
mov    %rax,%rbx
cmp    %rax,%rbp
jne    1350 <jacobi+0x240>
jmp    11e0 <jacobi+0xd0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <dissBarrier@plt>
movapd 0xc41(%rip),%xmm5
movsd  0xc49(%rip),%xmm4
cmpl   $0x0,0x8(%rsp)
jle    1197 <jacobi+0x87>
mov    $0x1,%r8d
jmp    13e9 <jacobi+0x2d9>
nopw   0x0(%rax,%rax,1)
cmp    %rbp,%r8
je     1197 <jacobi+0x87>
mov    0x40(%rsp),%rdi
mov    -0x8(%rdi,%r8,8),%rcx
mov    (%rdi,%r8,8),%rdx
mov    0x0(%r13,%r8,8),%rsi
add    $0x1,%r8
mov    %r8d,%eax
mov    (%rdi,%rax,8),%rdi
mov    $0x1,%eax
cmp    $0x4,%r12
jb     1510 <jacobi+0x400>
lea    0x8(%rsi),%rax
lea    (%rsi,%rbp,8),%r12
lea    0x8(%rcx),%r9
lea    (%rcx,%rbp,8),%r10
lea    0x8(%rdi),%r11
lea    (%rdi,%rbp,8),%r15
mov    0x28(%rsp),%rbx
lea    (%rdx,%rbx,8),%rbx
cmp    %r10,%rax
setb   %r13b
cmp    %r12,%r9
setb   %r10b
cmp    %r15,%rax
setb   %r15b
cmp    %r12,%r11
setb   %r11b
cmp    %rbx,%rax
setb   %r9b
cmp    %r12,%rdx
mov    0x20(%rsp),%r12
setb   %bl
mov    $0x1,%eax
test   %r10b,%r13b
mov    0x30(%rsp),%r13
jne    1510 <jacobi+0x400>
mov    $0x1,%eax
and    %r11b,%r15b
jne    1510 <jacobi+0x400>
mov    $0x1,%eax
and    %bl,%r9b
jne    1510 <jacobi+0x400>
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
movupd 0x8(%rcx,%rax,8),%xmm0
movupd 0x18(%rcx,%rax,8),%xmm1
movupd 0x8(%rdi,%rax,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x18(%rdi,%rax,8),%xmm0
addpd  %xmm1,%xmm0
movupd (%rdx,%rax,8),%xmm1
addpd  %xmm2,%xmm1
movupd 0x10(%rdx,%rax,8),%xmm2
movupd 0x20(%rdx,%rax,8),%xmm3
addpd  %xmm2,%xmm0
addpd  %xmm3,%xmm0
addpd  %xmm2,%xmm1
mulpd  %xmm5,%xmm1
mulpd  %xmm5,%xmm0
movupd %xmm1,0x8(%rsi,%rax,8)
movupd %xmm0,0x18(%rsi,%rax,8)
add    $0x4,%rax
cmp    %rax,%r14
jne    14a0 <jacobi+0x390>
mov    0x18(%rsp),%rax
cmp    %r14,%r12
je     13e0 <jacobi+0x2d0>
nopl   0x0(%rax)
mov    %rax,%rbx
test   $0x1,%bpl
jne    153c <jacobi+0x42c>
movsd  (%rcx,%rax,8),%xmm0
addsd  (%rdi,%rax,8),%xmm0
addsd  -0x8(%rdx,%rax,8),%xmm0
lea    0x1(%rax),%rbx
addsd  0x8(%rdx,%rax,8),%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,(%rsi,%rax,8)
not    %rax
cmp    0x38(%rsp),%rax
je     13e0 <jacobi+0x2d0>
nopw   0x0(%rax,%rax,1)
movsd  (%rcx,%rbx,8),%xmm0
addsd  (%rdi,%rbx,8),%xmm0
addsd  -0x8(%rdx,%rbx,8),%xmm0
addsd  0x8(%rdx,%rbx,8),%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,(%rsi,%rbx,8)
movsd  0x8(%rcx,%rbx,8),%xmm0
addsd  0x8(%rdi,%rbx,8),%xmm0
addsd  (%rdx,%rbx,8),%xmm0
addsd  0x10(%rdx,%rbx,8),%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,0x8(%rsi,%rbx,8)
lea    0x2(%rbx),%rax
mov    %rax,%rbx
cmp    %rax,%rbp
jne    1550 <jacobi+0x440>
jmp    13e0 <jacobi+0x2d0>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @jacobi(double** %0, double** %1, i32 %2, i32 %3) {
%5 = alloca double**
%6 = alloca double**
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store double** %0, double*** %5
store double** %1, double*** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
store i32 0, i32* %9
br label %14
14: ; preds = %165, %4
%15 = load i32, i32* %9
%16 = load i32, i32* %8
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %168
18: ; preds = %14
store i32 1, i32* %10
br label %19
19: ; preds = %87, %18
%20 = load i32, i32* %10
%21 = load i32, i32* %7
%22 = add nsw i32 %21, 1
%23 = icmp slt i32 %20, %22
br i1 %23, label %24, label %90
24: ; preds = %19
store i32 1, i32* %11
br label %25
25: ; preds = %83, %24
%26 = load i32, i32* %11
%27 = load i32, i32* %7
%28 = add nsw i32 %27, 1
%29 = icmp slt i32 %26, %28
br i1 %29, label %30, label %86
30: ; preds = %25
%31 = load double**, double*** %5
%32 = load i32, i32* %10
%33 = sub nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double*, double** %31, i64 %34
%36 = load double*, double** %35
%37 = load i32, i32* %11
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, double* %36, i64 %38
%40 = load double, double* %39
%41 = load double**, double*** %5
%42 = load i32, i32* %10
%43 = add nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double*, double** %41, i64 %44
%46 = load double*, double** %45
%47 = load i32, i32* %11
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, double* %46, i64 %48
%50 = load double, double* %49
%51 = fadd double %40, %50
%52 = load double**, double*** %5
%53 = load i32, i32* %10
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double*, double** %52, i64 %54
%56 = load double*, double** %55
%57 = load i32, i32* %11
%58 = sub nsw i32 %57, 1
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, double* %56, i64 %59
%61 = load double, double* %60
%62 = fadd double %51, %61
%63 = load double**, double*** %5
%64 = load i32, i32* %10
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds double*, double** %63, i64 %65
%67 = load double*, double** %66
%68 = load i32, i32* %11
%69 = add nsw i32 %68, 1
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, double* %67, i64 %70
%72 = load double, double* %71
%73 = fadd double %62, %72
%74 = fmul double %73, 2.500000e-01
%75 = load double**, double*** %6
%76 = load i32, i32* %10
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double*, double** %75, i64 %77
%79 = load double*, double** %78
%80 = load i32, i32* %11
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, double* %79, i64 %81
store double %74, double* %82
br label %83
83: ; preds = %30
%84 = load i32, i32* %11
%85 = add nsw i32 %84, 1
store i32 %85, i32* %11
br label %25
86: ; preds = %25
br label %87
87: ; preds = %86
%88 = load i32, i32* %10
%89 = add nsw i32 %88, 1
store i32 %89, i32* %10
br label %19
90: ; preds = %19
%91 = call i32 (...) @dissBarrier()
store i32 1, i32* %12
br label %92
92: ; preds = %160, %90
%93 = load i32, i32* %12
%94 = load i32, i32* %7
%95 = add nsw i32 %94, 1
%96 = icmp slt i32 %93, %95
br i1 %96, label %97, label %163
97: ; preds = %92
store i32 1, i32* %13
br label %98
98: ; preds = %156, %97
%99 = load i32, i32* %13
%100 = load i32, i32* %7
%101 = add nsw i32 %100, 1
%102 = icmp slt i32 %99, %101
br i1 %102, label %103, label %159
103: ; preds = %98
%104 = load double**, double*** %6
%105 = load i32, i32* %12
%106 = sub nsw i32 %105, 1
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double*, double** %104, i64 %107
%109 = load double*, double** %108
%110 = load i32, i32* %13
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds double, double* %109, i64 %111
%113 = load double, double* %112
%114 = load double**, double*** %6
%115 = load i32, i32* %12
%116 = add nsw i32 %115, 1
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds double*, double** %114, i64 %117
%119 = load double*, double** %118
%120 = load i32, i32* %13
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, double* %119, i64 %121
%123 = load double, double* %122
%124 = fadd double %113, %123
%125 = load double**, double*** %6
%126 = load i32, i32* %12
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds double*, double** %125, i64 %127
%129 = load double*, double** %128
%130 = load i32, i32* %13
%131 = sub nsw i32 %130, 1
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds double, double* %129, i64 %132
%134 = load double, double* %133
%135 = fadd double %124, %134
%136 = load double**, double*** %6
%137 = load i32, i32* %12
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds double*, double** %136, i64 %138
%140 = load double*, double** %139
%141 = load i32, i32* %13
%142 = add nsw i32 %141, 1
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds double, double* %140, i64 %143
%145 = load double, double* %144
%146 = fadd double %135, %145
%147 = fmul double %146, 2.500000e-01
%148 = load double**, double*** %5
%149 = load i32, i32* %12
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds double*, double** %148, i64 %150
%152 = load double*, double** %151
%153 = load i32, i32* %13
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds double, double* %152, i64 %154
store double %147, double* %155
br label %156
156: ; preds = %103
%157 = load i32, i32* %13
%158 = add nsw i32 %157, 1
store i32 %158, i32* %13
br label %98
159: ; preds = %98
br label %160
160: ; preds = %159
%161 = load i32, i32* %12
%162 = add nsw i32 %161, 1
store i32 %162, i32* %12
br label %92
163: ; preds = %92
%164 = call i32 (...) @dissBarrier()
br label %165
165: ; preds = %163
%166 = load i32, i32* %9
%167 = add nsw i32 %166, 1
store i32 %167, i32* %9
br label %14
168: ; preds = %14
ret void
}

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