#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*/ daxpy_(int *, double *, double *, int *, double *, int *);
int /*<<< orphan*/ dcopy_(int *, double *, int *, double *, int *);
double ddot_(int *, double *, int *, double *, int *);
double dnrm2_(int *, double *, int *);
double fabs(double);
int /*<<< orphan*/ itermsg(double, int, int, int, double);
void pcg(int n, double *x, double *b, double tol, int maxit, int clvl,
         int *iter, double *relres, int *flag, double *work,
         void (*matvec)(double *, double *),
         void (*precon)(double *, double *)) {
  double ALPHA;
  int ONE = 1;
  double n2b;
  double tolb;
  double normr;
  double alpha, beta;
  double rho, rho1;
  double pq;
  double dmax, ddum;
  int stag;
  int it;
  int i;
  double *r, *z, *p, *q;
  r = work;
  z = work + n;
  p = work + 2 * n;
  q = work + 3 * n;
  n2b = dnrm2_(&n, b, &ONE);
  if (n2b == 0.0) {
    for (i = 0; i < n; i++)
      x[i] = 0.0;
    *flag = 0;
    *relres = 0.0;
    *iter = 0;
    if (clvl)
      itermsg(tol, maxit, *flag, *iter, *relres);
    return;
  }
  *flag = 1;
  tolb = tol * n2b;
  matvec(x, r);
  for (i = 0; i < n; i++)
    r[i] = b[i] - r[i];
  normr = dnrm2_(&n, r, &ONE);
  if (normr <= tolb) {
    *flag = 0;
    *relres = normr / n2b;
    *iter = 0;
    if (clvl)
      itermsg(tol, maxit, *flag, *iter, *relres);
    return;
  }
  rho = 1.0;
  stag = 0;
  for (it = 1; it <= maxit; it++) {
    if (precon) {
      precon(r, z);
    } else {
      dcopy_(&n, r, &ONE, z, &ONE);
    }
    rho1 = rho;
    rho = ddot_(&n, r, &ONE, z, &ONE);
    if (rho == 0.0) {
      *flag = 4;
      break;
    }
    if (it == 1) {
      dcopy_(&n, z, &ONE, p, &ONE);
    } else {
      beta = rho / rho1;
      if (beta == 0.0) {
        *flag = 4;
        break;
      }
      for (i = 0; i < n; i++)
        p[i] = z[i] + beta * p[i];
    }
    matvec(p, q);
    pq = ddot_(&n, p, &ONE, q, &ONE);
    if (pq == 0.0) {
      *flag = 4;
      break;
    } else {
      alpha = rho / pq;
    }
    if (alpha == 0.0)
      stag = 1;
    if (stag == 0) {
      dmax = 0.0;
      for (i = 0; i < n; i++)
        if (x[i] != 0.0) {
          ddum = fabs(alpha * p[i] / x[i]);
          if (ddum > dmax)
            dmax = ddum;
        } else if (p[i] != 0.0)
          dmax = 1.0;
      stag = (1.0 + dmax == 1.0);
    }
    daxpy_(&n, &alpha, p, &ONE, x, &ONE);
    ALPHA = -alpha;
    daxpy_(&n, &ALPHA, q, &ONE, r, &ONE);
    normr = dnrm2_(&n, r, &ONE);
    if (normr <= tolb) {
      *flag = 0;
      break;
    }
    if (stag == 1) {
      *flag = 3;
      break;
    }
  }
  *iter = it;
  *relres = normr / n2b;
  if (clvl)
    itermsg(tol, maxit, *flag, *iter, *relres);
}


