#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 */
int getFilteredPos(double *, double *, double *, double *, double *, int *,
                   double, int, int);
double *getP0(double *, double *, double *, double *, double *, double *, int,
              int);
double *getP1(double *, double *, double *, double *, double *, double *, int,
              int, double *);
double *getP2(double *, double *, double *, double *, double *, double *, int,
              int, double *);
double *getP3(double *, double *, double *, double *, double *, double *, int,
              int, double *);
double *getP4(double *, double *, double *, double *, double *, double *, int,
              int, double *);
double *getP5(double *, double *, double *, double *, double *, double *, int,
              int, double *);
double *getP6(double *, double *, double *, double *, double *, double *, int,
              int, double *);
double *getP7(double *, double *, double *, double *, double *, double *, int,
              int, double *);
double *getP8(double *, double *, double *, double *, double *, double *, int,
              int, double *);
double *getP9(double *, double *, double *, double *, double *, double *, int,
              int, double *);
int /*<<< orphan*/ getPM(double *, double *, int, int, int, int, int, int);
double *getR2(double *, double *, double *, int);
double *getReals(double *, double *, int);
scalar_t__ malloc(int);
double *soap(double *c, double *Apos, double *Hpos, double *alphas,
             double *betas, int *typeNs, double rCut, int totalAN, int Ntypes,
             int Nsize, int l, int Hsize) {
  int lS = l + 1;
  double *soapMat =
      (double *)malloc(sizeof(double) * Hsize * lS * Nsize * Nsize * Ntypes);
#pragma omp parallel
  {
    double *P0;
    double *ReX;
    double *r2;
    double *P1;
    double *P2;
    double *P3;
    double *P4;
    double *P5;
    double *P6;
    double *P7;
    double *P8;
    double *P9;
    double *x = (double *)malloc(sizeof(double) * totalAN);
    double *y = (double *)malloc(sizeof(double) * totalAN);
    double *z = (double *)malloc(sizeof(double) * totalAN);
    int Asize = 0;
#pragma omp for schedule(static)
    for (int i = 0; i < Hsize; i++) {
      for (int j = 0; j < Ntypes; j++) {
        Asize = getFilteredPos(x, y, z, Apos, Hpos, typeNs, rCut * rCut, i, j);
        r2 = getR2(x, y, z, Asize);
        ReX = getReals(x, y, Asize);
        P0 = getP0(x, y, z, r2, alphas, betas, Asize, Nsize);
        getPM(soapMat, P0, Nsize, lS, Ntypes, j, 0, i);
        if (l > 0) {
          P1 = getP1(x, y, z, r2, alphas, betas, Asize, Nsize, ReX);
          getPM(soapMat, P1, Nsize, lS, Ntypes, j, 1, i);
        }
        if (l > 1) {
          P2 = getP2(x, y, z, r2, alphas, betas, Asize, Nsize, ReX);
          getPM(soapMat, P2, Nsize, lS, Ntypes, j, 2, i);
        }
        if (l > 2) {
          P3 = getP3(x, y, z, r2, alphas, betas, Asize, Nsize, ReX);
          getPM(soapMat, P3, Nsize, lS, Ntypes, j, 3, i);
        }
        if (l > 3) {
          P4 = getP4(x, y, z, r2, alphas, betas, Asize, Nsize, ReX);
          getPM(soapMat, P4, Nsize, lS, Ntypes, j, 4, i);
        }
        if (l > 4) {
          P5 = getP5(x, y, z, r2, alphas, betas, Asize, Nsize, ReX);
          getPM(soapMat, P5, Nsize, lS, Ntypes, j, 5, i);
        }
        if (l > 5) {
          P6 = getP6(x, y, z, r2, alphas, betas, Asize, Nsize, ReX);
          getPM(soapMat, P6, Nsize, lS, Ntypes, j, 6, i);
        }
        if (l > 6) {
          P7 = getP7(x, y, z, r2, alphas, betas, Asize, Nsize, ReX);
          getPM(soapMat, P7, Nsize, lS, Ntypes, j, 7, i);
        }
        if (l > 7) {
          P8 = getP8(x, y, z, r2, alphas, betas, Asize, Nsize, ReX);
          getPM(soapMat, P8, Nsize, lS, Ntypes, j, 8, i);
        }
        if (l > 8) {
          P9 = getP9(x, y, z, r2, alphas, betas, Asize, Nsize, ReX);
          getPM(soapMat, P9, Nsize, lS, Ntypes, j, 9, i);
        }
      }
    }
  }
  return soapMat;
}


