#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*/ memcpy(int *, int *, int);
int *_glp_mat_chol_symbolic(int n, int A_ptr[], int A_ind[], int U_ptr[]) {
  int i, j, k, t, len, size, beg, end, min_j, *U_ind, *head, *next, *ind, *map,
      *temp;
  size = A_ptr[n + 1] - 1;
  if (size < n)
    size = n;
  size += size;
  U_ind = _glp_lib_xcalloc(1 + size, sizeof(int));
  head = _glp_lib_xcalloc(1 + n, sizeof(int));
  for (i = 1; i <= n; i++)
    head[i] = 0;
  next = _glp_lib_xcalloc(1 + n, sizeof(int));
  ind = _glp_lib_xcalloc(1 + n, sizeof(int));
  map = _glp_lib_xcalloc(1 + n, sizeof(int));
  for (j = 1; j <= n; j++)
    map[j] = 0;
  U_ptr[1] = 1;
  for (k = 1; k <= n; k++) {
    len = A_ptr[k + 1] - A_ptr[k];
    memcpy(&ind[1], &A_ind[A_ptr[k]], len * sizeof(int));
    for (t = 1; t <= len; t++) {
      j = ind[t];
      ((void)((k < j && j <= n) ||
              (_glp_lib_xassert(
                   "k < 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",
                   660),
               1)));
      map[j] = 1;
    }
    for (i = head[k]; i != 0; i = next[i]) {
      beg = U_ptr[i], end = U_ptr[i + 1];
      for (t = beg; t < end; t++) {
        j = U_ind[t];
        if (j > k && !map[j])
          ind[++len] = j, map[j] = 1;
      }
    }
    U_ptr[k + 1] = U_ptr[k] + len;
    if (U_ptr[k + 1] - 1 > size) {
      temp = U_ind;
      size += size;
      U_ind = _glp_lib_xcalloc(1 + size, sizeof(int));
      memcpy(&U_ind[1], &temp[1], (U_ptr[k] - 1) * sizeof(int));
      _glp_lib_xfree(temp);
    }
    ((void)((U_ptr[k + 1] - 1 <= size) ||
            (_glp_lib_xassert(
                 "U_ptr[k+1] - 1 <= size",
                 "/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",
                 684),
             1)));
    memcpy(&U_ind[U_ptr[k]], &ind[1], len * sizeof(int));
    min_j = n + 1;
    for (t = 1; t <= len; t++) {
      j = ind[t], map[j] = 0;
      if (min_j > j)
        min_j = j;
    }
    if (min_j <= n)
      next[k] = head[min_j], head[min_j] = k;
  }
  _glp_lib_xfree(head);
  _glp_lib_xfree(next);
  _glp_lib_xfree(ind);
  _glp_lib_xfree(map);
  temp = U_ind;
  size = U_ptr[n + 1] - 1;
  U_ind = _glp_lib_xcalloc(1 + size, sizeof(int));
  memcpy(&U_ind[1], &temp[1], size * sizeof(int));
  _glp_lib_xfree(temp);
  return U_ind;
}


