#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 /*<<< orphan*/ CG(double *, double *, double *, int, int, int *, int *,
                      double *, int *, double *, double *, double *);
int /*<<< orphan*/ PCG(double *, double *, double *, int, int, int *, int *,
                       double *, int *, int, double *, double *, double *,
                       double *, double *);
int /*<<< orphan*/ Scaling(double *, double *, int, int *, int *, double *);
scalar_t__ u_calloc(int, int, char *, int, char *);
int /*<<< orphan*/ u_free(double *, char *, int, char *);
int cgsolver(double *A, double *x, double *b, int neq, int len, int *ia,
             int *iz, double *eps, int *niter, int precFlg) {
  int i = 0;
  double *Factor = NULL, *r = NULL, *p = NULL, *z = NULL, *C = NULL, *g = NULL,
         *rho = NULL;
  for (i = 0; i < neq; i++)
    --iz[i];
  for (i = 0; i < len; i++)
    --ia[i];
  Factor = (double *)u_calloc(
      (neq), sizeof(double),
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/CalculiX/"
      "ccx_2.10/src/pcgsolver.c",
      84, "Factor");
  Scaling(A, b, neq, ia, iz, Factor);
  if (!precFlg) {
    r = (double *)u_calloc(
        (neq), sizeof(double),
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
        "CalculiX/ccx_2.10/src/pcgsolver.c",
        93, "r");
    p = (double *)u_calloc(
        (neq), sizeof(double),
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
        "CalculiX/ccx_2.10/src/pcgsolver.c",
        94, "p");
    z = (double *)u_calloc(
        (neq), sizeof(double),
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
        "CalculiX/ccx_2.10/src/pcgsolver.c",
        95, "z");
    CG(A, x, b, neq, len, ia, iz, eps, niter, r, p, z);
    u_free(r,
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
           "CalculiX/ccx_2.10/src/pcgsolver.c",
           97, "r");
    u_free(p,
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
           "CalculiX/ccx_2.10/src/pcgsolver.c",
           97, "p");
    u_free(z,
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
           "CalculiX/ccx_2.10/src/pcgsolver.c",
           97, "z");
  } else if (precFlg == 3) {
    rho = (double *)u_calloc(
        (neq), sizeof(double),
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
        "CalculiX/ccx_2.10/src/pcgsolver.c",
        105, "rho");
    r = (double *)u_calloc(
        (neq), sizeof(double),
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
        "CalculiX/ccx_2.10/src/pcgsolver.c",
        106, "r");
    g = (double *)u_calloc(
        (neq), sizeof(double),
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
        "CalculiX/ccx_2.10/src/pcgsolver.c",
        107, "g");
    C = (double *)u_calloc(
        (len), sizeof(double),
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
        "CalculiX/ccx_2.10/src/pcgsolver.c",
        108, "C");
    z = (double *)u_calloc(
        (neq), sizeof(double),
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
        "CalculiX/ccx_2.10/src/pcgsolver.c",
        109, "z");
    PCG(A, x, b, neq, len, ia, iz, eps, niter, precFlg, rho, r, g, C, z);
    u_free(rho,
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
           "CalculiX/ccx_2.10/src/pcgsolver.c",
           111, "rho");
    u_free(r,
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
           "CalculiX/ccx_2.10/src/pcgsolver.c",
           111, "r");
    u_free(g,
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
           "CalculiX/ccx_2.10/src/pcgsolver.c",
           111, "g");
    u_free(C,
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
           "CalculiX/ccx_2.10/src/pcgsolver.c",
           111, "C");
    u_free(z,
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
           "CalculiX/ccx_2.10/src/pcgsolver.c",
           111, "z");
  }
  for (i = 0; i < neq; i++)
    x[i] *= Factor[i];
  u_free(Factor,
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/"
         "CalculiX/ccx_2.10/src/pcgsolver.c",
         120, "Factor");
  return 0;
}


