#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*/ _glp_lib_xassert(char *, char *, int);
int *_glp_lib_xcalloc(int, int);
int /*<<< orphan*/ _glp_lib_xfree(int *);
int /*<<< orphan*/ _glp_qmd_genqmd(int *, int *, int *, int *, int *, int *,
                                   int *, int *, int *, int *, int *, int *);
void _glp_mat_min_degree(int n, int A_ptr[], int A_ind[], int P_per[]) {
  int i, j, ne, t, pos, len;
  int *xadj, *adjncy, *deg, *marker, *rchset, *nbrhd, *qsize, *qlink, nofsub;
  ne = A_ptr[n + 1] - 1;
  ne += ne;
  xadj = _glp_lib_xcalloc(1 + n + 1, sizeof(int));
  adjncy = _glp_lib_xcalloc(1 + ne, sizeof(int));
  deg = _glp_lib_xcalloc(1 + n, sizeof(int));
  marker = _glp_lib_xcalloc(1 + n, sizeof(int));
  rchset = _glp_lib_xcalloc(1 + n, sizeof(int));
  nbrhd = _glp_lib_xcalloc(1 + n, sizeof(int));
  qsize = _glp_lib_xcalloc(1 + n, sizeof(int));
  qlink = _glp_lib_xcalloc(1 + n, sizeof(int));
  for (i = 1; i <= n; i++)
    xadj[i] = 0;
  for (i = 1; i <= n; i++) {
    for (t = A_ptr[i]; t < A_ptr[i + 1]; t++) {
      j = A_ind[t];
      ((void)((i < j && j <= n) ||
              (_glp_lib_xassert(
                   "i < j && j <= n",
                   "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                   "outputs/2022-01-22/02-19-57/repos/macmanes-lab/BinPacker/"
                   "refs/heads/master/glpk-4.40/src/glpmat.c",
                   453),
               1)));
      xadj[i]++, xadj[j]++;
    }
  }
  pos = 1;
  for (i = 1; i <= n; i++)
    len = xadj[i], pos += len, xadj[i] = pos;
  xadj[n + 1] = pos;
  ((void)((pos - 1 == ne) ||
          (_glp_lib_xassert(
               "pos - 1 == ne",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/macmanes-lab/BinPacker/refs/"
               "heads/master/glpk-4.40/src/glpmat.c",
               462),
           1)));
  for (i = 1; i <= n; i++) {
    for (t = A_ptr[i]; t < A_ptr[i + 1]; t++) {
      j = A_ind[t];
      adjncy[--xadj[i]] = j, adjncy[--xadj[j]] = i;
    }
  }
  _glp_qmd_genqmd(&n, xadj, adjncy, P_per, P_per + n, deg, marker, rchset,
                  nbrhd, qsize, qlink, &nofsub);
  for (i = 1; i <= n; i++) {
    j = P_per[i];
    ((void)((1 <= j && j <= n) ||
            (_glp_lib_xassert(
                 "1 <= j && j <= n",
                 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                 "outputs/2022-01-22/02-19-57/repos/macmanes-lab/BinPacker/"
                 "refs/heads/master/glpk-4.40/src/glpmat.c",
                 476),
             1)));
    ((void)((P_per[n + j] == i) ||
            (_glp_lib_xassert(
                 "P_per[n+j] == i",
                 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                 "outputs/2022-01-22/02-19-57/repos/macmanes-lab/BinPacker/"
                 "refs/heads/master/glpk-4.40/src/glpmat.c",
                 477),
             1)));
  }
  _glp_lib_xfree(xadj);
  _glp_lib_xfree(adjncy);
  _glp_lib_xfree(deg);
  _glp_lib_xfree(marker);
  _glp_lib_xfree(rchset);
  _glp_lib_xfree(nbrhd);
  _glp_lib_xfree(qsize);
  _glp_lib_xfree(qlink);
  return;
}


