void copy_border(int rmin, int rmax, int cmin, int cmax, double **grid) {
  int i;
  for (i = cmin - 1; i <= cmax + 1; ++i) {
    grid[rmin - 1][i] = grid[rmax][i];
    grid[rmax + 1][i] = grid[rmin][i];
  }
  for (i = rmin - 1; i <= rmax + 1; ++i) {
    grid[rmin - 1][i] = grid[rmax][i];
    grid[rmax + 1][i] = grid[rmin][i];
  }
  return;
}


x86 assembly (clang, -O0):
<copy_border>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x10(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jg     119a <copy_border+0x9a>
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    111d <copy_border+0x1d>
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jg     1220 <copy_border+0x120>
mov    -0x18(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11a3 <copy_border+0xa3>
pop    %rbp
ret

x86 assembly (clang, -O2):
<copy_border>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
lea    -0x1(%rdx),%r12d
lea    0x1(%rcx),%r11d
movslq %esi,%rax
mov    %rax,-0x20(%rsp)
movslq %edi,%r10
cmp    %r11d,%r12d
jle    112e <copy_border+0x2e>
add    $0xffffffff,%edi
lea    0x1(%rsi),%r9d
jmp    13f8 <copy_border+0x2f8>
mov    -0x20(%rsp),%rbp
mov    (%r8,%rbp,8),%r14
mov    0x8(%r8,%rbp,8),%r15
lea    -0x1(%r10),%edi
movslq %edi,%rax
mov    (%r8,%rax,8),%rax
mov    (%r8,%r10,8),%rbx
lea    0x1(%rbp),%r9d
movslq %r12d,%r12
lea    0x2(%rcx),%ebp
mov    %ebp,-0x2c(%rsp)
sub    %edx,%ebp
cmp    $0x3,%ebp
jb     1386 <copy_border+0x286>
mov    %rbp,-0x8(%rsp)
mov    %r11d,-0x30(%rsp)
mov    %r9d,-0x3c(%rsp)
mov    %r10,-0x28(%rsp)
mov    %rsi,-0x38(%rsp)
lea    (%rax,%r12,8),%r9
mov    %ecx,%esi
sub    %edx,%esi
add    $0x2,%esi
add    %r12,%rsi
lea    (%rax,%rsi,8),%rdx
add    $0x8,%rdx
lea    (%r15,%r12,8),%r10
lea    0x8(%r15,%rsi,8),%r11
lea    (%r14,%r12,8),%rbp
lea    (%r14,%rsi,8),%r13
add    $0x8,%r13
lea    (%rbx,%rsi,8),%rsi
add    $0x8,%rsi
cmp    %r11,%r9
setb   -0x10(%rsp)
cmp    %rdx,%r10
setb   -0x18(%rsp)
cmp    %r13,%r9
setb   -0x3d(%rsp)
cmp    %rdx,%rbp
setb   -0x3e(%rsp)
cmp    %rsi,%r9
lea    (%rbx,%r12,8),%r9
setb   -0x3f(%rsp)
cmp    %rdx,%r9
setb   -0x40(%rsp)
cmp    %r13,%r10
setb   %r13b
cmp    %r11,%rbp
setb   -0x41(%rsp)
cmp    %rsi,%r10
setb   %r10b
cmp    %r11,%r9
setb   %bpl
mov    -0x18(%rsp),%dl
test   %dl,-0x10(%rsp)
jne    1666 <copy_border+0x566>
mov    -0x3e(%rsp),%dl
and    %dl,-0x3d(%rsp)
mov    -0x38(%rsp),%rsi
mov    -0x3c(%rsp),%r9d
mov    -0x30(%rsp),%r11d
jne    1319 <copy_border+0x219>
mov    -0x40(%rsp),%dl
and    %dl,-0x3f(%rsp)
jne    1319 <copy_border+0x219>
and    -0x41(%rsp),%r13b
jne    1319 <copy_border+0x219>
and    %bpl,%r10b
jne    1319 <copy_border+0x219>
mov    -0x8(%rsp),%rbp
add    $0x1,%rbp
mov    %rbp,%rdx
and    $0xfffffffffffffffc,%rdx
mov    %rdx,-0x10(%rsp)
add    $0xfffffffffffffffc,%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
mov    %rsi,-0x18(%rsp)
je     1320 <copy_border+0x220>
mov    %rsi,%rdx
and    $0xfffffffffffffffe,%rdx
lea    (%r15,%r12,8),%r10
add    $0x30,%r10
lea    (%rbx,%r12,8),%rsi
add    $0x30,%rsi
lea    (%rax,%r12,8),%r13
add    $0x30,%r13
lea    (%r14,%r12,8),%r11
add    $0x30,%r11
xor    %r9d,%r9d
nopw   0x0(%rax,%rax,1)
movups -0x30(%r11,%r9,8),%xmm0
movups -0x20(%r11,%r9,8),%xmm1
movups %xmm0,-0x30(%r13,%r9,8)
movups %xmm1,-0x20(%r13,%r9,8)
movups -0x30(%rsi,%r9,8),%xmm0
movups -0x20(%rsi,%r9,8),%xmm1
movups %xmm0,-0x30(%r10,%r9,8)
movups %xmm1,-0x20(%r10,%r9,8)
movups -0x10(%r11,%r9,8),%xmm0
movups (%r11,%r9,8),%xmm1
movups %xmm0,-0x10(%r13,%r9,8)
movups %xmm1,0x0(%r13,%r9,8)
movups -0x10(%rsi,%r9,8),%xmm0
movups (%rsi,%r9,8),%xmm1
movups %xmm0,-0x10(%r10,%r9,8)
movups %xmm1,(%r10,%r9,8)
add    $0x8,%r9
add    $0xfffffffffffffffe,%rdx
jne    12b0 <copy_border+0x1b0>
jmp    1323 <copy_border+0x223>
mov    -0x28(%rsp),%r10
jmp    1386 <copy_border+0x286>
xor    %r9d,%r9d
testb  $0x1,-0x18(%rsp)
mov    -0x28(%rsp),%r10
mov    -0x30(%rsp),%r11d
je     1363 <copy_border+0x263>
add    %r12,%r9
movups (%r14,%r9,8),%xmm0
movups 0x10(%r14,%r9,8),%xmm1
movups %xmm0,(%rax,%r9,8)
movups %xmm1,0x10(%rax,%r9,8)
movups (%rbx,%r9,8),%xmm0
movups 0x10(%rbx,%r9,8),%xmm1
movups %xmm0,(%r15,%r9,8)
movups %xmm1,0x10(%r15,%r9,8)
mov    -0x10(%rsp),%rdx
cmp    %rdx,%rbp
jne    1379 <copy_border+0x279>
mov    -0x38(%rsp),%rsi
mov    -0x3c(%rsp),%r9d
jmp    13f8 <copy_border+0x2f8>
add    %rdx,%r12
mov    -0x38(%rsp),%rsi
mov    -0x3c(%rsp),%r9d
sub    %r12d,%ecx
test   $0x1,%cl
jne    1398 <copy_border+0x298>
mov    %r12,%rcx
cmp    %r12d,%r11d
jne    13bc <copy_border+0x2bc>
jmp    13f8 <copy_border+0x2f8>
movsd  (%r14,%r12,8),%xmm0
movsd  %xmm0,(%rax,%r12,8)
movsd  (%rbx,%r12,8),%xmm0
movsd  %xmm0,(%r15,%r12,8)
mov    %r12,%rcx
add    $0x1,%rcx
cmp    %r12d,%r11d
je     13f8 <copy_border+0x2f8>
mov    -0x2c(%rsp),%edx
movsd  (%r14,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,(%r15,%rcx,8)
movsd  0x8(%r14,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rax,%rcx,8)
movsd  0x8(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x8(%r15,%rcx,8)
add    $0x2,%rcx
cmp    %ecx,%edx
jne    13c0 <copy_border+0x2c0>
cmp    %r9d,%edi
jg     164a <copy_border+0x54a>
mov    -0x20(%rsp),%rax
mov    (%r8,%rax,8),%r14
movslq %edi,%r11
mov    (%r8,%r11,8),%r15
mov    (%r8,%r10,8),%r12
movslq %r9d,%rax
mov    (%r8,%rax,8),%rbx
mov    %esi,%r10d
sub    %edi,%r10d
add    $0x1,%r10d
cmp    $0x3,%r10d
jb     15d1 <copy_border+0x4d1>
mov    %rsi,-0x38(%rsp)
lea    (%r15,%r11,8),%rcx
lea    (%r10,%r11,1),%rax
lea    (%r15,%rax,8),%rdx
add    $0x8,%rdx
lea    (%rbx,%r11,8),%rsi
lea    0x8(%rbx,%rax,8),%rbp
lea    (%r14,%r11,8),%r9
lea    (%r14,%rax,8),%rdi
add    $0x8,%rdi
lea    (%r12,%rax,8),%r8
add    $0x8,%r8
cmp    %rbp,%rcx
setb   -0x20(%rsp)
cmp    %rdx,%rsi
setb   -0x2c(%rsp)
cmp    %rdi,%rcx
setb   %al
cmp    %rdx,%r9
setb   -0x3c(%rsp)
cmp    %r8,%rcx
lea    (%r12,%r11,8),%rcx
setb   %r13b
cmp    %rdx,%rcx
setb   -0x30(%rsp)
cmp    %rdi,%rsi
setb   %dl
cmp    %rbp,%r9
setb   %r9b
cmp    %r8,%rsi
setb   %sil
cmp    %rbp,%rcx
setb   %bpl
mov    -0x2c(%rsp),%cl
test   %cl,-0x20(%rsp)
jne    15cc <copy_border+0x4cc>
and    -0x3c(%rsp),%al
jne    15cc <copy_border+0x4cc>
and    -0x30(%rsp),%r13b
jne    15cc <copy_border+0x4cc>
and    %r9b,%dl
jne    15cc <copy_border+0x4cc>
and    %bpl,%sil
jne    15cc <copy_border+0x4cc>
add    $0x1,%r10
mov    %r10,%r8
and    $0xfffffffffffffffc,%r8
lea    -0x4(%r8),%rax
mov    %rax,%r9
shr    $0x2,%r9
add    $0x1,%r9
test   %rax,%rax
je     1655 <copy_border+0x555>
mov    %r9,%rbp
and    $0xfffffffffffffffe,%rbp
lea    (%rbx,%r11,8),%rsi
add    $0x30,%rsi
lea    (%r12,%r11,8),%rax
add    $0x30,%rax
lea    (%r15,%r11,8),%rcx
add    $0x30,%rcx
lea    (%r14,%r11,8),%rdx
add    $0x30,%rdx
xor    %edi,%edi
nop
movups -0x30(%rdx,%rdi,8),%xmm0
movups -0x20(%rdx,%rdi,8),%xmm1
movups %xmm0,-0x30(%rcx,%rdi,8)
movups %xmm1,-0x20(%rcx,%rdi,8)
movups -0x30(%rax,%rdi,8),%xmm0
movups -0x20(%rax,%rdi,8),%xmm1
movups %xmm0,-0x30(%rsi,%rdi,8)
movups %xmm1,-0x20(%rsi,%rdi,8)
movups -0x10(%rdx,%rdi,8),%xmm0
movups (%rdx,%rdi,8),%xmm1
movups %xmm0,-0x10(%rcx,%rdi,8)
movups %xmm1,(%rcx,%rdi,8)
movups -0x10(%rax,%rdi,8),%xmm0
movups (%rax,%rdi,8),%xmm1
movups %xmm0,-0x10(%rsi,%rdi,8)
movups %xmm1,(%rsi,%rdi,8)
add    $0x8,%rdi
add    $0xfffffffffffffffe,%rbp
jne    1530 <copy_border+0x430>
test   $0x1,%r9b
je     15b9 <copy_border+0x4b9>
add    %r11,%rdi
movups (%r14,%rdi,8),%xmm0
movups 0x10(%r14,%rdi,8),%xmm1
movups %xmm0,(%r15,%rdi,8)
movups %xmm1,0x10(%r15,%rdi,8)
movups (%r12,%rdi,8),%xmm0
movups 0x10(%r12,%rdi,8),%xmm1
movups %xmm0,(%rbx,%rdi,8)
movups %xmm1,0x10(%rbx,%rdi,8)
cmp    %r8,%r10
mov    -0x38(%rsp),%rsi
je     164a <copy_border+0x54a>
add    %r8,%r11
jmp    15d1 <copy_border+0x4d1>
mov    -0x38(%rsp),%rsi
mov    %esi,%eax
sub    %r11d,%eax
lea    0x1(%rsi),%ecx
test   $0x1,%al
jne    15e7 <copy_border+0x4e7>
mov    %r11,%rax
cmp    %r11d,%ecx
jne    160b <copy_border+0x50b>
jmp    164a <copy_border+0x54a>
movsd  (%r14,%r11,8),%xmm0
movsd  %xmm0,(%r15,%r11,8)
movsd  (%r12,%r11,8),%xmm0
movsd  %xmm0,(%rbx,%r11,8)
mov    %r11,%rax
add    $0x1,%rax
cmp    %r11d,%ecx
je     164a <copy_border+0x54a>
add    $0x2,%esi
mov    %esi,%ecx
movsd  (%r14,%rax,8),%xmm0
movsd  %xmm0,(%r15,%rax,8)
movsd  (%r12,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
movsd  0x8(%r14,%rax,8),%xmm0
movsd  %xmm0,0x8(%r15,%rax,8)
movsd  0x8(%r12,%rax,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rax,8)
add    $0x2,%rax
cmp    %eax,%ecx
jne    1610 <copy_border+0x510>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edi,%edi
test   $0x1,%r9b
jne    158c <copy_border+0x48c>
jmp    15b9 <copy_border+0x4b9>
mov    -0x38(%rsp),%rsi
mov    -0x28(%rsp),%r10
mov    -0x3c(%rsp),%r9d
mov    -0x30(%rsp),%r11d
jmp    1386 <copy_border+0x286>

LLVM IR (-O0):
define void @copy_border(i32 %0, i32 %1, i32 %2, i32 %3, double** %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca double**
%11 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store double** %4, double*** %10
%12 = load i32, i32* %8
%13 = sub nsw i32 %12, 1
store i32 %13, i32* %11
br label %14
14: ; preds = %56, %5
%15 = load i32, i32* %11
%16 = load i32, i32* %9
%17 = add nsw i32 %16, 1
%18 = icmp sle i32 %15, %17
br i1 %18, label %19, label %59
19: ; preds = %14
%20 = load double**, double*** %10
%21 = load i32, i32* %7
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double*, double** %20, i64 %22
%24 = load double*, double** %23
%25 = load i32, i32* %11
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds double, double* %24, i64 %26
%28 = load double, double* %27
%29 = load double**, double*** %10
%30 = load i32, i32* %6
%31 = sub nsw i32 %30, 1
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double*, double** %29, i64 %32
%34 = load double*, double** %33
%35 = load i32, i32* %11
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, double* %34, i64 %36
store double %28, double* %37
%38 = load double**, double*** %10
%39 = load i32, i32* %6
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double*, double** %38, i64 %40
%42 = load double*, double** %41
%43 = load i32, i32* %11
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, double* %42, i64 %44
%46 = load double, double* %45
%47 = load double**, double*** %10
%48 = load i32, i32* %7
%49 = add nsw i32 %48, 1
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double*, double** %47, i64 %50
%52 = load double*, double** %51
%53 = load i32, i32* %11
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, double* %52, i64 %54
store double %46, double* %55
br label %56
56: ; preds = %19
%57 = load i32, i32* %11
%58 = add nsw i32 %57, 1
store i32 %58, i32* %11
br label %14
59: ; preds = %14
%60 = load i32, i32* %6
%61 = sub nsw i32 %60, 1
store i32 %61, i32* %11
br label %62
62: ; preds = %104, %59
%63 = load i32, i32* %11
%64 = load i32, i32* %7
%65 = add nsw i32 %64, 1
%66 = icmp sle i32 %63, %65
br i1 %66, label %67, label %107
67: ; preds = %62
%68 = load double**, double*** %10
%69 = load i32, i32* %7
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double*, double** %68, i64 %70
%72 = load double*, double** %71
%73 = load i32, i32* %11
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, double* %72, i64 %74
%76 = load double, double* %75
%77 = load double**, double*** %10
%78 = load i32, i32* %6
%79 = sub nsw i32 %78, 1
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds double*, double** %77, i64 %80
%82 = load double*, double** %81
%83 = load i32, i32* %11
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, double* %82, i64 %84
store double %76, double* %85
%86 = load double**, double*** %10
%87 = load i32, i32* %6
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds double*, double** %86, i64 %88
%90 = load double*, double** %89
%91 = load i32, i32* %11
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, double* %90, i64 %92
%94 = load double, double* %93
%95 = load double**, double*** %10
%96 = load i32, i32* %7
%97 = add nsw i32 %96, 1
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double*, double** %95, i64 %98
%100 = load double*, double** %99
%101 = load i32, i32* %11
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, double* %100, i64 %102
store double %94, double* %103
br label %104
104: ; preds = %67
%105 = load i32, i32* %11
%106 = add nsw i32 %105, 1
store i32 %106, i32* %11
br label %62
107: ; preds = %62
ret void
}

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