#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 */
typedef double dz2;
typedef double dy2;
typedef double dx2;

/* Variables and functions */
int /*<<< orphan*/ boundaryvalues_pressure(double ***, int ***, int, int, int);
int /*<<< orphan*/ emptyneighbor(int);
scalar_t__ isfluid(int);
double sqrt(double);
void sor(double omg, double dx, double dy, double dz, int imax, int jmax,
         int kmax, double ***P, double ***RS, double *res, int ***Flag) {
  int i, j, k;
  double rloc;
  double coeff =
      omg / (2.0 * (1.0 / (dx * dx) + 1.0 / (dy * dy) + 1.0 / (dz * dz)));
  double FluidCells = 0.0;
  double tmp = 0;
  double dx2 = dx * dx;
  double dy2 = dy * dy;
  double dz2 = dz * dz;
  double omg2 = 1 - omg;
  for (i = 1; i <= imax; i++) {
    for (j = 1; j <= jmax; j++) {
      for (k = 1; k <= kmax; k++) {
        if (isfluid(Flag[i][j][k]) && !emptyneighbor(Flag[i][j][k])) {
          P[i][j][k] =
              omg2 * P[i][j][k] +
              coeff * ((P[i + 1][j][k] + P[i - 1][j][k]) / dx2 +
                       (P[i][j + 1][k] + P[i][j - 1][k]) / dy2 +
                       (P[i][j][k + 1] + P[i][j][k - 1]) / dz2 - RS[i][j][k]);
          FluidCells++;
        }
      }
    }
  }
  rloc = 0;
  for (i = 1; i <= imax; i++) {
    for (j = 1; j <= jmax; j++) {
      for (k = 1; k <= kmax; k++) {
        if (isfluid(Flag[i][j][k]) && !emptyneighbor(Flag[i][j][k])) {
          tmp = (P[i + 1][j][k] - 2.0 * P[i][j][k] + P[i - 1][j][k]) / (dx2) +
                (P[i][j + 1][k] - 2.0 * P[i][j][k] + P[i][j - 1][k]) / (dy2) +
                (P[i][j][k + 1] - 2.0 * P[i][j][k] + P[i][j][k - 1]) /
                    (dz2)-RS[i][j][k];
          rloc += tmp * tmp;
        }
      }
    }
  }
  rloc = rloc / FluidCells;
  rloc = sqrt(rloc);
  *res = rloc;
  boundaryvalues_pressure(P, Flag, imax, jmax, kmax);
}


