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[i][cmin - 1] = grid[i][cmax];
    grid[i][cmax + 1] = grid[i][cmin];
  }
  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 -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0xc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x10(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%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),%r9d
lea    0x1(%rcx),%r11d
cmp    %r11d,%r9d
jle    1126 <copy_border+0x26>
add    $0xffffffff,%edi
lea    0x1(%rsi),%r14d
mov    %edi,%r10d
jmp    1428 <copy_border+0x328>
movslq %r9d,%rbp
movslq %esi,%r14
mov    (%r8,%r14,8),%r15
mov    0x8(%r8,%r14,8),%r12
lea    -0x1(%rdi),%r10d
movslq %r10d,%rax
mov    (%r8,%rax,8),%rbx
movslq %edi,%rax
mov    (%r8,%rax,8),%rdi
add    $0x1,%r14d
lea    0x2(%rcx),%r13d
mov    %r13d,%eax
sub    %edx,%eax
cmp    $0x3,%eax
jb     13b1 <copy_border+0x2b1>
mov    %rax,-0x8(%rsp)
mov    %r13d,-0x48(%rsp)
mov    %r14,-0x38(%rsp)
mov    %r11d,-0x40(%rsp)
mov    %r9d,-0x44(%rsp)
mov    %r10d,-0x3c(%rsp)
mov    %rsi,-0x20(%rsp)
lea    (%rbx,%rbp,8),%r10
mov    %rcx,-0x30(%rsp)
mov    %rdx,-0x28(%rsp)
sub    %edx,%ecx
add    $0x2,%ecx
add    %rbp,%rcx
lea    (%rbx,%rcx,8),%rsi
add    $0x8,%rsi
mov    %rbp,%rax
lea    (%r12,%rbp,8),%rbp
lea    0x8(%r12,%rcx,8),%r13
lea    (%r15,%rax,8),%r9
lea    (%r15,%rcx,8),%r14
add    $0x8,%r14
lea    (%rdi,%rcx,8),%r11
add    $0x8,%r11
cmp    %r13,%r10
setb   -0x18(%rsp)
cmp    %rsi,%rbp
setb   -0x49(%rsp)
cmp    %r14,%r10
setb   %dl
cmp    %rsi,%r9
setb   -0x4a(%rsp)
cmp    %r11,%r10
mov    %rax,-0x10(%rsp)
lea    (%rdi,%rax,8),%rcx
setb   %r10b
cmp    %rsi,%rcx
setb   -0x4b(%rsp)
cmp    %r14,%rbp
setb   %sil
cmp    %r13,%r9
setb   %r14b
cmp    %r11,%rbp
setb   %r9b
cmp    %r13,%rcx
setb   %r13b
mov    -0x49(%rsp),%al
test   %al,-0x18(%rsp)
jne    14c4 <copy_border+0x3c4>
and    -0x4a(%rsp),%dl
mov    -0x10(%rsp),%rbp
jne    1318 <copy_border+0x218>
and    -0x4b(%rsp),%r10b
jne    1318 <copy_border+0x218>
and    %r14b,%sil
jne    1318 <copy_border+0x218>
and    %r13b,%r9b
jne    1318 <copy_border+0x218>
mov    -0x8(%rsp),%rax
add    $0x1,%rax
mov    %rax,%rcx
and    $0xfffffffffffffffc,%rcx
mov    %rcx,-0x18(%rsp)
add    $0xfffffffffffffffc,%rcx
mov    %rcx,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rcx,%rcx
je     1342 <copy_border+0x242>
mov    %rdx,%r13
and    $0xfffffffffffffffe,%r13
lea    (%r12,%rbp,8),%r9
add    $0x30,%r9
lea    (%rdi,%rbp,8),%r11
add    $0x30,%r11
lea    (%rbx,%rbp,8),%rsi
add    $0x30,%rsi
lea    (%r15,%rbp,8),%r14
add    $0x30,%r14
xor    %r10d,%r10d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movups -0x30(%r14,%r10,8),%xmm0
movups -0x20(%r14,%r10,8),%xmm1
movups %xmm0,-0x30(%rsi,%r10,8)
movups %xmm1,-0x20(%rsi,%r10,8)
movups -0x30(%r11,%r10,8),%xmm0
movups -0x20(%r11,%r10,8),%xmm1
movups %xmm0,-0x30(%r9,%r10,8)
movups %xmm1,-0x20(%r9,%r10,8)
movups -0x10(%r14,%r10,8),%xmm0
movups (%r14,%r10,8),%xmm1
movups %xmm0,-0x10(%rsi,%r10,8)
movups %xmm1,(%rsi,%r10,8)
movups -0x10(%r11,%r10,8),%xmm0
movups (%r11,%r10,8),%xmm1
movups %xmm0,-0x10(%r9,%r10,8)
movups %xmm1,(%r9,%r10,8)
add    $0x8,%r10
add    $0xfffffffffffffffe,%r13
jne    12b0 <copy_border+0x1b0>
jmp    1345 <copy_border+0x245>
mov    -0x20(%rsp),%rsi
mov    -0x3c(%rsp),%r10d
mov    -0x28(%rsp),%rdx
mov    -0x30(%rsp),%rcx
mov    -0x44(%rsp),%r9d
mov    -0x40(%rsp),%r11d
mov    -0x38(%rsp),%r14
mov    -0x48(%rsp),%r13d
jmp    13b1 <copy_border+0x2b1>
xor    %r10d,%r10d
test   $0x1,%dl
mov    -0x28(%rsp),%rdx
mov    -0x30(%rsp),%rcx
mov    -0x44(%rsp),%r9d
mov    -0x48(%rsp),%r13d
je     138d <copy_border+0x28d>
add    %rbp,%r10
movups (%r15,%r10,8),%xmm0
movups 0x10(%r15,%r10,8),%xmm1
movups %xmm0,(%rbx,%r10,8)
movups %xmm1,0x10(%rbx,%r10,8)
movups (%rdi,%r10,8),%xmm0
movups 0x10(%rdi,%r10,8),%xmm1
movups %xmm0,(%r12,%r10,8)
movups %xmm1,0x10(%r12,%r10,8)
mov    -0x18(%rsp),%rsi
cmp    %rsi,%rax
mov    %rsi,%rax
mov    -0x20(%rsp),%rsi
mov    -0x3c(%rsp),%r10d
mov    -0x40(%rsp),%r11d
mov    -0x38(%rsp),%r14
je     1428 <copy_border+0x328>
add    %rax,%rbp
mov    %ecx,%eax
sub    %ebp,%eax
test   $0x1,%al
jne    13c3 <copy_border+0x2c3>
mov    %rbp,%rax
cmp    %ebp,%r11d
jne    13e5 <copy_border+0x2e5>
jmp    1428 <copy_border+0x328>
movsd  (%r15,%rbp,8),%xmm0
movsd  %xmm0,(%rbx,%rbp,8)
movsd  (%rdi,%rbp,8),%xmm0
movsd  %xmm0,(%r12,%rbp,8)
mov    %rbp,%rax
add    $0x1,%rax
cmp    %ebp,%r11d
je     1428 <copy_border+0x328>
mov    %r13d,%ebp
nopl   0x0(%rax,%rax,1)
movsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
movsd  (%rdi,%rax,8),%xmm0
movsd  %xmm0,(%r12,%rax,8)
movsd  0x8(%r15,%rax,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rax,8)
movsd  0x8(%rdi,%rax,8),%xmm0
movsd  %xmm0,0x8(%r12,%rax,8)
add    $0x2,%rax
cmp    %eax,%ebp
jne    13f0 <copy_border+0x2f0>
cmp    %r14d,%r10d
jg     14b9 <copy_border+0x3b9>
movslq %ecx,%rax
movslq %r9d,%rcx
movslq %edx,%rdx
movslq %r11d,%rdi
movslq %r10d,%rbp
lea    0x2(%rsi),%r9d
mov    %r9d,%ebx
sub    %r10d,%ebx
add    $0x1,%esi
test   $0x1,%bl
je     146e <copy_border+0x36e>
mov    (%r8,%rbp,8),%rbx
movsd  (%rbx,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
movsd  (%rbx,%rdx,8),%xmm0
movsd  %xmm0,(%rbx,%rdi,8)
add    $0x1,%rbp
cmp    %r10d,%esi
je     14b9 <copy_border+0x3b9>
mov    %r9d,%esi
cs nopw 0x0(%rax,%rax,1)
mov    (%r8,%rbp,8),%rbx
movsd  (%rbx,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
movsd  (%rbx,%rdx,8),%xmm0
movsd  %xmm0,(%rbx,%rdi,8)
mov    0x8(%r8,%rbp,8),%rbx
movsd  (%rbx,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
movsd  (%rbx,%rdx,8),%xmm0
movsd  %xmm0,(%rbx,%rdi,8)
add    $0x2,%rbp
cmp    %ebp,%esi
jne    1480 <copy_border+0x380>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    -0x20(%rsp),%rsi
mov    -0x3c(%rsp),%r10d
mov    -0x28(%rsp),%rdx
mov    -0x30(%rsp),%rcx
mov    -0x44(%rsp),%r9d
mov    -0x40(%rsp),%r11d
mov    -0x38(%rsp),%r14
mov    -0x10(%rsp),%rbp
mov    -0x48(%rsp),%r13d
jmp    13b1 <copy_border+0x2b1>

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* %11
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double*, double** %68, i64 %70
%72 = load double*, double** %71
%73 = load i32, i32* %9
%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* %11
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double*, double** %77, i64 %79
%81 = load double*, double** %80
%82 = load i32, i32* %8
%83 = sub nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, double* %81, i64 %84
store double %76, double* %85
%86 = load double**, double*** %10
%87 = load i32, i32* %11
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds double*, double** %86, i64 %88
%90 = load double*, double** %89
%91 = load i32, i32* %8
%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* %11
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double*, double** %95, i64 %97
%99 = load double*, double** %98
%100 = load i32, i32* %9
%101 = add nsw i32 %100, 1
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, double* %99, 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 %238, label %192
192: ; preds = %188
%193 = sext i32 %3 to i64
%194 = sext i32 %6 to i64
%195 = sext i32 %2 to i64
%196 = sext i32 %7 to i64
%197 = sext i32 %190 to i64
%198 = add i32 %1, 2
%199 = sub i32 %198, %190
%200 = add i32 %1, 1
%201 = and i32 %199, 1
%202 = icmp eq i32 %201, 0
br i1 %202, label %213, label %203
203: ; preds = %192
%204 = getelementptr inbounds double*, double** %4, i64 %197
%205 = load double*, double** %204
%206 = getelementptr inbounds double, double* %205, i64 %193
%207 = load double, double* %206
%208 = getelementptr inbounds double, double* %205, i64 %194
store double %207, double* %208
%209 = getelementptr inbounds double, double* %205, i64 %195
%210 = load double, double* %209
%211 = getelementptr inbounds double, double* %205, i64 %196
store double %210, double* %211
%212 = add nsw i64 %197, 1
br label %213
213: ; preds = %203, %192
%214 = phi i64 [ %197, %192 ], [ %212, %203 ]
%215 = icmp eq i32 %200, %190
br i1 %215, label %238, label %216
216: ; preds = %213, %216
%217 = phi i64 [ %235, %216 ], [ %214, %213 ]
%218 = getelementptr inbounds double*, double** %4, i64 %217
%219 = load double*, double** %218
%220 = getelementptr inbounds double, double* %219, i64 %193
%221 = load double, double* %220
%222 = getelementptr inbounds double, double* %219, i64 %194
store double %221, double* %222
%223 = getelementptr inbounds double, double* %219, i64 %195
%224 = load double, double* %223
%225 = getelementptr inbounds double, double* %219, i64 %196
store double %224, double* %225
%226 = add nsw i64 %217, 1
%227 = getelementptr inbounds double*, double** %4, i64 %226
%228 = load double*, double** %227
%229 = getelementptr inbounds double, double* %228, i64 %193
%230 = load double, double* %229
%231 = getelementptr inbounds double, double* %228, i64 %194
store double %230, double* %231
%232 = getelementptr inbounds double, double* %228, i64 %195
%233 = load double, double* %232
%234 = getelementptr inbounds double, double* %228, i64 %196
store double %233, double* %234
%235 = add nsw i64 %217, 2
%236 = trunc i64 %235 to i32
%237 = icmp eq i32 %198, %236
br i1 %237, label %238, label %216
238: ; preds = %213, %216, %188
ret void
}