x86 assembly (clang, -O0):
<_glp_mat_min_degree>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0xb8,%rsp
mov    %edi,-0x1c(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
sub    $0x1,%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
add    -0x44(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x1c(%rbp),%edi
add    $0x1,%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x44(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,-0x60(%rbp)
mov    -0x1c(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,-0x68(%rbp)
mov    -0x1c(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,-0x70(%rbp)
mov    -0x1c(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,-0x78(%rbp)
mov    -0x1c(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,-0x80(%rbp)
mov    -0x1c(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,-0x88(%rbp)
mov    -0x1c(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,-0x90(%rbp)
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     1257 <_glp_mat_min_degree+0x117>
mov    -0x58(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    122e <_glp_mat_min_degree+0xee>
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     1328 <_glp_mat_min_degree+0x1e8>
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x48(%rbp)
mov    -0x48(%rbp),%eax
mov    -0x28(%rbp),%rcx
mov    -0x3c(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
cmp    (%rcx,%rdx,4),%eax
jge    1315 <_glp_mat_min_degree+0x1d5>
mov    -0x30(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x40(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    12bf <_glp_mat_min_degree+0x17f>
mov    -0x40(%rbp),%ecx
mov    $0x1,%al
cmp    -0x1c(%rbp),%ecx
mov    %al,-0x95(%rbp)
jle    12df <_glp_mat_min_degree+0x19f>
lea    0xd3a(%rip),%rdi
lea    0xd43(%rip),%rsi
mov    $0x1c5,%edx
call   1060 <_glp_lib_xassert@plt>
mov    $0x1,%al
mov    %al,-0x95(%rbp)
mov    -0x95(%rbp),%al
mov    -0x58(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
add    $0x1,%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x58(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
add    $0x1,%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1278 <_glp_mat_min_degree+0x138>
jmp    131a <_glp_mat_min_degree+0x1da>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    125e <_glp_mat_min_degree+0x11e>
movl   $0x1,-0x4c(%rbp)
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     1375 <_glp_mat_min_degree+0x235>
mov    -0x58(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%eax
add    -0x4c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%edx
mov    -0x58(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1336 <_glp_mat_min_degree+0x1f6>
mov    -0x4c(%rbp),%edx
mov    -0x58(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x4c(%rbp),%ecx
sub    $0x1,%ecx
mov    $0x1,%al
cmp    -0x44(%rbp),%ecx
mov    %al,-0x96(%rbp)
je     13bf <_glp_mat_min_degree+0x27f>
lea    0xd04(%rip),%rdi
lea    0xc63(%rip),%rsi
mov    $0x1ce,%edx
call   1060 <_glp_lib_xassert@plt>
mov    $0x1,%al
mov    %al,-0x96(%rbp)
mov    -0x96(%rbp),%al
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     146a <_glp_mat_min_degree+0x32a>
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x48(%rbp)
mov    -0x48(%rbp),%eax
mov    -0x28(%rbp),%rcx
mov    -0x3c(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
cmp    (%rcx,%rdx,4),%eax
jge    1457 <_glp_mat_min_degree+0x317>
mov    -0x30(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x40(%rbp)
mov    -0x40(%rbp),%edx
mov    -0x60(%rbp),%rax
mov    -0x58(%rbp),%rsi
movslq -0x3c(%rbp),%rdi
mov    (%rsi,%rdi,4),%ecx
add    $0xffffffff,%ecx
mov    %ecx,(%rsi,%rdi,4)
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x3c(%rbp),%edx
mov    -0x60(%rbp),%rax
mov    -0x58(%rbp),%rsi
movslq -0x40(%rbp),%rdi
mov    (%rsi,%rdi,4),%ecx
add    $0xffffffff,%ecx
mov    %ecx,(%rsi,%rdi,4)
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    13e6 <_glp_mat_min_degree+0x2a6>
jmp    145c <_glp_mat_min_degree+0x31c>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    13cc <_glp_mat_min_degree+0x28c>
mov    -0x58(%rbp),%rsi
mov    -0x60(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    -0x38(%rbp),%r8
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%r8
mov    -0x68(%rbp),%r9
mov    -0x70(%rbp),%r15
mov    -0x78(%rbp),%r14
mov    -0x80(%rbp),%rbx
mov    -0x88(%rbp),%r11
mov    -0x90(%rbp),%r10
lea    -0x1c(%rbp),%rdi
lea    -0x94(%rbp),%rax
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1040 <_glp_qmd_genqmd@plt>
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     158e <_glp_mat_min_degree+0x44e>
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x40(%rbp)
mov    $0x1,%eax
cmp    -0x40(%rbp),%eax
jg     1513 <_glp_mat_min_degree+0x3d3>
mov    -0x40(%rbp),%ecx
mov    $0x1,%al
cmp    -0x1c(%rbp),%ecx
mov    %al,-0x97(%rbp)
jle    1533 <_glp_mat_min_degree+0x3f3>
lea    0xb9e(%rip),%rdi
lea    0xaef(%rip),%rsi
mov    $0x1dc,%edx
call   1060 <_glp_lib_xassert@plt>
mov    $0x1,%al
mov    %al,-0x97(%rbp)
mov    -0x97(%rbp),%al
mov    -0x38(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%ecx
mov    $0x1,%al
cmp    -0x3c(%rbp),%ecx
mov    %al,-0x98(%rbp)
je     157a <_glp_mat_min_degree+0x43a>
lea    0xb68(%rip),%rdi
lea    0xaa8(%rip),%rsi
mov    $0x1dd,%edx
call   1060 <_glp_lib_xassert@plt>
mov    $0x1,%al
mov    %al,-0x98(%rbp)
mov    -0x98(%rbp),%al
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    14d7 <_glp_mat_min_degree+0x397>
mov    -0x58(%rbp),%rdi
call   1050 <_glp_lib_xfree@plt>
mov    -0x60(%rbp),%rdi
call   1050 <_glp_lib_xfree@plt>
mov    -0x68(%rbp),%rdi
call   1050 <_glp_lib_xfree@plt>
mov    -0x70(%rbp),%rdi
call   1050 <_glp_lib_xfree@plt>
mov    -0x78(%rbp),%rdi
call   1050 <_glp_lib_xfree@plt>
mov    -0x80(%rbp),%rdi
call   1050 <_glp_lib_xfree@plt>
mov    -0x88(%rbp),%rdi
call   1050 <_glp_lib_xfree@plt>
mov    -0x90(%rbp),%rdi
call   1050 <_glp_lib_xfree@plt>
add    $0xb8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<_glp_mat_min_degree>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rcx,0x20(%rsp)
mov    %rdx,0x18(%rsp)
mov    %edi,%ebp
mov    %edi,0x8(%rsp)
lea    0x1(%rbp),%r14d
movslq %edi,%r12
mov    %rsi,0x10(%rsp)
mov    0x4(%rsi,%r12,4),%r15d
lea    0x2(%r12),%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,%rbx
lea    (%r15,%r15,1),%edi
add    $0xffffffff,%edi
mov    %edi,0xc(%rsp)
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,%r15
mov    %r14d,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,0x58(%rsp)
mov    %r14d,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,0x50(%rsp)
mov    %r14d,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,0x48(%rsp)
mov    %r14d,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,0x40(%rsp)
mov    %r14d,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,0x38(%rsp)
mov    %r14d,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,%r14
mov    $0x1,%esi
test   %r12d,%r12d
mov    %r15,0x30(%rsp)
mov    %rax,0x28(%rsp)
jle    12df <_glp_mat_min_degree+0x19f>
xor    %eax,%eax
nopl   (%rax)
movl   $0x0,0x4(%rbx,%rax,4)
movslq 0x8(%rsp),%rbp
add    $0x1,%rax
cmp    %rbp,%rax
jl     1220 <_glp_mat_min_degree+0xe0>
test   %ebp,%ebp
mov    0x18(%rsp),%r8
mov    0x10(%rsp),%r9
jle    12e9 <_glp_mat_min_degree+0x1a9>
mov    0x4(%r9),%ecx
mov    $0x1,%r15d
jmp    1273 <_glp_mat_min_degree+0x133>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x1,%esi
movslq %ebp,%rdx
mov    %eax,%ecx
cmp    %rdx,%r14
jge    12ef <_glp_mat_min_degree+0x1af>
mov    %r15,%r14
add    $0x1,%r15
mov    0x4(%r9,%r14,4),%eax
cmp    %eax,%ecx
jge    1265 <_glp_mat_min_degree+0x125>
movslq %ecx,%r12
jmp    12cd <_glp_mat_min_degree+0x18d>
nopl   0x0(%rax,%rax,1)
lea    0xd69(%rip),%rdi
lea    0xd72(%rip),%rsi
mov    $0x1c5,%edx
call   1060 <_glp_lib_xassert@plt>
mov    0x10(%rsp),%r9
mov    0x18(%rsp),%r8
addl   $0x1,(%rbx,%r14,4)
addl   $0x1,(%rbx,%r13,4)
add    $0x1,%r12
movslq (%r9,%r15,4),%rax
mov    0x8(%rsp),%ebp
cmp    %rax,%r12
jge    1260 <_glp_mat_min_degree+0x120>
mov    (%r8,%r12,4),%eax
movslq %eax,%r13
cmp    %r13,%r14
jge    1290 <_glp_mat_min_degree+0x150>
cmp    %ebp,%eax
jle    12b2 <_glp_mat_min_degree+0x172>
jmp    1290 <_glp_mat_min_degree+0x150>
mov    0x18(%rsp),%r8
mov    0x10(%rsp),%r9
mov    0xc(%rsp),%ecx
jmp    1326 <_glp_mat_min_degree+0x1e6>
test   %ebp,%ebp
mov    0x30(%rsp),%r15
mov    0x28(%rsp),%r14
mov    0xc(%rsp),%ecx
jle    1326 <_glp_mat_min_degree+0x1e6>
mov    $0x1,%esi
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
add    0x4(%rbx,%rax,4),%esi
mov    %esi,0x4(%rbx,%rax,4)
movslq 0x8(%rsp),%rbp
add    $0x1,%rax
cmp    %rbp,%rax
jl     1310 <_glp_mat_min_degree+0x1d0>
movslq %ebp,%rax
mov    %esi,0x4(%rbx,%rax,4)
cmp    %ecx,%esi
je     1353 <_glp_mat_min_degree+0x213>
lea    0xd72(%rip),%rdi
lea    0xcd1(%rip),%rsi
mov    $0x1ce,%edx
call   1060 <_glp_lib_xassert@plt>
mov    0x10(%rsp),%r9
mov    0x18(%rsp),%r8
movslq 0x8(%rsp),%rbp
test   %rbp,%rbp
jle    13c7 <_glp_mat_min_degree+0x287>
mov    0x4(%r9),%esi
mov    $0x1,%eax
mov    %ebp,%edx
jmp    137a <_glp_mat_min_degree+0x23a>
nopw   0x0(%rax,%rax,1)
movslq %edx,%rbp
mov    %edi,%esi
cmp    %rbp,%rcx
jge    13c7 <_glp_mat_min_degree+0x287>
mov    %rax,%rcx
add    $0x1,%rax
mov    0x4(%r9,%rcx,4),%edi
cmp    %edi,%esi
jge    1370 <_glp_mat_min_degree+0x230>
movslq %esi,%rdx
nopl   (%rax)
movslq (%r8,%rdx,4),%rsi
movslq (%rbx,%rcx,4),%rdi
lea    -0x1(%rdi),%rbp
mov    %ebp,(%rbx,%rcx,4)
mov    %esi,-0x4(%r15,%rdi,4)
movslq (%rbx,%rsi,4),%rdi
lea    -0x1(%rdi),%rbp
mov    %ebp,(%rbx,%rsi,4)
mov    %ecx,-0x4(%r15,%rdi,4)
add    $0x1,%rdx
movslq (%r9,%rax,4),%rdi
cmp    %rdi,%rdx
jl     1390 <_glp_mat_min_degree+0x250>
mov    0x8(%rsp),%edx
jmp    1370 <_glp_mat_min_degree+0x230>
mov    0x20(%rsp),%rcx
lea    (%rcx,%rbp,4),%r8
lea    0x64(%rsp),%rax
lea    0x8(%rsp),%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    0x58(%rsp),%r9
push   %rax
push   %r14
push   0x48(%rsp)
push   0x58(%rsp)
push   0x68(%rsp)
push   0x78(%rsp)
call   1040 <_glp_qmd_genqmd@plt>
add    $0x30,%rsp
mov    0x8(%rsp),%eax
test   %eax,%eax
jle    148c <_glp_mat_min_degree+0x34c>
mov    $0x1,%r13d
lea    0xc9e(%rip),%r14
lea    0xbef(%rip),%r15
lea    0xca1(%rip),%r12
jmp    143f <_glp_mat_min_degree+0x2ff>
nopw   0x0(%rax,%rax,1)
lea    0x1(%r13),%rcx
movslq %eax,%rdx
cmp    %rdx,%r13
mov    %rcx,%r13
jge    148c <_glp_mat_min_degree+0x34c>
mov    0x20(%rsp),%rcx
mov    (%rcx,%r13,4),%ebp
test   %ebp,%ebp
jle    1450 <_glp_mat_min_degree+0x310>
cmp    %eax,%ebp
jle    1464 <_glp_mat_min_degree+0x324>
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x1dc,%edx
call   1060 <_glp_lib_xassert@plt>
mov    0x8(%rsp),%eax
add    %eax,%ebp
movslq %ebp,%rcx
mov    0x20(%rsp),%rdx
mov    (%rdx,%rcx,4),%ecx
cmp    %rcx,%r13
je     1430 <_glp_mat_min_degree+0x2f0>
mov    %r12,%rdi
mov    %r15,%rsi
mov    $0x1dd,%edx
call   1060 <_glp_lib_xassert@plt>
mov    0x8(%rsp),%eax
jmp    1430 <_glp_mat_min_degree+0x2f0>
mov    %rbx,%rdi
call   1050 <_glp_lib_xfree@plt>
mov    0x30(%rsp),%rdi
call   1050 <_glp_lib_xfree@plt>
mov    0x58(%rsp),%rdi
call   1050 <_glp_lib_xfree@plt>
mov    0x50(%rsp),%rdi
call   1050 <_glp_lib_xfree@plt>
mov    0x48(%rsp),%rdi
call   1050 <_glp_lib_xfree@plt>
mov    0x40(%rsp),%rdi
call   1050 <_glp_lib_xfree@plt>
mov    0x38(%rsp),%rdi
call   1050 <_glp_lib_xfree@plt>
mov    0x28(%rsp),%rdi
call   1050 <_glp_lib_xfree@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [16 x i8] c"i < j && j <= n\00"
@.str.1 = [154 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/macmanes-lab/BinPacker/refs/heads/master/glpk-4.40/src/glpmat.c\00"
@.str.2 = [14 x i8] c"pos - 1 == ne\00"
@.str.3 = [17 x i8] c"1 <= j && j <= n\00"
@.str.4 = [16 x i8] c"P_per[n+j] == i\00"
define void @_glp_mat_min_degree(i32 %0, i32* %1, i32* %2, i32* %3) {
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32*
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca i32*
%19 = alloca i32*
%20 = alloca i32*
%21 = alloca i32*
%22 = alloca i32*
%23 = alloca i32
store i32 %0, i32* %5
store i32* %1, i32** %6
store i32* %2, i32** %7
store i32* %3, i32** %8
%24 = load i32*, i32** %6
%25 = load i32, i32* %5
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, i32* %24, i64 %27
%29 = load i32, i32* %28
%30 = sub nsw i32 %29, 1
store i32 %30, i32* %11
%31 = load i32, i32* %11
%32 = load i32, i32* %11
%33 = add nsw i32 %32, %31
store i32 %33, i32* %11
%34 = load i32, i32* %5
%35 = add nsw i32 1, %34
%36 = add nsw i32 %35, 1
%37 = call i32* @_glp_lib_xcalloc(i32 %36, i32 4)
store i32* %37, i32** %15
%38 = load i32, i32* %11
%39 = add nsw i32 1, %38
%40 = call i32* @_glp_lib_xcalloc(i32 %39, i32 4)
store i32* %40, i32** %16
%41 = load i32, i32* %5
%42 = add nsw i32 1, %41
%43 = call i32* @_glp_lib_xcalloc(i32 %42, i32 4)
store i32* %43, i32** %17
%44 = load i32, i32* %5
%45 = add nsw i32 1, %44
%46 = call i32* @_glp_lib_xcalloc(i32 %45, i32 4)
store i32* %46, i32** %18
%47 = load i32, i32* %5
%48 = add nsw i32 1, %47
%49 = call i32* @_glp_lib_xcalloc(i32 %48, i32 4)
store i32* %49, i32** %19
%50 = load i32, i32* %5
%51 = add nsw i32 1, %50
%52 = call i32* @_glp_lib_xcalloc(i32 %51, i32 4)
store i32* %52, i32** %20
%53 = load i32, i32* %5
%54 = add nsw i32 1, %53
%55 = call i32* @_glp_lib_xcalloc(i32 %54, i32 4)
store i32* %55, i32** %21
%56 = load i32, i32* %5
%57 = add nsw i32 1, %56
%58 = call i32* @_glp_lib_xcalloc(i32 %57, i32 4)
store i32* %58, i32** %22
store i32 1, i32* %9
br label %59
59: ; preds = %68, %4
%60 = load i32, i32* %9
%61 = load i32, i32* %5
%62 = icmp sle i32 %60, %61
br i1 %62, label %63, label %71
63: ; preds = %59
%64 = load i32*, i32** %15
%65 = load i32, i32* %9
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i32, i32* %64, i64 %66
store i32 0, i32* %67
br label %68
68: ; preds = %63
%69 = load i32, i32* %9
%70 = add nsw i32 %69, 1
store i32 %70, i32* %9
br label %59
71: ; preds = %59
store i32 1, i32* %9
br label %72
72: ; preds = %125, %71
%73 = load i32, i32* %9
%74 = load i32, i32* %5
%75 = icmp sle i32 %73, %74
br i1 %75, label %76, label %128
76: ; preds = %72
%77 = load i32*, i32** %6
%78 = load i32, i32* %9
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i32, i32* %77, i64 %79
%81 = load i32, i32* %80
store i32 %81, i32* %12
br label %82
82: ; preds = %121, %76
%83 = load i32, i32* %12
%84 = load i32*, i32** %6
%85 = load i32, i32* %9
%86 = add nsw i32 %85, 1
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, i32* %84, i64 %87
%89 = load i32, i32* %88
%90 = icmp slt i32 %83, %89
br i1 %90, label %91, label %124
91: ; preds = %82
%92 = load i32*, i32** %7
%93 = load i32, i32* %12
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i32, i32* %92, i64 %94
%96 = load i32, i32* %95
store i32 %96, i32* %10
%97 = load i32, i32* %9
%98 = load i32, i32* %10
%99 = icmp slt i32 %97, %98
br i1 %99, label %100, label %104
100: ; preds = %91
%101 = load i32, i32* %10
%102 = load i32, i32* %5
%103 = icmp sle i32 %101, %102
br i1 %103, label %106, label %104
104: ; preds = %100, %91
%105 = call i32 @_glp_lib_xassert(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 453)
br label %106
106: ; preds = %104, %100
%107 = phi i1 [ true, %100 ], [ true, %104 ]
%108 = zext i1 %107 to i32
%109 = load i32*, i32** %15
%110 = load i32, i32* %9
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i32, i32* %109, i64 %111
%113 = load i32, i32* %112
%114 = add nsw i32 %113, 1
store i32 %114, i32* %112
%115 = load i32*, i32** %15
%116 = load i32, i32* %10
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i32, i32* %115, i64 %117
%119 = load i32, i32* %118
%120 = add nsw i32 %119, 1
store i32 %120, i32* %118
br label %121
121: ; preds = %106
%122 = load i32, i32* %12
%123 = add nsw i32 %122, 1
store i32 %123, i32* %12
br label %82
124: ; preds = %82
br label %125
125: ; preds = %124
%126 = load i32, i32* %9
%127 = add nsw i32 %126, 1
store i32 %127, i32* %9
br label %72
128: ; preds = %72
store i32 1, i32* %13
store i32 1, i32* %9
br label %129
129: ; preds = %147, %128
%130 = load i32, i32* %9
%131 = load i32, i32* %5
%132 = icmp sle i32 %130, %131
br i1 %132, label %133, label %150
133: ; preds = %129
%134 = load i32*, i32** %15
%135 = load i32, i32* %9
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds i32, i32* %134, i64 %136
%138 = load i32, i32* %137
store i32 %138, i32* %14
%139 = load i32, i32* %14
%140 = load i32, i32* %13
%141 = add nsw i32 %140, %139
store i32 %141, i32* %13
%142 = load i32, i32* %13
%143 = load i32*, i32** %15
%144 = load i32, i32* %9
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i32, i32* %143, i64 %145
store i32 %142, i32* %146
br label %147
147: ; preds = %133
%148 = load i32, i32* %9
%149 = add nsw i32 %148, 1
store i32 %149, i32* %9
br label %129
150: ; preds = %129
%151 = load i32, i32* %13
%152 = load i32*, i32** %15
%153 = load i32, i32* %5
%154 = add nsw i32 %153, 1
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds i32, i32* %152, i64 %155
store i32 %151, i32* %156
%157 = load i32, i32* %13
%158 = sub nsw i32 %157, 1
%159 = load i32, i32* %11
%160 = icmp eq i32 %158, %159
br i1 %160, label %163, label %161
161: ; preds = %150
%162 = call i32 @_glp_lib_xassert(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 462)
br label %163
163: ; preds = %161, %150
%164 = phi i1 [ true, %150 ], [ true, %161 ]
%165 = zext i1 %164 to i32
store i32 1, i32* %9
br label %166
166: ; preds = %215, %163
%167 = load i32, i32* %9
%168 = load i32, i32* %5
%169 = icmp sle i32 %167, %168
br i1 %169, label %170, label %218
170: ; preds = %166
%171 = load i32*, i32** %6
%172 = load i32, i32* %9
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds i32, i32* %171, i64 %173
%175 = load i32, i32* %174
store i32 %175, i32* %12
br label %176
176: ; preds = %211, %170
%177 = load i32, i32* %12
%178 = load i32*, i32** %6
%179 = load i32, i32* %9
%180 = add nsw i32 %179, 1
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds i32, i32* %178, i64 %181
%183 = load i32, i32* %182
%184 = icmp slt i32 %177, %183
br i1 %184, label %185, label %214
185: ; preds = %176
%186 = load i32*, i32** %7
%187 = load i32, i32* %12
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds i32, i32* %186, i64 %188
%190 = load i32, i32* %189
store i32 %190, i32* %10
%191 = load i32, i32* %10
%192 = load i32*, i32** %16
%193 = load i32*, i32** %15
%194 = load i32, i32* %9
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds i32, i32* %193, i64 %195
%197 = load i32, i32* %196
%198 = add nsw i32 %197, -1
store i32 %198, i32* %196
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds i32, i32* %192, i64 %199
store i32 %191, i32* %200
%201 = load i32, i32* %9
%202 = load i32*, i32** %16
%203 = load i32*, i32** %15
%204 = load i32, i32* %10
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds i32, i32* %203, i64 %205
%207 = load i32, i32* %206
%208 = add nsw i32 %207, -1
store i32 %208, i32* %206
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds i32, i32* %202, i64 %209
store i32 %201, i32* %210
br label %211
211: ; preds = %185
%212 = load i32, i32* %12
%213 = add nsw i32 %212, 1
store i32 %213, i32* %12
br label %176
214: ; preds = %176
br label %215
215: ; preds = %214
%216 = load i32, i32* %9
%217 = add nsw i32 %216, 1
store i32 %217, i32* %9
br label %166
218: ; preds = %166
%219 = load i32*, i32** %15
%220 = load i32*, i32** %16
%221 = load i32*, i32** %8
%222 = load i32*, i32** %8
%223 = load i32, i32* %5
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds i32, i32* %222, i64 %224
%226 = load i32*, i32** %17
%227 = load i32*, i32** %18
%228 = load i32*, i32** %19
%229 = load i32*, i32** %20
%230 = load i32*, i32** %21
%231 = load i32*, i32** %22
%232 = call i32 @_glp_qmd_genqmd(i32* %5, i32* %219, i32* %220, i32* %221, i32* %225, i32* %226, i32* %227, i32* %228, i32* %229, i32* %230, i32* %231, i32* %23)
store i32 1, i32* %9
br label %233
233: ; preds = %268, %218
%234 = load i32, i32* %9
%235 = load i32, i32* %5
%236 = icmp sle i32 %234, %235
br i1 %236, label %237, label %271
237: ; preds = %233
%238 = load i32*, i32** %8
%239 = load i32, i32* %9
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds i32, i32* %238, i64 %240
%242 = load i32, i32* %241
store i32 %242, i32* %10
%243 = load i32, i32* %10
%244 = icmp sle i32 1, %243
br i1 %244, label %245, label %249
245: ; preds = %237
%246 = load i32, i32* %10
%247 = load i32, i32* %5
%248 = icmp sle i32 %246, %247
br i1 %248, label %251, label %249
249: ; preds = %245, %237
%250 = call i32 @_glp_lib_xassert(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 476)
br label %251
251: ; preds = %249, %245
%252 = phi i1 [ true, %245 ], [ true, %249 ]
%253 = zext i1 %252 to i32
%254 = load i32*, i32** %8
%255 = load i32, i32* %5
%256 = load i32, i32* %10
%257 = add nsw i32 %255, %256
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds i32, i32* %254, i64 %258
%260 = load i32, i32* %259
%261 = load i32, i32* %9
%262 = icmp eq i32 %260, %261
br i1 %262, label %265, label %263
263: ; preds = %251
%264 = call i32 @_glp_lib_xassert(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 477)
br label %265
265: ; preds = %263, %251
%266 = phi i1 [ true, %251 ], [ true, %263 ]
%267 = zext i1 %266 to i32
br label %268
268: ; preds = %265
%269 = load i32, i32* %9
%270 = add nsw i32 %269, 1
store i32 %270, i32* %9
br label %233
271: ; preds = %233
%272 = load i32*, i32** %15
%273 = call i32 @_glp_lib_xfree(i32* %272)
%274 = load i32*, i32** %16
%275 = call i32 @_glp_lib_xfree(i32* %274)
%276 = load i32*, i32** %17
%277 = call i32 @_glp_lib_xfree(i32* %276)
%278 = load i32*, i32** %18
%279 = call i32 @_glp_lib_xfree(i32* %278)
%280 = load i32*, i32** %19
%281 = call i32 @_glp_lib_xfree(i32* %280)
%282 = load i32*, i32** %20
%283 = call i32 @_glp_lib_xfree(i32* %282)
%284 = load i32*, i32** %21
%285 = call i32 @_glp_lib_xfree(i32* %284)
%286 = load i32*, i32** %22
%287 = call i32 @_glp_lib_xfree(i32* %286)
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"i < j && j <= n\00"
@.str.1 = [154 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/macmanes-lab/BinPacker/refs/heads/master/glpk-4.40/src/glpmat.c\00"
@.str.2 = [14 x i8] c"pos - 1 == ne\00"
@.str.3 = [17 x i8] c"1 <= j && j <= n\00"
@.str.4 = [16 x i8] c"P_per[n+j] == i\00"
define void @_glp_mat_min_degree(i32 %0, i32* nocapture %1, i32* nocapture %2, i32* %3) {
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %5
%7 = bitcast i32* %6 to i8*
%8 = add nsw i32 %0, 1
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i32, i32* %1, i64 %9
%11 = load i32, i32* %10
%12 = shl i32 %11, 1
%13 = add nsw i32 %0, 2
%14 = tail call i32* @_glp_lib_xcalloc(i32 %13, i32 4)
%15 = add i32 %12, -1
%16 = tail call i32* @_glp_lib_xcalloc(i32 %15, i32 4)
%17 = tail call i32* @_glp_lib_xcalloc(i32 %8, i32 4)
%18 = tail call i32* @_glp_lib_xcalloc(i32 %8, i32 4)
%19 = tail call i32* @_glp_lib_xcalloc(i32 %8, i32 4)
%20 = tail call i32* @_glp_lib_xcalloc(i32 %8, i32 4)
%21 = tail call i32* @_glp_lib_xcalloc(i32 %8, i32 4)
%22 = tail call i32* @_glp_lib_xcalloc(i32 %8, i32 4)
%23 = icmp slt i32 %0, 1
br i1 %23, label %86, label %29
24: ; preds = %29
%25 = icmp slt i32 %33, 1
br i1 %25, label %86, label %26
26: ; preds = %24
%27 = getelementptr inbounds i32, i32* %1, i64 1
%28 = load i32, i32* %27
br label %43
29: ; preds = %4, %29
%30 = phi i64 [ %32, %29 ], [ 1, %4 ]
%31 = getelementptr inbounds i32, i32* %14, i64 %30
store i32 0, i32* %31
%32 = add nuw nsw i64 %30, 1
%33 = load i32, i32* %5
%34 = sext i32 %33 to i64
%35 = icmp slt i64 %30, %34
br i1 %35, label %29, label %24
36: ; preds = %65, %43
%37 = phi i32 [ %44, %43 ], [ %75, %65 ]
%38 = phi i32 [ %49, %43 ], [ %72, %65 ]
%39 = sext i32 %37 to i64
%40 = icmp slt i64 %46, %39
br i1 %40, label %43, label %41
41: ; preds = %36
%42 = icmp slt i32 %37, 1
br i1 %42, label %86, label %76
43: ; preds = %26, %36
%44 = phi i32 [ %33, %26 ], [ %37, %36 ]
%45 = phi i32 [ %28, %26 ], [ %38, %36 ]
%46 = phi i64 [ 1, %26 ], [ %47, %36 ]
%47 = add nuw nsw i64 %46, 1
%48 = getelementptr inbounds i32, i32* %1, i64 %47
%49 = load i32, i32* %48
%50 = icmp slt i32 %45, %49
br i1 %50, label %51, label %36
51: ; preds = %43
%52 = getelementptr inbounds i32, i32* %14, i64 %46
%53 = sext i32 %45 to i64
br label %54
54: ; preds = %65, %51
%55 = phi i32 [ %44, %51 ], [ %75, %65 ]
%56 = phi i64 [ %53, %51 ], [ %71, %65 ]
%57 = getelementptr inbounds i32, i32* %2, i64 %56
%58 = load i32, i32* %57
%59 = sext i32 %58 to i64
%60 = icmp sge i64 %46, %59
%61 = icmp sgt i32 %58, %55
%62 = select i1 %60, i1 true, i1 %61
br i1 %62, label %63, label %65
63: ; preds = %54
%64 = tail call i32 @_glp_lib_xassert(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 453)
br label %65
65: ; preds = %54, %63
%66 = load i32, i32* %52
%67 = add nsw i32 %66, 1
store i32 %67, i32* %52
%68 = getelementptr inbounds i32, i32* %14, i64 %59
%69 = load i32, i32* %68
%70 = add nsw i32 %69, 1
store i32 %70, i32* %68
%71 = add nsw i64 %56, 1
%72 = load i32, i32* %48
%73 = sext i32 %72 to i64
%74 = icmp slt i64 %71, %73
%75 = load i32, i32* %5
br i1 %74, label %54, label %36
76: ; preds = %41, %76
%77 = phi i64 [ %82, %76 ], [ 1, %41 ]
%78 = phi i32 [ %81, %76 ], [ 1, %41 ]
%79 = getelementptr inbounds i32, i32* %14, i64 %77
%80 = load i32, i32* %79
%81 = add nsw i32 %80, %78
store i32 %81, i32* %79
%82 = add nuw nsw i64 %77, 1
%83 = load i32, i32* %5
%84 = sext i32 %83 to i64
%85 = icmp slt i64 %77, %84
br i1 %85, label %76, label %86
86: ; preds = %76, %4, %24, %41
%87 = phi i32 [ 1, %41 ], [ 1, %24 ], [ 1, %4 ], [ %81, %76 ]
%88 = phi i32 [ %37, %41 ], [ %33, %24 ], [ %0, %4 ], [ %83, %76 ]
%89 = add nsw i32 %88, 1
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, i32* %14, i64 %90
store i32 %87, i32* %91
%92 = icmp eq i32 %87, %15
br i1 %92, label %95, label %93
93: ; preds = %86
%94 = tail call i32 @_glp_lib_xassert(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 462)
br label %95
95: ; preds = %93, %86
%96 = load i32, i32* %5
%97 = icmp slt i32 %96, 1
br i1 %97, label %98, label %100
98: ; preds = %95
%99 = sext i32 %96 to i64
br label %140
100: ; preds = %95
%101 = getelementptr inbounds i32, i32* %1, i64 1
%102 = load i32, i32* %101
br label %110
103: ; preds = %122
%104 = load i32, i32* %5
br label %105
105: ; preds = %103, %110
%106 = phi i32 [ %104, %103 ], [ %111, %110 ]
%107 = phi i32 [ %137, %103 ], [ %116, %110 ]
%108 = sext i32 %106 to i64
%109 = icmp slt i64 %113, %108
br i1 %109, label %110, label %140
110: ; preds = %100, %105
%111 = phi i32 [ %96, %100 ], [ %106, %105 ]
%112 = phi i32 [ %102, %100 ], [ %107, %105 ]
%113 = phi i64 [ 1, %100 ], [ %114, %105 ]
%114 = add nuw nsw i64 %113, 1
%115 = getelementptr inbounds i32, i32* %1, i64 %114
%116 = load i32, i32* %115
%117 = icmp slt i32 %112, %116
br i1 %117, label %118, label %105
118: ; preds = %110
%119 = getelementptr inbounds i32, i32* %14, i64 %113
%120 = sext i32 %112 to i64
%121 = trunc i64 %113 to i32
br label %122
122: ; preds = %118, %122
%123 = phi i64 [ %120, %118 ], [ %136, %122 ]
%124 = getelementptr inbounds i32, i32* %2, i64 %123
%125 = load i32, i32* %124
%126 = load i32, i32* %119
%127 = add nsw i32 %126, -1
store i32 %127, i32* %119
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i32, i32* %16, i64 %128
store i32 %125, i32* %129
%130 = sext i32 %125 to i64
%131 = getelementptr inbounds i32, i32* %14, i64 %130
%132 = load i32, i32* %131
%133 = add nsw i32 %132, -1
store i32 %133, i32* %131
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i32, i32* %16, i64 %134
store i32 %121, i32* %135
%136 = add nsw i64 %123, 1
%137 = load i32, i32* %115
%138 = sext i32 %137 to i64
%139 = icmp slt i64 %136, %138
br i1 %139, label %122, label %103
140: ; preds = %105, %98
%141 = phi i64 [ %99, %98 ], [ %108, %105 ]
%142 = getelementptr inbounds i32, i32* %3, i64 %141
%143 = call i32 @_glp_qmd_genqmd(i32* %5, i32* %14, i32* %16, i32* %3, i32* %142, i32* %17, i32* %18, i32* %19, i32* %20, i32* %21, i32* %22, i32* %6)
%144 = load i32, i32* %5
%145 = icmp slt i32 %144, 1
br i1 %145, label %173, label %146
146: ; preds = %140, %168
%147 = phi i32 [ %169, %168 ], [ %144, %140 ]
%148 = phi i64 [ %170, %168 ], [ 1, %140 ]
%149 = getelementptr inbounds i32, i32* %3, i64 %148
%150 = load i32, i32* %149
%151 = icmp slt i32 %150, 1
%152 = icmp sgt i32 %150, %147
%153 = select i1 %151, i1 true, i1 %152
br i1 %153, label %154, label %157
154: ; preds = %146
%155 = call i32 @_glp_lib_xassert(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 476)
%156 = load i32, i32* %5
br label %157
157: ; preds = %146, %154
%158 = phi i32 [ %147, %146 ], [ %156, %154 ]
%159 = add nsw i32 %158, %150
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds i32, i32* %3, i64 %160
%162 = load i32, i32* %161
%163 = zext i32 %162 to i64
%164 = icmp eq i64 %148, %163
br i1 %164, label %168, label %165
165: ; preds = %157
%166 = call i32 @_glp_lib_xassert(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 477)
%167 = load i32, i32* %5
br label %168
168: ; preds = %165, %157
%169 = phi i32 [ %167, %165 ], [ %158, %157 ]
%170 = add nuw nsw i64 %148, 1
%171 = sext i32 %169 to i64
%172 = icmp slt i64 %148, %171
br i1 %172, label %146, label %173
173: ; preds = %168, %140
%174 = call i32 @_glp_lib_xfree(i32* %14)
%175 = call i32 @_glp_lib_xfree(i32* %16)
%176 = call i32 @_glp_lib_xfree(i32* %17)
%177 = call i32 @_glp_lib_xfree(i32* %18)
%178 = call i32 @_glp_lib_xfree(i32* %19)
%179 = call i32 @_glp_lib_xfree(i32* %20)
%180 = call i32 @_glp_lib_xfree(i32* %21)
%181 = call i32 @_glp_lib_xfree(i32* %22)
ret void
}