x86 assembly (clang, -O0):
<pcg>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    %r8d,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x1,-0x3c(%rbp)
mov    0x20(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    0x20(%rbp),%rax
movslq -0x4(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xb0(%rbp)
mov    0x20(%rbp),%rax
mov    -0x4(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xb8(%rbp)
mov    0x20(%rbp),%rax
imul   $0x3,-0x4(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xc0(%rbp)
mov    -0x18(%rbp),%rsi
lea    -0x4(%rbp),%rdi
lea    -0x3c(%rbp),%rdx
call   1050 <dnrm2_@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12a3 <pcg+0x153>
jp     12a3 <pcg+0x153>
movl   $0x0,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1254 <pcg+0x104>
mov    -0x10(%rbp),%rax
movslq -0x9c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    121e <pcg+0xce>
mov    0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movl   $0x0,(%rax)
cmpl   $0x0,-0x28(%rbp)
je     129e <pcg+0x14e>
movsd  -0x20(%rbp),%xmm0
mov    -0x24(%rbp),%edi
mov    0x18(%rbp),%rax
mov    (%rax),%esi
mov    -0x30(%rbp),%rax
mov    (%rax),%edx
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm1
call   1070 <itermsg@plt>
jmp    1849 <pcg+0x6f9>
mov    0x18(%rbp),%rax
movl   $0x1,(%rax)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x28(%rbp),%rax
mov    -0x10(%rbp),%rdi
mov    -0xa8(%rbp),%rsi
call   *%rax
movl   $0x0,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1330 <pcg+0x1e0>
mov    -0x18(%rbp),%rax
movslq -0x9c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0xa8(%rbp),%rax
movslq -0x9c(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0xa8(%rbp),%rax
movslq -0x9c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    12d7 <pcg+0x187>
mov    -0xa8(%rbp),%rsi
lea    -0x4(%rbp),%rdi
lea    -0x3c(%rbp),%rdx
call   1050 <dnrm2_@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     13b3 <pcg+0x263>
mov    0x18(%rbp),%rax
movl   $0x0,(%rax)
movsd  -0x58(%rbp),%xmm0
divsd  -0x48(%rbp),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movl   $0x0,(%rax)
cmpl   $0x0,-0x28(%rbp)
je     13ae <pcg+0x25e>
movsd  -0x20(%rbp),%xmm0
mov    -0x24(%rbp),%edi
mov    0x18(%rbp),%rax
mov    (%rax),%esi
mov    -0x30(%rbp),%rax
mov    (%rax),%edx
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm1
call   1070 <itermsg@plt>
jmp    1849 <pcg+0x6f9>
movsd  0xc45(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp)
movl   $0x0,-0x94(%rbp)
movl   $0x1,-0x98(%rbp)
mov    -0x98(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     1800 <pcg+0x6b0>
cmpq   $0x0,0x30(%rbp)
je     1407 <pcg+0x2b7>
mov    0x30(%rbp),%rax
mov    -0xa8(%rbp),%rdi
mov    -0xb0(%rbp),%rsi
call   *%rax
jmp    1425 <pcg+0x2d5>
mov    -0xa8(%rbp),%rsi
mov    -0xb0(%rbp),%rcx
lea    -0x4(%rbp),%rdi
lea    -0x3c(%rbp),%r8
mov    %r8,%rdx
call   1030 <dcopy_@plt>
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0xa8(%rbp),%rsi
mov    -0xb0(%rbp),%rcx
lea    -0x4(%rbp),%rdi
lea    -0x3c(%rbp),%r8
mov    %r8,%rdx
call   1040 <ddot_@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1479 <pcg+0x329>
jp     1479 <pcg+0x329>
mov    0x18(%rbp),%rax
movl   $0x4,(%rax)
jmp    1800 <pcg+0x6b0>
cmpl   $0x1,-0x98(%rbp)
jne    14a9 <pcg+0x359>
mov    -0xb0(%rbp),%rsi
mov    -0xb8(%rbp),%rcx
lea    -0x4(%rbp),%rdi
lea    -0x3c(%rbp),%r8
mov    %r8,%rdx
call   1030 <dcopy_@plt>
jmp    1557 <pcg+0x407>
movsd  -0x70(%rbp),%xmm0
divsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    14df <pcg+0x38f>
jp     14df <pcg+0x38f>
mov    0x18(%rbp),%rax
movl   $0x4,(%rax)
jmp    1800 <pcg+0x6b0>
movl   $0x0,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1552 <pcg+0x402>
mov    -0xb0(%rbp),%rax
movslq -0x9c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x68(%rbp),%xmm0
mov    -0xb8(%rbp),%rax
movslq -0x9c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0xb8(%rbp),%rax
movslq -0x9c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    14e9 <pcg+0x399>
jmp    1557 <pcg+0x407>
mov    0x28(%rbp),%rax
mov    -0xb8(%rbp),%rdi
mov    -0xc0(%rbp),%rsi
call   *%rax
mov    -0xb8(%rbp),%rsi
mov    -0xc0(%rbp),%rcx
lea    -0x4(%rbp),%rdi
lea    -0x3c(%rbp),%r8
mov    %r8,%rdx
call   1040 <ddot_@plt>
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    15b5 <pcg+0x465>
jp     15b5 <pcg+0x465>
mov    0x18(%rbp),%rax
movl   $0x4,(%rax)
jmp    1800 <pcg+0x6b0>
movsd  -0x70(%rbp),%xmm0
divsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    15e6 <pcg+0x496>
jp     15e6 <pcg+0x496>
movl   $0x1,-0x94(%rbp)
cmpl   $0x0,-0x94(%rbp)
jne    172d <pcg+0x5dd>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movl   $0x0,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    16fe <pcg+0x5ae>
mov    -0x10(%rbp),%rax
movslq -0x9c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    163f <pcg+0x4ef>
jp     163f <pcg+0x4ef>
jmp    16a5 <pcg+0x555>
movsd  -0x60(%rbp),%xmm0
mov    -0xb8(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x9c(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
movaps 0x9a2(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
ucomisd -0x88(%rbp),%xmm0
ff
jbe    16a0 <pcg+0x550>
movsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
jmp    16e5 <pcg+0x595>
mov    -0xb8(%rbp),%rax
movslq -0x9c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    16d0 <pcg+0x580>
jp     16d0 <pcg+0x580>
jmp    16e0 <pcg+0x590>
movsd  0x928(%rip),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
jmp    16e5 <pcg+0x595>
jmp    16ea <pcg+0x59a>
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    1608 <pcg+0x4b8>
movsd  0x8fa(%rip),%xmm0
addsd  -0x88(%rbp),%xmm0
ff
movsd  0x8ea(%rip),%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x94(%rbp)
mov    -0xb8(%rbp),%rdx
mov    -0x10(%rbp),%r8
lea    -0x4(%rbp),%rdi
lea    -0x60(%rbp),%rsi
lea    -0x3c(%rbp),%r9
mov    %r9,%rcx
call   1060 <daxpy_@plt>
movsd  -0x60(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0xc0(%rbp),%rdx
mov    -0xa8(%rbp),%r8
lea    -0x4(%rbp),%rdi
lea    -0x38(%rbp),%rsi
lea    -0x3c(%rbp),%r9
mov    %r9,%rcx
call   1060 <daxpy_@plt>
mov    -0xa8(%rbp),%rsi
lea    -0x4(%rbp),%rdi
lea    -0x3c(%rbp),%rdx
call   1050 <dnrm2_@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     17cb <pcg+0x67b>
mov    0x18(%rbp),%rax
movl   $0x0,(%rax)
jmp    1800 <pcg+0x6b0>
cmpl   $0x1,-0x94(%rbp)
jne    17e7 <pcg+0x697>
mov    0x18(%rbp),%rax
movl   $0x3,(%rax)
jmp    1800 <pcg+0x6b0>
jmp    17ec <pcg+0x69c>
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
jmp    13d4 <pcg+0x284>
mov    -0x98(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
movsd  -0x58(%rbp),%xmm0
divsd  -0x48(%rbp),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
cmpl   $0x0,-0x28(%rbp)
je     1849 <pcg+0x6f9>
movsd  -0x20(%rbp),%xmm0
mov    -0x24(%rbp),%edi
mov    0x18(%rbp),%rax
mov    (%rax),%esi
mov    -0x30(%rbp),%rax
mov    (%rax),%edx
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm1
call   1070 <itermsg@plt>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pcg>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %r9,0x20(%rsp)
mov    %r8d,%r13d
mov    %ecx,%r15d
movsd  %xmm0,0x10(%rsp)
mov    %rdx,%rbp
mov    %rsi,%r12
mov    %edi,%r14d
mov    0xb8(%rsp),%rbx
mov    %edi,0x8(%rsp)
movl   $0x1,0xc(%rsp)
lea    0x8(%rsp),%rdi
lea    0xc(%rsp),%rdx
mov    %rbp,%rsi
call   1060 <dnrm2_@plt>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    120f <pcg+0xaf>
jp     120f <pcg+0xaf>
mov    0x8(%rsp),%edx
test   %edx,%edx
jle    11d0 <pcg+0x70>
shl    $0x3,%rdx
mov    %r12,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
movl   $0x0,(%rbx)
mov    0xb0(%rsp),%rax
movq   $0x0,(%rax)
mov    0x20(%rsp),%rax
movl   $0x0,(%rax)
test   %r13d,%r13d
movsd  0x10(%rsp),%xmm0
je     196c <pcg+0x80c>
mov    (%rbx),%esi
xorpd  %xmm1,%xmm1
mov    %r15d,%edi
xor    %edx,%edx
jmp    1967 <pcg+0x807>
mov    %rbx,%rax
mov    0xc0(%rsp),%rbx
movl   $0x1,(%rax)
movsd  %xmm0,0x28(%rsp)
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x58(%rsp)
mov    %r12,%rdi
mov    %rbx,%rsi
call   *0xc8(%rsp)
mov    0x8(%rsp),%eax
test   %eax,%eax
jle    13d9 <pcg+0x279>
cmp    $0x4,%eax
jb     1271 <pcg+0x111>
lea    0x0(,%rax,8),%rcx
add    %rbp,%rcx
cmp    %rbx,%rcx
jbe    1314 <pcg+0x1b4>
lea    (%rbx,%rax,8),%rcx
cmp    %rbp,%rcx
jbe    1314 <pcg+0x1b4>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
add    %rax,%rdx
mov    %rax,%rsi
and    $0x3,%rsi
je     12aa <pcg+0x14a>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  0x0(%rbp,%rcx,8),%xmm0
subsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    1290 <pcg+0x130>
cmp    $0x3,%rdx
jb     13d9 <pcg+0x279>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  0x0(%rbp,%rcx,8),%xmm0
subsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
movsd  0x8(%rbp,%rcx,8),%xmm0
subsd  0x8(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rcx,8)
movsd  0x10(%rbp,%rcx,8),%xmm0
subsd  0x10(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x10(%rbx,%rcx,8)
movsd  0x18(%rbp,%rcx,8),%xmm0
subsd  0x18(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x18(%rbx,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rax
jne    12c0 <pcg+0x160>
jmp    13d9 <pcg+0x279>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     18be <pcg+0x75e>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
movupd 0x0(%rbp,%rdx,8),%xmm0
movupd 0x10(%rbp,%rdx,8),%xmm1
movupd (%rbx,%rdx,8),%xmm2
subpd  %xmm2,%xmm0
movupd 0x10(%rbx,%rdx,8),%xmm2
subpd  %xmm2,%xmm1
movupd 0x20(%rbx,%rdx,8),%xmm2
movupd 0x30(%rbx,%rdx,8),%xmm3
movupd %xmm0,(%rbx,%rdx,8)
movupd %xmm1,0x10(%rbx,%rdx,8)
movupd 0x20(%rbp,%rdx,8),%xmm0
subpd  %xmm2,%xmm0
movupd 0x30(%rbp,%rdx,8),%xmm1
subpd  %xmm3,%xmm1
movupd %xmm0,0x20(%rbx,%rdx,8)
movupd %xmm1,0x30(%rbx,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rdi
jne    1340 <pcg+0x1e0>
test   $0x1,%sil
je     13d0 <pcg+0x270>
movupd 0x0(%rbp,%rdx,8),%xmm0
movupd 0x10(%rbp,%rdx,8),%xmm1
movupd (%rbx,%rdx,8),%xmm2
subpd  %xmm2,%xmm0
movupd 0x10(%rbx,%rdx,8),%xmm2
subpd  %xmm2,%xmm1
movupd %xmm0,(%rbx,%rdx,8)
movupd %xmm1,0x10(%rbx,%rdx,8)
cmp    %rax,%rcx
jne    1273 <pcg+0x113>
lea    0x8(%rsp),%rdi
lea    0xc(%rsp),%rdx
mov    %rbx,%rsi
call   1060 <dnrm2_@plt>
movapd %xmm0,%xmm2
movsd  0x58(%rsp),%xmm0
ucomisd %xmm2,%xmm0
jae    1870 <pcg+0x710>
test   %r15d,%r15d
mov    %r13d,0x4c(%rsp)
jle    18b6 <pcg+0x756>
mov    %r12,0x50(%rsp)
lea    (%r14,%r14,2),%eax
movslq %r14d,%rcx
add    %r14d,%r14d
movslq %r14d,%rdx
cltq
mov    0xd0(%rsp),%rbp
lea    (%rbx,%rcx,8),%r14
mov    %r15,%rcx
lea    (%rbx,%rdx,8),%r15
lea    (%rbx,%rax,8),%rax
mov    %rax,0x60(%rsp)
mov    %rcx,%rax
mov    %rcx,0x30(%rsp)
lea    0x1(%rcx),%eax
mov    %eax,0x48(%rsp)
mov    $0x1,%r13d
movsd  0xba6(%rip),%xmm0
nopw   0x0(%rax,%rax,1)
movsd  %xmm0,0x18(%rsp)
movsd  %xmm2,0x38(%rsp)
test   %rbp,%rbp
je     1490 <pcg+0x330>
mov    %rbx,%rdi
mov    %r14,%rsi
call   *%rbp
lea    0x8(%rsp),%rbp
lea    0xc(%rsp),%r12
jmp    14ae <pcg+0x34e>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x8(%rsp),%rbp
mov    %rbp,%rdi
mov    %rbx,%rsi
lea    0xc(%rsp),%r12
mov    %r12,%rdx
mov    %r14,%rcx
mov    %r12,%r8
call   1030 <dcopy_@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
mov    %r12,%r8
call   1040 <ddot_@plt>
mov    $0x4,%r12d
xorpd  %xmm1,%xmm1
movsd  %xmm0,0x40(%rsp)
ucomisd %xmm1,%xmm0
jne    14de <pcg+0x37e>
jnp    18eb <pcg+0x78b>
cmp    $0x1,%r13d
jne    1500 <pcg+0x3a0>
mov    %rbp,%rdi
mov    %r14,%rsi
lea    0xc(%rsp),%rdx
mov    %r15,%rcx
mov    %rdx,%r8
call   1030 <dcopy_@plt>
jmp    16c0 <pcg+0x560>
nop
movsd  0x40(%rsp),%xmm0
divsd  0x18(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jne    1518 <pcg+0x3b8>
jnp    18eb <pcg+0x78b>
mov    0x8(%rsp),%eax
test   %eax,%eax
jle    16c0 <pcg+0x560>
cmp    $0x4,%eax
jb     153f <pcg+0x3df>
lea    (%r14,%rax,8),%rcx
cmp    %rcx,%r15
jae    15bd <pcg+0x45d>
lea    (%r15,%rax,8),%rcx
cmp    %rcx,%r14
jae    15bd <pcg+0x45d>
xor    %ecx,%ecx
mov    %rcx,%rdx
test   $0x1,%al
je     1565 <pcg+0x405>
movsd  (%r15,%rcx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%r14,%rcx,8),%xmm1
movsd  %xmm1,(%r15,%rcx,8)
mov    %rcx,%rdx
or     $0x1,%rdx
not    %rcx
add    %rax,%rcx
je     16c0 <pcg+0x560>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%r15,%rdx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%r14,%rdx,8),%xmm1
movsd  %xmm1,(%r15,%rdx,8)
movsd  0x8(%r15,%rdx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x8(%r14,%rdx,8),%xmm1
movsd  %xmm1,0x8(%r15,%rdx,8)
add    $0x2,%rdx
cmp    %rdx,%rax
jne    1580 <pcg+0x420>
jmp    16c0 <pcg+0x560>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     185f <pcg+0x6ff>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
movupd (%r14,%rdx,8),%xmm2
movupd 0x10(%r14,%rdx,8),%xmm3
movupd (%r15,%rdx,8),%xmm4
movupd 0x10(%r15,%rdx,8),%xmm5
movupd 0x20(%r15,%rdx,8),%xmm6
movupd 0x30(%r15,%rdx,8),%xmm7
mulpd  %xmm1,%xmm4
addpd  %xmm2,%xmm4
mulpd  %xmm1,%xmm5
addpd  %xmm3,%xmm5
movupd %xmm4,(%r15,%rdx,8)
movupd %xmm5,0x10(%r15,%rdx,8)
movupd 0x20(%r14,%rdx,8),%xmm2
movupd 0x30(%r14,%rdx,8),%xmm3
mulpd  %xmm1,%xmm6
addpd  %xmm2,%xmm6
mulpd  %xmm1,%xmm7
addpd  %xmm3,%xmm7
movupd %xmm6,0x20(%r15,%rdx,8)
movupd %xmm7,0x30(%r15,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rdi
jne    15f0 <pcg+0x490>
test   $0x1,%sil
je     16a8 <pcg+0x548>
movupd (%r14,%rdx,8),%xmm2
movupd 0x10(%r14,%rdx,8),%xmm3
movupd (%r15,%rdx,8),%xmm4
movupd 0x10(%r15,%rdx,8),%xmm5
mulpd  %xmm1,%xmm4
addpd  %xmm2,%xmm4
mulpd  %xmm1,%xmm5
addpd  %xmm3,%xmm5
movupd %xmm4,(%r15,%rdx,8)
movupd %xmm5,0x10(%r15,%rdx,8)
cmp    %rax,%rcx
jne    1541 <pcg+0x3e1>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    0x60(%rsp),%rbp
mov    %rbp,%rsi
call   *0xc8(%rsp)
lea    0x8(%rsp),%rdi
mov    %r15,%rsi
lea    0xc(%rsp),%rdx
mov    %rbp,%rcx
mov    %rdx,%r8
call   1040 <ddot_@plt>
xorpd  %xmm5,%xmm5
ucomisd %xmm5,%xmm0
jne    16fa <pcg+0x59a>
jnp    18eb <pcg+0x78b>
mov    %r13,0x18(%rsp)
movsd  0x40(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x68(%rsp)
mov    $0x1,%r12d
ucomisd %xmm5,%xmm1
jne    1721 <pcg+0x5c1>
jnp    17b8 <pcg+0x658>
mov    0x8(%rsp),%eax
xorpd  %xmm0,%xmm0
test   %eax,%eax
jle    179e <pcg+0x63e>
xor    %ecx,%ecx
movsd  0x8c9(%rip),%xmm4
mov    0x50(%rsp),%rdx
movapd 0x8cc(%rip),%xmm6
jmp    1759 <pcg+0x5f9>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%rcx
cmp    %rcx,%rax
je     17a6 <pcg+0x646>
movsd  (%rdx,%rcx,8),%xmm3
ucomisd %xmm5,%xmm3
movsd  (%r15,%rcx,8),%xmm2
jne    176c <pcg+0x60c>
jnp    1790 <pcg+0x630>
mulsd  %xmm1,%xmm2
divsd  %xmm3,%xmm2
andpd  %xmm6,%xmm2
ucomisd %xmm0,%xmm2
jbe    1750 <pcg+0x5f0>
movapd %xmm2,%xmm0
jmp    1750 <pcg+0x5f0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
ucomisd %xmm5,%xmm2
jne    1798 <pcg+0x638>
jnp    1750 <pcg+0x5f0>
movapd %xmm4,%xmm0
jmp    1750 <pcg+0x5f0>
movsd  0x85a(%rip),%xmm4
addsd  %xmm4,%xmm0
cmpeqsd %xmm4,%xmm0
movq   %xmm0,%r12
and    $0x1,%r12d
lea    0x8(%rsp),%r13
mov    %r13,%rdi
lea    0x68(%rsp),%rsi
mov    %r15,%rdx
lea    0xc(%rsp),%rbp
mov    %rbp,%rcx
mov    0x50(%rsp),%r8
mov    %rbp,%r9
call   1070 <daxpy_@plt>
movsd  0x68(%rsp),%xmm0
xorpd  0x835(%rip),%xmm0
movlpd %xmm0,0x70(%rsp)
mov    %r13,%rdi
lea    0x70(%rsp),%rsi
mov    0x60(%rsp),%rdx
mov    %rbp,%rcx
mov    %rbx,%r8
mov    %rbp,%r9
call   1070 <daxpy_@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
call   1060 <dnrm2_@plt>
movapd %xmm0,%xmm2
movsd  0x58(%rsp),%xmm0
ucomisd %xmm2,%xmm0
jae    18cf <pcg+0x76f>
test   %r12d,%r12d
jne    18da <pcg+0x77a>
mov    0x18(%rsp),%rcx
lea    0x1(%rcx),%eax
movsd  0x40(%rsp),%xmm0
cmp    0x30(%rsp),%ecx
mov    %eax,%r13d
mov    0xd0(%rsp),%rbp
jne    1460 <pcg+0x300>
jmp    191c <pcg+0x7bc>
xor    %edx,%edx
test   $0x1,%sil
jne    1671 <pcg+0x511>
jmp    16a8 <pcg+0x548>
mov    0xb8(%rsp),%rax
movl   $0x0,(%rax)
divsd  0x28(%rsp),%xmm2
mov    0xb0(%rsp),%rcx
movsd  %xmm2,(%rcx)
mov    0x20(%rsp),%rcx
movl   $0x0,(%rcx)
test   %r13d,%r13d
movsd  0x10(%rsp),%xmm0
je     196c <pcg+0x80c>
mov    (%rax),%esi
mov    %r15d,%edi
xor    %edx,%edx
jmp    1963 <pcg+0x803>
mov    $0x1,%r13d
jmp    1928 <pcg+0x7c8>
xor    %edx,%edx
test   $0x1,%sil
jne    13a6 <pcg+0x246>
jmp    13d0 <pcg+0x270>
movsd  %xmm2,0x38(%rsp)
xor    %r12d,%r12d
jmp    18e6 <pcg+0x786>
movsd  %xmm2,0x38(%rsp)
mov    $0x3,%r12d
mov    0x18(%rsp),%r13
mov    0xb8(%rsp),%rax
mov    %r12d,(%rax)
mov    0x30(%rsp),%r15
movsd  0x10(%rsp),%xmm0
mov    0x20(%rsp),%rcx
mov    0xb0(%rsp),%rdx
movsd  0x28(%rsp),%xmm1
movsd  0x38(%rsp),%xmm2
jmp    1949 <pcg+0x7e9>
mov    0x48(%rsp),%eax
mov    %eax,%r13d
mov    0x30(%rsp),%r15
movsd  0x10(%rsp),%xmm0
mov    0xb8(%rsp),%rax
mov    0x20(%rsp),%rcx
mov    0xb0(%rsp),%rdx
movsd  0x28(%rsp),%xmm1
mov    %r13d,(%rcx)
divsd  %xmm1,%xmm2
movsd  %xmm2,(%rdx)
cmpl   $0x0,0x4c(%rsp)
je     196c <pcg+0x80c>
mov    (%rax),%esi
mov    %r15d,%edi
mov    %r13d,%edx
movapd %xmm2,%xmm1
call   1080 <itermsg@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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