void kernel_fdtd_2d(int tmax, int nx, int ny, double ex[1000 + 0][1200 + 0],
                    double ey[1000 + 0][1200 + 0],
                    double hz[1000 + 0][1200 + 0], double _fict_[500 + 0]) {
  int t, i, j;
#pragma scop
  for (t = 0; t < tmax; t++) {
    for (j = 0; j < ny; j++)
      ey[0][j] = _fict_[t];
    for (i = 1; i < nx; i++)
      for (j = 0; j < ny; j++)
        ey[i][j] = ey[i][j] - 0.5 * (hz[i][j] - hz[i - 1][j]);
    for (i = 0; i < nx; i++)
      for (j = 1; j < ny; j++)
        ex[i][j] = ex[i][j] - 0.5 * (hz[i][j] - hz[i][j - 1]);
    for (i = 0; i < nx - 1; i++)
      for (j = 0; j < ny - 1; j++)
        hz[i][j] = hz[i][j] -
                   0.7 * (ex[i][j + 1] - ex[i][j] + ey[i + 1][j] - ey[i][j]);
  }
#pragma endscop
}


x86 assembly (clang, -O0):
<kernel_fdtd_2d>:
push   %rbp
mov    %rsp,%rbp
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    141b <kernel_fdtd_2d+0x31b>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    116b <kernel_fdtd_2d+0x6b>
mov    0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1137 <kernel_fdtd_2d+0x37>
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1233 <kernel_fdtd_2d+0x133>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1220 <kernel_fdtd_2d+0x120>
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  0xe19(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1185 <kernel_fdtd_2d+0x85>
jmp    1225 <kernel_fdtd_2d+0x125>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1172 <kernel_fdtd_2d+0x72>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12fb <kernel_fdtd_2d+0x1fb>
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12e8 <kernel_fdtd_2d+0x1e8>
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  0xd51(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    124d <kernel_fdtd_2d+0x14d>
jmp    12ed <kernel_fdtd_2d+0x1ed>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    123a <kernel_fdtd_2d+0x13a>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1408 <kernel_fdtd_2d+0x308>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    13f5 <kernel_fdtd_2d+0x2f5>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
mov    -0x34(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  0xc3c(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    131a <kernel_fdtd_2d+0x21a>
jmp    13fa <kernel_fdtd_2d+0x2fa>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1302 <kernel_fdtd_2d+0x202>
jmp    140d <kernel_fdtd_2d+0x30d>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1124 <kernel_fdtd_2d+0x24>
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_fdtd_2d>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x80,%rsp
mov    %rdx,-0x80(%rsp)
mov    %rsi,-0x78(%rsp)
test   %edi,%edi
jle    196c <kernel_fdtd_2d+0x86c>
mov    %r9,%r11
mov    0xb8(%rsp),%rbp
mov    -0x80(%rsp),%rax
lea    -0x1(%rax),%r12d
mov    %edi,%edx
mov    %rdx,0x40(%rsp)
mov    %eax,%r14d
lea    -0x1(%r14),%rax
mov    %r14d,%edx
and    $0xfffffffc,%edx
mov    %rdx,-0x50(%rsp)
add    $0xfffffffffffffffc,%rdx
mov    %rdx,-0x8(%rsp)
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %edx,%esi
and    $0x3,%esi
and    $0xfffffffffffffffc,%rdx
mov    %rdx,-0x20(%rsp)
mov    %r14d,%r10d
and    $0x3,%r10d
mov    %r14,%rdx
neg    %rdx
mov    %rdx,-0x30(%rsp)
mov    %rax,-0x38(%rsp)
mov    %rax,%r9
and    $0xfffffffffffffffc,%r9
mov    %r12d,%eax
and    $0xfffffffc,%eax
mov    %rax,0x50(%rsp)
mov    %rsi,-0x10(%rsp)
mov    %rsi,%rbx
shl    $0x5,%rbx
lea    0x0(,%r14,8),%rax
and    $0xffffffffffffffe0,%rax
mov    %rax,0x60(%rsp)
movsd  0xe63(%rip),%xmm0
movapd 0xe3b(%rip),%xmm1
movsd  0xe5b(%rip),%xmm2
movapd 0xe3a(%rip),%xmm8
mov    -0x78(%rsp),%rax
lea    -0x1(%rax),%r15d
mov    %eax,%eax
mov    %rax,-0x28(%rsp)
lea    0x1(%r12),%rax
mov    %rax,0x70(%rsp)
lea    (%r8,%r14,8),%rax
mov    %rax,(%rsp)
lea    0x1(%r9),%rax
mov    %rax,0x58(%rsp)
lea    0x10(%r8),%rax
mov    %rax,-0x18(%rsp)
lea    0x2590(%r8),%rax
mov    %rax,-0x60(%rsp)
lea    0x2580(%r8),%rax
mov    %rax,0x20(%rsp)
lea    0x2590(%r11),%rax
mov    %rax,0x18(%rsp)
lea    0x2580(%r11),%rax
mov    %rax,0x10(%rsp)
lea    0x18(%r11),%rax
mov    %rax,0x28(%rsp)
lea    0x18(%rcx),%rax
mov    %rax,-0x58(%rsp)
lea    0x10(%r11),%rax
mov    %rax,0x8(%rsp)
xor    %edi,%edi
mov    %r8,-0x68(%rsp)
mov    %r11,-0x40(%rsp)
mov    %r10,0x38(%rsp)
mov    %r9,0x68(%rsp)
mov    %rbx,0x30(%rsp)
mov    %r15,-0x70(%rsp)
mov    %rcx,-0x48(%rsp)
jmp    12ab <kernel_fdtd_2d+0x1ab>
nopl   0x0(%rax)
mov    0x48(%rsp),%rdi
add    $0x1,%rdi
cmp    0x40(%rsp),%rdi
mov    -0x68(%rsp),%r8
mov    0xb8(%rsp),%rbp
mov    0x38(%rsp),%r10
mov    0x30(%rsp),%rbx
je     196c <kernel_fdtd_2d+0x86c>
cmpl   $0x0,-0x80(%rsp)
jle    1410 <kernel_fdtd_2d+0x310>
cmpl   $0x4,-0x80(%rsp)
jb     12e2 <kernel_fdtd_2d+0x1e2>
lea    0x8(,%rdi,8),%rax
add    %rbp,%rax
cmp    %r8,%rax
jbe    1361 <kernel_fdtd_2d+0x261>
lea    0x0(,%rdi,8),%rax
add    %rbp,%rax
cmp    (%rsp),%rax
jae    1361 <kernel_fdtd_2d+0x261>
xor    %eax,%eax
mov    %rax,%rsi
not    %rsi
add    %r14,%rsi
test   %r10,%r10
je     1316 <kernel_fdtd_2d+0x216>
mov    %r10,%rdx
cs nopw 0x0(%rax,%rax,1)
nop
movsd  0x0(%rbp,%rdi,8),%xmm4
movsd  %xmm4,(%r8,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rdx
jne    1300 <kernel_fdtd_2d+0x200>
cmp    $0x3,%rsi
jb     1410 <kernel_fdtd_2d+0x310>
movsd  0x0(%rbp,%rdi,8),%xmm4
movsd  %xmm4,(%r8,%rax,8)
movsd  0x0(%rbp,%rdi,8),%xmm4
movsd  %xmm4,0x8(%r8,%rax,8)
movsd  0x0(%rbp,%rdi,8),%xmm4
movsd  %xmm4,0x10(%r8,%rax,8)
movsd  0x0(%rbp,%rdi,8),%xmm4
movsd  %xmm4,0x18(%r8,%rax,8)
add    $0x4,%rax
cmp    %rax,%r14
jne    1320 <kernel_fdtd_2d+0x220>
jmp    1410 <kernel_fdtd_2d+0x310>
cmpq   $0xc,-0x8(%rsp)
jae    136d <kernel_fdtd_2d+0x26d>
xor    %eax,%eax
jmp    13c1 <kernel_fdtd_2d+0x2c1>
movsd  0x0(%rbp,%rdi,8),%xmm4
unpcklpd %xmm4,%xmm4
mov    -0x20(%rsp),%rdx
xor    %eax,%eax
xchg   %ax,%ax
movupd %xmm4,(%r8,%rax,8)
movupd %xmm4,0x10(%r8,%rax,8)
movupd %xmm4,0x20(%r8,%rax,8)
movupd %xmm4,0x30(%r8,%rax,8)
movupd %xmm4,0x40(%r8,%rax,8)
movupd %xmm4,0x50(%r8,%rax,8)
movupd %xmm4,0x60(%r8,%rax,8)
movupd %xmm4,0x70(%r8,%rax,8)
add    $0x10,%rax
add    $0xfffffffffffffffc,%rdx
jne    1380 <kernel_fdtd_2d+0x280>
cmpq   $0x0,-0x10(%rsp)
je     13f4 <kernel_fdtd_2d+0x2f4>
movsd  0x0(%rbp,%rdi,8),%xmm4
unpcklpd %xmm4,%xmm4
mov    -0x18(%rsp),%rdx
lea    (%rdx,%rax,8),%rax
xor    %edx,%edx
xchg   %ax,%ax
movupd %xmm4,-0x10(%rax,%rdx,1)
movupd %xmm4,(%rax,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%rbx
jne    13e0 <kernel_fdtd_2d+0x2e0>
mov    -0x50(%rsp),%rdx
mov    %rdx,%rax
cmp    %r14,%rdx
jne    12e4 <kernel_fdtd_2d+0x1e4>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rdi,0x48(%rsp)
cmpl   $0x2,-0x78(%rsp)
jl     15d0 <kernel_fdtd_2d+0x4d0>
mov    $0x1,%r13d
mov    0x10(%rsp),%rbp
mov    0x20(%rsp),%r15
mov    0x18(%rsp),%r10
mov    -0x60(%rsp),%rax
xor    %esi,%esi
jmp    146e <kernel_fdtd_2d+0x36e>
xchg   %ax,%ax
add    $0x1,%r13
add    $0x1,%rsi
add    $0x2580,%rax
add    $0x2580,%r10
add    $0x2580,%r15
add    $0x2580,%rbp
cmp    -0x28(%rsp),%r13
je     15d0 <kernel_fdtd_2d+0x4d0>
cmpl   $0x0,-0x80(%rsp)
jle    1440 <kernel_fdtd_2d+0x340>
imul   $0x2580,%r13,%rdx
lea    (%r8,%rdx,1),%r9
add    %r11,%rdx
cmpl   $0x4,-0x80(%rsp)
jb     14ae <kernel_fdtd_2d+0x3ae>
lea    (%rdx,%r14,8),%rdi
cmp    %rdi,%r9
jae    154e <kernel_fdtd_2d+0x44e>
imul   $0x2580,%rsi,%rdi
add    %r11,%rdi
lea    (%r9,%r14,8),%rbx
cmp    %rbx,%rdi
jae    154e <kernel_fdtd_2d+0x44e>
xor    %ebx,%ebx
mov    %rbx,%rdi
test   $0x1,%r14b
je     14e8 <kernel_fdtd_2d+0x3e8>
lea    -0x1(%r13),%rdi
movsd  (%rdx,%rbx,8),%xmm3
imul   $0x2580,%rdi,%rdx
add    %r11,%rdx
subsd  (%rdx,%rbx,8),%xmm3
mulsd  %xmm0,%xmm3
addsd  (%r9,%rbx,8),%xmm3
movsd  %xmm3,(%r9,%rbx,8)
mov    %rbx,%rdi
or     $0x1,%rdi
not    %rbx
cmp    -0x30(%rsp),%rbx
je     1440 <kernel_fdtd_2d+0x340>
cs nopw 0x0(%rax,%rax,1)
movsd  0x0(%rbp,%rdi,8),%xmm3
subsd  -0x2580(%rbp,%rdi,8),%xmm3
ff ff
mulsd  %xmm0,%xmm3
addsd  (%r15,%rdi,8),%xmm3
movsd  %xmm3,(%r15,%rdi,8)
movsd  0x8(%rbp,%rdi,8),%xmm3
subsd  -0x2578(%rbp,%rdi,8),%xmm3
ff ff
mulsd  %xmm0,%xmm3
addsd  0x8(%r15,%rdi,8),%xmm3
movsd  %xmm3,0x8(%r15,%rdi,8)
add    $0x2,%rdi
cmp    %rdi,%r14
jne    1500 <kernel_fdtd_2d+0x400>
jmp    1440 <kernel_fdtd_2d+0x340>
xor    %edi,%edi
mov    0x60(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
movupd -0x10(%rax,%rdi,1),%xmm4
movupd (%rax,%rdi,1),%xmm5
movupd -0x10(%r10,%rdi,1),%xmm6
movupd (%r10,%rdi,1),%xmm7
movupd -0x2590(%r10,%rdi,1),%xmm3
da ff ff
subpd  %xmm3,%xmm6
movupd -0x2580(%r10,%rdi,1),%xmm3
da ff ff
subpd  %xmm3,%xmm7
mulpd  %xmm1,%xmm6
addpd  %xmm4,%xmm6
mulpd  %xmm1,%xmm7
addpd  %xmm5,%xmm7
movupd %xmm6,-0x10(%rax,%rdi,1)
movupd %xmm7,(%rax,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rbx
jne    1560 <kernel_fdtd_2d+0x460>
mov    -0x50(%rsp),%rdi
mov    %rdi,%rbx
cmp    %r14,%rdi
je     1440 <kernel_fdtd_2d+0x340>
jmp    14b0 <kernel_fdtd_2d+0x3b0>
xchg   %ax,%ax
cmpl   $0x0,-0x78(%rsp)
jle    1770 <kernel_fdtd_2d+0x670>
mov    %rcx,%rax
mov    %r11,%rbp
mov    -0x58(%rsp),%rsi
mov    0x28(%rsp),%rdi
xor    %r9d,%r9d
jmp    161a <kernel_fdtd_2d+0x51a>
add    $0x1,%r9
add    $0x2580,%rdi
add    $0x2580,%rsi
add    $0x2580,%rbp
add    $0x2580,%rax
cmp    -0x28(%rsp),%r9
je     1770 <kernel_fdtd_2d+0x670>
cmpl   $0x2,-0x80(%rsp)
jl     15f0 <kernel_fdtd_2d+0x4f0>
imul   $0x2580,%r9,%rdx
lea    (%rcx,%rdx,1),%r10
lea    (%r11,%rdx,1),%r15
mov    $0x1,%ebx
cmpq   $0x4,-0x38(%rsp)
jb     16e0 <kernel_fdtd_2d+0x5e0>
lea    (%rcx,%rdx,1),%r13
add    $0x8,%r13
lea    (%r15,%r14,8),%rdx
cmp    %rdx,%r13
jae    165f <kernel_fdtd_2d+0x55f>
lea    (%r10,%r14,8),%rdx
cmp    %rdx,%r15
jb     16e0 <kernel_fdtd_2d+0x5e0>
xor    %edx,%edx
mov    0x68(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
movupd -0x10(%rsi,%rdx,8),%xmm3
movupd (%rsi,%rdx,8),%xmm4
movupd -0x18(%rdi,%rdx,8),%xmm5
movupd -0x10(%rdi,%rdx,8),%xmm6
subpd  %xmm5,%xmm6
movupd -0x8(%rdi,%rdx,8),%xmm5
movupd (%rdi,%rdx,8),%xmm7
subpd  %xmm5,%xmm7
mulpd  %xmm1,%xmm6
addpd  %xmm3,%xmm6
mulpd  %xmm1,%xmm7
addpd  %xmm4,%xmm7
movupd %xmm6,-0x10(%rsi,%rdx,8)
movupd %xmm7,(%rsi,%rdx,8)
add    $0x4,%rdx
cmp    %rdx,%rbx
jne    1670 <kernel_fdtd_2d+0x570>
mov    %rbx,%rdx
mov    0x58(%rsp),%rbx
cmp    %rdx,-0x38(%rsp)
je     15f0 <kernel_fdtd_2d+0x4f0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdx
test   $0x1,%r14b
jne    170a <kernel_fdtd_2d+0x60a>
movsd  (%r15,%rbx,8),%xmm3
subsd  -0x8(%r15,%rbx,8),%xmm3
mulsd  %xmm0,%xmm3
addsd  (%r10,%rbx,8),%xmm3
movsd  %xmm3,(%r10,%rbx,8)
lea    0x1(%rbx),%rdx
not    %rbx
cmp    -0x30(%rsp),%rbx
je     15f0 <kernel_fdtd_2d+0x4f0>
nopl   0x0(%rax,%rax,1)
movsd  0x0(%rbp,%rdx,8),%xmm3
subsd  -0x8(%rbp,%rdx,8),%xmm3
mulsd  %xmm0,%xmm3
addsd  (%rax,%rdx,8),%xmm3
movsd  %xmm3,(%rax,%rdx,8)
movsd  0x8(%rbp,%rdx,8),%xmm3
subsd  0x0(%rbp,%rdx,8),%xmm3
mulsd  %xmm0,%xmm3
addsd  0x8(%rax,%rdx,8),%xmm3
movsd  %xmm3,0x8(%rax,%rdx,8)
add    $0x2,%rdx
cmp    %rdx,%r14
jne    1720 <kernel_fdtd_2d+0x620>
jmp    15f0 <kernel_fdtd_2d+0x4f0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmpl   $0x2,-0x78(%rsp)
mov    -0x70(%rsp),%r15
jl     1280 <kernel_fdtd_2d+0x180>
mov    %r11,%r9
mov    %rcx,%rsi
mov    -0x68(%rsp),%rbp
mov    -0x60(%rsp),%r8
mov    0x8(%rsp),%rax
mov    -0x58(%rsp),%rdi
xor    %r10d,%r10d
jmp    17d2 <kernel_fdtd_2d+0x6d2>
nop
add    $0x2580,%rdi
add    $0x2580,%rax
add    $0x2580,%r8
add    $0x2580,%rbp
add    $0x2580,%rsi
add    $0x2580,%r9
cmp    %r15,%r10
je     1280 <kernel_fdtd_2d+0x180>
mov    %r10,%rdx
add    $0x1,%r10
cmpl   $0x2,-0x80(%rsp)
jl     17a0 <kernel_fdtd_2d+0x6a0>
cmp    $0x4,%r12d
jae    1830 <kernel_fdtd_2d+0x730>
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
movsd  0x8(%rsi,%rdx,8),%xmm3
subsd  (%rsi,%rdx,8),%xmm3
addsd  0x2580(%rbp,%rdx,8),%xmm3
subsd  0x0(%rbp,%rdx,8),%xmm3
mulsd  %xmm2,%xmm3
addsd  (%r9,%rdx,8),%xmm3
movsd  %xmm3,(%r9,%rdx,8)
lea    0x1(%rdx),%rbx
mov    %rbx,%rdx
cmp    %rbx,%r12
jne    17f0 <kernel_fdtd_2d+0x6f0>
jmp    17a0 <kernel_fdtd_2d+0x6a0>
nopl   0x0(%rax,%rax,1)
imul   $0x2580,%rdx,%rdx
mov    %rcx,%rbx
lea    (%r11,%rdx,1),%r15
lea    (%rcx,%rdx,1),%r13
add    -0x68(%rsp),%rdx
lea    (%r15,%r12,8),%r11
mov    0x70(%rsp),%rbx
lea    0x0(,%rbx,8),%rbx
add    %r13,%rbx
lea    (%rdx,%r12,8),%rcx
add    $0x2580,%rcx
mov    %rcx,0x78(%rsp)
cmp    %rbx,%r15
setb   %bl
cmp    %r11,%r13
setb   %r13b
cmp    0x78(%rsp),%r15
setb   %r15b
cmp    %r11,%rdx
setb   %r11b
test   %r13b,%bl
jne    1956 <kernel_fdtd_2d+0x856>
mov    $0x0,%edx
and    %r11b,%r15b
mov    -0x40(%rsp),%r11
mov    -0x48(%rsp),%rcx
mov    -0x70(%rsp),%r15
jne    17f0 <kernel_fdtd_2d+0x6f0>
xor    %edx,%edx
mov    0x50(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
movupd -0x10(%rax,%rdx,8),%xmm3
movupd (%rax,%rdx,8),%xmm4
movupd -0x18(%rdi,%rdx,8),%xmm5
movupd -0x10(%rdi,%rdx,8),%xmm6
subpd  %xmm5,%xmm6
movupd -0x8(%rdi,%rdx,8),%xmm5
movupd (%rdi,%rdx,8),%xmm7
subpd  %xmm5,%xmm7
movupd -0x10(%r8,%rdx,8),%xmm5
addpd  %xmm6,%xmm5
movupd (%r8,%rdx,8),%xmm6
addpd  %xmm7,%xmm6
movupd -0x2590(%r8,%rdx,8),%xmm7
da ff ff
subpd  %xmm7,%xmm5
movupd -0x2580(%r8,%rdx,8),%xmm7
da ff ff
subpd  %xmm7,%xmm6
mulpd  %xmm8,%xmm5
addpd  %xmm3,%xmm5
mulpd  %xmm8,%xmm6
addpd  %xmm4,%xmm6
movupd %xmm5,-0x10(%rax,%rdx,8)
movupd %xmm6,(%rax,%rdx,8)
add    $0x4,%rdx
cmp    %rdx,%rbx
jne    18c0 <kernel_fdtd_2d+0x7c0>
mov    %rbx,%rdx
cmp    %r12,%rbx
jne    17f0 <kernel_fdtd_2d+0x6f0>
jmp    17a0 <kernel_fdtd_2d+0x6a0>
xor    %edx,%edx
mov    -0x40(%rsp),%r11
mov    -0x48(%rsp),%rcx
mov    -0x70(%rsp),%r15
jmp    17f0 <kernel_fdtd_2d+0x6f0>
add    $0x80,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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