#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double sqrt(double);
void sor(double omg, double dx, double dy, int imax, int jmax, double **P,
         double **RS, double *res) {
  int i, j;
  double rloc;
  double coeff = omg / (2.0 * (1.0 / (dx * dx) + 1.0 / (dy * dy)));
  for (i = 1; i <= imax; i++) {
    for (j = 1; j <= jmax; j++) {
      P[i][j] = (1.0 - omg) * P[i][j] +
                coeff * ((P[i + 1][j] + P[i - 1][j]) / (dx * dx) +
                         (P[i][j + 1] + P[i][j - 1]) / (dy * dy) - RS[i][j]);
    }
  }
  rloc = 0;
  for (i = 1; i <= imax; i++) {
    for (j = 1; j <= jmax; j++) {
      rloc +=
          ((P[i + 1][j] - 2.0 * P[i][j] + P[i - 1][j]) / (dx * dx) +
           (P[i][j + 1] - 2.0 * P[i][j] + P[i][j - 1]) / (dy * dy) - RS[i][j]) *
          ((P[i + 1][j] - 2.0 * P[i][j] + P[i - 1][j]) / (dx * dx) +
           (P[i][j + 1] - 2.0 * P[i][j] + P[i][j - 1]) / (dy * dy) - RS[i][j]);
    }
  }
  rloc = rloc / (imax * jmax);
  rloc = sqrt(rloc);
  *res = rloc;
  for (i = 1; i <= imax; i++) {
    P[i][0] = P[i][1];
    P[i][jmax + 1] = P[i][jmax];
  }
  for (j = 1; j <= jmax; j++) {
    P[0][j] = P[1][j];
    P[imax + 1][j] = P[imax][j];
  }
}