x86 assembly (clang, -O0):
<soap>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movsd  %xmm0,-0x38(%rbp)
mov    0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
movslq 0x30(%rbp),%rax
shl    $0x3,%rax
movslq -0x3c(%rbp),%rcx
imul   %rcx,%rax
movslq 0x20(%rbp),%rcx
imul   %rcx,%rax
movslq 0x20(%rbp),%rcx
imul   %rcx,%rax
movslq 0x18(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1100 <malloc@plt>
mov    %rax,-0x48(%rbp)
movslq 0x10(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1100 <malloc@plt>
mov    %rax,-0xb0(%rbp)
movslq 0x10(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1100 <malloc@plt>
mov    %rax,-0xb8(%rbp)
movslq 0x10(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1100 <malloc@plt>
mov    %rax,-0xc0(%rbp)
movl   $0x0,-0xc4(%rbp)
movl   $0x0,-0xc8(%rbp)
mov    -0xc8(%rbp),%eax
cmp    0x30(%rbp),%eax
jge    18ab <soap+0x6bb>
movl   $0x0,-0xcc(%rbp)
mov    -0xcc(%rbp),%eax
cmp    0x18(%rbp),%eax
jge    1892 <soap+0x6a2>
mov    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    -0xc0(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x30(%rbp),%r9
movsd  -0x38(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
mov    -0xc8(%rbp),%r10d
mov    -0xcc(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1110 <getFilteredPos@plt>
mov    %eax,-0xc4(%rbp)
mov    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    -0xc0(%rbp),%rdx
mov    -0xc4(%rbp),%ecx
call   10a0 <getR2@plt>
mov    %rax,-0x60(%rbp)
mov    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    -0xc4(%rbp),%edx
call   1030 <getReals@plt>
mov    %rax,-0x58(%rbp)
mov    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    -0xc0(%rbp),%rdx
mov    -0x60(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0xc4(%rbp),%r10d
mov    0x20(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   10b0 <getP0@plt>
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    0x20(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    0x18(%rbp),%r8d
mov    -0xcc(%rbp),%r9d
mov    -0xc8(%rbp),%eax
xor    %r10d,%r10d
movl   $0x0,(%rsp)
mov    %eax,0x8(%rsp)
call   1090 <getPM@plt>
cmpl   $0x0,0x28(%rbp)
jle    145b <soap+0x26b>
mov    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    -0xc0(%rbp),%rdx
mov    -0x60(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0xc4(%rbp),%r11d
mov    0x20(%rbp),%r10d
mov    -0x58(%rbp),%rax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1070 <getP1@plt>
mov    %rax,-0x68(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x68(%rbp),%rsi
mov    0x20(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    0x18(%rbp),%r8d
mov    -0xcc(%rbp),%r9d
mov    -0xc8(%rbp),%eax
movl   $0x1,(%rsp)
mov    %eax,0x8(%rsp)
call   1090 <getPM@plt>
cmpl   $0x1,0x28(%rbp)
jle    14db <soap+0x2eb>
mov    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    -0xc0(%rbp),%rdx
mov    -0x60(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0xc4(%rbp),%r11d
mov    0x20(%rbp),%r10d
mov    -0x58(%rbp),%rax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   10d0 <getP2@plt>
mov    %rax,-0x70(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x70(%rbp),%rsi
mov    0x20(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    0x18(%rbp),%r8d
mov    -0xcc(%rbp),%r9d
mov    -0xc8(%rbp),%eax
movl   $0x2,(%rsp)
mov    %eax,0x8(%rsp)
call   1090 <getPM@plt>
cmpl   $0x2,0x28(%rbp)
jle    155b <soap+0x36b>
mov    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    -0xc0(%rbp),%rdx
mov    -0x60(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0xc4(%rbp),%r11d
mov    0x20(%rbp),%r10d
mov    -0x58(%rbp),%rax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1060 <getP3@plt>
mov    %rax,-0x78(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x78(%rbp),%rsi
mov    0x20(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    0x18(%rbp),%r8d
mov    -0xcc(%rbp),%r9d
mov    -0xc8(%rbp),%eax
movl   $0x3,(%rsp)
mov    %eax,0x8(%rsp)
call   1090 <getPM@plt>
cmpl   $0x3,0x28(%rbp)
jle    15db <soap+0x3eb>
mov    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    -0xc0(%rbp),%rdx
mov    -0x60(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0xc4(%rbp),%r11d
mov    0x20(%rbp),%r10d
mov    -0x58(%rbp),%rax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   10f0 <getP4@plt>
mov    %rax,-0x80(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x80(%rbp),%rsi
mov    0x20(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    0x18(%rbp),%r8d
mov    -0xcc(%rbp),%r9d
mov    -0xc8(%rbp),%eax
movl   $0x4,(%rsp)
mov    %eax,0x8(%rsp)
call   1090 <getPM@plt>
cmpl   $0x4,0x28(%rbp)
jle    1661 <soap+0x471>
mov    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    -0xc0(%rbp),%rdx
mov    -0x60(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0xc4(%rbp),%r11d
mov    0x20(%rbp),%r10d
mov    -0x58(%rbp),%rax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1040 <getP5@plt>
mov    %rax,-0x88(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x88(%rbp),%rsi
mov    0x20(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    0x18(%rbp),%r8d
mov    -0xcc(%rbp),%r9d
mov    -0xc8(%rbp),%eax
movl   $0x5,(%rsp)
mov    %eax,0x8(%rsp)
call   1090 <getPM@plt>
cmpl   $0x5,0x28(%rbp)
jle    16e7 <soap+0x4f7>
mov    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    -0xc0(%rbp),%rdx
mov    -0x60(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0xc4(%rbp),%r11d
mov    0x20(%rbp),%r10d
mov    -0x58(%rbp),%rax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   10c0 <getP6@plt>
mov    %rax,-0x90(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x90(%rbp),%rsi
mov    0x20(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    0x18(%rbp),%r8d
mov    -0xcc(%rbp),%r9d
mov    -0xc8(%rbp),%eax
movl   $0x6,(%rsp)
mov    %eax,0x8(%rsp)
call   1090 <getPM@plt>
cmpl   $0x6,0x28(%rbp)
jle    176d <soap+0x57d>
mov    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    -0xc0(%rbp),%rdx
mov    -0x60(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0xc4(%rbp),%r11d
mov    0x20(%rbp),%r10d
mov    -0x58(%rbp),%rax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1050 <getP7@plt>
mov    %rax,-0x98(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x98(%rbp),%rsi
mov    0x20(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    0x18(%rbp),%r8d
mov    -0xcc(%rbp),%r9d
mov    -0xc8(%rbp),%eax
movl   $0x7,(%rsp)
mov    %eax,0x8(%rsp)
call   1090 <getPM@plt>
cmpl   $0x7,0x28(%rbp)
jle    17f3 <soap+0x603>
mov    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    -0xc0(%rbp),%rdx
mov    -0x60(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0xc4(%rbp),%r11d
mov    0x20(%rbp),%r10d
mov    -0x58(%rbp),%rax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   10e0 <getP8@plt>
mov    %rax,-0xa0(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0xa0(%rbp),%rsi
mov    0x20(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    0x18(%rbp),%r8d
mov    -0xcc(%rbp),%r9d
mov    -0xc8(%rbp),%eax
movl   $0x8,(%rsp)
mov    %eax,0x8(%rsp)
call   1090 <getPM@plt>
cmpl   $0x8,0x28(%rbp)
jle    1879 <soap+0x689>
mov    -0xb0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    -0xc0(%rbp),%rdx
mov    -0x60(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0xc4(%rbp),%r11d
mov    0x20(%rbp),%r10d
mov    -0x58(%rbp),%rax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1080 <getP9@plt>
mov    %rax,-0xa8(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0xa8(%rbp),%rsi
mov    0x20(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    0x18(%rbp),%r8d
mov    -0xcc(%rbp),%r9d
mov    -0xc8(%rbp),%eax
movl   $0x9,(%rsp)
mov    %eax,0x8(%rsp)
call   1090 <getPM@plt>
jmp    187e <soap+0x68e>
mov    -0xcc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xcc(%rbp)
jmp    12d2 <soap+0xe2>
jmp    1897 <soap+0x6a7>
mov    -0xc8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc8(%rbp)
jmp    12b9 <soap+0xc9>
mov    -0x48(%rbp),%rax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<soap>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
movsd  %xmm0,0x40(%rsp)
mov    %r9,0x70(%rsp)
mov    %r8,0x20(%rsp)
mov    %rcx,0x58(%rsp)
mov    %rdx,0x68(%rsp)
mov    %rsi,0x60(%rsp)
mov    0xd0(%rsp),%r12d
mov    0xc8(%rsp),%eax
mov    0xc0(%rsp),%ecx
mov    0xb8(%rsp),%r13d
mov    0xb0(%rsp),%r14d
lea    0x1(%rax),%edx
mov    %r13d,%eax
imul   %ecx,%eax
mov    %ecx,%edi
imul   %r12d,%edi
imul   %eax,%edi
mov    %edx,0xc(%rsp)
imul   %edx,%edi
shl    $0x3,%edi
call   1100 <malloc@plt>
mov    %rax,0x10(%rsp)
shl    $0x3,%r14d
mov    %r14d,%edi
call   1100 <malloc@plt>
mov    %rax,%r15
mov    %r14d,%edi
call   1100 <malloc@plt>
mov    %rax,%rbp
mov    %r14d,%edi
call   1100 <malloc@plt>
test   %r12d,%r12d
jle    178c <soap+0x59c>
mov    %rax,%r14
movsd  0x40(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movsd  %xmm0,0x40(%rsp)
xor    %ecx,%ecx
mov    %rbp,0x18(%rsp)
jmp    12c5 <soap+0xd5>
mov    0x48(%rsp),%rcx
add    $0x1,%ecx
cmp    0xd0(%rsp),%ecx
je     178c <soap+0x59c>
mov    %rcx,0x48(%rsp)
test   %r13d,%r13d
jle    12b0 <soap+0xc0>
xor    %r12d,%r12d
jmp    12f6 <soap+0x106>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%r12d
mov    0xb8(%rsp),%r13d
cmp    %r12d,%r13d
mov    0x18(%rsp),%rbp
je     12b0 <soap+0xc0>
mov    %r12,0x50(%rsp)
mov    %r15,%rdi
mov    %rbp,%rsi
mov    %r15,%r13
mov    %rbp,%r15
mov    %r14,%rdx
mov    0x60(%rsp),%rcx
mov    0x68(%rsp),%r8
mov    0x70(%rsp),%r9
movsd  0x40(%rsp),%xmm0
push   0x50(%rsp)
push   0x50(%rsp)
call   1110 <getFilteredPos@plt>
add    $0x10,%rsp
mov    %eax,%r12d
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r14,%rdx
mov    %eax,%ecx
call   10a0 <getR2@plt>
mov    0x58(%rsp),%rbp
mov    %rax,%rbx
mov    %r13,%rdi
mov    %r15,%rsi
mov    %r12d,%edx
call   1030 <getReals@plt>
mov    %rax,0x28(%rsp)
mov    %r13,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    %rbx,0x30(%rsp)
mov    %rbx,%rcx
mov    %rbp,%r8
mov    0x20(%rsp),%r9
mov    0xc0(%rsp),%ebx
push   %rbx
mov    %r12,0x40(%rsp)
push   %r12
call   10b0 <getP0@plt>
add    $0x10,%rsp
mov    0x10(%rsp),%rdi
mov    %rax,%rsi
mov    %ebx,%edx
mov    0xc(%rsp),%ecx
mov    0xb8(%rsp),%r8d
mov    0x50(%rsp),%r12
mov    %rbp,%rbx
mov    %r13,%r15
mov    0x48(%rsp),%r13
mov    %r12d,%r9d
push   %r13
push   $0x0
call   1090 <getPM@plt>
add    $0x10,%rsp
mov    0xc8(%rsp),%eax
test   %eax,%eax
jle    12e0 <soap+0xf0>
sub    $0x8,%rsp
mov    %r15,%rdi
mov    0x20(%rsp),%rsi
mov    %r14,%rdx
mov    0x38(%rsp),%rcx
mov    %rbx,%r8
mov    0x28(%rsp),%r9
push   0x30(%rsp)
mov    0xd0(%rsp),%ebp
push   %rbp
push   0x50(%rsp)
call   1070 <getP1@plt>
add    $0x20,%rsp
mov    0x10(%rsp),%rdi
mov    %rax,%rsi
mov    %ebp,%edx
mov    0xc(%rsp),%ecx
mov    0xb8(%rsp),%r8d
mov    %r12d,%r9d
push   %r13
push   $0x1
call   1090 <getPM@plt>
add    $0x10,%rsp
mov    0xc8(%rsp),%eax
cmp    $0x1,%eax
je     12e0 <soap+0xf0>
sub    $0x8,%rsp
mov    %r15,%rdi
mov    0x20(%rsp),%rsi
mov    %r14,%rdx
mov    0x38(%rsp),%rcx
mov    %rbx,%r8
mov    0x28(%rsp),%r9
push   0x30(%rsp)
mov    0xd0(%rsp),%ebp
push   %rbp
push   0x50(%rsp)
call   10d0 <getP2@plt>
add    $0x20,%rsp
mov    0x10(%rsp),%rdi
mov    %rax,%rsi
mov    %ebp,%edx
mov    0xc(%rsp),%ecx
mov    0xb8(%rsp),%r8d
mov    %r12d,%r9d
push   %r13
push   $0x2
call   1090 <getPM@plt>
add    $0x10,%rsp
mov    0xc8(%rsp),%eax
cmp    $0x3,%eax
jb     12e0 <soap+0xf0>
sub    $0x8,%rsp
mov    %r15,%rdi
mov    0x20(%rsp),%rsi
mov    %r14,%rdx
mov    0x38(%rsp),%rcx
mov    %rbx,%r8
mov    0x28(%rsp),%r9
push   0x30(%rsp)
mov    0xd0(%rsp),%ebp
push   %rbp
push   0x50(%rsp)
call   1060 <getP3@plt>
add    $0x20,%rsp
mov    0x10(%rsp),%rdi
mov    %rax,%rsi
mov    %ebp,%edx
mov    0xc(%rsp),%ecx
mov    0xb8(%rsp),%r8d
mov    %r12d,%r9d
push   %r13
push   $0x3
call   1090 <getPM@plt>
add    $0x10,%rsp
mov    0xc8(%rsp),%eax
cmp    $0x3,%eax
je     12e0 <soap+0xf0>
sub    $0x8,%rsp
mov    %r15,%rdi
mov    0x20(%rsp),%rsi
mov    %r14,%rdx
mov    0x38(%rsp),%rcx
mov    %rbx,%r8
mov    0x28(%rsp),%r9
push   0x30(%rsp)
mov    0xd0(%rsp),%ebp
push   %rbp
push   0x50(%rsp)
call   10f0 <getP4@plt>
add    $0x20,%rsp
mov    0x10(%rsp),%rdi
mov    %rax,%rsi
mov    %ebp,%edx
mov    0xc(%rsp),%ecx
mov    0xb8(%rsp),%r8d
mov    %r12d,%r9d
push   %r13
push   $0x4
call   1090 <getPM@plt>
add    $0x10,%rsp
mov    0xc8(%rsp),%eax
cmp    $0x5,%eax
jb     12e0 <soap+0xf0>
sub    $0x8,%rsp
mov    %r15,%rdi
mov    0x20(%rsp),%rsi
mov    %r14,%rdx
mov    0x38(%rsp),%rcx
mov    %rbx,%r8
mov    0x28(%rsp),%r9
push   0x30(%rsp)
mov    0xd0(%rsp),%ebp
push   %rbp
push   0x50(%rsp)
call   1040 <getP5@plt>
add    $0x20,%rsp
mov    0x10(%rsp),%rdi
mov    %rax,%rsi
mov    %ebp,%edx
mov    0xc(%rsp),%ecx
mov    0xb8(%rsp),%r8d
mov    %r12d,%r9d
push   %r13
push   $0x5
call   1090 <getPM@plt>
add    $0x10,%rsp
mov    0xc8(%rsp),%eax
cmp    $0x5,%eax
je     12e0 <soap+0xf0>
sub    $0x8,%rsp
mov    %r15,%rdi
mov    0x20(%rsp),%rsi
mov    %r14,%rdx
mov    0x38(%rsp),%rcx
mov    %rbx,%r8
mov    0x28(%rsp),%r9
push   0x30(%rsp)
mov    0xd0(%rsp),%ebp
push   %rbp
push   0x50(%rsp)
call   10c0 <getP6@plt>
add    $0x20,%rsp
mov    0x10(%rsp),%rdi
mov    %rax,%rsi
mov    %ebp,%edx
mov    0xc(%rsp),%ecx
mov    0xb8(%rsp),%r8d
mov    %r12d,%r9d
push   %r13
push   $0x6
call   1090 <getPM@plt>
add    $0x10,%rsp
mov    0xc8(%rsp),%eax
cmp    $0x7,%eax
jb     12e0 <soap+0xf0>
sub    $0x8,%rsp
mov    %r15,%rdi
mov    0x20(%rsp),%rsi
mov    %r14,%rdx
mov    0x38(%rsp),%rcx
mov    %rbx,%r8
mov    0x28(%rsp),%r9
push   0x30(%rsp)
mov    0xd0(%rsp),%ebp
push   %rbp
push   0x50(%rsp)
call   1050 <getP7@plt>
add    $0x20,%rsp
mov    0x10(%rsp),%rdi
mov    %rax,%rsi
mov    %ebp,%edx
mov    0xc(%rsp),%ecx
mov    0xb8(%rsp),%r8d
mov    %r12d,%r9d
push   %r13
push   $0x7
call   1090 <getPM@plt>
add    $0x10,%rsp
mov    0xc8(%rsp),%eax
cmp    $0x7,%eax
je     12e0 <soap+0xf0>
sub    $0x8,%rsp
mov    %r15,%rdi
mov    0x20(%rsp),%rsi
mov    %r14,%rdx
mov    0x38(%rsp),%rcx
mov    %rbx,%r8
mov    0x28(%rsp),%r9
push   0x30(%rsp)
mov    0xd0(%rsp),%ebp
push   %rbp
push   0x50(%rsp)
call   10e0 <getP8@plt>
add    $0x20,%rsp
mov    0x10(%rsp),%rdi
mov    %rax,%rsi
mov    %ebp,%edx
mov    0xc(%rsp),%ecx
mov    0xb8(%rsp),%r8d
mov    %r12d,%r9d
push   %r13
push   $0x8
call   1090 <getPM@plt>
add    $0x10,%rsp
mov    0xc8(%rsp),%eax
cmp    $0x9,%eax
jb     12e0 <soap+0xf0>
sub    $0x8,%rsp
mov    %r15,%rdi
mov    0x20(%rsp),%rsi
mov    %r14,%rdx
mov    0x38(%rsp),%rcx
mov    %rbx,%r8
mov    0x28(%rsp),%r9
push   0x30(%rsp)
mov    0xd0(%rsp),%ebp
push   %rbp
push   0x50(%rsp)
call   1080 <getP9@plt>
add    $0x20,%rsp
mov    0x10(%rsp),%rdi
mov    %rax,%rsi
mov    %ebp,%edx
mov    0xc(%rsp),%ecx
mov    0xb8(%rsp),%r8d
mov    %r12d,%r9d
push   %r13
push   $0x9
call   1090 <getPM@plt>
add    $0x10,%rsp
jmp    12e0 <soap+0xf0>
mov    0x10(%rsp),%rax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define double* @soap(double* nocapture readnone %0, double* %1, double* %2, double* %3, double* %4, i32* %5, double %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11) {
%13 = add nsw i32 %10, 1
%14 = shl i32 %8, 3
%15 = mul i32 %14, %9
%16 = mul i32 %15, %9
%17 = mul i32 %16, %11
%18 = mul i32 %17, %13
%19 = tail call i64 @malloc(i32 %18)
%20 = inttoptr i64 %19 to double*
%21 = shl i32 %7, 3
%22 = tail call i64 @malloc(i32 %21)
%23 = inttoptr i64 %22 to double*
%24 = tail call i64 @malloc(i32 %21)
%25 = inttoptr i64 %24 to double*
%26 = tail call i64 @malloc(i32 %21)
%27 = inttoptr i64 %26 to double*
%28 = icmp sgt i32 %11, 0
br i1 %28, label %29, label %43
29: ; preds = %12
%30 = icmp sgt i32 %8, 0
%31 = fmul double %6, %6
%32 = icmp sgt i32 %10, 0
%33 = icmp eq i32 %10, 1
%34 = icmp ugt i32 %10, 2
%35 = icmp eq i32 %10, 3
%36 = icmp ugt i32 %10, 4
%37 = icmp eq i32 %10, 5
%38 = icmp ugt i32 %10, 6
%39 = icmp eq i32 %10, 7
%40 = icmp ugt i32 %10, 8
br label %41
41: ; preds = %29, %44
%42 = phi i32 [ 0, %29 ], [ %45, %44 ]
br i1 %30, label %47, label %44
43: ; preds = %44, %12
ret double* %20
44: ; preds = %81, %41
%45 = add nuw nsw i32 %42, 1
%46 = icmp eq i32 %45, %11
br i1 %46, label %43, label %41
47: ; preds = %41, %81
%48 = phi i32 [ %82, %81 ], [ 0, %41 ]
%49 = tail call i32 @getFilteredPos(double* %23, double* %25, double* %27, double* %1, double* %2, i32* %5, double %31, i32 %42, i32 %48)
%50 = tail call double* @getR2(double* %23, double* %25, double* %27, i32 %49)
%51 = tail call double* @getReals(double* %23, double* %25, i32 %49)
%52 = tail call double* @getP0(double* %23, double* %25, double* %27, double* %50, double* %3, double* %4, i32 %49, i32 %9)
%53 = tail call i32 @getPM(double* %20, double* %52, i32 %9, i32 %13, i32 %8, i32 %48, i32 0, i32 %42)
br i1 %32, label %54, label %81
54: ; preds = %47
%55 = tail call double* @getP1(double* %23, double* %25, double* %27, double* %50, double* %3, double* %4, i32 %49, i32 %9, double* %51)
%56 = tail call i32 @getPM(double* %20, double* %55, i32 %9, i32 %13, i32 %8, i32 %48, i32 1, i32 %42)
br i1 %33, label %81, label %57
57: ; preds = %54
%58 = tail call double* @getP2(double* %23, double* %25, double* %27, double* %50, double* %3, double* %4, i32 %49, i32 %9, double* %51)
%59 = tail call i32 @getPM(double* %20, double* %58, i32 %9, i32 %13, i32 %8, i32 %48, i32 2, i32 %42)
br i1 %34, label %60, label %81
60: ; preds = %57
%61 = tail call double* @getP3(double* %23, double* %25, double* %27, double* %50, double* %3, double* %4, i32 %49, i32 %9, double* %51)
%62 = tail call i32 @getPM(double* %20, double* %61, i32 %9, i32 %13, i32 %8, i32 %48, i32 3, i32 %42)
br i1 %35, label %81, label %63
63: ; preds = %60
%64 = tail call double* @getP4(double* %23, double* %25, double* %27, double* %50, double* %3, double* %4, i32 %49, i32 %9, double* %51)
%65 = tail call i32 @getPM(double* %20, double* %64, i32 %9, i32 %13, i32 %8, i32 %48, i32 4, i32 %42)
br i1 %36, label %66, label %81
66: ; preds = %63
%67 = tail call double* @getP5(double* %23, double* %25, double* %27, double* %50, double* %3, double* %4, i32 %49, i32 %9, double* %51)
%68 = tail call i32 @getPM(double* %20, double* %67, i32 %9, i32 %13, i32 %8, i32 %48, i32 5, i32 %42)
br i1 %37, label %81, label %69
69: ; preds = %66
%70 = tail call double* @getP6(double* %23, double* %25, double* %27, double* %50, double* %3, double* %4, i32 %49, i32 %9, double* %51)
%71 = tail call i32 @getPM(double* %20, double* %70, i32 %9, i32 %13, i32 %8, i32 %48, i32 6, i32 %42)
br i1 %38, label %72, label %81
72: ; preds = %69
%73 = tail call double* @getP7(double* %23, double* %25, double* %27, double* %50, double* %3, double* %4, i32 %49, i32 %9, double* %51)
%74 = tail call i32 @getPM(double* %20, double* %73, i32 %9, i32 %13, i32 %8, i32 %48, i32 7, i32 %42)
br i1 %39, label %81, label %75
75: ; preds = %72
%76 = tail call double* @getP8(double* %23, double* %25, double* %27, double* %50, double* %3, double* %4, i32 %49, i32 %9, double* %51)
%77 = tail call i32 @getPM(double* %20, double* %76, i32 %9, i32 %13, i32 %8, i32 %48, i32 8, i32 %42)
br i1 %40, label %78, label %81
78: ; preds = %75
%79 = tail call double* @getP9(double* %23, double* %25, double* %27, double* %50, double* %3, double* %4, i32 %49, i32 %9, double* %51)
%80 = tail call i32 @getPM(double* %20, double* %79, i32 %9, i32 %13, i32 %8, i32 %48, i32 9, i32 %42)
br label %81
81: ; preds = %47, %54, %57, %60, %63, %66, %69, %72, %75, %78
%82 = add nuw nsw i32 %48, 1
%83 = icmp eq i32 %82, %8
br i1 %83, label %44, label %47
}