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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double fabs(double);
int /*<<< orphan*/ printf(char *, ...);
void checkconvnet(int *icutb, int *iin, double *cam1t, double *cam1f,
                  double *cam1p, double *cam2t, double *cam2f, double *cam2p,
                  double *camt, double *camf, double *camp, int *icntrl,
                  double *dtheta, double *ctrl, double *cam1a, double *cam2a,
                  double *cama, double *vamt, double *vamf, double *vamp,
                  double *vama, double *qa, double *qamt, double *qamf,
                  double *ramt, double *ramf, double *ramp, int *iplausi) {
  int i0, ir, ip, ic, il, ig, ia, idivergence;
  double c2t, c2f, c2p, c2a, c1t, c1f, c1p, qamp = 1., df, dc, db, dd, ran, can,
                                            rap, ea, cae, ral;
  i0 = ctrl[0];
  ir = ctrl[1];
  ip = ctrl[2];
  ic = ctrl[3];
  il = ctrl[4];
  ig = ctrl[5];
  ia = ctrl[7];
  df = ctrl[10];
  dc = ctrl[11];
  db = ctrl[12];
  dd = ctrl[16];
  ran = ctrl[18];
  can = ctrl[19];
  rap = ctrl[22];
  ea = ctrl[23];
  cae = ctrl[24];
  ral = ctrl[25];
  c1t = ctrl[32];
  c1f = ctrl[33];
  c1p = ctrl[34];
  c2t = ctrl[35];
  c2f = ctrl[36];
  c2p = ctrl[37];
  c2a = ctrl[38];
  if (*iin <= ip) {
    c2t = 0.0001 * ran;
  } else {
    c2t = 0.0001 * rap;
  }
  if (*iin <= ip) {
    c1t = 0.0001 * ran;
  } else {
    c1t = 0.0001 * rap;
  }
  if (*iin <= ip) {
    c2f = 0.0001 * ran;
  } else {
    c2f = 0.0001 * rap;
  }
  if (*iin <= ip) {
    c1f = 0.0001 * ran;
  } else {
    c1f = 0.0001 * rap;
  }
  if (*iin <= ip) {
    c2p = 0.0001 * ran;
  } else {
    c2p = 0.0001 * rap;
  }
  if (*iin <= ip) {
    c1p = 0.0001 * ran;
  } else {
    c1p = 0.0001 * rap;
  }
  if (*iin <= ip) {
    c2a = 0.0001 * ran;
  } else {
    c2a = 0.0001 * rap;
  }
  if (*cam1t < *cam2t) {
    *cam2t = *cam1t;
  }
  if (*cam1f < *cam2f) {
    *cam2f = *cam1f;
  }
  if (*cam1p < *cam2p) {
    *cam2p = *cam1p;
  }
  if (*cam1a < *cam2a) {
    *cam2a = *cam1a;
  }
  *ramt = 0.;
  *ramf = 0.;
  *ramp = 0.;
  if ((*camt <= c2t * *vamt) && (*ramt < c1t * *qamt) &&
      (*camf <= c2f * *vamf) && (*ramf < c1f * *qamf) &&
      (*camp <= c2p * *vamp) && (*ramp < c1p * qamp) &&
      (*cama <= c2a * *vama) && (*iin > 3)) {
    printf("      flow network: convergence in gas iteration %"
           "d"
           " \n\n",
           *iin);
    *icntrl = 1;
    *icutb = 0;
  } else {
    idivergence = 0;
    if ((*iin >= 20 * i0) || (fabs(*camt) > 1.e20)) {
      if ((*cam1t >= *cam2t) && (*camt >= *cam2t) && (*camt > c2t * *vamt)) {
        idivergence = 1;
      }
    }
    if ((*iin >= 20 * i0) || (fabs(*camf) > 1.e20)) {
      if ((*cam1f >= *cam2f) && (*camf >= *cam2f) && (*camf > c2f * *vamf)) {
        idivergence = 1;
      }
    }
    if ((*iin >= 20 * i0) || (fabs(*camp) > 1.e20)) {
      if ((*cam1p >= *cam2p) && (*camp >= *cam2p) && (*camp > c2p * *vamp)) {
        idivergence = 1;
      }
    }
    if ((*iin >= 20 * i0) || (fabs(*cama) > 1.e20)) {
      if ((*cam1a >= *cam2a) && (*cama >= *cam2a) && (*cama > c2a * *vama)) {
        idivergence = 1;
      }
    }
    if (*iin > 20 * ic)
      idivergence = 1;
    if (*iin == 0)
      idivergence = 1;
    if (idivergence == 1) {
      *dtheta = *dtheta * df;
      printf("\n network divergence; the under-relaxation parameter is "
             "decreased to %e\n",
             *dtheta);
      printf(" the network iteration for the increment is reattempted\n\n");
      *iin = 0;
      (*icutb)++;
      if (*icutb > ia) {
        qa[2] = 0.25;
        *icntrl = 1;
      }
    } else {
      printf("      no convergence\n\n");
    }
  }
  return;
}


