void comm3(double ***u, int n1, int n2, int n3, int kk) {
  int i1, i2, i3;
#pragma omp for
  for (i3 = 1; i3 < n3 - 1; i3++) {
    for (i2 = 1; i2 < n2 - 1; i2++) {
      u[i3][i2][n1 - 1] = u[i3][i2][1];
      u[i3][i2][0] = u[i3][i2][n1 - 2];
    }
  }
#pragma omp for
  for (i3 = 1; i3 < n3 - 1; i3++) {
    for (i1 = 0; i1 < n1; i1++) {
      u[i3][n2 - 1][i1] = u[i3][1][i1];
      u[i3][0][i1] = u[i3][n2 - 2][i1];
    }
  }
#pragma omp for
  for (i2 = 0; i2 < n2; i2++) {
    for (i1 = 0; i1 < n1; i1++) {
      u[n3 - 1][i2][i1] = u[1][i2][i1];
      u[0][i2][i1] = u[n3 - 2][i2][i1];
    }
  }
}


x86 assembly (clang, -O0):
<comm3>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    11db <comm3+0xdb>
movl   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    -0x10(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    11c8 <comm3+0xc8>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0xc(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1134 <comm3+0x34>
jmp    11cd <comm3+0xcd>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    111c <comm3+0x1c>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    129c <comm3+0x19c>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1289 <comm3+0x189>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x8(%rax),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x10(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x10(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11fa <comm3+0xfa>
jmp    128e <comm3+0x18e>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11e2 <comm3+0xe2>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1358 <comm3+0x258>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1345 <comm3+0x245>
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movslq -0x20(%rbp),%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    12b6 <comm3+0x1b6>
jmp    134a <comm3+0x24a>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12a3 <comm3+0x1a3>
pop    %rbp
ret

x86 assembly (clang, -O2):
<comm3>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rdx,-0x60(%rsp)
mov    %rsi,-0x40(%rsp)
mov    %rdi,%rax
mov    %rdi,%rsi
lea    -0x1(%rcx),%eax
mov    %eax,-0x38(%rsp)
mov    %rcx,-0x30(%rsp)
cmp    $0x3,%ecx
mov    %rdi,-0x58(%rsp)
jl     14d5 <comm3+0x3d5>
mov    -0x38(%rsp),%edx
mov    -0x60(%rsp),%rdi
lea    -0x1(%rdi),%r8d
mov    -0x40(%rsp),%rcx
lea    -0x1(%rcx),%eax
movslq %eax,%rbp
lea    -0x2(%rcx),%eax
movslq %eax,%rbx
mov    %edx,%r13d
lea    -0x1(%r8),%r9
mov    %r9,%r14
and    $0xfffffffffffffffe,%r14
neg    %r14
mov    $0x1,%r10d
jmp    117d <comm3+0x7d>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r10
cmp    %r13,%r10
je     1203 <comm3+0x103>
cmp    $0x3,%edi
jl     1170 <comm3+0x70>
mov    (%rsi,%r10,8),%rax
mov    $0x1,%ecx
cmp    $0x2,%r8d
je     11e1 <comm3+0xe1>
mov    $0x1,%ecx
cs nopw 0x0(%rax,%rax,1)
mov    (%rax,%rcx,8),%rdx
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,(%rdx,%rbp,8)
movsd  (%rdx,%rbx,8),%xmm0
movsd  %xmm0,(%rdx)
mov    0x8(%rax,%rcx,8),%rdx
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,(%rdx,%rbp,8)
movsd  (%rdx,%rbx,8),%xmm0
movsd  %xmm0,(%rdx)
lea    (%r14,%rcx,1),%rdx
add    $0x2,%rdx
add    $0x2,%rcx
cmp    $0x1,%rdx
jne    11a0 <comm3+0xa0>
test   $0x1,%r9b
je     1170 <comm3+0x70>
mov    (%rax,%rcx,8),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,(%rax,%rbp,8)
movsd  (%rax,%rbx,8),%xmm0
movsd  %xmm0,(%rax)
jmp    1170 <comm3+0x70>
cmpl   $0x3,-0x30(%rsp)
jl     14d5 <comm3+0x3d5>
movslq %r8d,%rdx
mov    -0x60(%rsp),%rax
add    $0xfffffffe,%eax
movslq %eax,%rdi
mov    -0x40(%rsp),%eax
mov    %eax,%ecx
and    $0xfffffffc,%ecx
mov    %rcx,-0x28(%rsp)
add    $0xfffffffffffffffc,%rcx
mov    %rcx,-0x8(%rsp)
mov    %rcx,%rbp
shr    $0x2,%rbp
add    $0x1,%rbp
mov    %rbp,%rcx
mov    %rbp,-0x10(%rsp)
and    $0xfffffffffffffffe,%rbp
mov    %rbp,-0x18(%rsp)
mov    %rax,%rcx
neg    %rcx
mov    %rcx,-0x48(%rsp)
mov    $0x1,%ebp
mov    %r13,-0x68(%rsp)
mov    %rdi,-0x50(%rsp)
jmp    127d <comm3+0x17d>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbp
cmp    %r13,%rbp
je     14d5 <comm3+0x3d5>
cmpl   $0x0,-0x40(%rsp)
jle    1270 <comm3+0x170>
mov    (%rsi,%rbp,8),%rcx
mov    (%rcx),%r8
mov    0x8(%rcx),%r12
mov    (%rcx,%rdx,8),%r14
mov    (%rcx,%rdi,8),%r15
cmpl   $0x4,-0x40(%rsp)
jae    12b0 <comm3+0x1b0>
xor    %ecx,%ecx
jmp    1440 <comm3+0x340>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rdx,%rdi
lea    (%r14,%rax,8),%rdx
lea    (%r8,%rax,8),%rsi
lea    (%r12,%rax,8),%rbx
lea    (%r15,%rax,8),%rcx
cmp    %rsi,%r14
setb   -0x69(%rsp)
cmp    %rdx,%r8
setb   -0x6a(%rsp)
cmp    %rbx,%r14
setb   %r11b
cmp    %rdx,%r12
setb   -0x20(%rsp)
cmp    %rcx,%r14
setb   %r9b
cmp    %rdx,%r15
setb   %dl
cmp    %rbx,%r8
setb   %r10b
cmp    %rsi,%r12
setb   %bl
cmp    %rcx,%r8
setb   %r13b
cmp    %rsi,%r15
setb   %sil
mov    -0x6a(%rsp),%cl
test   %cl,-0x69(%rsp)
jne    1421 <comm3+0x321>
and    -0x20(%rsp),%r11b
jne    1421 <comm3+0x321>
and    %dl,%r9b
jne    1421 <comm3+0x321>
and    %bl,%r10b
jne    1421 <comm3+0x321>
mov    $0x0,%ecx
and    %sil,%r13b
mov    -0x58(%rsp),%rsi
mov    -0x68(%rsp),%r13
mov    %rdi,%rdx
mov    -0x50(%rsp),%rdi
jne    1440 <comm3+0x340>
cmpq   $0x0,-0x8(%rsp)
je     14c2 <comm3+0x3c2>
mov    -0x18(%rsp),%rbx
xor    %r13d,%r13d
nopl   0x0(%rax)
movups (%r12,%r13,8),%xmm0
movups 0x10(%r12,%r13,8),%xmm1
movups %xmm0,(%r14,%r13,8)
movups %xmm1,0x10(%r14,%r13,8)
movups (%r15,%r13,8),%xmm0
movups 0x10(%r15,%r13,8),%xmm1
movups %xmm0,(%r8,%r13,8)
movups %xmm1,0x10(%r8,%r13,8)
movups 0x20(%r12,%r13,8),%xmm0
movups 0x30(%r12,%r13,8),%xmm1
movups %xmm0,0x20(%r14,%r13,8)
movups %xmm1,0x30(%r14,%r13,8)
movups 0x20(%r15,%r13,8),%xmm0
movups 0x30(%r15,%r13,8),%xmm1
movups %xmm0,0x20(%r8,%r13,8)
movups %xmm1,0x30(%r8,%r13,8)
add    $0x8,%r13
add    $0xfffffffffffffffe,%rbx
jne    1370 <comm3+0x270>
testb  $0x1,-0x10(%rsp)
je     1409 <comm3+0x309>
movups (%r12,%r13,8),%xmm0
movups 0x10(%r12,%r13,8),%xmm1
movups %xmm0,(%r14,%r13,8)
movups %xmm1,0x10(%r14,%r13,8)
movups (%r15,%r13,8),%xmm0
movups 0x10(%r15,%r13,8),%xmm1
movups %xmm0,(%r8,%r13,8)
movups %xmm1,0x10(%r8,%r13,8)
mov    -0x28(%rsp),%rbx
mov    %rbx,%rcx
cmp    %rax,%rbx
mov    -0x68(%rsp),%r13
je     1270 <comm3+0x170>
jmp    1440 <comm3+0x340>
xor    %ecx,%ecx
mov    -0x58(%rsp),%rsi
mov    -0x68(%rsp),%r13
mov    %rdi,%rdx
mov    -0x50(%rsp),%rdi
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rcx,%rbx
test   $0x1,%al
je     1466 <comm3+0x366>
movsd  (%r12,%rcx,8),%xmm0
movsd  %xmm0,(%r14,%rcx,8)
movsd  (%r15,%rcx,8),%xmm0
movsd  %xmm0,(%r8,%rcx,8)
mov    %rcx,%rbx
or     $0x1,%rbx
not    %rcx
cmp    -0x48(%rsp),%rcx
je     1270 <comm3+0x170>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%r12,%rbx,8),%xmm0
movsd  %xmm0,(%r14,%rbx,8)
movsd  (%r15,%rbx,8),%xmm0
movsd  %xmm0,(%r8,%rbx,8)
movsd  0x8(%r12,%rbx,8),%xmm0
movsd  %xmm0,0x8(%r14,%rbx,8)
movsd  0x8(%r15,%rbx,8),%xmm0
movsd  %xmm0,0x8(%r8,%rbx,8)
add    $0x2,%rbx
cmp    %rbx,%rax
jne    1480 <comm3+0x380>
jmp    1270 <comm3+0x170>
xor    %r13d,%r13d
testb  $0x1,-0x10(%rsp)
jne    13dd <comm3+0x2dd>
jmp    1409 <comm3+0x309>
mov    -0x60(%rsp),%rcx
test   %ecx,%ecx
jle    17bd <comm3+0x6bd>
movslq -0x38(%rsp),%r8
mov    -0x30(%rsp),%rax
add    $0xfffffffe,%eax
movslq %eax,%r15
mov    %ecx,%edi
mov    -0x40(%rsp),%r9d
mov    %r9d,%eax
and    $0xfffffffc,%eax
mov    %rax,-0x50(%rsp)
add    $0xfffffffffffffffc,%rax
mov    %rax,-0x30(%rsp)
mov    %rax,%rcx
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %rcx,%rax
mov    %rcx,-0x38(%rsp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,-0x28(%rsp)
mov    %r9,%rax
neg    %rax
mov    %rax,-0x20(%rsp)
xor    %r14d,%r14d
mov    %r8,-0x48(%rsp)
mov    %r15,-0x68(%rsp)
mov    %rdi,-0x60(%rsp)
jmp    155d <comm3+0x45d>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r14
cmp    %rdi,%r14
je     17bd <comm3+0x6bd>
cmpl   $0x0,-0x40(%rsp)
jle    1550 <comm3+0x450>
mov    (%rsi),%rax
mov    0x8(%rsi),%rcx
mov    (%rcx,%r14,8),%rbp
mov    (%rsi,%r8,8),%rcx
mov    (%rcx,%r14,8),%rbx
mov    (%rsi,%r15,8),%rcx
mov    (%rcx,%r14,8),%rdx
mov    (%rax,%r14,8),%r11
cmpl   $0x4,-0x40(%rsp)
jae    15a0 <comm3+0x4a0>
xor    %eax,%eax
jmp    1740 <comm3+0x640>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    (%rbx,%r9,8),%rsi
lea    (%r11,%r9,8),%r13
lea    0x0(,%r9,8),%rcx
add    %rbp,%rcx
lea    (%rdx,%r9,8),%rax
cmp    %r13,%rbx
setb   -0x69(%rsp)
cmp    %rsi,%r11
setb   %dil
cmp    %rcx,%rbx
setb   %r15b
cmp    %rsi,%rbp
setb   -0x6a(%rsp)
cmp    %rax,%rbx
setb   %r12b
cmp    %rsi,%rdx
setb   %sil
cmp    %rcx,%r11
setb   %r8b
cmp    %r13,%rbp
setb   %cl
cmp    %rax,%r11
setb   %r10b
cmp    %r13,%rdx
setb   %r13b
test   %dil,-0x69(%rsp)
jne    171a <comm3+0x61a>
and    -0x6a(%rsp),%r15b
jne    171a <comm3+0x61a>
and    %sil,%r12b
jne    171a <comm3+0x61a>
and    %cl,%r8b
mov    -0x58(%rsp),%rsi
jne    1723 <comm3+0x623>
mov    $0x0,%eax
and    %r13b,%r10b
mov    -0x48(%rsp),%r8
mov    -0x68(%rsp),%r15
mov    -0x60(%rsp),%rdi
jne    1740 <comm3+0x640>
cmpq   $0x0,-0x30(%rsp)
je     170e <comm3+0x60e>
mov    -0x28(%rsp),%rax
xor    %r10d,%r10d
nopl   0x0(%rax)
movups 0x0(%rbp,%r10,8),%xmm0
movups 0x10(%rbp,%r10,8),%xmm1
movups %xmm0,(%rbx,%r10,8)
movups %xmm1,0x10(%rbx,%r10,8)
movups (%rdx,%r10,8),%xmm0
movups 0x10(%rdx,%r10,8),%xmm1
movups %xmm0,(%r11,%r10,8)
movups %xmm1,0x10(%r11,%r10,8)
movups 0x20(%rbp,%r10,8),%xmm0
movups 0x30(%rbp,%r10,8),%xmm1
movups %xmm0,0x20(%rbx,%r10,8)
movups %xmm1,0x30(%rbx,%r10,8)
movups 0x20(%rdx,%r10,8),%xmm0
movups 0x30(%rdx,%r10,8),%xmm1
movups %xmm0,0x20(%r11,%r10,8)
movups %xmm1,0x30(%r11,%r10,8)
add    $0x8,%r10
add    $0xfffffffffffffffe,%rax
jne    1660 <comm3+0x560>
testb  $0x1,-0x38(%rsp)
je     16fb <comm3+0x5fb>
movups 0x0(%rbp,%r10,8),%xmm0
movups 0x10(%rbp,%r10,8),%xmm1
movups %xmm0,(%rbx,%r10,8)
movups %xmm1,0x10(%rbx,%r10,8)
movups (%rdx,%r10,8),%xmm0
movups 0x10(%rdx,%r10,8),%xmm1
movups %xmm0,(%r11,%r10,8)
movups %xmm1,0x10(%r11,%r10,8)
mov    -0x50(%rsp),%rcx
mov    %rcx,%rax
cmp    %r9,%rcx
je     1550 <comm3+0x450>
jmp    1740 <comm3+0x640>
xor    %r10d,%r10d
testb  $0x1,-0x38(%rsp)
jne    16ce <comm3+0x5ce>
jmp    16fb <comm3+0x5fb>
xor    %eax,%eax
mov    -0x58(%rsp),%rsi
jmp    1725 <comm3+0x625>
xor    %eax,%eax
mov    -0x48(%rsp),%r8
mov    -0x68(%rsp),%r15
mov    -0x60(%rsp),%rdi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rax,%rcx
test   $0x1,%r9b
je     1766 <comm3+0x666>
movsd  0x0(%rbp,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
movsd  (%rdx,%rax,8),%xmm0
movsd  %xmm0,(%r11,%rax,8)
mov    %rax,%rcx
or     $0x1,%rcx
not    %rax
cmp    -0x20(%rsp),%rax
je     1550 <comm3+0x450>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  0x0(%rbp,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
movsd  (%rdx,%rcx,8),%xmm0
movsd  %xmm0,(%r11,%rcx,8)
movsd  0x8(%rbp,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rcx,8)
movsd  0x8(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x8(%r11,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%r9
jne    1780 <comm3+0x680>
jmp    1550 <comm3+0x450>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @comm3(double*** %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%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**** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
store i32 1, i32* %13
br label %14
14: ; preds = %78, %5
%15 = load i32, i32* %13
%16 = load i32, i32* %9
%17 = sub nsw i32 %16, 1
%18 = icmp slt i32 %15, %17
br i1 %18, label %19, label %81
19: ; preds = %14
store i32 1, i32* %12
br label %20
20: ; preds = %74, %19
%21 = load i32, i32* %12
%22 = load i32, i32* %8
%23 = sub nsw i32 %22, 1
%24 = icmp slt i32 %21, %23
br i1 %24, label %25, label %77
25: ; preds = %20
%26 = load double***, double**** %6
%27 = load i32, i32* %13
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds double**, double*** %26, i64 %28
%30 = load double**, double*** %29
%31 = load i32, i32* %12
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double*, double** %30, i64 %32
%34 = load double*, double** %33
%35 = getelementptr inbounds double, double* %34, i64 1
%36 = load double, double* %35
%37 = load double***, double**** %6
%38 = load i32, i32* %13
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double**, double*** %37, i64 %39
%41 = load double**, double*** %40
%42 = load i32, i32* %12
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds double*, double** %41, i64 %43
%45 = load double*, double** %44
%46 = load i32, i32* %7
%47 = sub nsw i32 %46, 1
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, double* %45, i64 %48
store double %36, double* %49
%50 = load double***, double**** %6
%51 = load i32, i32* %13
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds double**, double*** %50, i64 %52
%54 = load double**, double*** %53
%55 = load i32, i32* %12
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double*, double** %54, i64 %56
%58 = load double*, double** %57
%59 = load i32, i32* %7
%60 = sub nsw i32 %59, 2
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds double, double* %58, i64 %61
%63 = load double, double* %62
%64 = load double***, double**** %6
%65 = load i32, i32* %13
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double**, double*** %64, i64 %66
%68 = load double**, double*** %67
%69 = load i32, i32* %12
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double*, double** %68, i64 %70
%72 = load double*, double** %71
%73 = getelementptr inbounds double, double* %72, i64 0
store double %63, double* %73
br label %74
74: ; preds = %25
%75 = load i32, i32* %12
%76 = add nsw i32 %75, 1
store i32 %76, i32* %12
br label %20
77: ; preds = %20
br label %78
78: ; preds = %77
%79 = load i32, i32* %13
%80 = add nsw i32 %79, 1
store i32 %80, i32* %13
br label %14
81: ; preds = %14
store i32 1, i32* %13
br label %82
82: ; preds = %145, %81
%83 = load i32, i32* %13
%84 = load i32, i32* %9
%85 = sub nsw i32 %84, 1
%86 = icmp slt i32 %83, %85
br i1 %86, label %87, label %148
87: ; preds = %82
store i32 0, i32* %11
br label %88
88: ; preds = %141, %87
%89 = load i32, i32* %11
%90 = load i32, i32* %7
%91 = icmp slt i32 %89, %90
br i1 %91, label %92, label %144
92: ; preds = %88
%93 = load double***, double**** %6
%94 = load i32, i32* %13
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double**, double*** %93, i64 %95
%97 = load double**, double*** %96
%98 = getelementptr inbounds double*, double** %97, i64 1
%99 = load double*, double** %98
%100 = load i32, i32* %11
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds double, double* %99, i64 %101
%103 = load double, double* %102
%104 = load double***, double**** %6
%105 = load i32, i32* %13
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double**, double*** %104, i64 %106
%108 = load double**, double*** %107
%109 = load i32, i32* %8
%110 = sub nsw i32 %109, 1
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds double*, double** %108, i64 %111
%113 = load double*, double** %112
%114 = load i32, i32* %11
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds double, double* %113, i64 %115
store double %103, double* %116
%117 = load double***, double**** %6
%118 = load i32, i32* %13
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds double**, double*** %117, i64 %119
%121 = load double**, double*** %120
%122 = load i32, i32* %8
%123 = sub nsw i32 %122, 2
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds double*, double** %121, i64 %124
%126 = load double*, double** %125
%127 = load i32, i32* %11
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds double, double* %126, i64 %128
%130 = load double, double* %129
%131 = load double***, double**** %6
%132 = load i32, i32* %13
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double**, double*** %131, i64 %133
%135 = load double**, double*** %134
%136 = getelementptr inbounds double*, double** %135, i64 0
%137 = load double*, double** %136
%138 = load i32, i32* %11
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds double, double* %137, i64 %139
store double %130, double* %140
br label %141
141: ; preds = %92
%142 = load i32, i32* %11
%143 = add nsw i32 %142, 1
store i32 %143, i32* %11
br label %88
144: ; preds = %88
br label %145
145: ; preds = %144
%146 = load i32, i32* %13
%147 = add nsw i32 %146, 1
store i32 %147, i32* %13
br label %82
148: ; preds = %82
store i32 0, i32* %12
br label %149
149: ; preds = %211, %148
%150 = load i32, i32* %12
%151 = load i32, i32* %8
%152 = icmp slt i32 %150, %151
br i1 %152, label %153, label %214
153: ; preds = %149
store i32 0, i32* %11
br label %154
154: ; preds = %207, %153
%155 = load i32, i32* %11
%156 = load i32, i32* %7
%157 = icmp slt i32 %155, %156
br i1 %157, label %158, label %210
158: ; preds = %154
%159 = load double***, double**** %6
%160 = getelementptr inbounds double**, double*** %159, i64 1
%161 = load double**, double*** %160
%162 = load i32, i32* %12
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds double*, double** %161, i64 %163
%165 = load double*, double** %164
%166 = load i32, i32* %11
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds double, double* %165, i64 %167
%169 = load double, double* %168
%170 = load double***, double**** %6
%171 = load i32, i32* %9
%172 = sub nsw i32 %171, 1
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double**, double*** %170, i64 %173
%175 = load double**, double*** %174
%176 = load i32, i32* %12
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds double*, double** %175, i64 %177
%179 = load double*, double** %178
%180 = load i32, i32* %11
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds double, double* %179, i64 %181
store double %169, double* %182
%183 = load double***, double**** %6
%184 = load i32, i32* %9
%185 = sub nsw i32 %184, 2
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds double**, double*** %183, i64 %186
%188 = load double**, double*** %187
%189 = load i32, i32* %12
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds double*, double** %188, i64 %190
%192 = load double*, double** %191
%193 = load i32, i32* %11
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds double, double* %192, i64 %194
%196 = load double, double* %195
%197 = load double***, double**** %6
%198 = getelementptr inbounds double**, double*** %197, i64 0
%199 = load double**, double*** %198
%200 = load i32, i32* %12
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds double*, double** %199, i64 %201
%203 = load double*, double** %202
%204 = load i32, i32* %11
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds double, double* %203, i64 %205
store double %196, double* %206
br label %207
207: ; preds = %158
%208 = load i32, i32* %11
%209 = add nsw i32 %208, 1
store i32 %209, i32* %11
br label %154
210: ; preds = %154
br label %211
211: ; preds = %210
%212 = load i32, i32* %12
%213 = add nsw i32 %212, 1
store i32 %213, i32* %12
br label %149
214: ; preds = %149
ret void
}

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