x86 assembly (clang, -O0):
<cgsolver>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %rdx,-0x40(%rbp)
mov    %ecx,-0x44(%rbp)
mov    %r8d,-0x48(%rbp)
mov    %r9,-0x50(%rbp)
movl   $0x0,-0x54(%rbp)
movq   $0x0,-0x60(%rbp)
movq   $0x0,-0x68(%rbp)
movq   $0x0,-0x70(%rbp)
movq   $0x0,-0x78(%rbp)
movq   $0x0,-0x80(%rbp)
movq   $0x0,-0x88(%rbp)
movq   $0x0,-0x90(%rbp)
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    1201 <cgsolver+0xb1>
mov    0x10(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
add    $0xffffffff,%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    11d6 <cgsolver+0x86>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    1233 <cgsolver+0xe3>
mov    -0x50(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
add    $0xffffffff,%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1208 <cgsolver+0xb8>
mov    -0x44(%rbp),%edi
mov    $0x8,%esi
lea    0xdbe(%rip),%rdx
mov    $0x54,%ecx
lea    0xe52(%rip),%r8
call   1060 <u_calloc@plt>
mov    %rax,-0x60(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x44(%rbp),%edx
mov    -0x50(%rbp),%rcx
mov    0x10(%rbp),%r8
mov    -0x60(%rbp),%r9
call   1070 <Scaling@plt>
cmpl   $0x0,0x28(%rbp)
jne    1393 <cgsolver+0x243>
mov    -0x44(%rbp),%edi
mov    $0x8,%esi
lea    0xd74(%rip),%rdx
mov    $0x5d,%ecx
lea    0xe0d(%rip),%r8
call   1060 <u_calloc@plt>
mov    %rax,-0x68(%rbp)
mov    -0x44(%rbp),%edi
mov    $0x8,%esi
lea    0xd50(%rip),%rdx
mov    $0x5e,%ecx
lea    0xdeb(%rip),%r8
call   1060 <u_calloc@plt>
mov    %rax,-0x70(%rbp)
mov    -0x44(%rbp),%edi
mov    $0x8,%esi
lea    0xd2c(%rip),%rdx
mov    $0x5f,%ecx
lea    0xdc9(%rip),%r8
call   1060 <u_calloc@plt>
mov    %rax,-0x78(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x44(%rbp),%ecx
mov    -0x48(%rbp),%r8d
mov    -0x50(%rbp),%r9
mov    0x10(%rbp),%r15
mov    0x18(%rbp),%r14
mov    0x20(%rbp),%rbx
mov    -0x68(%rbp),%r11
mov    -0x70(%rbp),%r10
mov    -0x78(%rbp),%rax
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1040 <CG@plt>
mov    -0x68(%rbp),%rdi
lea    0xcbb(%rip),%rsi
mov    $0x61,%edx
lea    0xd54(%rip),%rcx
call   1050 <u_free@plt>
mov    -0x70(%rbp),%rdi
lea    0xc9f(%rip),%rsi
mov    $0x61,%edx
lea    0xd3a(%rip),%rcx
call   1050 <u_free@plt>
mov    -0x78(%rbp),%rdi
lea    0xc83(%rip),%rsi
mov    $0x61,%edx
lea    0xd20(%rip),%rcx
call   1050 <u_free@plt>
jmp    157c <cgsolver+0x42c>
cmpl   $0x3,0x28(%rbp)
jne    1577 <cgsolver+0x427>
mov    -0x44(%rbp),%edi
mov    $0x8,%esi
lea    0xc54(%rip),%rdx
mov    $0x69,%ecx
lea    0xcf3(%rip),%r8
call   1060 <u_calloc@plt>
mov    %rax,-0x90(%rbp)
mov    -0x44(%rbp),%edi
mov    $0x8,%esi
lea    0xc2d(%rip),%rdx
mov    $0x6a,%ecx
lea    0xcc6(%rip),%r8
call   1060 <u_calloc@plt>
mov    %rax,-0x68(%rbp)
mov    -0x44(%rbp),%edi
mov    $0x8,%esi
lea    0xc09(%rip),%rdx
mov    $0x6b,%ecx
lea    0xcac(%rip),%r8
call   1060 <u_calloc@plt>
mov    %rax,-0x88(%rbp)
mov    -0x48(%rbp),%edi
mov    $0x8,%esi
lea    0xbe2(%rip),%rdx
mov    $0x6c,%ecx
lea    0xc87(%rip),%r8
call   1060 <u_calloc@plt>
mov    %rax,-0x80(%rbp)
mov    -0x44(%rbp),%edi
mov    $0x8,%esi
lea    0xbbe(%rip),%rdx
mov    $0x6d,%ecx
lea    0xc5b(%rip),%r8
call   1060 <u_calloc@plt>
mov    %rax,-0x78(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x44(%rbp),%ecx
mov    -0x48(%rbp),%r8d
mov    -0x50(%rbp),%r9
mov    0x10(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    0x18(%rbp),%r13
mov    0x20(%rbp),%r12
mov    0x28(%rbp),%r15d
mov    -0x90(%rbp),%r14
mov    -0x68(%rbp),%rbx
mov    -0x88(%rbp),%r11
mov    -0x80(%rbp),%r10
mov    -0x78(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0xa0(%rbp),%rax
mov    %rax,(%rsp)
mov    -0x98(%rbp),%rax
mov    %r13,0x8(%rsp)
mov    %r12,0x10(%rsp)
mov    %r15d,0x18(%rsp)
mov    %r14,0x20(%rsp)
mov    %rbx,0x28(%rsp)
mov    %r11,0x30(%rsp)
mov    %r10,0x38(%rsp)
mov    %rax,0x40(%rsp)
call   1030 <PCG@plt>
mov    -0x90(%rbp),%rdi
lea    0xb0d(%rip),%rsi
mov    $0x6f,%edx
lea    0xbac(%rip),%rcx
call   1050 <u_free@plt>
mov    -0x68(%rbp),%rdi
lea    0xaf1(%rip),%rsi
mov    $0x6f,%edx
lea    0xb8a(%rip),%rcx
call   1050 <u_free@plt>
mov    -0x88(%rbp),%rdi
lea    0xad2(%rip),%rsi
mov    $0x6f,%edx
lea    0xb75(%rip),%rcx
call   1050 <u_free@plt>
mov    -0x80(%rbp),%rdi
lea    0xab6(%rip),%rsi
mov    $0x6f,%edx
lea    0xb5b(%rip),%rcx
call   1050 <u_free@plt>
mov    -0x78(%rbp),%rdi
lea    0xa9a(%rip),%rsi
mov    $0x6f,%edx
lea    0xb37(%rip),%rcx
call   1050 <u_free@plt>
jmp    157c <cgsolver+0x42c>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    15bc <cgsolver+0x46c>
mov    -0x60(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x54(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1583 <cgsolver+0x433>
mov    -0x60(%rbp),%rdi
lea    0xa39(%rip),%rsi
mov    $0x78,%edx
lea    0xacd(%rip),%rcx
call   1050 <u_free@plt>
xor    %eax,%eax
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<cgsolver>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r9,%rbp
mov    %ecx,%r14d
mov    %rdx,0x30(%rsp)
mov    %rsi,%rbx
mov    %rdi,0x28(%rsp)
mov    0x80(%rsp),%r15
mov    %ecx,%r13d
test   %ecx,%ecx
jle    124e <cgsolver+0xfe>
cmp    $0x8,%r14d
jae    1191 <cgsolver+0x41>
xor    %eax,%eax
jmp    1240 <cgsolver+0xf0>
mov    %r13d,%eax
and    $0xfffffff8,%eax
lea    -0x8(%rax),%rcx
mov    %rcx,%rdx
shr    $0x3,%rdx
add    $0x1,%rdx
test   %rcx,%rcx
je     17b8 <cgsolver+0x668>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %ecx,%ecx
pcmpeqd %xmm0,%xmm0
nopl   0x0(%rax)
movdqu (%r15,%rcx,4),%xmm1
movdqu 0x10(%r15,%rcx,4),%xmm2
movdqu 0x20(%r15,%rcx,4),%xmm3
movdqu 0x30(%r15,%rcx,4),%xmm4
paddd  %xmm0,%xmm1
paddd  %xmm0,%xmm2
movdqu %xmm1,(%r15,%rcx,4)
movdqu %xmm2,0x10(%r15,%rcx,4)
paddd  %xmm0,%xmm3
paddd  %xmm0,%xmm4
movdqu %xmm3,0x20(%r15,%rcx,4)
movdqu %xmm4,0x30(%r15,%rcx,4)
add    $0x10,%rcx
add    $0xfffffffffffffffe,%rsi
jne    11c0 <cgsolver+0x70>
test   $0x1,%dl
je     123b <cgsolver+0xeb>
movdqu (%r15,%rcx,4),%xmm0
movdqu 0x10(%r15,%rcx,4),%xmm1
pcmpeqd %xmm2,%xmm2
paddd  %xmm2,%xmm0
paddd  %xmm2,%xmm1
movdqu %xmm0,(%r15,%rcx,4)
movdqu %xmm1,0x10(%r15,%rcx,4)
cmp    %r13,%rax
je     124e <cgsolver+0xfe>
addl   $0xffffffff,(%r15,%rax,4)
add    $0x1,%rax
cmp    %rax,%r13
jne    1240 <cgsolver+0xf0>
test   %r8d,%r8d
jle    132e <cgsolver+0x1de>
mov    %r8d,%eax
cmp    $0x8,%r8d
jae    1267 <cgsolver+0x117>
xor    %ecx,%ecx
jmp    1320 <cgsolver+0x1d0>
mov    %eax,%ecx
and    $0xfffffff8,%ecx
lea    -0x8(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x3,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     17c8 <cgsolver+0x678>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
pcmpeqd %xmm0,%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movdqu 0x0(%rbp,%rdx,4),%xmm1
movdqu 0x10(%rbp,%rdx,4),%xmm2
movdqu 0x20(%rbp,%rdx,4),%xmm3
movdqu 0x30(%rbp,%rdx,4),%xmm4
paddd  %xmm0,%xmm1
paddd  %xmm0,%xmm2
movdqu %xmm1,0x0(%rbp,%rdx,4)
movdqu %xmm2,0x10(%rbp,%rdx,4)
paddd  %xmm0,%xmm3
paddd  %xmm0,%xmm4
movdqu %xmm3,0x20(%rbp,%rdx,4)
movdqu %xmm4,0x30(%rbp,%rdx,4)
add    $0x10,%rdx
add    $0xfffffffffffffffe,%rdi
jne    12a0 <cgsolver+0x150>
test   $0x1,%sil
je     1314 <cgsolver+0x1c4>
movdqu 0x0(%rbp,%rdx,4),%xmm0
movdqu 0x10(%rbp,%rdx,4),%xmm1
pcmpeqd %xmm2,%xmm2
paddd  %xmm2,%xmm0
paddd  %xmm2,%xmm1
movdqu %xmm0,0x0(%rbp,%rdx,4)
movdqu %xmm1,0x10(%rbp,%rdx,4)
cmp    %rax,%rcx
je     132e <cgsolver+0x1de>
nopl   0x0(%rax)
addl   $0xffffffff,0x0(%rbp,%rcx,4)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1320 <cgsolver+0x1d0>
mov    %r8d,0xc(%rsp)
lea    0xcc6(%rip),%rdx
lea    0xd5f(%rip),%r8
mov    %r14d,%edi
mov    $0x8,%esi
mov    $0x54,%ecx
call   1060 <u_calloc@plt>
mov    %rax,%r12
mov    0x28(%rsp),%rdi
mov    0x30(%rsp),%rsi
mov    %r14d,%edx
mov    %rbp,%rcx
mov    %r15,%r8
mov    %rax,%r9
call   1070 <Scaling@plt>
mov    0x98(%rsp),%eax
cmp    $0x3,%eax
je     147d <cgsolver+0x32d>
test   %eax,%eax
jne    1603 <cgsolver+0x4b3>
lea    0xc70(%rip),%rdx
lea    0xd0e(%rip),%r8
mov    %r14d,%edi
mov    $0x8,%esi
mov    $0x5d,%ecx
call   1060 <u_calloc@plt>
mov    %rax,0x20(%rsp)
lea    0xcf2(%rip),%r8
mov    %r14d,%edi
mov    $0x8,%esi
lea    0xc3c(%rip),%rdx
mov    $0x5e,%ecx
call   1060 <u_calloc@plt>
mov    %rax,0x10(%rsp)
lea    0xccf(%rip),%r8
mov    %r14d,%edi
mov    $0x8,%esi
lea    0xc17(%rip),%rdx
mov    $0x5f,%ecx
call   1060 <u_calloc@plt>
mov    %rax,0x18(%rsp)
mov    0x28(%rsp),%rdi
mov    %rbx,%rsi
mov    0x30(%rsp),%rdx
mov    %r14d,%ecx
mov    0xc(%rsp),%r8d
mov    %rbp,%r9
push   %rax
push   0x18(%rsp)
mov    0x30(%rsp),%rbp
push   %rbp
push   0xa8(%rsp)
push   0xa8(%rsp)
push   %r15
call   1040 <CG@plt>
add    $0x30,%rsp
mov    %rbp,%rdi
lea    0xbc2(%rip),%rbp
mov    %rbp,%rsi
mov    $0x61,%edx
lea    0xc58(%rip),%rcx
call   1050 <u_free@plt>
mov    0x10(%rsp),%rdi
mov    %rbp,%rsi
mov    $0x61,%edx
lea    0xc41(%rip),%rcx
call   1050 <u_free@plt>
mov    0x18(%rsp),%rdi
mov    %rbp,%rsi
mov    $0x61,%edx
jmp    15f7 <cgsolver+0x4a7>
lea    0xb7c(%rip),%rdx
lea    0xc20(%rip),%r8
mov    %r14d,%edi
mov    $0x8,%esi
mov    $0x69,%ecx
call   1060 <u_calloc@plt>
mov    %rax,0x40(%rsp)
lea    0xbfc(%rip),%r8
mov    %r14d,%edi
mov    $0x8,%esi
lea    0xb48(%rip),%rdx
mov    $0x6a,%ecx
call   1060 <u_calloc@plt>
mov    %rax,0x10(%rsp)
lea    0xbe1(%rip),%r8
mov    %r14d,%edi
mov    $0x8,%esi
lea    0xb23(%rip),%rdx
mov    $0x6b,%ecx
call   1060 <u_calloc@plt>
mov    %rax,0x20(%rsp)
lea    0xbbe(%rip),%r8
mov    0xc(%rsp),%edi
mov    $0x8,%esi
lea    0xafd(%rip),%rdx
mov    $0x6c,%ecx
call   1060 <u_calloc@plt>
mov    %rax,0x18(%rsp)
lea    0xb90(%rip),%r8
mov    %r14d,%edi
mov    $0x8,%esi
lea    0xad8(%rip),%rdx
mov    $0x6d,%ecx
call   1060 <u_calloc@plt>
mov    %rax,0x38(%rsp)
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    %rbx,%rsi
mov    0x38(%rsp),%rdx
mov    %r14d,%ecx
mov    0x14(%rsp),%r8d
mov    %rbp,%r9
push   %rax
push   0x28(%rsp)
push   0x38(%rsp)
push   0x30(%rsp)
mov    0x68(%rsp),%rbp
push   %rbp
push   $0x3
push   0xc8(%rsp)
push   0xc8(%rsp)
push   %r15
call   1030 <PCG@plt>
add    $0x50,%rsp
mov    %rbp,%rdi
lea    0xa75(%rip),%rbp
mov    %rbp,%rsi
mov    $0x6f,%edx
lea    0xb11(%rip),%rcx
call   1050 <u_free@plt>
mov    0x10(%rsp),%rdi
mov    %rbp,%rsi
mov    $0x6f,%edx
lea    0xaf2(%rip),%rcx
call   1050 <u_free@plt>
mov    0x20(%rsp),%rdi
mov    %rbp,%rsi
mov    $0x6f,%edx
lea    0xae3(%rip),%rcx
call   1050 <u_free@plt>
mov    0x18(%rsp),%rdi
mov    %rbp,%rsi
mov    $0x6f,%edx
lea    0xacc(%rip),%rcx
call   1050 <u_free@plt>
mov    0x38(%rsp),%rdi
mov    %rbp,%rsi
mov    $0x6f,%edx
lea    0xaab(%rip),%rcx
call   1050 <u_free@plt>
test   %r14d,%r14d
jle    178c <cgsolver+0x63c>
cmp    $0x4,%r14d
jb     162c <cgsolver+0x4dc>
lea    (%r12,%r13,8),%rax
cmp    %rbx,%rax
jbe    16c7 <cgsolver+0x577>
lea    (%rbx,%r13,8),%rax
cmp    %rax,%r12
jae    16c7 <cgsolver+0x577>
xor    %eax,%eax
mov    %rax,%rcx
not    %rcx
add    %r13,%rcx
mov    %r13,%rdx
and    $0x3,%rdx
je     165a <cgsolver+0x50a>
movsd  (%r12,%rax,8),%xmm0
mulsd  (%rbx,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rdx
jne    1640 <cgsolver+0x4f0>
cmp    $0x3,%rcx
jb     178c <cgsolver+0x63c>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%r12,%rax,8),%xmm0
mulsd  (%rbx,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
movsd  0x8(%r12,%rax,8),%xmm0
mulsd  0x8(%rbx,%rax,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rax,8)
movsd  0x10(%r12,%rax,8),%xmm0
mulsd  0x10(%rbx,%rax,8),%xmm0
movsd  %xmm0,0x10(%rbx,%rax,8)
movsd  0x18(%r12,%rax,8),%xmm0
mulsd  0x18(%rbx,%rax,8),%xmm0
movsd  %xmm0,0x18(%rbx,%rax,8)
add    $0x4,%rax
cmp    %rax,%r13
jne    1670 <cgsolver+0x520>
jmp    178c <cgsolver+0x63c>
mov    %r13d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rcx
mov    %rcx,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rcx,%rcx
je     17d9 <cgsolver+0x689>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %ecx,%ecx
xchg   %ax,%ax
movupd (%r12,%rcx,8),%xmm0
movupd 0x10(%r12,%rcx,8),%xmm1
movupd (%rbx,%rcx,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x10(%rbx,%rcx,8),%xmm0
mulpd  %xmm1,%xmm0
movupd 0x20(%rbx,%rcx,8),%xmm1
movupd 0x30(%rbx,%rcx,8),%xmm3
movupd %xmm2,(%rbx,%rcx,8)
movupd %xmm0,0x10(%rbx,%rcx,8)
movupd 0x20(%r12,%rcx,8),%xmm0
mulpd  %xmm1,%xmm0
movupd 0x30(%r12,%rcx,8),%xmm1
mulpd  %xmm3,%xmm1
movupd %xmm0,0x20(%rbx,%rcx,8)
movupd %xmm1,0x30(%rbx,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rsi
jne    16f0 <cgsolver+0x5a0>
test   $0x1,%dl
je     1783 <cgsolver+0x633>
movupd (%r12,%rcx,8),%xmm0
movupd 0x10(%r12,%rcx,8),%xmm1
movupd (%rbx,%rcx,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x10(%rbx,%rcx,8),%xmm0
mulpd  %xmm1,%xmm0
movupd %xmm2,(%rbx,%rcx,8)
movupd %xmm0,0x10(%rbx,%rcx,8)
cmp    %r13,%rax
jne    162e <cgsolver+0x4de>
lea    0x86d(%rip),%rsi
lea    0x906(%rip),%rcx
mov    %r12,%rdi
mov    $0x78,%edx
call   1050 <u_free@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ecx,%ecx
test   $0x1,%dl
jne    1215 <cgsolver+0xc5>
jmp    123b <cgsolver+0xeb>
xor    %edx,%edx
test   $0x1,%sil
jne    12f0 <cgsolver+0x1a0>
jmp    1314 <cgsolver+0x1c4>
xor    %ecx,%ecx
test   $0x1,%dl
jne    1758 <cgsolver+0x608>
jmp    1783 <cgsolver+0x633>

LLVM IR (-O0):
@.str = [160 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/CalculiX/ccx_2.10/src/pcgsolver.c\00"
@.str.1 = [7 x i8] c"Factor\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [2 x i8] c"p\00"
@.str.4 = [2 x i8] c"z\00"
@.str.5 = [4 x i8] c"rho\00"
@.str.6 = [2 x i8] c"g\00"
@.str.7 = [2 x i8] c"C\00"
define i32 @cgsolver(double* %0, double* %1, double* %2, i32 %3, i32 %4, i32* %5, i32* %6, double* %7, i32* %8, i32 %9) {
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca double*
%19 = alloca i32*
%20 = alloca i32
%21 = alloca i32
%22 = alloca double*
%23 = alloca double*
%24 = alloca double*
%25 = alloca double*
%26 = alloca double*
%27 = alloca double*
%28 = alloca double*
store double* %0, double** %11
store double* %1, double** %12
store double* %2, double** %13
store i32 %3, i32* %14
store i32 %4, i32* %15
store i32* %5, i32** %16
store i32* %6, i32** %17
store double* %7, double** %18
store i32* %8, i32** %19
store i32 %9, i32* %20
store i32 0, i32* %21
store double* null, double** %22
store double* null, double** %23
store double* null, double** %24
store double* null, double** %25
store double* null, double** %26
store double* null, double** %27
store double* null, double** %28
store i32 0, i32* %21
br label %29
29: ; preds = %40, %10
%30 = load i32, i32* %21
%31 = load i32, i32* %14
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %43
33: ; preds = %29
%34 = load i32*, i32** %17
%35 = load i32, i32* %21
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, i32* %34, i64 %36
%38 = load i32, i32* %37
%39 = add nsw i32 %38, -1
store i32 %39, i32* %37
br label %40
40: ; preds = %33
%41 = load i32, i32* %21
%42 = add nsw i32 %41, 1
store i32 %42, i32* %21
br label %29
43: ; preds = %29
store i32 0, i32* %21
br label %44
44: ; preds = %55, %43
%45 = load i32, i32* %21
%46 = load i32, i32* %15
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %58
48: ; preds = %44
%49 = load i32*, i32** %16
%50 = load i32, i32* %21
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, i32* %49, i64 %51
%53 = load i32, i32* %52
%54 = add nsw i32 %53, -1
store i32 %54, i32* %52
br label %55
55: ; preds = %48
%56 = load i32, i32* %21
%57 = add nsw i32 %56, 1
store i32 %57, i32* %21
br label %44
58: ; preds = %44
%59 = load i32, i32* %14
%60 = call i64 @u_calloc(i32 %59, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 84, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%61 = inttoptr i64 %60 to double*
store double* %61, double** %22
%62 = load double*, double** %11
%63 = load double*, double** %13
%64 = load i32, i32* %14
%65 = load i32*, i32** %16
%66 = load i32*, i32** %17
%67 = load double*, double** %22
%68 = call i32 @Scaling(double* %62, double* %63, i32 %64, i32* %65, i32* %66, double* %67)
%69 = load i32, i32* %20
%70 = icmp ne i32 %69, 0
br i1 %70, label %100, label %71
71: ; preds = %58
%72 = load i32, i32* %14
%73 = call i64 @u_calloc(i32 %72, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 93, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%74 = inttoptr i64 %73 to double*
store double* %74, double** %23
%75 = load i32, i32* %14
%76 = call i64 @u_calloc(i32 %75, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 94, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%77 = inttoptr i64 %76 to double*
store double* %77, double** %24
%78 = load i32, i32* %14
%79 = call i64 @u_calloc(i32 %78, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 95, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%80 = inttoptr i64 %79 to double*
store double* %80, double** %25
%81 = load double*, double** %11
%82 = load double*, double** %12
%83 = load double*, double** %13
%84 = load i32, i32* %14
%85 = load i32, i32* %15
%86 = load i32*, i32** %16
%87 = load i32*, i32** %17
%88 = load double*, double** %18
%89 = load i32*, i32** %19
%90 = load double*, double** %23
%91 = load double*, double** %24
%92 = load double*, double** %25
%93 = call i32 @CG(double* %81, double* %82, double* %83, i32 %84, i32 %85, i32* %86, i32* %87, double* %88, i32* %89, double* %90, double* %91, double* %92)
%94 = load double*, double** %23
%95 = call i32 @u_free(double* %94, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 97, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%96 = load double*, double** %24
%97 = call i32 @u_free(double* %96, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 97, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%98 = load double*, double** %25
%99 = call i32 @u_free(double* %98, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 97, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %146
100: ; preds = %58
%101 = load i32, i32* %20
%102 = icmp eq i32 %101, 3
br i1 %102, label %103, label %145
103: ; preds = %100
%104 = load i32, i32* %14
%105 = call i64 @u_calloc(i32 %104, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 105, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%106 = inttoptr i64 %105 to double*
store double* %106, double** %28
%107 = load i32, i32* %14
%108 = call i64 @u_calloc(i32 %107, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 106, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%109 = inttoptr i64 %108 to double*
store double* %109, double** %23
%110 = load i32, i32* %14
%111 = call i64 @u_calloc(i32 %110, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 107, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%112 = inttoptr i64 %111 to double*
store double* %112, double** %27
%113 = load i32, i32* %15
%114 = call i64 @u_calloc(i32 %113, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 108, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%115 = inttoptr i64 %114 to double*
store double* %115, double** %26
%116 = load i32, i32* %14
%117 = call i64 @u_calloc(i32 %116, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 109, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%118 = inttoptr i64 %117 to double*
store double* %118, double** %25
%119 = load double*, double** %11
%120 = load double*, double** %12
%121 = load double*, double** %13
%122 = load i32, i32* %14
%123 = load i32, i32* %15
%124 = load i32*, i32** %16
%125 = load i32*, i32** %17
%126 = load double*, double** %18
%127 = load i32*, i32** %19
%128 = load i32, i32* %20
%129 = load double*, double** %28
%130 = load double*, double** %23
%131 = load double*, double** %27
%132 = load double*, double** %26
%133 = load double*, double** %25
%134 = call i32 @PCG(double* %119, double* %120, double* %121, i32 %122, i32 %123, i32* %124, i32* %125, double* %126, i32* %127, i32 %128, double* %129, double* %130, double* %131, double* %132, double* %133)
%135 = load double*, double** %28
%136 = call i32 @u_free(double* %135, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 111, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%137 = load double*, double** %23
%138 = call i32 @u_free(double* %137, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 111, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%139 = load double*, double** %27
%140 = call i32 @u_free(double* %139, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 111, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%141 = load double*, double** %26
%142 = call i32 @u_free(double* %141, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 111, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%143 = load double*, double** %25
%144 = call i32 @u_free(double* %143, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 111, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %145
145: ; preds = %103, %100
br label %146
146: ; preds = %145, %71
store i32 0, i32* %21
br label %147
147: ; preds = %163, %146
%148 = load i32, i32* %21
%149 = load i32, i32* %14
%150 = icmp slt i32 %148, %149
br i1 %150, label %151, label %166
151: ; preds = %147
%152 = load double*, double** %22
%153 = load i32, i32* %21
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds double, double* %152, i64 %154
%156 = load double, double* %155
%157 = load double*, double** %12
%158 = load i32, i32* %21
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, double* %157, i64 %159
%161 = load double, double* %160
%162 = fmul double %161, %156
store double %162, double* %160
br label %163
163: ; preds = %151
%164 = load i32, i32* %21
%165 = add nsw i32 %164, 1
store i32 %165, i32* %21
br label %147
166: ; preds = %147
%167 = load double*, double** %22
%168 = call i32 @u_free(double* %167, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 120, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [160 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/makkemal/NGIMASEM/refs/heads/master/CalculiX/ccx_2.10/src/pcgsolver.c\00"
@.str.1 = [7 x i8] c"Factor\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [2 x i8] c"p\00"
@.str.4 = [2 x i8] c"z\00"
@.str.5 = [4 x i8] c"rho\00"
@.str.6 = [2 x i8] c"g\00"
@.str.7 = [2 x i8] c"C\00"
define i32 @cgsolver(double* %0, double* %1, double* %2, i32 %3, i32 %4, i32* %5, i32* %6, double* %7, i32* %8, i32 %9) {
%11 = icmp sgt i32 %3, 0
br i1 %11, label %12, label %69
12: ; preds = %10
%13 = zext i32 %3 to i64
%14 = icmp ult i32 %3, 8
br i1 %14, label %67, label %15
15: ; preds = %12
%16 = and i64 %13, 4294967288
%17 = add nsw i64 %16, -8
%18 = lshr exact i64 %17, 3
%19 = add nuw nsw i64 %18, 1
%20 = and i64 %19, 1
%21 = icmp eq i64 %17, 0
br i1 %21, label %51, label %22
22: ; preds = %15
%23 = and i64 %19, 4611686018427387902
br label %24
24: ; preds = %24, %22
%25 = phi i64 [ 0, %22 ], [ %48, %24 ]
%26 = phi i64 [ 0, %22 ], [ %49, %24 ]
%27 = getelementptr inbounds i32, i32* %6, i64 %25
%28 = bitcast i32* %27 to <4 x i32>*
%29 = load <4 x i32>, <4 x i32>* %28
%30 = getelementptr inbounds i32, i32* %27, i64 4
%31 = bitcast i32* %30 to <4 x i32>*
%32 = load <4 x i32>, <4 x i32>* %31
%33 = add nsw <4 x i32> %29, <i32 -1, i32 -1, i32 -1, i32 -1>
%34 = add nsw <4 x i32> %32, <i32 -1, i32 -1, i32 -1, i32 -1>
%35 = bitcast i32* %27 to <4 x i32>*
store <4 x i32> %33, <4 x i32>* %35
%36 = bitcast i32* %30 to <4 x i32>*
store <4 x i32> %34, <4 x i32>* %36
%37 = or i64 %25, 8
%38 = getelementptr inbounds i32, i32* %6, i64 %37
%39 = bitcast i32* %38 to <4 x i32>*
%40 = load <4 x i32>, <4 x i32>* %39
%41 = getelementptr inbounds i32, i32* %38, i64 4
%42 = bitcast i32* %41 to <4 x i32>*
%43 = load <4 x i32>, <4 x i32>* %42
%44 = add nsw <4 x i32> %40, <i32 -1, i32 -1, i32 -1, i32 -1>
%45 = add nsw <4 x i32> %43, <i32 -1, i32 -1, i32 -1, i32 -1>
%46 = bitcast i32* %38 to <4 x i32>*
store <4 x i32> %44, <4 x i32>* %46
%47 = bitcast i32* %41 to <4 x i32>*
store <4 x i32> %45, <4 x i32>* %47
%48 = add nuw i64 %25, 16
%49 = add i64 %26, 2
%50 = icmp eq i64 %49, %23
br i1 %50, label %51, label %24
51: ; preds = %24, %15
%52 = phi i64 [ 0, %15 ], [ %48, %24 ]
%53 = icmp eq i64 %20, 0
br i1 %53, label %65, label %54
54: ; preds = %51
%55 = getelementptr inbounds i32, i32* %6, i64 %52
%56 = bitcast i32* %55 to <4 x i32>*
%57 = load <4 x i32>, <4 x i32>* %56
%58 = getelementptr inbounds i32, i32* %55, i64 4
%59 = bitcast i32* %58 to <4 x i32>*
%60 = load <4 x i32>, <4 x i32>* %59
%61 = add nsw <4 x i32> %57, <i32 -1, i32 -1, i32 -1, i32 -1>
%62 = add nsw <4 x i32> %60, <i32 -1, i32 -1, i32 -1, i32 -1>
%63 = bitcast i32* %55 to <4 x i32>*
store <4 x i32> %61, <4 x i32>* %63
%64 = bitcast i32* %58 to <4 x i32>*
store <4 x i32> %62, <4 x i32>* %64
br label %65
65: ; preds = %51, %54
%66 = icmp eq i64 %16, %13
br i1 %66, label %69, label %67
67: ; preds = %12, %65
%68 = phi i64 [ 0, %12 ], [ %16, %65 ]
br label %128
69: ; preds = %128, %65, %10
%70 = icmp sgt i32 %4, 0
br i1 %70, label %71, label %142
71: ; preds = %69
%72 = zext i32 %4 to i64
%73 = icmp ult i32 %4, 8
br i1 %73, label %126, label %74
74: ; preds = %71
%75 = and i64 %72, 4294967288
%76 = add nsw i64 %75, -8
%77 = lshr exact i64 %76, 3
%78 = add nuw nsw i64 %77, 1
%79 = and i64 %78, 1
%80 = icmp eq i64 %76, 0
br i1 %80, label %110, label %81
81: ; preds = %74
%82 = and i64 %78, 4611686018427387902
br label %83
83: ; preds = %83, %81
%84 = phi i64 [ 0, %81 ], [ %107, %83 ]
%85 = phi i64 [ 0, %81 ], [ %108, %83 ]
%86 = getelementptr inbounds i32, i32* %5, i64 %84
%87 = bitcast i32* %86 to <4 x i32>*
%88 = load <4 x i32>, <4 x i32>* %87
%89 = getelementptr inbounds i32, i32* %86, i64 4
%90 = bitcast i32* %89 to <4 x i32>*
%91 = load <4 x i32>, <4 x i32>* %90
%92 = add nsw <4 x i32> %88, <i32 -1, i32 -1, i32 -1, i32 -1>
%93 = add nsw <4 x i32> %91, <i32 -1, i32 -1, i32 -1, i32 -1>
%94 = bitcast i32* %86 to <4 x i32>*
store <4 x i32> %92, <4 x i32>* %94
%95 = bitcast i32* %89 to <4 x i32>*
store <4 x i32> %93, <4 x i32>* %95
%96 = or i64 %84, 8
%97 = getelementptr inbounds i32, i32* %5, i64 %96
%98 = bitcast i32* %97 to <4 x i32>*
%99 = load <4 x i32>, <4 x i32>* %98
%100 = getelementptr inbounds i32, i32* %97, i64 4
%101 = bitcast i32* %100 to <4 x i32>*
%102 = load <4 x i32>, <4 x i32>* %101
%103 = add nsw <4 x i32> %99, <i32 -1, i32 -1, i32 -1, i32 -1>
%104 = add nsw <4 x i32> %102, <i32 -1, i32 -1, i32 -1, i32 -1>
%105 = bitcast i32* %97 to <4 x i32>*
store <4 x i32> %103, <4 x i32>* %105
%106 = bitcast i32* %100 to <4 x i32>*
store <4 x i32> %104, <4 x i32>* %106
%107 = add nuw i64 %84, 16
%108 = add i64 %85, 2
%109 = icmp eq i64 %108, %82
br i1 %109, label %110, label %83
110: ; preds = %83, %74
%111 = phi i64 [ 0, %74 ], [ %107, %83 ]
%112 = icmp eq i64 %79, 0
br i1 %112, label %124, label %113
113: ; preds = %110
%114 = getelementptr inbounds i32, i32* %5, i64 %111
%115 = bitcast i32* %114 to <4 x i32>*
%116 = load <4 x i32>, <4 x i32>* %115
%117 = getelementptr inbounds i32, i32* %114, i64 4
%118 = bitcast i32* %117 to <4 x i32>*
%119 = load <4 x i32>, <4 x i32>* %118
%120 = add nsw <4 x i32> %116, <i32 -1, i32 -1, i32 -1, i32 -1>
%121 = add nsw <4 x i32> %119, <i32 -1, i32 -1, i32 -1, i32 -1>
%122 = bitcast i32* %114 to <4 x i32>*
store <4 x i32> %120, <4 x i32>* %122
%123 = bitcast i32* %117 to <4 x i32>*
store <4 x i32> %121, <4 x i32>* %123
br label %124
124: ; preds = %110, %113
%125 = icmp eq i64 %75, %72
br i1 %125, label %142, label %126
126: ; preds = %71, %124
%127 = phi i64 [ 0, %71 ], [ %75, %124 ]
br label %135
128: ; preds = %67, %128
%129 = phi i64 [ %133, %128 ], [ %68, %67 ]
%130 = getelementptr inbounds i32, i32* %6, i64 %129
%131 = load i32, i32* %130
%132 = add nsw i32 %131, -1
store i32 %132, i32* %130
%133 = add nuw nsw i64 %129, 1
%134 = icmp eq i64 %133, %13
br i1 %134, label %69, label %128
135: ; preds = %126, %135
%136 = phi i64 [ %140, %135 ], [ %127, %126 ]
%137 = getelementptr inbounds i32, i32* %5, i64 %136
%138 = load i32, i32* %137
%139 = add nsw i32 %138, -1
store i32 %139, i32* %137
%140 = add nuw nsw i64 %136, 1
%141 = icmp eq i64 %140, %72
br i1 %141, label %142, label %135
142: ; preds = %135, %124, %69
%143 = tail call i64 @u_calloc(i32 %3, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 84, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%144 = inttoptr i64 %143 to double*
%145 = inttoptr i64 %143 to i8*
%146 = tail call i32 @Scaling(double* %0, double* %2, i32 %3, i32* %5, i32* %6, double* %144)
switch i32 %9, label %175 [
i32 0, label %147
i32 3, label %158
]
147: ; preds = %142
%148 = tail call i64 @u_calloc(i32 %3, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 93, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%149 = inttoptr i64 %148 to double*
%150 = tail call i64 @u_calloc(i32 %3, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 94, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%151 = inttoptr i64 %150 to double*
%152 = tail call i64 @u_calloc(i32 %3, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 95, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%153 = inttoptr i64 %152 to double*
%154 = tail call i32 @CG(double* %0, double* %1, double* %2, i32 %3, i32 %4, i32* %5, i32* %6, double* %7, i32* %8, double* %149, double* %151, double* %153)
%155 = tail call i32 @u_free(double* %149, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 97, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%156 = tail call i32 @u_free(double* %151, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 97, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%157 = tail call i32 @u_free(double* %153, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 97, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %175
158: ; preds = %142
%159 = tail call i64 @u_calloc(i32 %3, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 105, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%160 = inttoptr i64 %159 to double*
%161 = tail call i64 @u_calloc(i32 %3, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 106, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%162 = inttoptr i64 %161 to double*
%163 = tail call i64 @u_calloc(i32 %3, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 107, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%164 = inttoptr i64 %163 to double*
%165 = tail call i64 @u_calloc(i32 %4, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 108, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%166 = inttoptr i64 %165 to double*
%167 = tail call i64 @u_calloc(i32 %3, i32 8, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 109, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%168 = inttoptr i64 %167 to double*
%169 = tail call i32 @PCG(double* %0, double* %1, double* %2, i32 %3, i32 %4, i32* %5, i32* %6, double* %7, i32* %8, i32 3, double* %160, double* %162, double* %164, double* %166, double* %168)
%170 = tail call i32 @u_free(double* %160, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 111, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%171 = tail call i32 @u_free(double* %162, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 111, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%172 = tail call i32 @u_free(double* %164, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 111, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%173 = tail call i32 @u_free(double* %166, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 111, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%174 = tail call i32 @u_free(double* %168, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 111, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %175
175: ; preds = %142, %158, %147
br i1 %11, label %176, label %303
176: ; preds = %175
%177 = zext i32 %3 to i64
%178 = icmp ult i32 %3, 4
br i1 %178, label %256, label %179
179: ; preds = %176
%180 = getelementptr double, double* %1, i64 %177
%181 = bitcast double* %180 to i8*
%182 = getelementptr double, double* %144, i64 %177
%183 = icmp ugt double* %182, %1
%184 = icmp ult i8* %145, %181
%185 = and i1 %183, %184
br i1 %185, label %256, label %186
186: ; preds = %179
%187 = and i64 %177, 4294967292
%188 = add nsw i64 %187, -4
%189 = lshr exact i64 %188, 2
%190 = add nuw nsw i64 %189, 1
%191 = and i64 %190, 1
%192 = icmp eq i64 %188, 0
br i1 %192, label %234, label %193
193: ; preds = %186
%194 = and i64 %190, 9223372036854775806
br label %195
195: ; preds = %195, %193
%196 = phi i64 [ 0, %193 ], [ %231, %195 ]
%197 = phi i64 [ 0, %193 ], [ %232, %195 ]
%198 = getelementptr inbounds double, double* %144, i64 %196
%199 = bitcast double* %198 to <2 x double>*
%200 = load <2 x double>, <2 x double>* %199
%201 = getelementptr inbounds double, double* %198, i64 2
%202 = bitcast double* %201 to <2 x double>*
%203 = load <2 x double>, <2 x double>* %202
%204 = getelementptr inbounds double, double* %1, i64 %196
%205 = bitcast double* %204 to <2 x double>*
%206 = load <2 x double>, <2 x double>* %205
%207 = getelementptr inbounds double, double* %204, i64 2
%208 = bitcast double* %207 to <2 x double>*
%209 = load <2 x double>, <2 x double>* %208
%210 = fmul <2 x double> %200, %206
%211 = fmul <2 x double> %203, %209
%212 = bitcast double* %204 to <2 x double>*
store <2 x double> %210, <2 x double>* %212
%213 = bitcast double* %207 to <2 x double>*
store <2 x double> %211, <2 x double>* %213
%214 = or i64 %196, 4
%215 = getelementptr inbounds double, double* %144, i64 %214
%216 = bitcast double* %215 to <2 x double>*
%217 = load <2 x double>, <2 x double>* %216
%218 = getelementptr inbounds double, double* %215, i64 2
%219 = bitcast double* %218 to <2 x double>*
%220 = load <2 x double>, <2 x double>* %219
%221 = getelementptr inbounds double, double* %1, i64 %214
%222 = bitcast double* %221 to <2 x double>*
%223 = load <2 x double>, <2 x double>* %222
%224 = getelementptr inbounds double, double* %221, i64 2
%225 = bitcast double* %224 to <2 x double>*
%226 = load <2 x double>, <2 x double>* %225
%227 = fmul <2 x double> %217, %223
%228 = fmul <2 x double> %220, %226
%229 = bitcast double* %221 to <2 x double>*
store <2 x double> %227, <2 x double>* %229
%230 = bitcast double* %224 to <2 x double>*
store <2 x double> %228, <2 x double>* %230
%231 = add nuw i64 %196, 8
%232 = add i64 %197, 2
%233 = icmp eq i64 %232, %194
br i1 %233, label %234, label %195
234: ; preds = %195, %186
%235 = phi i64 [ 0, %186 ], [ %231, %195 ]
%236 = icmp eq i64 %191, 0
br i1 %236, label %254, label %237
237: ; preds = %234
%238 = getelementptr inbounds double, double* %144, i64 %235
%239 = bitcast double* %238 to <2 x double>*
%240 = load <2 x double>, <2 x double>* %239
%241 = getelementptr inbounds double, double* %238, i64 2
%242 = bitcast double* %241 to <2 x double>*
%243 = load <2 x double>, <2 x double>* %242
%244 = getelementptr inbounds double, double* %1, i64 %235
%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 = fmul <2 x double> %240, %246
%251 = fmul <2 x double> %243, %249
%252 = bitcast double* %244 to <2 x double>*
store <2 x double> %250, <2 x double>* %252
%253 = bitcast double* %247 to <2 x double>*
store <2 x double> %251, <2 x double>* %253
br label %254
254: ; preds = %234, %237
%255 = icmp eq i64 %187, %177
br i1 %255, label %303, label %256
256: ; preds = %179, %176, %254
%257 = phi i64 [ 0, %179 ], [ 0, %176 ], [ %187, %254 ]
%258 = xor i64 %257, -1
%259 = add nsw i64 %258, %177
%260 = and i64 %177, 3
%261 = icmp eq i64 %260, 0
br i1 %261, label %273, label %262
262: ; preds = %256, %262
%263 = phi i64 [ %270, %262 ], [ %257, %256 ]
%264 = phi i64 [ %271, %262 ], [ 0, %256 ]
%265 = getelementptr inbounds double, double* %144, i64 %263
%266 = load double, double* %265
%267 = getelementptr inbounds double, double* %1, i64 %263
%268 = load double, double* %267
%269 = fmul double %266, %268
store double %269, double* %267
%270 = add nuw nsw i64 %263, 1
%271 = add i64 %264, 1
%272 = icmp eq i64 %271, %260
br i1 %272, label %273, label %262
273: ; preds = %262, %256
%274 = phi i64 [ %257, %256 ], [ %270, %262 ]
%275 = icmp ult i64 %259, 3
br i1 %275, label %303, label %276
276: ; preds = %273, %276
%277 = phi i64 [ %301, %276 ], [ %274, %273 ]
%278 = getelementptr inbounds double, double* %144, i64 %277
%279 = load double, double* %278
%280 = getelementptr inbounds double, double* %1, i64 %277
%281 = load double, double* %280
%282 = fmul double %279, %281
store double %282, double* %280
%283 = add nuw nsw i64 %277, 1
%284 = getelementptr inbounds double, double* %144, i64 %283
%285 = load double, double* %284
%286 = getelementptr inbounds double, double* %1, i64 %283
%287 = load double, double* %286
%288 = fmul double %285, %287
store double %288, double* %286
%289 = add nuw nsw i64 %277, 2
%290 = getelementptr inbounds double, double* %144, i64 %289
%291 = load double, double* %290
%292 = getelementptr inbounds double, double* %1, i64 %289
%293 = load double, double* %292
%294 = fmul double %291, %293
store double %294, double* %292
%295 = add nuw nsw i64 %277, 3
%296 = getelementptr inbounds double, double* %144, i64 %295
%297 = load double, double* %296
%298 = getelementptr inbounds double, double* %1, i64 %295
%299 = load double, double* %298
%300 = fmul double %297, %299
store double %300, double* %298
%301 = add nuw nsw i64 %277, 4
%302 = icmp eq i64 %301, %177
br i1 %302, label %303, label %276
303: ; preds = %273, %276, %254, %175
%304 = tail call i32 @u_free(double* %144, i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 120, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}