x86 assembly (clang, -O0):
<_glp_mat_chol_symbolic>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
sub    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1182 <_glp_mat_chol_symbolic+0x42>
mov    -0x4(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
add    -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,-0x58(%rbp)
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     11e3 <_glp_mat_chol_symbolic+0xa3>
mov    -0x58(%rbp),%rax
movslq -0x24(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11ba <_glp_mat_chol_symbolic+0x7a>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,-0x60(%rbp)
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,-0x68(%rbp)
mov    -0x4(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,-0x70(%rbp)
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     124f <_glp_mat_chol_symbolic+0x10f>
mov    -0x70(%rbp),%rax
movslq -0x28(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1226 <_glp_mat_chol_symbolic+0xe6>
mov    -0x20(%rbp),%rax
movl   $0x1,0x4(%rax)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     159e <_glp_mat_chol_symbolic+0x45e>
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x10(%rbp),%rcx
movslq -0x2c(%rbp),%rdx
sub    (%rcx,%rdx,4),%eax
mov    %eax,-0x34(%rbp)
mov    -0x68(%rbp),%rdi
add    $0x4,%rdi
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movslq (%rax,%rcx,4),%rax
shl    $0x2,%rax
add    %rax,%rsi
movslq -0x34(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edx
call   1050 <memcpy@plt>
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x34(%rbp),%eax
jg     1334 <_glp_mat_chol_symbolic+0x1f4>
mov    -0x68(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    12f7 <_glp_mat_chol_symbolic+0x1b7>
mov    -0x28(%rbp),%ecx
mov    $0x1,%al
cmp    -0x4(%rbp),%ecx
mov    %al,-0x79(%rbp)
jle    1314 <_glp_mat_chol_symbolic+0x1d4>
lea    0xd02(%rip),%rdi
lea    0xd0b(%rip),%rsi
mov    $0x294,%edx
call   1060 <_glp_lib_xassert@plt>
mov    $0x1,%al
mov    %al,-0x79(%rbp)
mov    -0x79(%rbp),%al
mov    -0x70(%rbp),%rax
movslq -0x28(%rbp),%rcx
movl   $0x1,(%rax,%rcx,4)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    12c0 <_glp_mat_chol_symbolic+0x180>
mov    -0x58(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     13fb <_glp_mat_chol_symbolic+0x2bb>
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x40(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    13e3 <_glp_mat_chol_symbolic+0x2a3>
mov    -0x50(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jle    13d0 <_glp_mat_chol_symbolic+0x290>
mov    -0x70(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
jne    13d0 <_glp_mat_chol_symbolic+0x290>
mov    -0x28(%rbp),%edx
mov    -0x68(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x70(%rbp),%rax
movslq -0x28(%rbp),%rcx
movl   $0x1,(%rax,%rcx,4)
jmp    13d5 <_glp_mat_chol_symbolic+0x295>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1373 <_glp_mat_chol_symbolic+0x233>
jmp    13e8 <_glp_mat_chol_symbolic+0x2a8>
mov    -0x60(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x24(%rbp)
jmp    1342 <_glp_mat_chol_symbolic+0x202>
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
add    -0x34(%rbp),%edx
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
sub    $0x1,%eax
cmp    -0x38(%rbp),%eax
jle    148e <_glp_mat_chol_symbolic+0x34e>
mov    -0x50(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x38(%rbp),%eax
add    -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rdi
add    $0x4,%rdi
mov    -0x78(%rbp),%rsi
add    $0x4,%rsi
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
sub    $0x1,%eax
cltq
shl    $0x2,%rax
mov    %eax,%edx
call   1050 <memcpy@plt>
mov    -0x78(%rbp),%rdi
call   1040 <_glp_lib_xfree@plt>
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%ecx
sub    $0x1,%ecx
mov    $0x1,%al
cmp    -0x38(%rbp),%ecx
mov    %al,-0x7a(%rbp)
jle    14cc <_glp_mat_chol_symbolic+0x38c>
lea    0xbf4(%rip),%rdi
lea    0xb53(%rip),%rsi
mov    $0x2ac,%edx
call   1060 <_glp_lib_xassert@plt>
mov    $0x1,%al
mov    %al,-0x7a(%rbp)
mov    -0x7a(%rbp),%al
mov    -0x50(%rbp),%rdi
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movslq (%rax,%rcx,4),%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    -0x68(%rbp),%rsi
add    $0x4,%rsi
movslq -0x34(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edx
call   1050 <memcpy@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x34(%rbp),%eax
jg     155b <_glp_mat_chol_symbolic+0x41b>
mov    -0x68(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x28(%rbp)
mov    -0x70(%rbp),%rax
movslq -0x28(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x44(%rbp),%eax
cmp    -0x28(%rbp),%eax
jle    1548 <_glp_mat_chol_symbolic+0x408>
mov    -0x28(%rbp),%eax
mov    %eax,-0x44(%rbp)
jmp    154d <_glp_mat_chol_symbolic+0x40d>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    150d <_glp_mat_chol_symbolic+0x3cd>
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     158b <_glp_mat_chol_symbolic+0x44b>
mov    -0x58(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x60(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x2c(%rbp),%edx
mov    -0x58(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    1590 <_glp_mat_chol_symbolic+0x450>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1261 <_glp_mat_chol_symbolic+0x121>
mov    -0x58(%rbp),%rdi
call   1040 <_glp_lib_xfree@plt>
mov    -0x60(%rbp),%rdi
call   1040 <_glp_lib_xfree@plt>
mov    -0x68(%rbp),%rdi
call   1040 <_glp_lib_xfree@plt>
mov    -0x70(%rbp),%rdi
call   1040 <_glp_lib_xfree@plt>
mov    -0x50(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x4(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
sub    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rdi
add    $0x4,%rdi
mov    -0x78(%rbp),%rsi
add    $0x4,%rsi
movslq -0x38(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edx
call   1050 <memcpy@plt>
mov    -0x78(%rbp),%rdi
call   1040 <_glp_lib_xfree@plt>
mov    -0x50(%rbp),%rax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_glp_mat_chol_symbolic>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %rcx,%r12
mov    %rdx,0x70(%rsp)
mov    %edi,%ebp
lea    0x1(%rbp),%r15d
movslq %r15d,%r14
mov    %rsi,0x68(%rsp)
mov    (%rsi,%r14,4),%eax
lea    -0x1(%rax),%ecx
cmp    %edi,%eax
cmovle %edi,%ecx
mov    %rcx,0x8(%rsp)
lea    (%rcx,%rcx,1),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,0x10(%rsp)
mov    %r14,0x58(%rsp)
mov    %r14d,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,%r14
mov    %ebp,%ebx
mov    %rbp,0x38(%rsp)
test   %ebp,%ebp
jle    11cd <_glp_mat_chol_symbolic+0x7d>
lea    0x4(%r14),%rdi
lea    0x0(,%rbx,4),%rdx
xor    %esi,%esi
call   1050 <memset@plt>
mov    %r14,0x30(%rsp)
mov    %r15d,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,0x28(%rsp)
mov    %r15d,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,%rbp
mov    %r15d,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,%r14
cmpl   $0x0,0x38(%rsp)
mov    %rbp,0x20(%rsp)
jle    154f <_glp_mat_chol_symbolic+0x3ff>
mov    0x8(%rsp),%rax
add    %eax,%eax
mov    %rax,0x8(%rsp)
mov    %r14,%rdi
add    $0x4,%rdi
shl    $0x2,%rbx
xor    %esi,%esi
mov    %rbx,%rdx
call   1050 <memset@plt>
movl   $0x1,0x4(%r12)
lea    0x4(%rbp),%rax
mov    %rax,0x48(%rsp)
mov    %r15d,%eax
mov    %rax,0x60(%rsp)
mov    $0x1,%ebp
mov    %r12,0x40(%rsp)
mov    %r15d,0x1c(%rsp)
jmp    126e <_glp_mat_chol_symbolic+0x11e>
mov    %r9,%rbp
cmp    0x60(%rsp),%r9
je     1558 <_glp_mat_chol_symbolic+0x408>
mov    0x68(%rsp),%rax
mov    0x4(%rax,%rbp,4),%ebx
movslq (%rax,%rbp,4),%r12
mov    %ebx,%r13d
sub    %r12d,%r13d
mov    0x70(%rsp),%rax
lea    (%rax,%r12,4),%rsi
lea    0x0(,%r13,4),%edx
mov    0x48(%rsp),%rdi
call   1060 <memcpy@plt>
test   %r13d,%r13d
mov    0x20(%rsp),%r9
jle    1310 <_glp_mat_chol_symbolic+0x1c0>
sub    %r12d,%ebx
add    $0x1,%ebx
mov    $0x1,%r12d
jmp    12ee <_glp_mat_chol_symbolic+0x19e>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0xd39(%rip),%rdi
lea    0xd42(%rip),%rsi
mov    $0x294,%edx
call   1070 <_glp_lib_xassert@plt>
mov    0x20(%rsp),%r9
movl   $0x1,(%r14,%r15,4)
add    $0x1,%r12
cmp    %r12,%rbx
je     1310 <_glp_mat_chol_symbolic+0x1c0>
mov    (%r9,%r12,4),%eax
movslq %eax,%r15
cmp    %r15,%rbp
jge    12c0 <_glp_mat_chol_symbolic+0x170>
cmp    0x38(%rsp),%eax
jle    12dd <_glp_mat_chol_symbolic+0x18d>
jmp    12c0 <_glp_mat_chol_symbolic+0x170>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0x1(%rbp),%r10
mov    0x30(%rsp),%rax
mov    (%rax,%rbp,4),%eax
test   %eax,%eax
je     13a0 <_glp_mat_chol_symbolic+0x250>
mov    0x40(%rsp),%r12
mov    0x28(%rsp),%r8
mov    0x10(%rsp),%rbx
jmp    1348 <_glp_mat_chol_symbolic+0x1f8>
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%r8,%rax,4),%eax
test   %eax,%eax
je     13a5 <_glp_mat_chol_symbolic+0x255>
cltq
movslq (%r12,%rax,4),%rcx
movslq 0x4(%r12,%rax,4),%rdx
cmp    %edx,%ecx
jl     1369 <_glp_mat_chol_symbolic+0x219>
jmp    1340 <_glp_mat_chol_symbolic+0x1f0>
nopl   0x0(%rax)
add    $0x1,%rcx
cmp    %rcx,%rdx
je     1340 <_glp_mat_chol_symbolic+0x1f0>
mov    (%rbx,%rcx,4),%esi
movslq %esi,%rsi
cmp    %rsi,%rbp
jge    1360 <_glp_mat_chol_symbolic+0x210>
cmpl   $0x0,(%r14,%rsi,4)
jne    1360 <_glp_mat_chol_symbolic+0x210>
movslq %r13d,%rdi
add    $0x1,%r13d
mov    %esi,0x4(%r9,%rdi,4)
movl   $0x1,(%r14,%rsi,4)
jmp    1360 <_glp_mat_chol_symbolic+0x210>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x40(%rsp),%r12
mov    (%r12,%rbp,4),%eax
lea    (%rax,%r13,1),%ecx
mov    %ecx,(%r12,%r10,4)
add    %r13d,%eax
add    $0xffffffff,%eax
mov    0x8(%rsp),%rcx
cmp    %ecx,%eax
mov    %r10,0x50(%rsp)
jle    141e <_glp_mat_chol_symbolic+0x2ce>
mov    %ecx,%r15d
add    %ecx,%r15d
lea    (%rcx,%rcx,1),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,0x8(%rsp)
lea    0x4(%rax),%rdi
mov    0x10(%rsp),%rbx
lea    0x4(%rbx),%rsi
mov    (%r12,%rbp,4),%eax
lea    -0x4(,%rax,4),%edx
call   1060 <memcpy@plt>
mov    %rbx,%rdi
call   1040 <_glp_lib_xfree@plt>
mov    0x50(%rsp),%rax
mov    (%r12,%rax,4),%eax
add    $0xffffffff,%eax
mov    %r15d,%ecx
mov    0x8(%rsp),%rdx
mov    %rdx,0x10(%rsp)
mov    0x1c(%rsp),%r15d
lea    0xbe6(%rip),%rsi
mov    %rcx,0x8(%rsp)
cmp    %ecx,%eax
jle    1444 <_glp_mat_chol_symbolic+0x2f4>
lea    0xc70(%rip),%rdi
mov    $0x2ac,%edx
call   1070 <_glp_lib_xassert@plt>
movslq (%r12,%rbp,4),%rax
mov    0x10(%rsp),%rcx
lea    (%rcx,%rax,4),%rdi
lea    0x0(,%r13,4),%edx
mov    0x48(%rsp),%rsi
call   1060 <memcpy@plt>
mov    %r15d,%ecx
test   %r13d,%r13d
mov    0x20(%rsp),%rbx
mov    0x50(%rsp),%r9
jle    152a <_glp_mat_chol_symbolic+0x3da>
mov    %r13d,%esi
lea    -0x1(%rsi),%rax
mov    %esi,%r8d
and    $0x3,%r8d
mov    $0x1,%edx
mov    %r15d,%ecx
cmp    $0x3,%rax
jb     1504 <_glp_mat_chol_symbolic+0x3b4>
and    $0xfffffffc,%esi
mov    %r15d,%ecx
xor    %edx,%edx
jmp    14a9 <_glp_mat_chol_symbolic+0x359>
nop
add    $0x4,%rdx
cmp    %rdx,%rsi
je     1500 <_glp_mat_chol_symbolic+0x3b0>
movslq 0x4(%rbx,%rdx,4),%rax
cmp    %eax,%ecx
cmovg  %eax,%ecx
movl   $0x0,(%r14,%rax,4)
movslq 0x8(%rbx,%rdx,4),%rdi
movl   $0x0,(%r14,%rdi,4)
cmp    %edi,%ecx
jg     14ce <_glp_mat_chol_symbolic+0x37e>
mov    %ecx,%edi
movslq 0xc(%rbx,%rdx,4),%rax
movl   $0x0,(%r14,%rax,4)
cmp    %eax,%edi
jg     14e1 <_glp_mat_chol_symbolic+0x391>
mov    %edi,%eax
movslq 0x10(%rbx,%rdx,4),%rcx
movl   $0x0,(%r14,%rcx,4)
cmp    %ecx,%eax
jg     14a0 <_glp_mat_chol_symbolic+0x350>
mov    %eax,%ecx
jmp    14a0 <_glp_mat_chol_symbolic+0x350>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%rdx
test   %r8,%r8
je     152a <_glp_mat_chol_symbolic+0x3da>
lea    (%rbx,%rdx,4),%rdx
xor    %esi,%esi
nop
movslq (%rdx,%rsi,4),%rax
movl   $0x0,(%r14,%rax,4)
cmp    %eax,%ecx
cmovg  %eax,%ecx
add    $0x1,%rsi
cmp    %rsi,%r8
jne    1510 <_glp_mat_chol_symbolic+0x3c0>
cmp    0x38(%rsp),%ecx
jg     1260 <_glp_mat_chol_symbolic+0x110>
movslq %ecx,%rax
mov    0x30(%rsp),%rdx
mov    (%rdx,%rax,4),%ecx
mov    0x28(%rsp),%rsi
mov    %ecx,(%rsi,%rbp,4)
mov    %ebp,(%rdx,%rax,4)
jmp    1260 <_glp_mat_chol_symbolic+0x110>
movl   $0x1,0x4(%r12)
mov    0x30(%rsp),%rdi
call   1040 <_glp_lib_xfree@plt>
mov    0x28(%rsp),%rdi
call   1040 <_glp_lib_xfree@plt>
mov    0x20(%rsp),%rdi
call   1040 <_glp_lib_xfree@plt>
mov    %r14,%rdi
call   1040 <_glp_lib_xfree@plt>
mov    0x58(%rsp),%rax
mov    (%r12,%rax,4),%ebp
mov    %ebp,%edi
mov    $0x4,%esi
call   1030 <_glp_lib_xcalloc@plt>
mov    %rax,%r14
lea    0x4(%rax),%rdi
mov    0x10(%rsp),%rbx
lea    0x4(%rbx),%rsi
lea    -0x4(,%rbp,4),%edx
call   1060 <memcpy@plt>
mov    %rbx,%rdi
call   1040 <_glp_lib_xfree@plt>
mov    %r14,%rax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [16 x i8] c"k < 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 = [23 x i8] c"U_ptr[k+1] - 1 <= size\00"
define i32* @_glp_mat_chol_symbolic(i32 %0, i32* nocapture %1, i32* %2, i32* nocapture %3) {
%5 = add i32 %0, 1
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i32, i32* %1, i64 %6
%8 = load i32, i32* %7
%9 = add nsw i32 %8, -1
%10 = icmp sgt i32 %8, %0
%11 = select i1 %10, i32 %9, i32 %0
%12 = shl nsw i32 %11, 1
%13 = or i32 %12, 1
%14 = tail call i32* @_glp_lib_xcalloc(i32 %13, i32 4)
%15 = tail call i32* @_glp_lib_xcalloc(i32 %5, i32 4)
%16 = icmp slt i32 %0, 1
br i1 %16, label %22, label %17
17: ; preds = %4
%18 = getelementptr i32, i32* %15, i64 1
%19 = bitcast i32* %18 to i8*
%20 = zext i32 %0 to i64
%21 = shl nuw nsw i64 %20, 2
br label %22
22: ; preds = %17, %4
%23 = tail call i32* @_glp_lib_xcalloc(i32 %5, i32 4)
%24 = tail call i32* @_glp_lib_xcalloc(i32 %5, i32 4)
%25 = tail call i32* @_glp_lib_xcalloc(i32 %5, i32 4)
br i1 %16, label %26, label %28
26: ; preds = %22
%27 = getelementptr inbounds i32, i32* %3, i64 1
store i32 1, i32* %27
br label %218
28: ; preds = %22
%29 = getelementptr i32, i32* %25, i64 1
%30 = bitcast i32* %29 to i8*
%31 = zext i32 %0 to i64
%32 = shl nuw nsw i64 %31, 2
%33 = getelementptr inbounds i32, i32* %3, i64 1
store i32 1, i32* %33
%34 = getelementptr inbounds i32, i32* %24, i64 1
%35 = zext i32 %5 to i64
br label %36
36: ; preds = %28, %216
%37 = phi i64 [ 1, %28 ], [ %40, %216 ]
%38 = phi i32* [ %14, %28 ], [ %135, %216 ]
%39 = phi i32 [ %12, %28 ], [ %134, %216 ]
%40 = add nuw nsw i64 %37, 1
%41 = getelementptr inbounds i32, i32* %1, i64 %40
%42 = load i32, i32* %41
%43 = getelementptr inbounds i32, i32* %1, i64 %37
%44 = load i32, i32* %43
%45 = sub nsw i32 %42, %44
%46 = sext i32 %44 to i64
%47 = getelementptr inbounds i32, i32* %2, i64 %46
%48 = shl i32 %45, 2
%49 = tail call i32 @memcpy(i32* %34, i32* %47, i32 %48)
%50 = icmp slt i32 %45, 1
br i1 %50, label %69, label %51
51: ; preds = %36
%52 = add i32 %42, 1
%53 = sub i32 %52, %44
%54 = zext i32 %53 to i64
br label %55
55: ; preds = %51, %65
%56 = phi i64 [ 1, %51 ], [ %67, %65 ]
%57 = getelementptr inbounds i32, i32* %24, i64 %56
%58 = load i32, i32* %57
%59 = sext i32 %58 to i64
%60 = icmp sge i64 %37, %59
%61 = icmp sgt i32 %58, %0
%62 = or i1 %60, %61
br i1 %62, label %63, label %65
63: ; preds = %55
%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 660)
br label %65
65: ; preds = %55, %63
%66 = getelementptr inbounds i32, i32* %25, i64 %59
store i32 1, i32* %66
%67 = add nuw nsw i64 %56, 1
%68 = icmp eq i64 %67, %54
br i1 %68, label %69, label %55
69: ; preds = %65, %36
%70 = getelementptr inbounds i32, i32* %15, i64 %37
%71 = load i32, i32* %70
%72 = icmp eq i32 %71, 0
br i1 %72, label %111, label %73
73: ; preds = %69, %106
%74 = phi i32 [ %109, %106 ], [ %71, %69 ]
%75 = phi i32 [ %107, %106 ], [ %45, %69 ]
%76 = sext i32 %74 to i64
%77 = getelementptr inbounds i32, i32* %3, i64 %76
%78 = load i32, i32* %77
%79 = add nsw i32 %74, 1
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, i32* %3, i64 %80
%82 = load i32, i32* %81
%83 = icmp slt i32 %78, %82
br i1 %83, label %84, label %106
84: ; preds = %73
%85 = sext i32 %78 to i64
%86 = sext i32 %82 to i64
br label %87
87: ; preds = %84, %102
%88 = phi i64 [ %85, %84 ], [ %104, %102 ]
%89 = phi i32 [ %75, %84 ], [ %103, %102 ]
%90 = getelementptr inbounds i32, i32* %38, i64 %88
%91 = load i32, i32* %90
%92 = sext i32 %91 to i64
%93 = icmp slt i64 %37, %92
br i1 %93, label %94, label %102
94: ; preds = %87
%95 = getelementptr inbounds i32, i32* %25, i64 %92
%96 = load i32, i32* %95
%97 = icmp eq i32 %96, 0
br i1 %97, label %98, label %102
98: ; preds = %94
%99 = add nsw i32 %89, 1
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i32, i32* %24, i64 %100
store i32 %91, i32* %101
store i32 1, i32* %95
br label %102
102: ; preds = %87, %94, %98
%103 = phi i32 [ %89, %94 ], [ %99, %98 ], [ %89, %87 ]
%104 = add nsw i64 %88, 1
%105 = icmp eq i64 %104, %86
br i1 %105, label %106, label %87
106: ; preds = %102, %73
%107 = phi i32 [ %75, %73 ], [ %103, %102 ]
%108 = getelementptr inbounds i32, i32* %23, i64 %76
%109 = load i32, i32* %108
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %73
111: ; preds = %106, %69
%112 = phi i32 [ %45, %69 ], [ %107, %106 ]
%113 = getelementptr inbounds i32, i32* %3, i64 %37
%114 = load i32, i32* %113
%115 = add nsw i32 %114, %112
%116 = getelementptr inbounds i32, i32* %3, i64 %40
store i32 %115, i32* %116
%117 = add nsw i32 %115, -1
%118 = icmp sgt i32 %117, %39
br i1 %118, label %119, label %132
119: ; preds = %111
%120 = shl nsw i32 %39, 1
%121 = or i32 %120, 1
%122 = tail call i32* @_glp_lib_xcalloc(i32 %121, i32 4)
%123 = getelementptr inbounds i32, i32* %122, i64 1
%124 = getelementptr inbounds i32, i32* %38, i64 1
%125 = load i32, i32* %113
%126 = shl i32 %125, 2
%127 = add i32 %126, -4
%128 = tail call i32 @memcpy(i32* %123, i32* %124, i32 %127)
%129 = tail call i32 @_glp_lib_xfree(i32* %38)
%130 = load i32, i32* %116
%131 = add nsw i32 %130, -1
br label %132
132: ; preds = %119, %111
%133 = phi i32 [ %131, %119 ], [ %117, %111 ]
%134 = phi i32 [ %120, %119 ], [ %39, %111 ]
%135 = phi i32* [ %122, %119 ], [ %38, %111 ]
%136 = icmp sgt i32 %133, %134
br i1 %136, label %137, label %139
137: ; preds = %132
%138 = tail call i32 @_glp_lib_xassert(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.1, i64 0, i64 0), i32 684)
br label %139
139: ; preds = %137, %132
%140 = load i32, i32* %113
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds i32, i32* %135, i64 %141
%143 = shl i32 %112, 2
%144 = tail call i32 @memcpy(i32* %142, i32* %34, i32 %143)
%145 = icmp slt i32 %112, 1
br i1 %145, label %207, label %146
146: ; preds = %139
%147 = add nuw i32 %112, 1
%148 = zext i32 %147 to i64
%149 = add nsw i64 %148, -1
%150 = add nsw i64 %148, -2
%151 = and i64 %149, 3
%152 = icmp ult i64 %150, 3
br i1 %152, label %189, label %153
153: ; preds = %146
%154 = and i64 %149, -4
br label %155
155: ; preds = %155, %153
%156 = phi i64 [ 1, %153 ], [ %186, %155 ]
%157 = phi i32 [ %5, %153 ], [ %185, %155 ]
%158 = phi i64 [ 0, %153 ], [ %187, %155 ]
%159 = getelementptr inbounds i32, i32* %24, i64 %156
%160 = load i32, i32* %159
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds i32, i32* %25, i64 %161
store i32 0, i32* %162
%163 = icmp sgt i32 %157, %160
%164 = select i1 %163, i32 %160, i32 %157
%165 = add nuw nsw i64 %156, 1
%166 = getelementptr inbounds i32, i32* %24, i64 %165
%167 = load i32, i32* %166
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds i32, i32* %25, i64 %168
store i32 0, i32* %169
%170 = icmp sgt i32 %164, %167
%171 = select i1 %170, i32 %167, i32 %164
%172 = add nuw nsw i64 %156, 2
%173 = getelementptr inbounds i32, i32* %24, i64 %172
%174 = load i32, i32* %173
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds i32, i32* %25, i64 %175
store i32 0, i32* %176
%177 = icmp sgt i32 %171, %174
%178 = select i1 %177, i32 %174, i32 %171
%179 = add nuw nsw i64 %156, 3
%180 = getelementptr inbounds i32, i32* %24, i64 %179
%181 = load i32, i32* %180
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds i32, i32* %25, i64 %182
store i32 0, i32* %183
%184 = icmp sgt i32 %178, %181
%185 = select i1 %184, i32 %181, i32 %178
%186 = add nuw nsw i64 %156, 4
%187 = add i64 %158, 4
%188 = icmp eq i64 %187, %154
br i1 %188, label %189, label %155
189: ; preds = %155, %146
%190 = phi i32 [ undef, %146 ], [ %185, %155 ]
%191 = phi i64 [ 1, %146 ], [ %186, %155 ]
%192 = phi i32 [ %5, %146 ], [ %185, %155 ]
%193 = icmp eq i64 %151, 0
br i1 %193, label %207, label %194
194: ; preds = %189, %194
%195 = phi i64 [ %204, %194 ], [ %191, %189 ]
%196 = phi i32 [ %203, %194 ], [ %192, %189 ]
%197 = phi i64 [ %205, %194 ], [ 0, %189 ]
%198 = getelementptr inbounds i32, i32* %24, i64 %195
%199 = load i32, i32* %198
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds i32, i32* %25, i64 %200
store i32 0, i32* %201
%202 = icmp sgt i32 %196, %199
%203 = select i1 %202, i32 %199, i32 %196
%204 = add nuw nsw i64 %195, 1
%205 = add i64 %197, 1
%206 = icmp eq i64 %205, %151
br i1 %206, label %207, label %194
207: ; preds = %189, %194, %139
%208 = phi i32 [ %5, %139 ], [ %190, %189 ], [ %203, %194 ]
%209 = icmp sgt i32 %208, %0
br i1 %209, label %216, label %210
210: ; preds = %207
%211 = sext i32 %208 to i64
%212 = getelementptr inbounds i32, i32* %15, i64 %211
%213 = load i32, i32* %212
%214 = getelementptr inbounds i32, i32* %23, i64 %37
store i32 %213, i32* %214
%215 = trunc i64 %37 to i32
store i32 %215, i32* %212
br label %216
216: ; preds = %207, %210
%217 = icmp eq i64 %40, %35
br i1 %217, label %218, label %36
218: ; preds = %216, %26
%219 = phi i32* [ %14, %26 ], [ %135, %216 ]
%220 = tail call i32 @_glp_lib_xfree(i32* %15)
%221 = tail call i32 @_glp_lib_xfree(i32* %23)
%222 = tail call i32 @_glp_lib_xfree(i32* %24)
%223 = tail call i32 @_glp_lib_xfree(i32* %25)
%224 = getelementptr inbounds i32, i32* %3, i64 %6
%225 = load i32, i32* %224
%226 = tail call i32* @_glp_lib_xcalloc(i32 %225, i32 4)
%227 = getelementptr inbounds i32, i32* %226, i64 1
%228 = getelementptr inbounds i32, i32* %219, i64 1
%229 = shl i32 %225, 2
%230 = add i32 %229, -4
%231 = tail call i32 @memcpy(i32* %227, i32* %228, i32 %230)
%232 = tail call i32 @_glp_lib_xfree(i32* %219)
ret i32* %226
}