x86 assembly (clang, -O0):
<checkconvnet>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    0xb8(%rbp),%rax
mov    0xb0(%rbp),%rax
mov    0xa8(%rbp),%rax
mov    0xa0(%rbp),%rax
mov    0x98(%rbp),%rax
mov    0x90(%rbp),%rax
mov    0x88(%rbp),%rax
mov    0x80(%rbp),%rax
mov    0x78(%rbp),%rax
mov    0x70(%rbp),%rax
mov    0x68(%rbp),%rax
mov    0x60(%rbp),%rax
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movsd  0xe55(%rip),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    0x48(%rbp),%rax
cvttsd2si (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    0x48(%rbp),%rax
cvttsd2si 0x8(%rax),%eax
mov    %eax,-0x38(%rbp)
mov    0x48(%rbp),%rax
cvttsd2si 0x10(%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    0x48(%rbp),%rax
cvttsd2si 0x18(%rax),%eax
mov    %eax,-0x40(%rbp)
mov    0x48(%rbp),%rax
cvttsd2si 0x20(%rax),%eax
mov    %eax,-0x44(%rbp)
mov    0x48(%rbp),%rax
cvttsd2si 0x28(%rax),%eax
mov    %eax,-0x48(%rbp)
mov    0x48(%rbp),%rax
cvttsd2si 0x38(%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    0x48(%rbp),%rax
movsd  0x50(%rax),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    0x48(%rbp),%rax
movsd  0x58(%rax),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    0x48(%rbp),%rax
movsd  0x60(%rax),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    0x48(%rbp),%rax
movsd  0x80(%rax),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
mov    0x48(%rbp),%rax
movsd  0x90(%rax),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
mov    0x48(%rbp),%rax
movsd  0x98(%rax),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
mov    0x48(%rbp),%rax
movsd  0xb0(%rax),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
mov    0x48(%rbp),%rax
movsd  0xb8(%rax),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
mov    0x48(%rbp),%rax
movsd  0xc0(%rax),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
mov    0x48(%rbp),%rax
movsd  0xc8(%rax),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
mov    0x48(%rbp),%rax
movsd  0x100(%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    0x48(%rbp),%rax
movsd  0x108(%rax),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    0x48(%rbp),%rax
movsd  0x110(%rax),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    0x48(%rbp),%rax
movsd  0x118(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    0x48(%rbp),%rax
movsd  0x120(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    0x48(%rbp),%rax
movsd  0x128(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    0x48(%rbp),%rax
movsd  0x130(%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
cmp    -0x3c(%rbp),%eax
jg     1368 <checkconvnet+0x258>
movsd  0xcb2(%rip),%xmm0
mulsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x58(%rbp)
jmp    137d <checkconvnet+0x26d>
movsd  0xc98(%rip),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
cmp    -0x3c(%rbp),%eax
jg     13a6 <checkconvnet+0x296>
movsd  0xc74(%rip),%xmm0
mulsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x78(%rbp)
jmp    13bb <checkconvnet+0x2ab>
movsd  0xc5a(%rip),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0x78(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
cmp    -0x3c(%rbp),%eax
jg     13e4 <checkconvnet+0x2d4>
movsd  0xc36(%rip),%xmm0
mulsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x60(%rbp)
jmp    13f9 <checkconvnet+0x2e9>
movsd  0xc1c(%rip),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
cmp    -0x3c(%rbp),%eax
jg     1422 <checkconvnet+0x312>
movsd  0xbf8(%rip),%xmm0
mulsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x80(%rbp)
jmp    1437 <checkconvnet+0x327>
movsd  0xbde(%rip),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0x80(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
cmp    -0x3c(%rbp),%eax
jg     1460 <checkconvnet+0x350>
movsd  0xbba(%rip),%xmm0
mulsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x68(%rbp)
jmp    1475 <checkconvnet+0x365>
movsd  0xba0(%rip),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
cmp    -0x3c(%rbp),%eax
jg     14a1 <checkconvnet+0x391>
movsd  0xb7c(%rip),%xmm0
mulsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
jmp    14b9 <checkconvnet+0x3a9>
movsd  0xb5f(%rip),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
cmp    -0x3c(%rbp),%eax
jg     14e2 <checkconvnet+0x3d2>
movsd  0xb38(%rip),%xmm0
mulsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x70(%rbp)
jmp    14f7 <checkconvnet+0x3e7>
movsd  0xb1e(%rip),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0x70(%rbp)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jbe    1521 <checkconvnet+0x411>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm1
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jbe    154b <checkconvnet+0x43b>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm1
mov    0x18(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jbe    1575 <checkconvnet+0x465>
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x18(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x50(%rbp),%rax
movsd  (%rax),%xmm1
mov    0x58(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jbe    159f <checkconvnet+0x48f>
mov    0x50(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x58(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0xa0(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    0xa8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    0xb0(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    0x20(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x58(%rbp),%xmm0
mov    0x68(%rbp),%rax
mulsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jb     16f1 <checkconvnet+0x5e1>
mov    0xa0(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x78(%rbp),%xmm0
mov    0x90(%rbp),%rax
mulsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jbe    16f1 <checkconvnet+0x5e1>
mov    0x28(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x60(%rbp),%xmm0
mov    0x70(%rbp),%rax
mulsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jb     16f1 <checkconvnet+0x5e1>
mov    0xa8(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x80(%rbp),%xmm0
mov    0x98(%rbp),%rax
mulsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jbe    16f1 <checkconvnet+0x5e1>
mov    0x30(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x68(%rbp),%xmm0
mov    0x78(%rbp),%rax
mulsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jb     16f1 <checkconvnet+0x5e1>
mov    0xb0(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x88(%rbp),%xmm0
ff
mulsd  -0x90(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    16f1 <checkconvnet+0x5e1>
mov    0x60(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x70(%rbp),%xmm0
mov    0x80(%rbp),%rax
mulsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jb     16f1 <checkconvnet+0x5e1>
mov    -0x10(%rbp),%rax
cmpl   $0x3,(%rax)
jle    16f1 <checkconvnet+0x5e1>
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
lea    0x95f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x38(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x8(%rbp),%rax
movl   $0x0,(%rax)
jmp    1a00 <checkconvnet+0x8f0>
movl   $0x0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
imul   $0x14,-0x34(%rbp),%ecx
cmp    %ecx,%eax
jge    172f <checkconvnet+0x61f>
mov    0x20(%rbp),%rax
movsd  (%rax),%xmm0
movaps 0x907(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0x8eb(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1786 <checkconvnet+0x676>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x30(%rbp),%rax
ucomisd (%rax),%xmm0
jb     1781 <checkconvnet+0x671>
mov    0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x30(%rbp),%rax
ucomisd (%rax),%xmm0
jb     1781 <checkconvnet+0x671>
mov    0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x58(%rbp),%xmm1
mov    0x68(%rbp),%rax
mulsd  (%rax),%xmm1
ucomisd %xmm1,%xmm0
jbe    1781 <checkconvnet+0x671>
movl   $0x1,-0x50(%rbp)
jmp    1786 <checkconvnet+0x676>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
imul   $0x14,-0x34(%rbp),%ecx
cmp    %ecx,%eax
jge    17bd <checkconvnet+0x6ad>
mov    0x28(%rbp),%rax
movsd  (%rax),%xmm0
movaps 0x879(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0x85d(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1814 <checkconvnet+0x704>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x10(%rbp),%rax
ucomisd (%rax),%xmm0
jb     180f <checkconvnet+0x6ff>
mov    0x28(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x10(%rbp),%rax
ucomisd (%rax),%xmm0
jb     180f <checkconvnet+0x6ff>
mov    0x28(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x60(%rbp),%xmm1
mov    0x70(%rbp),%rax
mulsd  (%rax),%xmm1
ucomisd %xmm1,%xmm0
jbe    180f <checkconvnet+0x6ff>
movl   $0x1,-0x50(%rbp)
jmp    1814 <checkconvnet+0x704>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
imul   $0x14,-0x34(%rbp),%ecx
cmp    %ecx,%eax
jge    184b <checkconvnet+0x73b>
mov    0x30(%rbp),%rax
movsd  (%rax),%xmm0
movaps 0x7eb(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0x7cf(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    18a2 <checkconvnet+0x792>
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x18(%rbp),%rax
ucomisd (%rax),%xmm0
jb     189d <checkconvnet+0x78d>
mov    0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x18(%rbp),%rax
ucomisd (%rax),%xmm0
jb     189d <checkconvnet+0x78d>
mov    0x30(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x68(%rbp),%xmm1
mov    0x78(%rbp),%rax
mulsd  (%rax),%xmm1
ucomisd %xmm1,%xmm0
jbe    189d <checkconvnet+0x78d>
movl   $0x1,-0x50(%rbp)
jmp    18a2 <checkconvnet+0x792>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
imul   $0x14,-0x34(%rbp),%ecx
cmp    %ecx,%eax
jge    18d9 <checkconvnet+0x7c9>
mov    0x60(%rbp),%rax
movsd  (%rax),%xmm0
movaps 0x75d(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0x741(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1933 <checkconvnet+0x823>
mov    0x50(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x58(%rbp),%rax
ucomisd (%rax),%xmm0
jb     192e <checkconvnet+0x81e>
mov    0x60(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x58(%rbp),%rax
ucomisd (%rax),%xmm0
jb     192e <checkconvnet+0x81e>
mov    0x60(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x70(%rbp),%xmm1
mov    0x80(%rbp),%rax
mulsd  (%rax),%xmm1
ucomisd %xmm1,%xmm0
jbe    192e <checkconvnet+0x81e>
movl   $0x1,-0x50(%rbp)
jmp    1933 <checkconvnet+0x823>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
imul   $0x14,-0x40(%rbp),%ecx
cmp    %ecx,%eax
jle    194c <checkconvnet+0x83c>
movl   $0x1,-0x50(%rbp)
mov    -0x10(%rbp),%rax
cmpl   $0x0,(%rax)
jne    1960 <checkconvnet+0x850>
movl   $0x1,-0x50(%rbp)
cmpl   $0x1,-0x50(%rbp)
jne    19ed <checkconvnet+0x8dd>
mov    0x40(%rbp),%rax
movsd  (%rax),%xmm0
mulsd  -0x98(%rbp),%xmm0
ff
mov    0x40(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x40(%rbp),%rax
movsd  (%rax),%xmm0
lea    0x6d6(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0x711(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
cmp    -0x4c(%rbp),%eax
jle    19e8 <checkconvnet+0x8d8>
mov    0x88(%rbp),%rax
movsd  0x63f(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    0x38(%rbp),%rax
movl   $0x1,(%rax)
jmp    19fb <checkconvnet+0x8eb>
lea    0x6f6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1a00 <checkconvnet+0x8f0>
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<checkconvnet>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %r8,0x50(%rsp)
mov    %rcx,0x48(%rsp)
mov    %rdi,0x40(%rsp)
mov    0xf8(%rsp),%rdi
cvttsd2si (%rdi),%ebp
mov    0x160(%rsp),%r15
cvttsd2si 0x10(%rdi),%ebx
mov    0x158(%rsp),%r11
cvttsd2si 0x18(%rdi),%eax
mov    %rax,0x80(%rsp)
mov    0x150(%rsp),%r10
mov    %rsi,0x78(%rsp)
mov    (%rsi),%esi
xor    %eax,%eax
cmp    %ebx,%esi
mov    0x148(%rsp),%rcx
mov    %rcx,0x60(%rsp)
setg   %al
shl    $0x5,%rax
movsd  0x90(%rax,%rdi,1),%xmm1
cvttsd2si 0x38(%rdi),%eax
mov    %eax,0x1c(%rsp)
movsd  0x50(%rdi),%xmm0
movsd  (%rdx),%xmm2
movsd  (%r9),%xmm3
ucomisd %xmm2,%xmm3
mov    0x140(%rsp),%r8
mov    0x138(%rsp),%rax
mov    %rax,0x68(%rsp)
mov    0x130(%rsp),%rax
mov    %rax,0x20(%rsp)
mov    0x128(%rsp),%rax
mov    %rax,0x28(%rsp)
mov    0x120(%rsp),%rax
mov    %rax,0x38(%rsp)
mov    0x118(%rsp),%r14
mov    0x110(%rsp),%r13
mov    0x108(%rsp),%rax
mov    %rax,0x10(%rsp)
mov    0x100(%rsp),%rax
mov    %rax,0x58(%rsp)
mov    0xf0(%rsp),%rax
mov    %rax,0x70(%rsp)
mov    0xe8(%rsp),%rax
mov    %rax,0x30(%rsp)
mov    0xe0(%rsp),%rdi
mov    0xd8(%rsp),%rcx
mov    0xd0(%rsp),%r12
mov    0xc8(%rsp),%rax
mov    %rax,0x8(%rsp)
mov    0xc0(%rsp),%rbx
jbe    126d <checkconvnet+0x14d>
movsd  %xmm2,(%r9)
mov    0x48(%rsp),%rax
movsd  (%rax),%xmm2
movsd  (%rbx),%xmm3
ucomisd %xmm2,%xmm3
jbe    1284 <checkconvnet+0x164>
movsd  %xmm2,(%rbx)
mov    0x50(%rsp),%rax
movsd  (%rax),%xmm2
mov    0x8(%rsp),%rax
movsd  (%rax),%xmm3
ucomisd %xmm2,%xmm3
jbe    12a5 <checkconvnet+0x185>
mov    0x8(%rsp),%rax
movsd  %xmm2,(%rax)
mulsd  0xd53(%rip),%xmm1
mov    0x58(%rsp),%rax
movsd  (%rax),%xmm2
mov    0x10(%rsp),%rax
movsd  (%rax),%xmm3
ucomisd %xmm2,%xmm3
jbe    12ce <checkconvnet+0x1ae>
mov    0x10(%rsp),%rax
movsd  %xmm2,(%rax)
movq   $0x0,(%r10)
movq   $0x0,(%r11)
movq   $0x0,(%r15)
movsd  (%r12),%xmm2
movsd  (%r14),%xmm3
mulsd  %xmm1,%xmm3
ucomisd %xmm2,%xmm3
jb     1397 <checkconvnet+0x277>
movsd  (%r8),%xmm4
mulsd  %xmm1,%xmm4
ucomisd (%r10),%xmm4
jbe    1397 <checkconvnet+0x277>
mov    0x38(%rsp),%rax
movsd  (%rax),%xmm4
mulsd  %xmm1,%xmm4
ucomisd (%rcx),%xmm4
jb     1397 <checkconvnet+0x277>
mov    0x60(%rsp),%rax
movsd  (%rax),%xmm4
mulsd  %xmm1,%xmm4
ucomisd (%r11),%xmm4
jbe    1397 <checkconvnet+0x277>
xorpd  %xmm4,%xmm4
ucomisd %xmm4,%xmm1
jbe    1397 <checkconvnet+0x277>
mov    0x28(%rsp),%rax
movsd  (%rax),%xmm4
mulsd  %xmm1,%xmm4
ucomisd (%rdi),%xmm4
jb     1397 <checkconvnet+0x277>
mov    0x20(%rsp),%rax
movsd  (%rax),%xmm4
mulsd  %xmm1,%xmm4
ucomisd 0x0(%r13),%xmm4
jb     1397 <checkconvnet+0x277>
cmp    $0x4,%esi
jl     1397 <checkconvnet+0x277>
lea    0xcab(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x30(%rsp),%rax
movl   $0x1,(%rax)
mov    0x40(%rsp),%rax
movl   $0x0,(%rax)
jmp    156f <checkconvnet+0x44f>
shl    $0x2,%ebp
lea    0x0(%rbp,%rbp,4),%ebp
cmp    %ebp,%esi
jge    13bb <checkconvnet+0x29b>
movapd 0xc66(%rip),%xmm4
andpd  %xmm2,%xmm4
xor    %r12d,%r12d
ucomisd 0xc4f(%rip),%xmm4
jbe    13e5 <checkconvnet+0x2c5>
movsd  (%rdx),%xmm4
movsd  (%r9),%xmm5
ucomisd %xmm5,%xmm4
setae  %dl
ucomisd %xmm5,%xmm2
setae  %al
and    %dl,%al
ucomisd %xmm3,%xmm2
seta   %dl
and    %al,%dl
movzbl %dl,%r12d
cmp    %ebp,%esi
jge    13fb <checkconvnet+0x2db>
movsd  (%rcx),%xmm2
andpd  0xc1f(%rip),%xmm2
ucomisd 0xc0f(%rip),%xmm2
jbe    1435 <checkconvnet+0x315>
mov    0x48(%rsp),%rax
movsd  (%rax),%xmm2
movsd  (%rbx),%xmm3
ucomisd %xmm3,%xmm2
jb     1431 <checkconvnet+0x311>
movsd  (%rcx),%xmm2
ucomisd %xmm3,%xmm2
jb     1431 <checkconvnet+0x311>
mov    0x38(%rsp),%rax
movsd  (%rax),%xmm3
mulsd  %xmm1,%xmm3
ucomisd %xmm3,%xmm2
jbe    1431 <checkconvnet+0x311>
mov    $0x1,%r12d
cmp    %ebp,%esi
jge    144b <checkconvnet+0x32b>
movsd  (%rdi),%xmm2
andpd  0xbcf(%rip),%xmm2
ucomisd 0xbbf(%rip),%xmm2
jbe    148a <checkconvnet+0x36a>
mov    0x50(%rsp),%rax
movsd  (%rax),%xmm2
mov    0x8(%rsp),%rax
movsd  (%rax),%xmm3
ucomisd %xmm3,%xmm2
jb     1486 <checkconvnet+0x366>
movsd  (%rdi),%xmm2
ucomisd %xmm3,%xmm2
jb     1486 <checkconvnet+0x366>
mov    0x28(%rsp),%rax
movsd  (%rax),%xmm3
mulsd  %xmm1,%xmm3
ucomisd %xmm3,%xmm2
jbe    1486 <checkconvnet+0x366>
mov    $0x1,%r12d
cmp    %ebp,%esi
jge    14a2 <checkconvnet+0x382>
movsd  0x0(%r13),%xmm2
andpd  0xb78(%rip),%xmm2
ucomisd 0xb68(%rip),%xmm2
jbe    14d5 <checkconvnet+0x3b5>
mov    0x58(%rsp),%rax
movsd  (%rax),%xmm2
mov    0x10(%rsp),%rax
movsd  (%rax),%xmm3
ucomisd %xmm3,%xmm2
jb     14d5 <checkconvnet+0x3b5>
movsd  0x0(%r13),%xmm2
ucomisd %xmm3,%xmm2
jb     14d5 <checkconvnet+0x3b5>
mov    0x20(%rsp),%rax
mulsd  (%rax),%xmm1
ucomisd %xmm1,%xmm2
ja     150d <checkconvnet+0x3ed>
test   %esi,%esi
je     150d <checkconvnet+0x3ed>
mov    0x80(%rsp),%rax
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
cmp    %eax,%esi
jg     150d <checkconvnet+0x3ed>
test   %r12d,%r12d
jne    150d <checkconvnet+0x3ed>
lea    0xba9(%rip),%rdi
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <puts@plt>
mov    0x70(%rsp),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
lea    0xb36(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xb87(%rip),%rdi
call   1030 <puts@plt>
mov    0x78(%rsp),%rax
movl   $0x0,(%rax)
mov    0x40(%rsp),%rdx
mov    (%rdx),%eax
lea    0x1(%rax),%ecx
mov    %ecx,(%rdx)
cmp    0x1c(%rsp),%eax
jl     156f <checkconvnet+0x44f>
movabs $0x3fd0000000000000,%rax
mov    0x68(%rsp),%rcx
mov    %rax,0x10(%rcx)
mov    0x30(%rsp),%rax
movl   $0x1,(%rax)
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [55 x i8] c" flow network: convergence in gas iteration %d \0A\0A\00"
@.str.1 = [73 x i8] c"\0A network divergence; the under-relaxation parameter is decreased to %e\0A\00"
@str = [22 x i8] c" no convergence\0A\00"
@str.4 = [57 x i8] c" the network iteration for the increment is reattempted\0A\00"
define void @checkconvnet(i32* nocapture %0, i32* nocapture %1, double* nocapture %2, double* nocapture %3, double* nocapture %4, double* nocapture %5, double* nocapture %6, double* nocapture %7, double* nocapture %8, double* nocapture %9, double* nocapture %10, i32* nocapture writeonly %11, double* nocapture %12, double* nocapture %13, double* nocapture %14, double* nocapture %15, double* nocapture %16, double* nocapture %17, double* nocapture %18, double* nocapture %19, double* nocapture %20, double* nocapture writeonly %21, double* nocapture %22, double* nocapture %23, double* nocapture %24, double* nocapture %25, double* nocapture writeonly %26, i32* nocapture readnone %27) {
%29 = load double, double* %13
%30 = fptosi double %29 to i32
%31 = getelementptr inbounds double, double* %13, i64 2
%32 = load double, double* %31
%33 = fptosi double %32 to i32
%34 = getelementptr inbounds double, double* %13, i64 3
%35 = load double, double* %34
%36 = fptosi double %35 to i32
%37 = getelementptr inbounds double, double* %13, i64 7
%38 = load double, double* %37
%39 = fptosi double %38 to i32
%40 = getelementptr inbounds double, double* %13, i64 10
%41 = load double, double* %40
%42 = getelementptr inbounds double, double* %13, i64 18
%43 = load double, double* %42
%44 = getelementptr inbounds double, double* %13, i64 22
%45 = load double, double* %44
%46 = load i32, i32* %1
%47 = icmp sgt i32 %46, %33
%48 = select i1 %47, double %45, double %43
%49 = fmul double %48, 1.000000e-04
%50 = load double, double* %2
%51 = load double, double* %5
%52 = fcmp olt double %50, %51
br i1 %52, label %53, label %54
53: ; preds = %28
store double %50, double* %5
br label %54
54: ; preds = %53, %28
%55 = load double, double* %3
%56 = load double, double* %6
%57 = fcmp olt double %55, %56
br i1 %57, label %58, label %59
58: ; preds = %54
store double %55, double* %6
br label %59
59: ; preds = %58, %54
%60 = load double, double* %4
%61 = load double, double* %7
%62 = fcmp olt double %60, %61
br i1 %62, label %63, label %64
63: ; preds = %59
store double %60, double* %7
br label %64
64: ; preds = %63, %59
%65 = load double, double* %14
%66 = load double, double* %15
%67 = fcmp olt double %65, %66
br i1 %67, label %68, label %69
68: ; preds = %64
store double %65, double* %15
br label %69
69: ; preds = %68, %64
store double 0.000000e+00, double* %24
store double 0.000000e+00, double* %25
store double 0.000000e+00, double* %26
%70 = load double, double* %8
%71 = load double, double* %17
%72 = fmul double %49, %71
%73 = fcmp ugt double %70, %72
br i1 %73, label %105, label %74
74: ; preds = %69
%75 = load double, double* %24
%76 = load double, double* %22
%77 = fmul double %49, %76
%78 = fcmp olt double %75, %77
br i1 %78, label %79, label %105
79: ; preds = %74
%80 = load double, double* %9
%81 = load double, double* %18
%82 = fmul double %49, %81
%83 = fcmp ugt double %80, %82
br i1 %83, label %105, label %84
84: ; preds = %79
%85 = load double, double* %25
%86 = load double, double* %23
%87 = fmul double %49, %86
%88 = fcmp olt double %85, %87
br i1 %88, label %89, label %105
89: ; preds = %84
%90 = load double, double* %10
%91 = load double, double* %19
%92 = fmul double %49, %91
%93 = fcmp ole double %90, %92
%94 = fcmp ogt double %49, 0.000000e+00
%95 = and i1 %94, %93
br i1 %95, label %96, label %105
96: ; preds = %89
%97 = load double, double* %16
%98 = load double, double* %20
%99 = fmul double %49, %98
%100 = fcmp ole double %97, %99
%101 = icmp sgt i32 %46, 3
%102 = select i1 %100, i1 %101, i1 false
br i1 %102, label %103, label %105
103: ; preds = %96
%104 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i32 %46)
store i32 1, i32* %11
store i32 0, i32* %0
br label %198
105: ; preds = %96, %89, %84, %79, %74, %69
%106 = mul nsw i32 %30, 20
%107 = icmp slt i32 %46, %106
%108 = xor i1 %107, true
%109 = tail call double @llvm.fabs.f64(double %70)
%110 = fcmp ogt double %109, 1.000000e+20
%111 = select i1 %108, i1 true, i1 %110
br i1 %111, label %112, label %121
112: ; preds = %105
%113 = load double, double* %2
%114 = load double, double* %5
%115 = fcmp oge double %113, %114
%116 = fcmp oge double %70, %114
%117 = select i1 %115, i1 %116, i1 false
%118 = fcmp ogt double %70, %72
%119 = select i1 %117, i1 %118, i1 false
%120 = zext i1 %119 to i32
br i1 %107, label %121, label %126
121: ; preds = %105, %112
%122 = phi i32 [ %120, %112 ], [ 0, %105 ]
%123 = load double, double* %9
%124 = tail call double @llvm.fabs.f64(double %123)
%125 = fcmp ogt double %124, 1.000000e+20
br i1 %125, label %126, label %141
126: ; preds = %121, %112
%127 = phi i32 [ %122, %121 ], [ %120, %112 ]
%128 = load double, double* %3
%129 = load double, double* %6
%130 = fcmp ult double %128, %129
br i1 %130, label %139, label %131
131: ; preds = %126
%132 = load double, double* %9
%133 = fcmp ult double %132, %129
br i1 %133, label %139, label %134
134: ; preds = %131
%135 = load double, double* %18
%136 = fmul double %49, %135
%137 = fcmp ogt double %132, %136
br i1 %137, label %138, label %139
138: ; preds = %134
br label %139
139: ; preds = %126, %131, %134, %138
%140 = phi i32 [ 1, %138 ], [ %127, %134 ], [ %127, %131 ], [ %127, %126 ]
br i1 %107, label %141, label %146
141: ; preds = %121, %139
%142 = phi i32 [ %140, %139 ], [ %122, %121 ]
%143 = load double, double* %10
%144 = tail call double @llvm.fabs.f64(double %143)
%145 = fcmp ogt double %144, 1.000000e+20
br i1 %145, label %146, label %161
146: ; preds = %141, %139
%147 = phi i32 [ %142, %141 ], [ %140, %139 ]
%148 = load double, double* %4
%149 = load double, double* %7
%150 = fcmp ult double %148, %149
br i1 %150, label %159, label %151
151: ; preds = %146
%152 = load double, double* %10
%153 = fcmp ult double %152, %149
br i1 %153, label %159, label %154
154: ; preds = %151
%155 = load double, double* %19
%156 = fmul double %49, %155
%157 = fcmp ogt double %152, %156
br i1 %157, label %158, label %159
158: ; preds = %154
br label %159
159: ; preds = %146, %151, %154, %158
%160 = phi i32 [ 1, %158 ], [ %147, %154 ], [ %147, %151 ], [ %147, %146 ]
br i1 %107, label %161, label %166
161: ; preds = %141, %159
%162 = phi i32 [ %160, %159 ], [ %142, %141 ]
%163 = load double, double* %16
%164 = tail call double @llvm.fabs.f64(double %163)
%165 = fcmp ogt double %164, 1.000000e+20
br i1 %165, label %166, label %178
166: ; preds = %161, %159
%167 = phi i32 [ %162, %161 ], [ %160, %159 ]
%168 = load double, double* %14
%169 = load double, double* %15
%170 = fcmp ult double %168, %169
br i1 %170, label %178, label %171
171: ; preds = %166
%172 = load double, double* %16
%173 = fcmp ult double %172, %169
br i1 %173, label %178, label %174
174: ; preds = %171
%175 = load double, double* %20
%176 = fmul double %49, %175
%177 = fcmp ogt double %172, %176
br i1 %177, label %186, label %178
178: ; preds = %166, %171, %174, %161
%179 = phi i32 [ %167, %174 ], [ %167, %171 ], [ %167, %166 ], [ %162, %161 ]
%180 = mul nsw i32 %36, 20
%181 = icmp sgt i32 %46, %180
%182 = icmp eq i32 %46, 0
%183 = select i1 %182, i1 true, i1 %181
%184 = icmp eq i32 %179, 1
%185 = select i1 %183, i1 true, i1 %184
br i1 %185, label %186, label %196
186: ; preds = %174, %178
%187 = load double, double* %12
%188 = fmul double %41, %187
store double %188, double* %12
%189 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @.str.1, i64 0, i64 0), double %188)
%190 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.4, i64 0, i64 0))
store i32 0, i32* %1
%191 = load i32, i32* %0
%192 = add nsw i32 %191, 1
store i32 %192, i32* %0
%193 = icmp slt i32 %191, %39
br i1 %193, label %198, label %194
194: ; preds = %186
%195 = getelementptr inbounds double, double* %21, i64 2
store double 2.500000e-01, double* %195
store i32 1, i32* %11
br label %198
196: ; preds = %178
%197 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
br label %198
198: ; preds = %196, %194, %186, %103
ret void
}