#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 */
typedef scalar_t__ uint64_t;
typedef int /*<<< orphan*/ line;
typedef int int64_t;

/* Variables and functions */
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int get_llnum(char const *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
char *strchr(char const *, char);
int strlen(char const *);
char *strpbrk(char const *, char *);
int strspn(char const *, char *);
int build_lba_arr(const char *inp, uint64_t *lba_arr, int *lba_arr_len,
                  int max_arr_len) {
  int in_len, k, j, m;
  const char *lcp;
  int64_t ll;
  char *cp;
  char *c2p;
  if ((NULL == inp) || (NULL == lba_arr) || (NULL == lba_arr_len))
    return 1;
  lcp = inp;
  in_len = strlen(inp);
  if (0 == in_len)
    *lba_arr_len = 0;
  if ('-' == inp[0]) {
    char line[512];
    int off = 0;
    for (j = 0; j < 512; ++j) {
      if (NULL == fgets(line, sizeof(line), stdin))
        break;
      in_len = strlen(line);
      if (in_len > 0) {
        if ('\n' == line[in_len - 1]) {
          --in_len;
          line[in_len] = '\0';
        }
      }
      if (0 == in_len)
        continue;
      lcp = line;
      m = strspn(lcp, " \t");
      if (m == in_len)
        continue;
      lcp += m;
      in_len -= m;
      if ('#' == *lcp)
        continue;
      k = strspn(lcp, "0123456789aAbBcCdDeEfFhHxX ,\t");
      if ((k < in_len) && ('#' != lcp[k])) {
        fprintf(stderr,
                "build_lba_arr: syntax error at "
                "line %d, pos %d\n",
                j + 1, m + k + 1);
        return 1;
      }
      for (k = 0; k < 1024; ++k) {
        ll = get_llnum(lcp);
        if (-1 != ll) {
          if ((off + k) >= max_arr_len) {
            fprintf(stderr, "build_lba_arr: array length "
                            "exceeded\n");
            return 1;
          }
          lba_arr[off + k] = (uint64_t)ll;
          lcp = strpbrk(lcp, " ,\t");
          if (NULL == lcp)
            break;
          lcp += strspn(lcp, " ,\t");
          if ('\0' == *lcp)
            break;
        } else {
          if ('#' == *lcp) {
            --k;
            break;
          }
          fprintf(stderr,
                  "build_lba_arr: error in "
                  "line %d, at pos %d\n",
                  j + 1, (int)(lcp - line + 1));
          return 1;
        }
      }
      off += (k + 1);
    }
    *lba_arr_len = off;
  } else {
    k = strspn(inp, "0123456789aAbBcCdDeEfFhHxX, ");
    if (in_len != k) {
      fprintf(stderr, "build_lba_arr: error at pos %d\n", k + 1);
      return 1;
    }
    for (k = 0; k < max_arr_len; ++k) {
      ll = get_llnum(lcp);
      if (-1 != ll) {
        lba_arr[k] = (uint64_t)ll;
        cp = strchr(lcp, ',');
        c2p = strchr(lcp, ' ');
        if (NULL == cp)
          cp = c2p;
        if (NULL == cp)
          break;
        if (c2p && (c2p < cp))
          cp = c2p;
        lcp = cp + 1;
      } else {
        fprintf(stderr, "build_lba_arr: error at pos %d\n",
                (int)(lcp - inp + 1));
        return 1;
      }
    }
    *lba_arr_len = k + 1;
    if (k == max_arr_len) {
      fprintf(stderr, "build_lba_arr: array length exceeded\n");
      return 1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<build_lba_arr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x270,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
xor    %eax,%eax
cmp    -0x10(%rbp),%rax
je     11ae <build_lba_arr+0x3e>
xor    %eax,%eax
cmp    -0x18(%rbp),%rax
je     11ae <build_lba_arr+0x3e>
xor    %eax,%eax
cmp    -0x20(%rbp),%rax
jne    11ba <build_lba_arr+0x4a>
movl   $0x1,-0x4(%rbp)
jmp    167c <build_lba_arr+0x50c>
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x28(%rbp)
xor    %eax,%eax
cmp    -0x28(%rbp),%eax
jne    11e3 <build_lba_arr+0x73>
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x2d,%eax
cmp    %ecx,%eax
jne    14ee <build_lba_arr+0x37e>
movl   $0x0,-0x264(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x200,-0x30(%rbp)
jge    14dd <build_lba_arr+0x36d>
lea    -0x260(%rbp),%rdi
mov    0x2dc5(%rip),%rax
mov    (%rax),%edx
mov    $0x200,%esi
call   1070 <fgets@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1242 <build_lba_arr+0xd2>
jmp    14dd <build_lba_arr+0x36d>
lea    -0x260(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
jle    1292 <build_lba_arr+0x122>
mov    -0x28(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0x260(%rbp,%rax,1),%ecx
ff
mov    $0xa,%eax
cmp    %ecx,%eax
jne    128d <build_lba_arr+0x11d>
mov    -0x28(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x28(%rbp)
movslq -0x28(%rbp),%rax
movb   $0x0,-0x260(%rbp,%rax,1)
jmp    1292 <build_lba_arr+0x122>
xor    %eax,%eax
cmp    -0x28(%rbp),%eax
jne    12a2 <build_lba_arr+0x132>
jmp    14cf <build_lba_arr+0x35f>
lea    -0x260(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
lea    0xd48(%rip),%rsi
call   1060 <strspn@plt>
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x28(%rbp),%eax
jne    12d1 <build_lba_arr+0x161>
jmp    14cf <build_lba_arr+0x35f>
mov    -0x34(%rbp),%ecx
mov    -0x40(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x34(%rbp),%ecx
mov    -0x28(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x40(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x23,%eax
cmp    %ecx,%eax
jne    1306 <build_lba_arr+0x196>
jmp    14cf <build_lba_arr+0x35f>
mov    -0x40(%rbp),%rdi
lea    0xcf2(%rip),%rsi
call   1060 <strspn@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    1370 <build_lba_arr+0x200>
mov    -0x40(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
mov    $0x23,%eax
cmp    %ecx,%eax
je     1370 <build_lba_arr+0x200>
mov    0x2c93(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%edx
add    $0x1,%edx
mov    -0x34(%rbp),%ecx
add    -0x2c(%rbp),%ecx
add    $0x1,%ecx
lea    0xcc4(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    167c <build_lba_arr+0x50c>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x400,-0x2c(%rbp)
jge    14bd <build_lba_arr+0x34d>
mov    -0x40(%rbp),%rdi
call   1030 <get_llnum@plt>
mov    %eax,-0x44(%rbp)
mov    $0xffffffff,%eax
cmp    -0x44(%rbp),%eax
je     144b <build_lba_arr+0x2db>
mov    -0x264(%rbp),%eax
add    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jl     13d3 <build_lba_arr+0x263>
mov    0x2c21(%rip),%rax
mov    (%rax),%edi
lea    0xc91(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    167c <build_lba_arr+0x50c>
movslq -0x44(%rbp),%rdx
mov    -0x18(%rbp),%rax
mov    -0x264(%rbp),%ecx
add    -0x2c(%rbp),%ecx
movslq %ecx,%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x40(%rbp),%rdi
lea    0xc27(%rip),%rsi
call   1090 <strpbrk@plt>
mov    %rax,-0x40(%rbp)
xor    %eax,%eax
cmp    -0x40(%rbp),%rax
jne    1410 <build_lba_arr+0x2a0>
jmp    14bd <build_lba_arr+0x34d>
mov    -0x40(%rbp),%rdi
lea    0xc02(%rip),%rsi
call   1060 <strspn@plt>
mov    %eax,%ecx
mov    -0x40(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    %ecx,%eax
jne    1446 <build_lba_arr+0x2d6>
jmp    14bd <build_lba_arr+0x34d>
jmp    14aa <build_lba_arr+0x33a>
mov    -0x40(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x23,%eax
cmp    %ecx,%eax
jne    146d <build_lba_arr+0x2fd>
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x2c(%rbp)
jmp    14bd <build_lba_arr+0x34d>
mov    0x2b64(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%edx
add    $0x1,%edx
mov    -0x40(%rbp),%rax
lea    -0x260(%rbp),%rcx
sub    %rcx,%rax
add    $0x1,%rax
mov    %eax,%ecx
lea    0xbe0(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    167c <build_lba_arr+0x50c>
jmp    14af <build_lba_arr+0x33f>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1377 <build_lba_arr+0x207>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
add    -0x264(%rbp),%eax
mov    %eax,-0x264(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1208 <build_lba_arr+0x98>
mov    -0x264(%rbp),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
jmp    1675 <build_lba_arr+0x505>
mov    -0x10(%rbp),%rdi
lea    0xbaa(%rip),%rsi
call   1060 <strspn@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x2c(%rbp),%eax
je     1536 <build_lba_arr+0x3c6>
mov    0x2ac4(%rip),%rax
mov    (%rax),%edi
mov    -0x2c(%rbp),%edx
add    $0x1,%edx
lea    0xb9d(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    167c <build_lba_arr+0x50c>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1635 <build_lba_arr+0x4c5>
mov    -0x40(%rbp),%rdi
call   1030 <get_llnum@plt>
mov    %eax,-0x44(%rbp)
mov    $0xffffffff,%eax
cmp    -0x44(%rbp),%eax
je     15ee <build_lba_arr+0x47e>
movslq -0x44(%rbp),%rdx
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x40(%rbp),%rdi
mov    $0x2c,%esi
call   1050 <strchr@plt>
mov    %rax,-0x50(%rbp)
mov    -0x40(%rbp),%rdi
mov    $0x20,%esi
call   1050 <strchr@plt>
mov    %rax,-0x58(%rbp)
xor    %eax,%eax
cmp    -0x50(%rbp),%rax
jne    15ab <build_lba_arr+0x43b>
mov    -0x58(%rbp),%rax
mov    %rax,-0x50(%rbp)
xor    %eax,%eax
cmp    -0x50(%rbp),%rax
jne    15bc <build_lba_arr+0x44c>
jmp    1635 <build_lba_arr+0x4c5>
cmpq   $0x0,-0x58(%rbp)
je     15dd <build_lba_arr+0x46d>
mov    -0x58(%rbp),%rax
cmp    -0x50(%rbp),%rax
jae    15dd <build_lba_arr+0x46d>
mov    -0x58(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    1622 <build_lba_arr+0x4b2>
mov    0x29e3(%rip),%rax
mov    (%rax),%edi
mov    -0x40(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    %rcx,%rax
add    $0x1,%rax
mov    %eax,%edx
lea    0xab1(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    167c <build_lba_arr+0x50c>
jmp    1627 <build_lba_arr+0x4b7>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    153d <build_lba_arr+0x3cd>
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jne    1670 <build_lba_arr+0x500>
mov    0x2984(%rip),%rax
mov    (%rax),%edi
lea    0x9f4(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    167c <build_lba_arr+0x50c>
jmp    1675 <build_lba_arr+0x505>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x270,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<build_lba_arr>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x228,%rsp
mov    $0x1,%r13d
test   %rdi,%rdi
je     14c9 <build_lba_arr+0x359>
mov    %rsi,%rbx
test   %rsi,%rsi
je     14c9 <build_lba_arr+0x359>
mov    %rdx,%rbp
test   %rdx,%rdx
je     14c9 <build_lba_arr+0x359>
mov    %ecx,%r12d
mov    %rdi,%r14
call   1040 <strlen@plt>
mov    %eax,%r15d
test   %eax,%eax
je     1380 <build_lba_arr+0x210>
cmpb   $0x2d,(%r14)
jne    1391 <build_lba_arr+0x221>
mov    %rbx,0x10(%rsp)
mov    %rbp,0x8(%rsp)
movslq %r12d,%rax
mov    %rax,0x18(%rsp)
xor    %eax,%eax
mov    %rax,(%rsp)
mov    0x2e01(%rip),%rbx
lea    0x20(%rsp),%rbp
lea    0xe2a(%rip),%r12
xor    %r15d,%r15d
jmp    1216 <build_lba_arr+0xa6>
nopl   0x0(%rax,%rax,1)
lea    0x20(%rsp),%rbp
add    $0x1,%r15d
cmp    $0x200,%r15d
je     1450 <build_lba_arr+0x2e0>
mov    (%rbx),%edx
mov    %rbp,%rdi
mov    $0x200,%esi
call   1070 <fgets@plt>
test   %rax,%rax
je     1450 <build_lba_arr+0x2e0>
mov    %rbp,%rdi
call   1040 <strlen@plt>
mov    %eax,%r14d
test   %eax,%eax
jle    1260 <build_lba_arr+0xf0>
mov    %r14d,%eax
add    $0xffffffff,%eax
cmpb   $0xa,0x20(%rsp,%rax,1)
jne    126a <build_lba_arr+0xfa>
movb   $0x0,0x20(%rsp,%rax,1)
jmp    1263 <build_lba_arr+0xf3>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14d,%eax
mov    %eax,%r14d
test   %eax,%eax
je     1205 <build_lba_arr+0x95>
mov    %rbp,%rdi
lea    0xd8c(%rip),%rsi
call   1060 <strspn@plt>
sub    %eax,%r14d
je     1200 <build_lba_arr+0x90>
mov    %eax,%r13d
cltq
cmpb   $0x23,0x20(%rsp,%rax,1)
je     1200 <build_lba_arr+0x90>
lea    (%rsp,%rax,1),%rbx
add    $0x20,%rbx
mov    %rbx,%rdi
lea    0xd63(%rip),%rsi
call   1060 <strspn@plt>
cmp    %r14d,%eax
jge    12b7 <build_lba_arr+0x147>
movslq %eax,%rcx
cmpb   $0x23,(%rbx,%rcx,1)
jne    14de <build_lba_arr+0x36e>
mov    (%rsp),%rbp
movslq %ebp,%rbp
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1030 <get_llnum@plt>
cmp    $0xffffffff,%eax
je     1338 <build_lba_arr+0x1c8>
cmp    0x18(%rsp),%rbp
jge    14ac <build_lba_arr+0x33c>
cltq
mov    0x10(%rsp),%rcx
mov    %rax,(%rcx,%rbp,8)
mov    %rbx,%rdi
mov    %r12,%r13
mov    %r12,%rsi
call   1090 <strpbrk@plt>
test   %rax,%rax
je     1346 <build_lba_arr+0x1d6>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r13,%rsi
call   1060 <strspn@plt>
cltq
cmpb   $0x0,(%rbx,%rax,1)
je     135e <build_lba_arr+0x1ee>
add    %rax,%rbx
add    $0xffffffffffffffff,%r14
add    $0x1,%rbp
cmp    $0xfffffffffffffc00,%r14
jne    12d0 <build_lba_arr+0x160>
mov    $0x400,%r14d
jmp    1361 <build_lba_arr+0x1f1>
cmpb   $0x23,(%rbx)
jne    14fe <build_lba_arr+0x38e>
not    %r14d
jmp    1361 <build_lba_arr+0x1f1>
neg    %r14d
mov    (%rsp),%rax
mov    0x2c94(%rip),%rbx
lea    0x20(%rsp),%rbp
mov    %r13,%r12
jmp    1371 <build_lba_arr+0x201>
neg    %r14d
mov    (%rsp),%rax
mov    0x2c7c(%rip),%rbx
lea    0x20(%rsp),%rbp
add    %r14d,%eax
add    $0x1,%eax
mov    %rax,(%rsp)
jmp    1205 <build_lba_arr+0x95>
movl   $0x0,0x0(%rbp)
cmpb   $0x2d,(%r14)
je     11c8 <build_lba_arr+0x58>
lea    0xd0b(%rip),%rsi
mov    %r14,%rdi
call   1060 <strspn@plt>
cmp    %eax,%r15d
jne    1460 <build_lba_arr+0x2f0>
mov    %r12d,%edx
mov    %rbp,0x8(%rsp)
xor    %r13d,%r13d
mov    $0x0,%r15d
test   %r12d,%r12d
jle    149c <build_lba_arr+0x32c>
mov    %rbx,%r12
mov    %edx,0x10(%rsp)
mov    %edx,%eax
mov    %rax,0x18(%rsp)
xor    %r15d,%r15d
mov    %r14,%rbp
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
call   1030 <get_llnum@plt>
cmp    $0xffffffff,%eax
je     147e <build_lba_arr+0x30e>
cltq
mov    %rax,(%r12,%r15,8)
mov    %rbp,%rdi
mov    $0x2c,%esi
call   1050 <strchr@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
mov    $0x20,%esi
call   1050 <strchr@plt>
test   %rbx,%rbx
cmove  %rax,%rbx
test   %rbx,%rbx
je     1498 <build_lba_arr+0x328>
cmp    %rbx,%rax
mov    %rbx,%rbp
cmovb  %rax,%rbp
test   %rax,%rax
cmove  %rbx,%rbp
add    $0x1,%rbp
add    $0x1,%r15
cmp    %r15,0x18(%rsp)
jne    13e0 <build_lba_arr+0x270>
mov    0x10(%rsp),%ecx
add    $0x1,%ecx
mov    0x8(%rsp),%rax
mov    %ecx,(%rax)
jmp    14ac <build_lba_arr+0x33c>
mov    0x8(%rsp),%rax
mov    (%rsp),%rcx
mov    %ecx,(%rax)
xor    %r13d,%r13d
jmp    14c9 <build_lba_arr+0x359>
mov    0x2b71(%rip),%rcx
mov    (%rcx),%edi
add    $0x1,%eax
lea    0xc4d(%rip),%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    14c3 <build_lba_arr+0x353>
mov    0x2b53(%rip),%rax
mov    (%rax),%edi
sub    %r14d,%ebp
add    $0x1,%ebp
lea    0xc2c(%rip),%rsi
mov    %ebp,%edx
jmp    1475 <build_lba_arr+0x305>
mov    0x10(%rsp),%edx
lea    0x1(%r15),%eax
mov    0x8(%rsp),%rcx
mov    %eax,(%rcx)
cmp    %edx,%r15d
jne    14c9 <build_lba_arr+0x359>
mov    0x2b25(%rip),%rax
mov    (%rax),%edi
lea    0xb95(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x1,%r13d
mov    %r13d,%eax
add    $0x228,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2af3(%rip),%rcx
mov    (%rcx),%edi
add    $0x1,%r15d
lea    (%rax,%r13,1),%ecx
add    $0x1,%ecx
lea    0xb28(%rip),%rsi
mov    %r15d,%edx
jmp    1521 <build_lba_arr+0x3b1>
mov    0x2ad3(%rip),%rax
mov    (%rax),%edi
add    $0x1,%r15d
lea    0x20(%rsp),%rax
sub    %eax,%ebx
add    $0x1,%ebx
lea    0xb5b(%rip),%rsi
mov    %r15d,%edx
mov    %ebx,%ecx
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    14c3 <build_lba_arr+0x353>

LLVM IR (-O0):
@stdin = global i32 0
@.str = [3 x i8] c" \09\00"
@.str.1 = [30 x i8] c"0123456789aAbBcCdDeEfFhHxX ,\09\00"
@stderr = global i32 0
@.str.2 = [48 x i8] c"build_lba_arr: syntax error at line %d, pos %d\0A\00"
@.str.3 = [38 x i8] c"build_lba_arr: array length exceeded\0A\00"
@.str.4 = [4 x i8] c" ,\09\00"
@.str.5 = [44 x i8] c"build_lba_arr: error in line %d, at pos %d\0A\00"
@.str.6 = [29 x i8] c"0123456789aAbBcCdDeEfFhHxX, \00"
@.str.7 = [32 x i8] c"build_lba_arr: error at pos %d\0A\00"
define i32 @build_lba_arr(i8* %0, i64* %1, i32* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i64*
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i32
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca [512 x i8]
%19 = alloca i32
store i8* %0, i8** %6
store i64* %1, i64** %7
store i32* %2, i32** %8
store i32 %3, i32* %9
%20 = load i8*, i8** %6
%21 = icmp eq i8* null, %20
br i1 %21, label %28, label %22
22: ; preds = %4
%23 = load i64*, i64** %7
%24 = icmp eq i64* null, %23
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = load i32*, i32** %8
%27 = icmp eq i32* null, %26
br i1 %27, label %28, label %29
28: ; preds = %25, %22, %4
store i32 1, i32* %5
br label %278
29: ; preds = %25
%30 = load i8*, i8** %6
store i8* %30, i8** %14
%31 = load i8*, i8** %6
%32 = call i32 @strlen(i8* %31)
store i32 %32, i32* %10
%33 = load i32, i32* %10
%34 = icmp eq i32 0, %33
br i1 %34, label %35, label %37
35: ; preds = %29
%36 = load i32*, i32** %8
store i32 0, i32* %36
br label %37
37: ; preds = %35, %29
%38 = load i8*, i8** %6
%39 = getelementptr inbounds i8, i8* %38, i64 0
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = icmp eq i32 45, %41
br i1 %42, label %43, label %200
43: ; preds = %37
store i32 0, i32* %19
store i32 0, i32* %12
br label %44
44: ; preds = %194, %43
%45 = load i32, i32* %12
%46 = icmp slt i32 %45, 512
br i1 %46, label %47, label %197
47: ; preds = %44
%48 = getelementptr inbounds [512 x i8], [512 x i8]* %18, i64 0, i64 0
%49 = load i32, i32* @stdin
%50 = call i32* @fgets(i8* %48, i32 512, i32 %49)
%51 = icmp eq i32* null, %50
br i1 %51, label %52, label %53
52: ; preds = %47
br label %197
53: ; preds = %47
%54 = getelementptr inbounds [512 x i8], [512 x i8]* %18, i64 0, i64 0
%55 = call i32 @strlen(i8* %54)
store i32 %55, i32* %10
%56 = load i32, i32* %10
%57 = icmp sgt i32 %56, 0
br i1 %57, label %58, label %73
58: ; preds = %53
%59 = load i32, i32* %10
%60 = sub nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [512 x i8], [512 x i8]* %18, i64 0, i64 %61
%63 = load i8, i8* %62
%64 = sext i8 %63 to i32
%65 = icmp eq i32 10, %64
br i1 %65, label %66, label %72
66: ; preds = %58
%67 = load i32, i32* %10
%68 = add nsw i32 %67, -1
store i32 %68, i32* %10
%69 = load i32, i32* %10
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [512 x i8], [512 x i8]* %18, i64 0, i64 %70
store i8 0, i8* %71
br label %72
72: ; preds = %66, %58
br label %73
73: ; preds = %72, %53
%74 = load i32, i32* %10
%75 = icmp eq i32 0, %74
br i1 %75, label %76, label %77
76: ; preds = %73
br label %194
77: ; preds = %73
%78 = getelementptr inbounds [512 x i8], [512 x i8]* %18, i64 0, i64 0
store i8* %78, i8** %14
%79 = load i8*, i8** %14
%80 = call i32 @strspn(i8* %79, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32 %80, i32* %13
%81 = load i32, i32* %13
%82 = load i32, i32* %10
%83 = icmp eq i32 %81, %82
br i1 %83, label %84, label %85
84: ; preds = %77
br label %194
85: ; preds = %77
%86 = load i32, i32* %13
%87 = load i8*, i8** %14
%88 = sext i32 %86 to i64
%89 = getelementptr inbounds i8, i8* %87, i64 %88
store i8* %89, i8** %14
%90 = load i32, i32* %13
%91 = load i32, i32* %10
%92 = sub nsw i32 %91, %90
store i32 %92, i32* %10
%93 = load i8*, i8** %14
%94 = load i8, i8* %93
%95 = sext i8 %94 to i32
%96 = icmp eq i32 35, %95
br i1 %96, label %97, label %98
97: ; preds = %85
br label %194
98: ; preds = %85
%99 = load i8*, i8** %14
%100 = call i32 @strspn(i8* %99, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
store i32 %100, i32* %11
%101 = load i32, i32* %11
%102 = load i32, i32* %10
%103 = icmp slt i32 %101, %102
br i1 %103, label %104, label %121
104: ; preds = %98
%105 = load i8*, i8** %14
%106 = load i32, i32* %11
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i8, i8* %105, i64 %107
%109 = load i8, i8* %108
%110 = sext i8 %109 to i32
%111 = icmp ne i32 35, %110
br i1 %111, label %112, label %121
112: ; preds = %104
%113 = load i32, i32* @stderr
%114 = load i32, i32* %12
%115 = add nsw i32 %114, 1
%116 = load i32, i32* %13
%117 = load i32, i32* %11
%118 = add nsw i32 %116, %117
%119 = add nsw i32 %118, 1
%120 = call i32 (i32, i8*, ...) @fprintf(i32 %113, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i32 %115, i32 %119)
store i32 1, i32* %5
br label %278
121: ; preds = %104, %98
store i32 0, i32* %11
br label %122
122: ; preds = %186, %121
%123 = load i32, i32* %11
%124 = icmp slt i32 %123, 1024
br i1 %124, label %125, label %189
125: ; preds = %122
%126 = load i8*, i8** %14
%127 = call i32 @get_llnum(i8* %126)
store i32 %127, i32* %15
%128 = load i32, i32* %15
%129 = icmp ne i32 -1, %128
br i1 %129, label %130, label %165
130: ; preds = %125
%131 = load i32, i32* %19
%132 = load i32, i32* %11
%133 = add nsw i32 %131, %132
%134 = load i32, i32* %9
%135 = icmp sge i32 %133, %134
br i1 %135, label %136, label %139
136: ; preds = %130
%137 = load i32, i32* @stderr
%138 = call i32 (i32, i8*, ...) @fprintf(i32 %137, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %5
br label %278
139: ; preds = %130
%140 = load i32, i32* %15
%141 = sext i32 %140 to i64
%142 = load i64*, i64** %7
%143 = load i32, i32* %19
%144 = load i32, i32* %11
%145 = add nsw i32 %143, %144
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds i64, i64* %142, i64 %146
store i64 %141, i64* %147
%148 = load i8*, i8** %14
%149 = call i8* @strpbrk(i8* %148, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
store i8* %149, i8** %14
%150 = load i8*, i8** %14
%151 = icmp eq i8* null, %150
br i1 %151, label %152, label %153
152: ; preds = %139
br label %189
153: ; preds = %139
%154 = load i8*, i8** %14
%155 = call i32 @strspn(i8* %154, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%156 = load i8*, i8** %14
%157 = sext i32 %155 to i64
%158 = getelementptr inbounds i8, i8* %156, i64 %157
store i8* %158, i8** %14
%159 = load i8*, i8** %14
%160 = load i8, i8* %159
%161 = sext i8 %160 to i32
%162 = icmp eq i32 0, %161
br i1 %162, label %163, label %164
163: ; preds = %153
br label %189
164: ; preds = %153
br label %185
165: ; preds = %125
%166 = load i8*, i8** %14
%167 = load i8, i8* %166
%168 = sext i8 %167 to i32
%169 = icmp eq i32 35, %168
br i1 %169, label %170, label %173
170: ; preds = %165
%171 = load i32, i32* %11
%172 = add nsw i32 %171, -1
store i32 %172, i32* %11
br label %189
173: ; preds = %165
%174 = load i32, i32* @stderr
%175 = load i32, i32* %12
%176 = add nsw i32 %175, 1
%177 = load i8*, i8** %14
%178 = getelementptr inbounds [512 x i8], [512 x i8]* %18, i64 0, i64 0
%179 = ptrtoint i8* %177 to i64
%180 = ptrtoint i8* %178 to i64
%181 = sub i64 %179, %180
%182 = add nsw i64 %181, 1
%183 = trunc i64 %182 to i32
%184 = call i32 (i32, i8*, ...) @fprintf(i32 %174, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0), i32 %176, i32 %183)
store i32 1, i32* %5
br label %278
185: ; preds = %164
br label %186
186: ; preds = %185
%187 = load i32, i32* %11
%188 = add nsw i32 %187, 1
store i32 %188, i32* %11
br label %122
189: ; preds = %170, %163, %152, %122
%190 = load i32, i32* %11
%191 = add nsw i32 %190, 1
%192 = load i32, i32* %19
%193 = add nsw i32 %192, %191
store i32 %193, i32* %19
br label %194
194: ; preds = %189, %97, %84, %76
%195 = load i32, i32* %12
%196 = add nsw i32 %195, 1
store i32 %196, i32* %12
br label %44
197: ; preds = %52, %44
%198 = load i32, i32* %19
%199 = load i32*, i32** %8
store i32 %198, i32* %199
br label %277
200: ; preds = %37
%201 = load i8*, i8** %6
%202 = call i32 @strspn(i8* %201, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0))
store i32 %202, i32* %11
%203 = load i32, i32* %10
%204 = load i32, i32* %11
%205 = icmp ne i32 %203, %204
br i1 %205, label %206, label %211
206: ; preds = %200
%207 = load i32, i32* @stderr
%208 = load i32, i32* %11
%209 = add nsw i32 %208, 1
%210 = call i32 (i32, i8*, ...) @fprintf(i32 %207, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i32 %209)
store i32 1, i32* %5
br label %278
211: ; preds = %200
store i32 0, i32* %11
br label %212
212: ; preds = %263, %211
%213 = load i32, i32* %11
%214 = load i32, i32* %9
%215 = icmp slt i32 %213, %214
br i1 %215, label %216, label %266
216: ; preds = %212
%217 = load i8*, i8** %14
%218 = call i32 @get_llnum(i8* %217)
store i32 %218, i32* %15
%219 = load i32, i32* %15
%220 = icmp ne i32 -1, %219
br i1 %220, label %221, label %252
221: ; preds = %216
%222 = load i32, i32* %15
%223 = sext i32 %222 to i64
%224 = load i64*, i64** %7
%225 = load i32, i32* %11
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds i64, i64* %224, i64 %226
store i64 %223, i64* %227
%228 = load i8*, i8** %14
%229 = call i8* @strchr(i8* %228, i8 signext 44)
store i8* %229, i8** %16
%230 = load i8*, i8** %14
%231 = call i8* @strchr(i8* %230, i8 signext 32)
store i8* %231, i8** %17
%232 = load i8*, i8** %16
%233 = icmp eq i8* null, %232
br i1 %233, label %234, label %236
234: ; preds = %221
%235 = load i8*, i8** %17
store i8* %235, i8** %16
br label %236
236: ; preds = %234, %221
%237 = load i8*, i8** %16
%238 = icmp eq i8* null, %237
br i1 %238, label %239, label %240
239: ; preds = %236
br label %266
240: ; preds = %236
%241 = load i8*, i8** %17
%242 = icmp ne i8* %241, null
br i1 %242, label %243, label %249
243: ; preds = %240
%244 = load i8*, i8** %17
%245 = load i8*, i8** %16
%246 = icmp ult i8* %244, %245
br i1 %246, label %247, label %249
247: ; preds = %243
%248 = load i8*, i8** %17
store i8* %248, i8** %16
br label %249
249: ; preds = %247, %243, %240
%250 = load i8*, i8** %16
%251 = getelementptr inbounds i8, i8* %250, i64 1
store i8* %251, i8** %14
br label %262
252: ; preds = %216
%253 = load i32, i32* @stderr
%254 = load i8*, i8** %14
%255 = load i8*, i8** %6
%256 = ptrtoint i8* %254 to i64
%257 = ptrtoint i8* %255 to i64
%258 = sub i64 %256, %257
%259 = add nsw i64 %258, 1
%260 = trunc i64 %259 to i32
%261 = call i32 (i32, i8*, ...) @fprintf(i32 %253, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i32 %260)
store i32 1, i32* %5
br label %278
262: ; preds = %249
br label %263
263: ; preds = %262
%264 = load i32, i32* %11
%265 = add nsw i32 %264, 1
store i32 %265, i32* %11
br label %212
266: ; preds = %239, %212
%267 = load i32, i32* %11
%268 = add nsw i32 %267, 1
%269 = load i32*, i32** %8
store i32 %268, i32* %269
%270 = load i32, i32* %11
%271 = load i32, i32* %9
%272 = icmp eq i32 %270, %271
br i1 %272, label %273, label %276
273: ; preds = %266
%274 = load i32, i32* @stderr
%275 = call i32 (i32, i8*, ...) @fprintf(i32 %274, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %5
br label %278
276: ; preds = %266
br label %277
277: ; preds = %276, %197
store i32 0, i32* %5
br label %278
278: ; preds = %277, %273, %252, %206, %173, %136, %112, %28
%279 = load i32, i32* %5
ret i32 %279
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [3 x i8] c" \09\00"
@.str.1 = [30 x i8] c"0123456789aAbBcCdDeEfFhHxX ,\09\00"
@stderr = global i32 0
@.str.2 = [48 x i8] c"build_lba_arr: syntax error at line %d, pos %d\0A\00"
@.str.3 = [38 x i8] c"build_lba_arr: array length exceeded\0A\00"
@.str.4 = [4 x i8] c" ,\09\00"
@.str.5 = [44 x i8] c"build_lba_arr: error in line %d, at pos %d\0A\00"
@.str.6 = [29 x i8] c"0123456789aAbBcCdDeEfFhHxX, \00"
@.str.7 = [32 x i8] c"build_lba_arr: error at pos %d\0A\00"
define i32 @build_lba_arr(i8* %0, i64* writeonly %1, i32* writeonly %2, i32 %3) {
%5 = alloca [512 x i8]
%6 = icmp eq i8* %0, null
%7 = icmp eq i64* %1, null
%8 = or i1 %6, %7
%9 = icmp eq i32* %2, null
%10 = or i1 %8, %9
br i1 %10, label %172, label %11
11: ; preds = %4
%12 = tail call i32 @strlen(i8* %0)
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 0, i32* %2
br label %15
15: ; preds = %14, %11
%16 = load i8, i8* %0
%17 = icmp eq i8 %16, 45
br i1 %17, label %18, label %121
18: ; preds = %15
%19 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%20 = sext i32 %3 to i64
br label %21
21: ; preds = %18, %114
%22 = phi i32 [ 0, %18 ], [ %115, %114 ]
%23 = phi i32 [ 0, %18 ], [ %116, %114 ]
%24 = load i32, i32* @stdin
%25 = call i32* @fgets(i8* %19, i32 512, i32 %24)
%26 = icmp eq i32* %25, null
br i1 %26, label %118, label %27
27: ; preds = %21
%28 = call i32 @strlen(i8* %19)
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %37
30: ; preds = %27
%31 = add nsw i32 %28, -1
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = icmp eq i8 %34, 10
br i1 %35, label %36, label %40
36: ; preds = %30
store i8 0, i8* %33
br label %37
37: ; preds = %36, %27
%38 = phi i32 [ %31, %36 ], [ %28, %27 ]
%39 = icmp eq i32 %38, 0
br i1 %39, label %114, label %40
40: ; preds = %30, %37
%41 = phi i32 [ %38, %37 ], [ %28, %30 ]
%42 = call i32 @strspn(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%43 = icmp eq i32 %41, %42
br i1 %43, label %114, label %44
44: ; preds = %40
%45 = sext i32 %42 to i64
%46 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 %45
%47 = load i8, i8* %46
%48 = icmp eq i8 %47, 35
br i1 %48, label %114, label %49
49: ; preds = %44
%50 = sub nsw i32 %41, %42
%51 = call i32 @strspn(i8* %46, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%52 = icmp slt i32 %51, %50
br i1 %52, label %53, label %64
53: ; preds = %49
%54 = sext i32 %51 to i64
%55 = getelementptr inbounds i8, i8* %46, i64 %54
%56 = load i8, i8* %55
%57 = icmp eq i8 %56, 35
br i1 %57, label %64, label %58
58: ; preds = %53
%59 = load i32, i32* @stderr
%60 = add nuw nsw i32 %23, 1
%61 = add i32 %42, 1
%62 = add i32 %61, %51
%63 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i32 %60, i32 %62)
br label %120
64: ; preds = %53, %49
%65 = sext i32 %22 to i64
br label %66
66: ; preds = %64, %103
%67 = phi i64 [ 0, %64 ], [ %104, %103 ]
%68 = phi i8* [ %46, %64 ], [ %85, %103 ]
%69 = call i32 @get_llnum(i8* %68)
%70 = icmp eq i32 %69, -1
br i1 %70, label %88, label %71
71: ; preds = %66
%72 = add nsw i64 %67, %65
%73 = icmp slt i64 %72, %20
br i1 %73, label %77, label %74
74: ; preds = %71
%75 = load i32, i32* @stderr
%76 = call i32 (i32, i8*, ...) @fprintf(i32 %75, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
br label %120
77: ; preds = %71
%78 = sext i32 %69 to i64
%79 = getelementptr inbounds i64, i64* %1, i64 %72
store i64 %78, i64* %79
%80 = call i8* @strpbrk(i8* %68, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%81 = icmp eq i8* %80, null
br i1 %81, label %106, label %82
82: ; preds = %77
%83 = call i32 @strspn(i8* %80, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, i8* %80, i64 %84
%86 = load i8, i8* %85
%87 = icmp eq i8 %86, 0
br i1 %87, label %108, label %103
88: ; preds = %66
%89 = load i8, i8* %68
%90 = icmp eq i8 %89, 35
br i1 %90, label %91, label %94
91: ; preds = %88
%92 = trunc i64 %67 to i32
%93 = add nsw i32 %92, -1
br label %110
94: ; preds = %88
%95 = load i32, i32* @stderr
%96 = add nuw nsw i32 %23, 1
%97 = ptrtoint i8* %68 to i64
%98 = ptrtoint [512 x i8]* %5 to i64
%99 = sub i64 %97, %98
%100 = trunc i64 %99 to i32
%101 = add i32 %100, 1
%102 = call i32 (i32, i8*, ...) @fprintf(i32 %95, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0), i32 %96, i32 %101)
br label %120
103: ; preds = %82
%104 = add nuw nsw i64 %67, 1
%105 = icmp eq i64 %104, 1024
br i1 %105, label %110, label %66
106: ; preds = %77
%107 = trunc i64 %67 to i32
br label %110
108: ; preds = %82
%109 = trunc i64 %67 to i32
br label %110
110: ; preds = %103, %106, %108, %91
%111 = phi i32 [ %93, %91 ], [ %107, %106 ], [ %109, %108 ], [ 1024, %103 ]
%112 = add i32 %22, 1
%113 = add i32 %112, %111
br label %114
114: ; preds = %44, %40, %37, %110
%115 = phi i32 [ %22, %37 ], [ %22, %40 ], [ %22, %44 ], [ %113, %110 ]
%116 = add nuw nsw i32 %23, 1
%117 = icmp eq i32 %116, 512
br i1 %117, label %118, label %21
118: ; preds = %21, %114
%119 = phi i32 [ %22, %21 ], [ %115, %114 ]
store i32 %119, i32* %2
br label %172
120: ; preds = %94, %74, %58
br label %172
121: ; preds = %15
%122 = tail call i32 @strspn(i8* %0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0))
%123 = icmp eq i32 %12, %122
br i1 %123, label %124, label %128
124: ; preds = %121
%125 = icmp sgt i32 %3, 0
br i1 %125, label %126, label %165
126: ; preds = %124
%127 = zext i32 %3 to i64
br label %132
128: ; preds = %121
%129 = load i32, i32* @stderr
%130 = add nsw i32 %122, 1
%131 = tail call i32 (i32, i8*, ...) @fprintf(i32 %129, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i32 %130)
br label %172
132: ; preds = %126, %145
%133 = phi i64 [ 0, %126 ], [ %151, %145 ]
%134 = phi i8* [ %0, %126 ], [ %150, %145 ]
%135 = tail call i32 @get_llnum(i8* %134)
%136 = icmp eq i32 %135, -1
br i1 %136, label %155, label %137
137: ; preds = %132
%138 = sext i32 %135 to i64
%139 = getelementptr inbounds i64, i64* %1, i64 %133
store i64 %138, i64* %139
%140 = tail call i8* @strchr(i8* %134, i8 signext 44)
%141 = tail call i8* @strchr(i8* %134, i8 signext 32)
%142 = icmp eq i8* %140, null
%143 = select i1 %142, i8* %141, i8* %140
%144 = icmp eq i8* %143, null
br i1 %144, label %163, label %145
145: ; preds = %137
%146 = icmp ne i8* %141, null
%147 = icmp ult i8* %141, %143
%148 = select i1 %146, i1 %147, i1 false
%149 = select i1 %148, i8* %141, i8* %143
%150 = getelementptr inbounds i8, i8* %149, i64 1
%151 = add nuw nsw i64 %133, 1
%152 = icmp eq i64 %151, %127
br i1 %152, label %153, label %132
153: ; preds = %145
%154 = add nuw nsw i32 %3, 1
store i32 %154, i32* %2
br label %169
155: ; preds = %132
%156 = load i32, i32* @stderr
%157 = ptrtoint i8* %134 to i64
%158 = ptrtoint i8* %0 to i64
%159 = sub i64 %157, %158
%160 = trunc i64 %159 to i32
%161 = add i32 %160, 1
%162 = tail call i32 (i32, i8*, ...) @fprintf(i32 %156, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i32 %161)
br label %172
163: ; preds = %137
%164 = trunc i64 %133 to i32
br label %165
165: ; preds = %163, %124
%166 = phi i32 [ 0, %124 ], [ %164, %163 ]
%167 = add nuw nsw i32 %166, 1
store i32 %167, i32* %2
%168 = icmp eq i32 %166, %3
br i1 %168, label %169, label %172
169: ; preds = %153, %165
%170 = load i32, i32* @stderr
%171 = tail call i32 (i32, i8*, ...) @fprintf(i32 %170, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
br label %172
172: ; preds = %165, %118, %120, %4, %169, %155, %128
%173 = phi i32 [ 1, %120 ], [ 1, %128 ], [ 1, %169 ], [ 1, %155 ], [ 1, %4 ], [ 0, %118 ], [ 0, %165 ]
ret i32 %173
}