x86 assembly (clang, -O0):
<sor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    %edi,-0x1c(%rbp)
mov    %esi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  0xeb8(%rip),%xmm2
divsd  %xmm1,%xmm2
movsd  -0x18(%rbp),%xmm3
mulsd  -0x18(%rbp),%xmm3
movsd  0xea2(%rip),%xmm1
divsd  %xmm3,%xmm1
addsd  %xmm1,%xmm2
movsd  0xe8a(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     12af <sor+0x19f>
movl   $0x1,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x20(%rbp),%eax
jg     129c <sor+0x18c>
movsd  0xe57(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x50(%rbp),%xmm1
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm3
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm3
movsd  -0x10(%rbp),%xmm4
mulsd  -0x10(%rbp),%xmm4
divsd  %xmm4,%xmm3
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x40(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm4
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x40(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm4
movsd  -0x18(%rbp),%xmm5
mulsd  -0x18(%rbp),%xmm5
divsd  %xmm5,%xmm4
addsd  %xmm4,%xmm3
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    119d <sor+0x8d>
jmp    12a1 <sor+0x191>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    118a <sor+0x7a>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     14be <sor+0x3ae>
movl   $0x1,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x20(%rbp),%eax
jg     14ab <sor+0x39b>
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x40(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
addsd  %xmm2,%xmm2
subsd  %xmm2,%xmm1
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x40(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm1
movsd  -0x18(%rbp),%xmm2
mulsd  -0x18(%rbp),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm2
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm2
movsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm2
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x40(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm3
addsd  %xmm3,%xmm3
subsd  %xmm3,%xmm1
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x40(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm1
movsd  -0x18(%rbp),%xmm3
mulsd  -0x18(%rbp),%xmm3
divsd  %xmm3,%xmm1
addsd  %xmm1,%xmm2
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    12d1 <sor+0x1c1>
jmp    14b0 <sor+0x3a0>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12be <sor+0x1ae>
movsd  -0x48(%rbp),%xmm0
mov    -0x1c(%rbp),%eax
imul   -0x20(%rbp),%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     1564 <sor+0x454>
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x8(%rax),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    14fa <sor+0x3ea>
movl   $0x1,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x20(%rbp),%eax
jg     15d5 <sor+0x4c5>
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    156b <sor+0x45b>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sor>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdx,%r12
mov    %esi,%r14d
test   %edi,%edi
jle    12cb <sor+0x1bb>
unpcklpd %xmm2,%xmm1
mulpd  %xmm1,%xmm1
movsd  0xec4(%rip),%xmm2
movapd %xmm2,%xmm3
divsd  %xmm1,%xmm3
movapd %xmm1,%xmm4
unpckhpd %xmm1,%xmm4
movapd %xmm2,%xmm5
divsd  %xmm4,%xmm5
addsd  %xmm3,%xmm5
addsd  %xmm5,%xmm5
subsd  %xmm0,%xmm2
divsd  %xmm5,%xmm0
lea    0x1(%r14),%r15d
lea    0x1(%rdi),%r13d
mov    $0x1,%eax
jmp    1190 <sor+0x80>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%rax
mov    %rax,%r10
cmp    %r13,%r10
je     121c <sor+0x10c>
test   %r14d,%r14d
jle    1180 <sor+0x70>
mov    -0x8(%r12,%rax,8),%r9
mov    (%r12,%rax,8),%rsi
lea    0x1(%rax),%r10
mov    %r10d,%edx
mov    (%r12,%rdx,8),%rdx
mov    (%rcx,%rax,8),%rbp
movsd  (%rsi),%xmm3
movsd  0x8(%rsi),%xmm4
mov    $0x1,%ebx
nopl   0x0(%rax,%rax,1)
mulsd  %xmm2,%xmm4
movsd  0x8(%rsi,%rbx,8),%xmm5
movsd  (%rdx,%rbx,8),%xmm6
unpcklpd %xmm5,%xmm6
movsd  (%r9,%rbx,8),%xmm7
unpcklpd %xmm3,%xmm7
addpd  %xmm6,%xmm7
divpd  %xmm1,%xmm7
movapd %xmm7,%xmm3
unpckhpd %xmm7,%xmm3
addsd  %xmm7,%xmm3
subsd  0x0(%rbp,%rbx,8),%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm4,%xmm3
movsd  %xmm3,(%rsi,%rbx,8)
lea    0x1(%rbx),%rax
movapd %xmm5,%xmm4
mov    %rax,%rbx
cmp    %rax,%r15
jne    11c0 <sor+0xb0>
mov    %r10,%rax
jmp    1187 <sor+0x77>
test   %edi,%edi
jle    12cb <sor+0x1bb>
lea    -0x1(%r15),%r9
xorpd  %xmm0,%xmm0
mov    $0x1,%edx
jmp    124c <sor+0x13c>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r10,%rdx
cmp    %r13,%r10
je     12f0 <sor+0x1e0>
lea    0x1(%rdx),%r10
test   %r14d,%r14d
jle    1240 <sor+0x130>
mov    %r10d,%esi
mov    (%r12,%rsi,8),%rsi
mov    -0x8(%r12,%rdx,8),%rax
mov    (%r12,%rdx,8),%rbx
mov    (%rcx,%rdx,8),%rdx
movsd  0x8(%rbx),%xmm2
xor    %ebp,%ebp
movsd  0x10(%rbx,%rbp,8),%xmm3
movsd  0x8(%rsi,%rbp,8),%xmm4
unpcklpd %xmm3,%xmm4
addsd  %xmm2,%xmm2
unpcklpd %xmm2,%xmm2
subpd  %xmm2,%xmm4
movsd  0x8(%rax,%rbp,8),%xmm2
movhpd (%rbx,%rbp,8),%xmm2
addpd  %xmm4,%xmm2
divpd  %xmm1,%xmm2
movapd %xmm2,%xmm4
unpckhpd %xmm2,%xmm4
addsd  %xmm2,%xmm4
subsd  0x8(%rdx,%rbp,8),%xmm4
mulsd  %xmm4,%xmm4
addsd  %xmm4,%xmm0
add    $0x1,%rbp
movapd %xmm3,%xmm2
cmp    %rbp,%r9
jne    1270 <sor+0x160>
jmp    1240 <sor+0x130>
mov    %r14d,%eax
imul   %edi,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
xorpd  %xmm2,%xmm2
xorpd  %xmm0,%xmm0
divsd  %xmm1,%xmm0
ucomisd %xmm2,%xmm0
jb     1318 <sor+0x208>
sqrtsd %xmm0,%xmm0
jmp    1329 <sor+0x219>
mov    %r14d,%eax
imul   %edi,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1540 <sor+0x430>
sqrtsd %xmm0,%xmm0
jmp    1551 <sor+0x441>
mov    %rdi,%rbx
mov    %r8,%rbp
call   1030 <sqrt@plt>
mov    %rbp,%r8
mov    %rbx,%rdi
movsd  %xmm0,(%r8)
test   %r14d,%r14d
jle    1531 <sor+0x421>
mov    (%r12),%rax
mov    0x8(%r12),%rcx
movslq %edi,%rsi
mov    (%r12,%rsi,8),%rdx
mov    0x8(%r12,%rsi,8),%rsi
mov    %r14d,%edi
lea    0x1(%rdi),%r10
mov    $0x1,%ebp
cmp    $0x4,%r14d
jae    13ca <sor+0x2ba>
mov    %rbp,%rdi
not    %rdi
test   $0x1,%r10b
jne    1382 <sor+0x272>
movsd  (%rcx,%rbp,8),%xmm0
movsd  %xmm0,(%rax,%rbp,8)
movsd  (%rdx,%rbp,8),%xmm0
movsd  %xmm0,(%rsi,%rbp,8)
add    $0x1,%rbp
add    %r10,%rdi
je     1531 <sor+0x421>
nopl   0x0(%rax,%rax,1)
movsd  (%rcx,%rbp,8),%xmm0
movsd  %xmm0,(%rax,%rbp,8)
movsd  (%rdx,%rbp,8),%xmm0
movsd  %xmm0,(%rsi,%rbp,8)
movsd  0x8(%rcx,%rbp,8),%xmm0
movsd  %xmm0,0x8(%rax,%rbp,8)
movsd  0x8(%rdx,%rbp,8),%xmm0
movsd  %xmm0,0x8(%rsi,%rbp,8)
add    $0x2,%rbp
cmp    %rbp,%r10
jne    1390 <sor+0x280>
jmp    1531 <sor+0x421>
mov    %rdi,0x10(%rsp)
lea    0x8(%rax),%rdi
lea    (%rax,%r10,8),%rbx
lea    0x8(%rsi),%r11
lea    (%rsi,%r10,8),%r13
lea    0x8(%rcx),%r12
lea    (%rcx,%r10,8),%r9
lea    0x8(%rdx),%r15
lea    (%rdx,%r10,8),%r14
cmp    %r13,%rdi
setb   0xf(%rsp)
cmp    %rbx,%r11
setb   0xe(%rsp)
cmp    %r9,%rdi
setb   %r8b
cmp    %rbx,%r12
setb   0xd(%rsp)
cmp    %r14,%rdi
setb   %dil
cmp    %rbx,%r15
setb   0xc(%rsp)
cmp    %r9,%r11
setb   %r9b
cmp    %r13,%r12
setb   %r12b
cmp    %r14,%r11
setb   %r11b
cmp    %r13,%r15
setb   %r13b
mov    0xe(%rsp),%bl
test   %bl,0xf(%rsp)
jne    135e <sor+0x24e>
and    0xd(%rsp),%r8b
jne    135e <sor+0x24e>
and    0xc(%rsp),%dil
jne    135e <sor+0x24e>
and    %r12b,%r9b
jne    135e <sor+0x24e>
and    %r13b,%r11b
jne    135e <sor+0x24e>
mov    0x10(%rsp),%r8
mov    %r8d,%ebp
and    $0xfffffffc,%ebp
lea    -0x4(%rbp),%rdi
mov    %rdi,%r9
shr    $0x2,%r9
add    $0x1,%r9
test   %rdi,%rdi
je     1605 <sor+0x4f5>
mov    %r9,%rdi
and    $0xfffffffffffffffe,%rdi
mov    $0x1,%ebx
xchg   %ax,%ax
movups (%rcx,%rbx,8),%xmm0
movups 0x10(%rcx,%rbx,8),%xmm1
movups %xmm0,(%rax,%rbx,8)
movups %xmm1,0x10(%rax,%rbx,8)
movups (%rdx,%rbx,8),%xmm0
movups 0x10(%rdx,%rbx,8),%xmm1
movups %xmm0,(%rsi,%rbx,8)
movups %xmm1,0x10(%rsi,%rbx,8)
movups 0x20(%rcx,%rbx,8),%xmm0
movups 0x30(%rcx,%rbx,8),%xmm1
movups %xmm0,0x20(%rax,%rbx,8)
movups %xmm1,0x30(%rax,%rbx,8)
movupd 0x20(%rdx,%rbx,8),%xmm0
movupd 0x30(%rdx,%rbx,8),%xmm1
movupd %xmm0,0x20(%rsi,%rbx,8)
movupd %xmm1,0x30(%rsi,%rbx,8)
add    $0x8,%rbx
add    $0xfffffffffffffffe,%rdi
jne    14a0 <sor+0x390>
test   $0x1,%r9b
je     1528 <sor+0x418>
movups (%rcx,%rbx,8),%xmm0
movups 0x10(%rcx,%rbx,8),%xmm1
movups %xmm0,(%rax,%rbx,8)
movups %xmm1,0x10(%rax,%rbx,8)
movupd (%rdx,%rbx,8),%xmm0
movupd 0x10(%rdx,%rbx,8),%xmm1
movupd %xmm0,(%rsi,%rbx,8)
movupd %xmm1,0x10(%rsi,%rbx,8)
cmp    %rbp,%r8
jne    15fc <sor+0x4ec>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rdi,%rbx
mov    %r8,%rbp
call   1030 <sqrt@plt>
mov    %rbp,%r8
mov    %rbx,%rdi
movsd  %xmm0,(%r8)
test   %edi,%edi
jle    132e <sor+0x21e>
movslq %r14d,%rax
movslq %r15d,%rcx
lea    -0x1(%r13),%rbx
mov    $0x1,%esi
cmp    $0x2,%r13d
je     15d7 <sor+0x4c7>
mov    %rbx,%rdx
and    $0xfffffffffffffffe,%rdx
neg    %rdx
mov    $0x1,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%r12,%rsi,8),%rbp
movsd  0x8(%rbp),%xmm0
movsd  %xmm0,0x0(%rbp)
movsd  0x0(%rbp,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rcx,8)
mov    0x8(%r12,%rsi,8),%rbp
movsd  0x8(%rbp),%xmm0
movsd  %xmm0,0x0(%rbp)
movsd  0x0(%rbp,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rcx,8)
lea    (%rdx,%rsi,1),%rbp
add    $0x2,%rbp
add    $0x2,%rsi
cmp    $0x1,%rbp
jne    1590 <sor+0x480>
test   $0x1,%bl
je     132e <sor+0x21e>
mov    (%r12,%rsi,8),%rdx
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,(%rdx)
movsd  (%rdx,%rax,8),%xmm0
movsd  %xmm0,(%rdx,%rcx,8)
jmp    132e <sor+0x21e>
or     $0x1,%rbp
jmp    135e <sor+0x24e>
mov    $0x1,%ebx
test   $0x1,%r9b
jne    1500 <sor+0x3f0>
jmp    1528 <sor+0x418>

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

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