x86 assembly (clang, -O0):
<sor>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    0x10(%rbp),%rax
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
mov    %edi,-0x24(%rbp)
mov    %esi,-0x28(%rbp)
mov    %edx,-0x2c(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %r8,-0x40(%rbp)
mov    %r9,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  0xe71(%rip),%xmm2
divsd  %xmm1,%xmm2
movsd  -0x18(%rbp),%xmm3
mulsd  -0x18(%rbp),%xmm3
movsd  0xe5b(%rip),%xmm1
divsd  %xmm3,%xmm1
addsd  %xmm1,%xmm2
movsd  -0x20(%rbp),%xmm3
mulsd  -0x20(%rbp),%xmm3
movsd  0xe41(%rip),%xmm1
divsd  %xmm3,%xmm1
addsd  %xmm1,%xmm2
movsd  0xe39(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xdd9(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movl   $0x1,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     1464 <sor+0x324>
movl   $0x1,-0x50(%rbp)
mov    -0x50(%rbp),%eax
cmp    -0x28(%rbp),%eax
jg     1451 <sor+0x311>
movl   $0x1,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jg     143e <sor+0x2fe>
mov    0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <isfluid@plt>
cmp    $0x0,%rax
je     142b <sor+0x2eb>
mov    0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1060 <emptyneighbor@plt>
cmp    $0x0,%eax
jne    142b <sor+0x2eb>
movsd  -0x98(%rbp),%xmm0
ff
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x68(%rbp),%xmm1
mov    -0x38(%rbp),%rax
mov    -0x4c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm3
mov    -0x38(%rbp),%rax
mov    -0x4c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm3
divsd  -0x80(%rbp),%xmm3
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x50(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm4
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x50(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm4
divsd  -0x88(%rbp),%xmm4
ff
addsd  %xmm4,%xmm3
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x54(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm4
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x54(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm4
divsd  -0x90(%rbp),%xmm4
ff
addsd  %xmm4,%xmm3
mov    -0x40(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  0xbdf(%rip),%xmm0
addsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
jmp    1430 <sor+0x2f0>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1261 <sor+0x121>
jmp    1443 <sor+0x303>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    124e <sor+0x10e>
jmp    1456 <sor+0x316>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    123b <sor+0xfb>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     16c7 <sor+0x587>
movl   $0x1,-0x50(%rbp)
mov    -0x50(%rbp),%eax
cmp    -0x28(%rbp),%eax
jg     16b4 <sor+0x574>
movl   $0x1,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jg     16a1 <sor+0x561>
mov    0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <isfluid@plt>
cmp    $0x0,%rax
je     168e <sor+0x54e>
mov    0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1060 <emptyneighbor@plt>
cmp    $0x0,%eax
jne    168e <sor+0x54e>
mov    -0x38(%rbp),%rax
mov    -0x4c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
mov    -0x4c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
divsd  -0x80(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x50(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
addsd  %xmm2,%xmm2
subsd  %xmm2,%xmm1
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x50(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm1
divsd  -0x88(%rbp),%xmm1
ff
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x54(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
addsd  %xmm2,%xmm2
subsd  %xmm2,%xmm1
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x54(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm1
divsd  -0x90(%rbp),%xmm1
ff
addsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x54(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x78(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    1693 <sor+0x553>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1499 <sor+0x359>
jmp    16a6 <sor+0x566>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1486 <sor+0x346>
jmp    16b9 <sor+0x579>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1473 <sor+0x333>
movsd  -0x60(%rbp),%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
call   1050 <sqrt@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rdi
mov    0x10(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
call   1040 <boundaryvalues_pressure@plt>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sor>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %r9,%rbx
mov    %r8,0x68(%rsp)
mov    %rcx,0x28(%rsp)
mov    %rdx,0x10(%rsp)
mov    %rsi,0x8(%rsp)
mov    %edi,%ebp
mov    0xf0(%rsp),%r13
xorpd  %xmm4,%xmm4
xorpd  %xmm5,%xmm5
test   %edi,%edi
jle    157d <sor+0x43d>
mov    %rbx,0x40(%rsp)
unpcklpd %xmm3,%xmm1
mulpd  %xmm1,%xmm1
movsd  0xe69(%rip),%xmm5
movapd %xmm5,%xmm4
divsd  %xmm1,%xmm4
mulsd  %xmm2,%xmm2
movsd  %xmm2,0x60(%rsp)
movapd %xmm1,%xmm3
movapd %xmm5,%xmm1
divsd  %xmm2,%xmm1
addsd  %xmm4,%xmm1
movapd %xmm3,0xa0(%rsp)
unpckhpd %xmm3,%xmm3
movapd %xmm5,%xmm2
movapd %xmm3,0x70(%rsp)
divsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
addsd  %xmm2,%xmm2
subsd  %xmm0,%xmm5
movsd  %xmm5,0x18(%rsp)
divsd  %xmm2,%xmm0
mov    0x10(%rsp),%rax
lea    0x1(%rax),%ecx
mov    0x8(%rsp),%rax
lea    0x1(%rax),%eax
mov    %rax,0x58(%rsp)
mov    %rbp,0x48(%rsp)
lea    0x1(%rbp),%eax
mov    %rax,0x50(%rsp)
mov    %rcx,0x88(%rsp)
lea    -0x4(,%rcx,4),%r15
ff
xorpd  %xmm4,%xmm4
mov    $0x1,%ebx
movsd  %xmm0,0x20(%rsp)
jmp    1246 <sor+0x106>
nopl   (%rax)
mov    0x90(%rsp),%rax
mov    %rax,%rbx
cmp    0x50(%rsp),%rax
je     13b2 <sor+0x272>
cmpl   $0x0,0x8(%rsp)
jle    13a0 <sor+0x260>
lea    0x1(%rbx),%rax
mov    %rax,0x90(%rsp)
mov    %eax,%eax
mov    %rax,0x30(%rsp)
mov    $0x1,%ebp
jmp    1282 <sor+0x142>
nopl   0x0(%rax,%rax,1)
mov    0x98(%rsp),%rax
mov    %rax,%rbp
cmp    0x58(%rsp),%rax
je     1230 <sor+0xf0>
lea    0x1(%rbp),%rax
cmpl   $0x0,0x10(%rsp)
mov    %rax,0x98(%rsp)
jle    1270 <sor+0x130>
mov    %eax,%r14d
xor    %r12d,%r12d
jmp    12ae <sor+0x16e>
nopl   (%rax)
movsd  (%rsp),%xmm4
add    $0x4,%r12
cmp    %r12,%r15
je     1270 <sor+0x130>
movsd  %xmm4,(%rsp)
mov    0x0(%r13,%rbx,8),%rax
mov    (%rax,%rbp,8),%rax
mov    0x4(%rax,%r12,1),%edi
call   1030 <isfluid@plt>
test   %rax,%rax
je     12a0 <sor+0x160>
mov    0x0(%r13,%rbx,8),%rax
mov    (%rax,%rbp,8),%rax
mov    0x4(%rax,%r12,1),%edi
call   1060 <emptyneighbor@plt>
test   %eax,%eax
jne    12a0 <sor+0x160>
mov    0x28(%rsp),%rdi
mov    -0x8(%rdi,%rbx,8),%rcx
mov    (%rdi,%rbx,8),%rdx
mov    -0x8(%rdx,%rbp,8),%r8
mov    (%rdx,%rbp,8),%rax
mov    0x30(%rsp),%rsi
mov    (%rdi,%rsi,8),%rdi
mov    (%rdi,%rbp,8),%rdi
movsd  0x8(%rdi,%r12,2),%xmm0
mov    (%rcx,%rbp,8),%rcx
addsd  0x8(%rcx,%r12,2),%xmm0
divsd  0xa0(%rsp),%xmm0
mov    (%rdx,%r14,8),%rcx
movsd  0x8(%rcx,%r12,2),%xmm1
addsd  0x8(%r8,%r12,2),%xmm1
divsd  0x60(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  0x10(%rax,%r12,2),%xmm2
addsd  (%rax,%r12,2),%xmm2
divsd  0x70(%rsp),%xmm2
addsd  %xmm1,%xmm2
mov    0x68(%rsp),%rcx
mov    (%rcx,%rbx,8),%rcx
mov    (%rcx,%rbp,8),%rcx
subsd  0x8(%rcx,%r12,2),%xmm2
movsd  0x20(%rsp),%xmm0
mulsd  %xmm0,%xmm2
movsd  0x8(%rax,%r12,2),%xmm1
mulsd  0x18(%rsp),%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,0x8(%rax,%r12,2)
movsd  (%rsp),%xmm4
addsd  0xc69(%rip),%xmm4
jmp    12a5 <sor+0x165>
nopl   0x0(%rax)
add    $0x1,%rbx
mov    %rbx,%rax
cmp    0x50(%rsp),%rax
jne    1246 <sor+0x106>
mov    0x48(%rsp),%rbp
test   %ebp,%ebp
jle    1574 <sor+0x434>
mov    0x88(%rsp),%rax
lea    -0x4(,%rax,4),%r15
ff
xorpd  %xmm0,%xmm0
movapd %xmm0,0x30(%rsp)
mov    $0x1,%r12d
jmp    1403 <sor+0x2c3>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x18(%rsp),%rax
mov    %rax,%r12
cmp    0x50(%rsp),%rax
je     1562 <sor+0x422>
cmpl   $0x0,0x8(%rsp)
jle    1550 <sor+0x410>
lea    0x1(%r12),%rax
mov    %rax,0x18(%rsp)
mov    %eax,%eax
mov    %rax,0x20(%rsp)
mov    $0x1,%r14d
movsd  %xmm4,(%rsp)
jmp    143f <sor+0x2ff>
nopl   0x0(%rax)
mov    0x70(%rsp),%rax
mov    %rax,%r14
cmp    0x58(%rsp),%rax
je     13f0 <sor+0x2b0>
lea    0x1(%r14),%rax
cmpl   $0x0,0x10(%rsp)
mov    %rax,0x70(%rsp)
jle    1430 <sor+0x2f0>
mov    %eax,%ebp
xor    %ebx,%ebx
jmp    146e <sor+0x32e>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%rsp),%xmm4
add    $0x4,%rbx
cmp    %rbx,%r15
je     1430 <sor+0x2f0>
mov    0x0(%r13,%r12,8),%rax
mov    (%rax,%r14,8),%rax
mov    0x4(%rax,%rbx,1),%edi
call   1030 <isfluid@plt>
test   %rax,%rax
je     1460 <sor+0x320>
mov    0x0(%r13,%r12,8),%rax
mov    (%rax,%r14,8),%rax
mov    0x4(%rax,%rbx,1),%edi
call   1060 <emptyneighbor@plt>
test   %eax,%eax
jne    1460 <sor+0x320>
mov    0x28(%rsp),%rdx
mov    0x20(%rsp),%rax
mov    (%rdx,%rax,8),%rax
mov    (%rax,%r14,8),%rax
mov    -0x8(%rdx,%r12,8),%rcx
mov    (%rdx,%r12,8),%rdx
mov    -0x8(%rdx,%r14,8),%rsi
mov    (%rdx,%r14,8),%rdi
movsd  0x8(%rdi,%rbx,2),%xmm0
mov    (%rcx,%r14,8),%rcx
mov    (%rdx,%rbp,8),%rdx
movsd  0x8(%rdx,%rbx,2),%xmm1
addsd  %xmm0,%xmm0
subsd  %xmm0,%xmm1
addsd  0x8(%rsi,%rbx,2),%xmm1
movsd  0x8(%rax,%rbx,2),%xmm2
movhpd 0x10(%rdi,%rbx,2),%xmm2
unpcklpd %xmm0,%xmm0
subpd  %xmm0,%xmm2
movsd  0x8(%rcx,%rbx,2),%xmm0
movhpd (%rdi,%rbx,2),%xmm0
divsd  0x60(%rsp),%xmm1
addpd  %xmm2,%xmm0
divpd  0xa0(%rsp),%xmm0
addsd  %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
mov    0x68(%rsp),%rax
mov    (%rax,%r12,8),%rax
mov    (%rax,%r14,8),%rax
subsd  0x8(%rax,%rbx,2),%xmm0
mulsd  %xmm0,%xmm0
movapd 0x30(%rsp),%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,0x30(%rsp)
jmp    1460 <sor+0x320>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r12
mov    %r12,%rax
cmp    0x50(%rsp),%rax
jne    1403 <sor+0x2c3>
mov    0x40(%rsp),%rbx
mov    0x48(%rsp),%rbp
movapd 0x30(%rsp),%xmm5
jmp    157d <sor+0x43d>
xorpd  %xmm5,%xmm5
mov    0x40(%rsp),%rbx
divsd  %xmm4,%xmm5
ucomisd 0xa7f(%rip),%xmm5
movapd %xmm5,%xmm0
jb     1595 <sor+0x455>
sqrtsd %xmm0,%xmm0
jmp    159a <sor+0x45a>
call   1050 <sqrt@plt>
movsd  %xmm0,(%rbx)
mov    0x28(%rsp),%rdi
mov    %r13,%rsi
mov    %ebp,%edx
mov    0x8(%rsp),%rcx
mov    0x10(%rsp),%r8
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <boundaryvalues_pressure@plt>

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

LLVM IR (-O2):
define void @sor(double %0, double %1, double %2, double %3, i32 %4, i32 %5, i32 %6, double*** %7, double*** nocapture %8, double* nocapture writeonly %9, i32*** %10) {
%12 = insertelement <2 x double> poison, double %1, i64 0
%13 = insertelement <2 x double> %12, double %3, i64 1
%14 = fmul <2 x double> %13, %13
%15 = extractelement <2 x double> %14, i64 0
%16 = fdiv double 1.000000e+00, %15
%17 = fmul double %2, %2
%18 = fdiv double 1.000000e+00, %17
%19 = fadd double %16, %18
%20 = extractelement <2 x double> %14, i64 1
%21 = fdiv double 1.000000e+00, %20
%22 = fadd double %19, %21
%23 = fmul double %22, 2.000000e+00
%24 = fdiv double %0, %23
%25 = fsub double 1.000000e+00, %0
%26 = icmp slt i32 %4, 1
br i1 %26, label %248, label %27
27: ; preds = %11
%28 = icmp slt i32 %5, 1
%29 = icmp slt i32 %6, 1
%30 = add i32 %6, 1
%31 = add i32 %5, 1
%32 = add nuw i32 %4, 1
%33 = zext i32 %32 to i64
%34 = zext i32 %31 to i64
%35 = zext i32 %30 to i64
br label %36
36: ; preds = %27, %140
%37 = phi i64 [ 1, %27 ], [ %141, %140 ]
%38 = phi double [ 0.000000e+00, %27 ], [ %142, %140 ]
br i1 %28, label %39, label %41
39: ; preds = %36
%40 = add nuw nsw i64 %37, 1
br label %140
41: ; preds = %36
%42 = getelementptr inbounds i32**, i32*** %10, i64 %37
%43 = getelementptr inbounds double**, double*** %7, i64 %37
%44 = add nuw nsw i64 %37, 1
%45 = and i64 %44, 4294967295
%46 = getelementptr inbounds double**, double*** %7, i64 %45
%47 = add nsw i64 %37, -1
%48 = getelementptr inbounds double**, double*** %7, i64 %47
%49 = getelementptr inbounds double**, double*** %8, i64 %37
br label %60
50: ; preds = %140
br i1 %26, label %248, label %51
51: ; preds = %50
%52 = icmp slt i32 %5, 1
%53 = icmp slt i32 %6, 1
%54 = add i32 %6, 1
%55 = add i32 %5, 1
%56 = add nuw i32 %4, 1
%57 = zext i32 %56 to i64
%58 = zext i32 %55 to i64
%59 = zext i32 %54 to i64
br label %144
60: ; preds = %41, %137
%61 = phi i64 [ 1, %41 ], [ %63, %137 ]
%62 = phi double [ %38, %41 ], [ %138, %137 ]
%63 = add nuw nsw i64 %61, 1
br i1 %29, label %137, label %64
64: ; preds = %60
%65 = and i64 %63, 4294967295
%66 = add nsw i64 %61, -1
br label %67
67: ; preds = %64, %133
%68 = phi i64 [ 1, %64 ], [ %135, %133 ]
%69 = phi double [ %62, %64 ], [ %134, %133 ]
%70 = load i32**, i32*** %42
%71 = getelementptr inbounds i32*, i32** %70, i64 %61
%72 = load i32*, i32** %71
%73 = getelementptr inbounds i32, i32* %72, i64 %68
%74 = load i32, i32* %73
%75 = tail call i64 @isfluid(i32 %74)
%76 = icmp eq i64 %75, 0
br i1 %76, label %133, label %77
77: ; preds = %67
%78 = load i32**, i32*** %42
%79 = getelementptr inbounds i32*, i32** %78, i64 %61
%80 = load i32*, i32** %79
%81 = getelementptr inbounds i32, i32* %80, i64 %68
%82 = load i32, i32* %81
%83 = tail call i32 @emptyneighbor(i32 %82)
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %133
85: ; preds = %77
%86 = load double**, double*** %43
%87 = getelementptr inbounds double*, double** %86, i64 %61
%88 = load double*, double** %87
%89 = getelementptr inbounds double, double* %88, i64 %68
%90 = load double, double* %89
%91 = load double**, double*** %46
%92 = getelementptr inbounds double*, double** %91, i64 %61
%93 = load double*, double** %92
%94 = getelementptr inbounds double, double* %93, i64 %68
%95 = load double, double* %94
%96 = load double**, double*** %48
%97 = getelementptr inbounds double*, double** %96, i64 %61
%98 = load double*, double** %97
%99 = getelementptr inbounds double, double* %98, i64 %68
%100 = load double, double* %99
%101 = fadd double %95, %100
%102 = fdiv double %101, %15
%103 = getelementptr inbounds double*, double** %86, i64 %65
%104 = load double*, double** %103
%105 = getelementptr inbounds double, double* %104, i64 %68
%106 = load double, double* %105
%107 = getelementptr inbounds double*, double** %86, i64 %66
%108 = load double*, double** %107
%109 = getelementptr inbounds double, double* %108, i64 %68
%110 = load double, double* %109
%111 = fadd double %106, %110
%112 = fdiv double %111, %17
%113 = fadd double %102, %112
%114 = add nuw i64 %68, 1
%115 = and i64 %114, 4294967295
%116 = getelementptr inbounds double, double* %88, i64 %115
%117 = load double, double* %116
%118 = add nsw i64 %68, -1
%119 = getelementptr inbounds double, double* %88, i64 %118
%120 = load double, double* %119
%121 = fadd double %117, %120
%122 = fdiv double %121, %20
%123 = fadd double %113, %122
%124 = load double**, double*** %49
%125 = getelementptr inbounds double*, double** %124, i64 %61
%126 = load double*, double** %125
%127 = getelementptr inbounds double, double* %126, i64 %68
%128 = load double, double* %127
%129 = fsub double %123, %128
%130 = fmul double %24, %129
%131 = tail call double @llvm.fmuladd.f64(double %25, double %90, double %130)
store double %131, double* %89
%132 = fadd double %69, 1.000000e+00
br label %133
133: ; preds = %67, %77, %85
%134 = phi double [ %69, %77 ], [ %132, %85 ], [ %69, %67 ]
%135 = add nuw nsw i64 %68, 1
%136 = icmp eq i64 %135, %35
br i1 %136, label %137, label %67
137: ; preds = %133, %60
%138 = phi double [ %62, %60 ], [ %134, %133 ]
%139 = icmp eq i64 %63, %34
br i1 %139, label %140, label %60
140: ; preds = %137, %39
%141 = phi i64 [ %40, %39 ], [ %44, %137 ]
%142 = phi double [ %38, %39 ], [ %138, %137 ]
%143 = icmp eq i64 %141, %33
br i1 %143, label %50, label %36
144: ; preds = %51, %244
%145 = phi i64 [ 1, %51 ], [ %245, %244 ]
%146 = phi double [ 0.000000e+00, %51 ], [ %246, %244 ]
br i1 %52, label %147, label %149
147: ; preds = %144
%148 = add nuw nsw i64 %145, 1
br label %244
149: ; preds = %144
%150 = getelementptr inbounds i32**, i32*** %10, i64 %145
%151 = add nuw nsw i64 %145, 1
%152 = and i64 %151, 4294967295
%153 = getelementptr inbounds double**, double*** %7, i64 %152
%154 = getelementptr inbounds double**, double*** %7, i64 %145
%155 = add nsw i64 %145, -1
%156 = getelementptr inbounds double**, double*** %7, i64 %155
%157 = getelementptr inbounds double**, double*** %8, i64 %145
br label %158
158: ; preds = %149, %241
%159 = phi i64 [ 1, %149 ], [ %161, %241 ]
%160 = phi double [ %146, %149 ], [ %242, %241 ]
%161 = add nuw nsw i64 %159, 1
br i1 %53, label %241, label %162
162: ; preds = %158
%163 = and i64 %161, 4294967295
%164 = add nsw i64 %159, -1
br label %165
165: ; preds = %162, %237
%166 = phi i64 [ 1, %162 ], [ %239, %237 ]
%167 = phi double [ %160, %162 ], [ %238, %237 ]
%168 = load i32**, i32*** %150
%169 = getelementptr inbounds i32*, i32** %168, i64 %159
%170 = load i32*, i32** %169
%171 = getelementptr inbounds i32, i32* %170, i64 %166
%172 = load i32, i32* %171
%173 = tail call i64 @isfluid(i32 %172)
%174 = icmp eq i64 %173, 0
br i1 %174, label %237, label %175
175: ; preds = %165
%176 = load i32**, i32*** %150
%177 = getelementptr inbounds i32*, i32** %176, i64 %159
%178 = load i32*, i32** %177
%179 = getelementptr inbounds i32, i32* %178, i64 %166
%180 = load i32, i32* %179
%181 = tail call i32 @emptyneighbor(i32 %180)
%182 = icmp eq i32 %181, 0
br i1 %182, label %183, label %237
183: ; preds = %175
%184 = load double**, double*** %153
%185 = getelementptr inbounds double*, double** %184, i64 %159
%186 = load double*, double** %185
%187 = getelementptr inbounds double, double* %186, i64 %166
%188 = load double, double* %187
%189 = load double**, double*** %154
%190 = getelementptr inbounds double*, double** %189, i64 %159
%191 = load double*, double** %190
%192 = getelementptr inbounds double, double* %191, i64 %166
%193 = load double, double* %192
%194 = load double**, double*** %156
%195 = getelementptr inbounds double*, double** %194, i64 %159
%196 = load double*, double** %195
%197 = getelementptr inbounds double, double* %196, i64 %166
%198 = load double, double* %197
%199 = getelementptr inbounds double*, double** %189, i64 %163
%200 = load double*, double** %199
%201 = getelementptr inbounds double, double* %200, i64 %166
%202 = load double, double* %201
%203 = tail call double @llvm.fmuladd.f64(double %193, double -2.000000e+00, double %202)
%204 = getelementptr inbounds double*, double** %189, i64 %164
%205 = load double*, double** %204
%206 = getelementptr inbounds double, double* %205, i64 %166
%207 = load double, double* %206
%208 = fadd double %203, %207
%209 = fdiv double %208, %17
%210 = add nuw i64 %166, 1
%211 = and i64 %210, 4294967295
%212 = getelementptr inbounds double, double* %191, i64 %211
%213 = load double, double* %212
%214 = insertelement <2 x double> poison, double %193, i64 0
%215 = shufflevector <2 x double> %214, <2 x double> poison, <2 x i32> zeroinitializer
%216 = insertelement <2 x double> poison, double %188, i64 0
%217 = insertelement <2 x double> %216, double %213, i64 1
%218 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %215, <2 x double> <double -2.000000e+00, double -2.000000e+00>, <2 x double> %217)
%219 = add nsw i64 %166, -1
%220 = getelementptr inbounds double, double* %191, i64 %219
%221 = load double, double* %220
%222 = insertelement <2 x double> poison, double %198, i64 0
%223 = insertelement <2 x double> %222, double %221, i64 1
%224 = fadd <2 x double> %218, %223
%225 = fdiv <2 x double> %224, %14
%226 = extractelement <2 x double> %225, i64 0
%227 = fadd double %226, %209
%228 = extractelement <2 x double> %225, i64 1
%229 = fadd double %227, %228
%230 = load double**, double*** %157
%231 = getelementptr inbounds double*, double** %230, i64 %159
%232 = load double*, double** %231
%233 = getelementptr inbounds double, double* %232, i64 %166
%234 = load double, double* %233
%235 = fsub double %229, %234
%236 = tail call double @llvm.fmuladd.f64(double %235, double %235, double %167)
br label %237
237: ; preds = %165, %175, %183
%238 = phi double [ %167, %175 ], [ %236, %183 ], [ %167, %165 ]
%239 = add nuw nsw i64 %166, 1
%240 = icmp eq i64 %239, %59
br i1 %240, label %241, label %165
241: ; preds = %237, %158
%242 = phi double [ %160, %158 ], [ %238, %237 ]
%243 = icmp eq i64 %161, %58
br i1 %243, label %244, label %158
244: ; preds = %241, %147
%245 = phi i64 [ %148, %147 ], [ %151, %241 ]
%246 = phi double [ %146, %147 ], [ %242, %241 ]
%247 = icmp eq i64 %245, %57
br i1 %247, label %248, label %144
248: ; preds = %244, %11, %50
%249 = phi double [ %142, %50 ], [ 0.000000e+00, %11 ], [ %142, %244 ]
%250 = phi double [ 0.000000e+00, %50 ], [ 0.000000e+00, %11 ], [ %246, %244 ]
%251 = fdiv double %250, %249
%252 = tail call double @sqrt(double %251)
store double %252, double* %9
%253 = tail call i32 @boundaryvalues_pressure(double*** %7, i32*** %10, i32 %4, i32 %5, i32 %6)
ret void
}