#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 int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
scalar_t__ isalpha(char);
scalar_t__ islower(char);
int /*<<< orphan*/ printf(char *, char *, int);
int /*<<< orphan*/ sscanf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
scalar_t__ strncmp(char *, char *, int);
int /*<<< orphan*/ strncpy(char *, char *, int);
int /*<<< orphan*/ *strpbrk(char *, char *);
int /*<<< orphan*/ *strstr(char *, char *);
char toupper(char);
int getseq(char *dbname, char *dseq, FILE *lfil) {
  int i, j, len;
  short badln, fformat;
  enum { UNKNOWN, EMBL, FASTA, OWL, GCG };
  char buf[65536], split;
  int offset;
  offset = j = 0;
  if (!fgets(buf, 65536, lfil))
    return (-1);
  if (strstr(buf, "of:") != NULL && strstr(buf, "check:") != NULL)
    fformat = GCG;
  else if (strncmp(buf, "ID   ", 5) == 0)
    fformat = EMBL;
  else if (buf[0] == '>' && (buf[1] == '>' || buf[3] == ';'))
    fformat = OWL;
  else if (buf[0] == '>')
    fformat = FASTA;
  else {
    fprintf(stderr,
            "WARNING: Attempting to interpret input file with unknown format");
    fformat = UNKNOWN;
  }
  switch (fformat) {
  case GCG:
    sscanf(strstr(buf, "of:") + 3, "%s", dbname);
    while (strstr(buf, "..") == NULL)
      fgets(buf, 65536, lfil);
    fgets(buf, 65536, lfil);
    break;
  case EMBL:
    strncpy(dbname, buf + 5, 70);
    while (buf[0] != ' ')
      fgets(buf, 65536, lfil);
    break;
  case OWL:
    fgets(buf, 65536, lfil);
    strncpy(dbname, buf, 70);
    fgets(buf, 65536, lfil);
    break;
  case FASTA:
    strncpy(dbname, buf + 1, 70);
    fgets(buf, 65536, lfil);
    break;
  default:
    do {
      badln = (strpbrk(buf, "JjOoUu<>#$%&@") != NULL);
      if (badln && !fgets(buf, 65536, lfil))
        return (-1);
    } while (badln);
    strcpy(dbname, "<NO NAME>");
    break;
  }
  if (dbname[(len = strlen(dbname)) - 1] == '\n')
    dbname[--len] = '\0';
  if (len >= 70)
    dbname[70] = '\0';
  for (;;) {
    if (!strncmp(buf, "//", 2))
      break;
    len = strlen(buf);
    for (i = offset; i < len && j < 65536; i++) {
      split = islower(buf[i]) ? toupper(buf[i]) : buf[i];
      if (split == '@' || (fformat == OWL && split == '*')) {
        dseq[j] = '\0';
        while (fgets(buf, 65536, lfil))
          ;
        return (j);
      }
      if (isalpha(split))
        dseq[j++] = split;
      else if (buf[i] == '\n')
        break;
    }
    if (!fgets(buf, 65536, lfil))
      break;
  }
  if (j == 65536)
    printf("\nWARNING: sequence %s over %d long; truncated!\n", dbname, 65536);
  dseq[j] = '\0';
  return (j);
}


x86 assembly (clang, -O0):
<getseq>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10050,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x10038(%rbp)
lea    -0x10030(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x10000,%esi
call   10a0 <fgets@plt>
cmp    $0x0,%rax
jne    1223 <getseq+0x53>
movl   $0xffffffff,-0x4(%rbp)
jmp    1758 <getseq+0x588>
lea    -0x10030(%rbp),%rdi
lea    0xddf(%rip),%rsi
call   10f0 <strstr@plt>
cmp    $0x0,%rax
je     1268 <getseq+0x98>
lea    -0x10030(%rbp),%rdi
lea    0xdc6(%rip),%rsi
call   10f0 <strstr@plt>
cmp    $0x0,%rax
je     1268 <getseq+0x98>
movw   $0x4,-0x30(%rbp)
jmp    1315 <getseq+0x145>
lea    -0x10030(%rbp),%rdi
lea    0xda5(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1295 <getseq+0xc5>
movw   $0x1,-0x30(%rbp)
jmp    1310 <getseq+0x140>
movsbl -0x10030(%rbp),%eax
cmp    $0x3e,%eax
jne    12d0 <getseq+0x100>
movsbl -0x1002f(%rbp),%eax
cmp    $0x3e,%eax
je     12c5 <getseq+0xf5>
movsbl -0x1002d(%rbp),%eax
cmp    $0x3b,%eax
jne    12d0 <getseq+0x100>
movw   $0x3,-0x30(%rbp)
jmp    130b <getseq+0x13b>
movsbl -0x10030(%rbp),%eax
cmp    $0x3e,%eax
jne    12eb <getseq+0x11b>
movw   $0x2,-0x30(%rbp)
jmp    1306 <getseq+0x136>
mov    0x2cee(%rip),%rax
mov    (%rax),%edi
lea    0xd26(%rip),%rsi
call   10b0 <fprintf@plt>
movw   $0x0,-0x30(%rbp)
jmp    130b <getseq+0x13b>
jmp    1310 <getseq+0x140>
jmp    1315 <getseq+0x145>
movswl -0x30(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x10040(%rbp)
sub    $0x3,%eax
ja     147f <getseq+0x2af>
mov    -0x10040(%rbp),%rax
lea    0xcc4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    -0x10030(%rbp),%rdi
lea    0xcbd(%rip),%rsi
call   10f0 <strstr@plt>
mov    %rax,%rdi
add    $0xc,%rdi
mov    -0x10(%rbp),%rdx
lea    0xcf7(%rip),%rsi
call   10c0 <sscanf@plt>
lea    -0x10030(%rbp),%rdi
lea    0xce7(%rip),%rsi
call   10f0 <strstr@plt>
cmp    $0x0,%rax
jne    13a6 <getseq+0x1d6>
lea    -0x10030(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x10000,%esi
call   10a0 <fgets@plt>
jmp    136f <getseq+0x19f>
lea    -0x10030(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x10000,%esi
call   10a0 <fgets@plt>
jmp    14ff <getseq+0x32f>
mov    -0x10(%rbp),%rdi
lea    -0x10030(%rbp),%rsi
add    $0x5,%rsi
mov    $0x46,%edx
call   1030 <strncpy@plt>
movsbl -0x10030(%rbp),%eax
cmp    $0x20,%eax
je     1403 <getseq+0x233>
lea    -0x10030(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x10000,%esi
call   10a0 <fgets@plt>
jmp    13d9 <getseq+0x209>
jmp    14ff <getseq+0x32f>
lea    -0x10030(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x10000,%esi
call   10a0 <fgets@plt>
mov    -0x10(%rbp),%rdi
lea    -0x10030(%rbp),%rsi
mov    $0x46,%edx
call   1030 <strncpy@plt>
lea    -0x10030(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x10000,%esi
call   10a0 <fgets@plt>
jmp    14ff <getseq+0x32f>
mov    -0x10(%rbp),%rdi
lea    -0x10030(%rbp),%rsi
add    $0x1,%rsi
mov    $0x46,%edx
call   1030 <strncpy@plt>
lea    -0x10030(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x10000,%esi
call   10a0 <fgets@plt>
jmp    14ff <getseq+0x32f>
jmp    1484 <getseq+0x2b4>
lea    -0x10030(%rbp),%rdi
lea    0xbd5(%rip),%rsi
call   10d0 <strpbrk@plt>
cmp    $0x0,%rax
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %ax,-0x2e(%rbp)
movswl -0x2e(%rbp),%eax
cmp    $0x0,%eax
je     14df <getseq+0x30f>
lea    -0x10030(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x10000,%esi
call   10a0 <fgets@plt>
cmp    $0x0,%rax
jne    14df <getseq+0x30f>
movl   $0xffffffff,-0x4(%rbp)
jmp    1758 <getseq+0x588>
jmp    14e4 <getseq+0x314>
cmpw   $0x0,-0x2e(%rbp)
jne    1484 <getseq+0x2b4>
mov    -0x10(%rbp),%rdi
lea    0xb7b(%rip),%rsi
call   1050 <strcpy@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x10048(%rbp)
mov    -0x10(%rbp),%rdi
call   1080 <strlen@plt>
mov    %eax,%ecx
mov    -0x10048(%rbp),%rax
mov    %ecx,-0x2c(%rbp)
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
jne    1546 <getseq+0x376>
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
cmpl   $0x46,-0x2c(%rbp)
jl     1558 <getseq+0x388>
mov    -0x10(%rbp),%rax
movb   $0x0,0x46(%rax)
jmp    155d <getseq+0x38d>
lea    -0x10030(%rbp),%rdi
lea    0xb14(%rip),%rsi
mov    $0x2,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1584 <getseq+0x3b4>
jmp    1724 <getseq+0x554>
lea    -0x10030(%rbp),%rdi
call   1080 <strlen@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x10038(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%ecx
xor    %eax,%eax
cmp    -0x2c(%rbp),%ecx
mov    %al,-0x10049(%rbp)
jge    15c0 <getseq+0x3f0>
cmpl   $0x10000,-0x28(%rbp)
setl   %al
mov    %al,-0x10049(%rbp)
mov    -0x10049(%rbp),%al
test   $0x1,%al
jne    15d3 <getseq+0x403>
jmp    16fb <getseq+0x52b>
movslq -0x24(%rbp),%rax
movsbl -0x10030(%rbp,%rax,1),%edi
ff
call   1060 <islower@plt>
cmp    $0x0,%rax
je     160d <getseq+0x43d>
movslq -0x24(%rbp),%rax
movsbl -0x10030(%rbp,%rax,1),%edi
ff
call   1070 <toupper@plt>
movsbl %al,%eax
mov    %eax,-0x10050(%rbp)
jmp    161f <getseq+0x44f>
movslq -0x24(%rbp),%rax
movsbl -0x10030(%rbp,%rax,1),%eax
ff
mov    %eax,-0x10050(%rbp)
mov    -0x10050(%rbp),%eax
mov    %al,-0x10031(%rbp)
movsbl -0x10031(%rbp),%eax
cmp    $0x40,%eax
je     1658 <getseq+0x488>
movswl -0x30(%rbp),%eax
cmp    $0x3,%eax
jne    1693 <getseq+0x4c3>
movsbl -0x10031(%rbp),%eax
cmp    $0x2a,%eax
jne    1693 <getseq+0x4c3>
mov    -0x18(%rbp),%rax
movslq -0x28(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
lea    -0x10030(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x10000,%esi
call   10a0 <fgets@plt>
cmp    $0x0,%rax
je     1688 <getseq+0x4b8>
jmp    1664 <getseq+0x494>
mov    -0x28(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1758 <getseq+0x588>
movsbl -0x10031(%rbp),%edi
call   10e0 <isalpha@plt>
cmp    $0x0,%rax
je     16c9 <getseq+0x4f9>
mov    -0x10031(%rbp),%dl
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x28(%rbp)
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
jmp    16e8 <getseq+0x518>
movslq -0x24(%rbp),%rax
movsbl -0x10030(%rbp,%rax,1),%eax
ff
cmp    $0xa,%eax
jne    16e3 <getseq+0x513>
jmp    16fb <getseq+0x52b>
jmp    16e8 <getseq+0x518>
jmp    16ed <getseq+0x51d>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    159c <getseq+0x3cc>
lea    -0x10030(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x10000,%esi
call   10a0 <fgets@plt>
cmp    $0x0,%rax
jne    171f <getseq+0x54f>
jmp    1724 <getseq+0x554>
jmp    155d <getseq+0x38d>
cmpl   $0x10000,-0x28(%rbp)
jne    1746 <getseq+0x576>
mov    -0x10(%rbp),%rsi
lea    0x946(%rip),%rdi
mov    $0x10000,%edx
call   1090 <printf@plt>
mov    -0x18(%rbp),%rax
movslq -0x28(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x28(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10050,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getseq>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10028,%rsp
mov    %rdx,%r15
mov    %rsi,0x10(%rsp)
mov    %rdi,%r14
lea    0x20(%rsp),%rdi
mov    $0x10000,%esi
call   10a0 <fgets@plt>
mov    $0xffffffff,%ebp
test   %rax,%rax
je     1465 <getseq+0x295>
lea    0xdf0(%rip),%rsi
lea    0x20(%rsp),%rdi
call   10f0 <strstr@plt>
test   %rax,%rax
je     12a2 <getseq+0xd2>
mov    %rax,%r12
lea    0xdd7(%rip),%rsi
lea    0x20(%rsp),%rdi
call   10f0 <strstr@plt>
test   %rax,%rax
je     12a2 <getseq+0xd2>
add    $0xc,%r12
lea    0xe0a(%rip),%rsi
mov    %r12,%rdi
mov    %r14,%rdx
call   10c0 <sscanf@plt>
lea    0xdfb(%rip),%rsi
lea    0x20(%rsp),%rdi
call   10f0 <strstr@plt>
test   %rax,%rax
jne    12f4 <getseq+0x124>
lea    0x20(%rsp),%rbp
lea    0xddc(%rip),%r12
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    $0x10000,%esi
mov    %r15,%rdx
call   10a0 <fgets@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
call   10f0 <strstr@plt>
test   %rax,%rax
je     1280 <getseq+0xb0>
jmp    12f4 <getseq+0x124>
lea    0xd62(%rip),%rsi
lea    0x20(%rsp),%rdi
mov    $0x5,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1479 <getseq+0x2a9>
cmpb   $0x3e,0x20(%rsp)
jne    14bc <getseq+0x2ec>
cmpb   $0x3e,0x21(%rsp)
je     153b <getseq+0x36b>
cmpb   $0x3b,0x23(%rsp)
je     153b <getseq+0x36b>
lea    0x21(%rsp),%rsi
mov    %r14,%rdi
mov    $0x46,%edx
call   1030 <strncpy@plt>
lea    0x20(%rsp),%rdi
mov    $0x10000,%esi
mov    %r15,%rdx
call   10a0 <fgets@plt>
movl   $0x0,0xc(%rsp)
mov    %r14,%rdi
call   1080 <strlen@plt>
movslq %eax,%rcx
cmpb   $0xa,-0x1(%r14,%rcx,1)
jne    132c <getseq+0x15c>
add    $0xffffffffffffffff,%rcx
movb   $0x0,(%r14,%rcx,1)
mov    %ecx,%eax
cmp    $0x46,%eax
jl     1336 <getseq+0x166>
movb   $0x0,0x46(%r14)
xor    %ebp,%ebp
lea    0x20(%rsp),%rbx
mov    %r14,0x18(%rsp)
jmp    136e <getseq+0x19e>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbx,%rdi
mov    $0x10000,%esi
mov    %r15,%rdx
call   10a0 <fgets@plt>
test   %rax,%rax
mov    0x18(%rsp),%r14
je     150e <getseq+0x33e>
mov    %rbx,%rdi
lea    0xcf7(%rip),%rsi
mov    $0x2,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     150e <getseq+0x33e>
mov    %rbx,%rdi
call   1080 <strlen@plt>
test   %eax,%eax
jle    1350 <getseq+0x180>
cmp    $0xffff,%ebp
jg     1350 <getseq+0x180>
mov    %eax,%r14d
mov    $0x1,%r13d
nopl   0x0(%rax,%rax,1)
movsbl 0x1f(%rsp,%r13,1),%edi
call   1060 <islower@plt>
movzbl 0x1f(%rsp,%r13,1),%r12d
test   %rax,%rax
je     13d2 <getseq+0x202>
movsbl %r12b,%edi
call   1070 <toupper@plt>
mov    %eax,%r12d
cmp    $0x40,%r12b
je     143a <getseq+0x26a>
cmp    $0x2a,%r12b
sete   %al
and    0xc(%rsp),%al
cmp    $0x1,%al
je     143a <getseq+0x26a>
movsbl %r12b,%edi
call   10e0 <isalpha@plt>
test   %rax,%rax
je     1410 <getseq+0x240>
movslq %ebp,%rax
add    $0x1,%ebp
mov    0x10(%rsp),%rcx
mov    %r12b,(%rcx,%rax,1)
jmp    141c <getseq+0x24c>
cs nopw 0x0(%rax,%rax,1)
cmpb   $0xa,0x1f(%rsp,%r13,1)
je     1350 <getseq+0x180>
cmp    %r14,%r13
jae    1350 <getseq+0x180>
add    $0x1,%r13
cmp    $0x10000,%ebp
jl     13b0 <getseq+0x1e0>
jmp    1350 <getseq+0x180>
movslq %ebp,%rax
mov    0x10(%rsp),%rcx
movb   $0x0,(%rcx,%rax,1)
lea    0x20(%rsp),%rbx
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x10000,%esi
mov    %r15,%rdx
call   10a0 <fgets@plt>
test   %rax,%rax
jne    1450 <getseq+0x280>
mov    %ebp,%eax
add    $0x10028,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x25(%rsp),%rsi
mov    %r14,%rdi
mov    $0x46,%edx
call   1030 <strncpy@plt>
cmpb   $0x20,0x20(%rsp)
je     1306 <getseq+0x136>
lea    0x20(%rsp),%rbp
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    $0x10000,%esi
mov    %r15,%rdx
call   10a0 <fgets@plt>
cmpb   $0x20,0x20(%rsp)
jne    14a0 <getseq+0x2d0>
jmp    1306 <getseq+0x136>
mov    0x2b1d(%rip),%rax
mov    (%rax),%edi
lea    0xb45(%rip),%rsi
call   10b0 <fprintf@plt>
lea    0xb7f(%rip),%r12
lea    0x20(%rsp),%r13
nopl   (%rax)
mov    %r13,%rdi
mov    %r12,%rsi
call   10d0 <strpbrk@plt>
test   %rax,%rax
je     157b <getseq+0x3ab>
mov    %r13,%rdi
mov    $0x10000,%esi
mov    %r15,%rdx
call   10a0 <fgets@plt>
test   %rax,%rax
jne    14e0 <getseq+0x310>
jmp    1465 <getseq+0x295>
cmp    $0x10000,%ebp
jne    152a <getseq+0x35a>
lea    0xb55(%rip),%rdi
mov    %r14,%rsi
mov    $0x10000,%edx
call   1090 <printf@plt>
movslq %ebp,%rax
mov    0x10(%rsp),%rcx
movb   $0x0,(%rcx,%rax,1)
jmp    1465 <getseq+0x295>
lea    0x20(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x10000,%esi
mov    %r15,%rdx
call   10a0 <fgets@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
mov    $0x46,%edx
call   1030 <strncpy@plt>
mov    %rbp,%rdi
mov    $0x10000,%esi
mov    %r15,%rdx
call   10a0 <fgets@plt>
mov    $0x1,%al
mov    %eax,0xc(%rsp)
jmp    130e <getseq+0x13e>
lea    0xae3(%rip),%rsi
mov    %r14,%rdi
call   1050 <strcpy@plt>
jmp    1306 <getseq+0x136>

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

LLVM IR (-O2):
@.str = [4 x i8] c"of:\00"
@.str.1 = [7 x i8] c"check:\00"
@.str.2 = [6 x i8] c"ID \00"
@stderr = global i32 0
@.str.3 = [64 x i8] c"WARNING: Attempting to interpret input file with unknown format\00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [3 x i8] c"..\00"
@.str.6 = [14 x i8] c"JjOoUu<>#$%&@\00"
@.str.7 = [10 x i8] c"<NO NAME>\00"
@.str.8 = [3 x i8] c"//\00"
@.str.9 = [48 x i8] c"\0AWARNING: sequence %s over %d long; truncated!\0A\00"
define i32 @getseq(i8* %0, i8* nocapture writeonly %1, i32* nocapture %2) {
%4 = alloca [65536 x i8]
%5 = getelementptr inbounds [65536 x i8], [65536 x i8]* %4, i64 0, i64 0
%6 = call i64 @fgets(i8* %5, i32 65536, i32* %2)
%7 = icmp eq i64 %6, 0
br i1 %7, label %142, label %8
8: ; preds = %3
%9 = call i32* @strstr(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i32* %9, null
br i1 %10, label %14, label %11
11: ; preds = %8
%12 = call i32* @strstr(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i32* %12, null
br i1 %13, label %14, label %31
14: ; preds = %11, %8
%15 = call i64 @strncmp(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 5)
%16 = icmp eq i64 %15, 0
br i1 %16, label %42, label %17
17: ; preds = %14
%18 = load i8, i8* %5
%19 = icmp eq i8 %18, 62
br i1 %19, label %20, label %28
20: ; preds = %17
%21 = getelementptr inbounds [65536 x i8], [65536 x i8]* %4, i64 0, i64 1
%22 = load i8, i8* %21
%23 = icmp eq i8 %22, 62
%24 = getelementptr inbounds [65536 x i8], [65536 x i8]* %4, i64 0, i64 3
%25 = load i8, i8* %24
%26 = icmp eq i8 %25, 59
%27 = select i1 %23, i1 true, i1 %26
br i1 %27, label %51, label %55
28: ; preds = %17
%29 = load i32, i32* @stderr
%30 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.3, i64 0, i64 0))
br label %58
31: ; preds = %11
%32 = getelementptr inbounds i32, i32* %9, i64 3
%33 = call i32 @sscanf(i32* %32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %0)
%34 = call i32* @strstr(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%35 = icmp eq i32* %34, null
br i1 %35, label %36, label %40
36: ; preds = %31, %36
%37 = call i64 @fgets(i8* %5, i32 65536, i32* %2)
%38 = call i32* @strstr(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%39 = icmp eq i32* %38, null
br i1 %39, label %36, label %40
40: ; preds = %36, %31
%41 = call i64 @fgets(i8* %5, i32 65536, i32* %2)
br label %66
42: ; preds = %14
%43 = getelementptr inbounds [65536 x i8], [65536 x i8]* %4, i64 0, i64 5
%44 = call i32 @strncpy(i8* %0, i8* %43, i32 70)
%45 = load i8, i8* %5
%46 = icmp eq i8 %45, 32
br i1 %46, label %66, label %47
47: ; preds = %42, %47
%48 = call i64 @fgets(i8* %5, i32 65536, i32* %2)
%49 = load i8, i8* %5
%50 = icmp eq i8 %49, 32
br i1 %50, label %66, label %47
51: ; preds = %20
%52 = call i64 @fgets(i8* %5, i32 65536, i32* %2)
%53 = call i32 @strncpy(i8* %0, i8* %5, i32 70)
%54 = call i64 @fgets(i8* %5, i32 65536, i32* %2)
br label %66
55: ; preds = %20
%56 = call i32 @strncpy(i8* %0, i8* %21, i32 70)
%57 = call i64 @fgets(i8* %5, i32 65536, i32* %2)
br label %66
58: ; preds = %61, %28
%59 = call i32* @strpbrk(i8* %5, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%60 = icmp eq i32* %59, null
br i1 %60, label %64, label %61
61: ; preds = %58
%62 = call i64 @fgets(i8* %5, i32 65536, i32* %2)
%63 = icmp eq i64 %62, 0
br i1 %63, label %142, label %58
64: ; preds = %58
%65 = call i32 @strcpy(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
br label %66
66: ; preds = %47, %42, %64, %55, %51, %40
%67 = phi i1 [ false, %64 ], [ false, %55 ], [ true, %51 ], [ false, %40 ], [ false, %42 ], [ false, %47 ]
%68 = call i32 @strlen(i8* %0)
%69 = add nsw i32 %68, -1
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, i8* %0, i64 %70
%72 = load i8, i8* %71
%73 = icmp eq i8 %72, 10
br i1 %73, label %74, label %75
74: ; preds = %66
store i8 0, i8* %71
br label %75
75: ; preds = %74, %66
%76 = phi i32 [ %69, %74 ], [ %68, %66 ]
%77 = icmp sgt i32 %76, 69
br i1 %77, label %78, label %80
78: ; preds = %75
%79 = getelementptr inbounds i8, i8* %0, i64 70
store i8 0, i8* %79
br label %80
80: ; preds = %78, %75
br label %81
81: ; preds = %80, %130
%82 = phi i32 [ %131, %130 ], [ 0, %80 ]
%83 = call i64 @strncmp(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 2)
%84 = icmp eq i64 %83, 0
br i1 %84, label %134, label %85
85: ; preds = %81
%86 = call i32 @strlen(i8* %5)
%87 = icmp sgt i32 %86, 0
%88 = icmp slt i32 %82, 65536
%89 = select i1 %87, i1 %88, i1 false
br i1 %89, label %90, label %130
90: ; preds = %85
%91 = zext i32 %86 to i64
br label %92
92: ; preds = %90, %124
%93 = phi i64 [ 0, %90 ], [ %126, %124 ]
%94 = phi i32 [ %82, %90 ], [ %125, %124 ]
%95 = getelementptr inbounds [65536 x i8], [65536 x i8]* %4, i64 0, i64 %93
%96 = load i8, i8* %95
%97 = call i64 @islower(i8 signext %96)
%98 = icmp eq i64 %97, 0
%99 = load i8, i8* %95
br i1 %98, label %102, label %100
100: ; preds = %92
%101 = call signext i8 @toupper(i8 signext %99)
br label %102
102: ; preds = %92, %100
%103 = phi i8 [ %101, %100 ], [ %99, %92 ]
%104 = icmp eq i8 %103, 64
br i1 %104, label %108, label %105
105: ; preds = %102
%106 = icmp eq i8 %103, 42
%107 = select i1 %67, i1 %106, i1 false
br i1 %107, label %108, label %114
108: ; preds = %105, %102
%109 = sext i32 %94 to i64
%110 = getelementptr inbounds i8, i8* %1, i64 %109
store i8 0, i8* %110
br label %111
111: ; preds = %111, %108
%112 = call i64 @fgets(i8* %5, i32 65536, i32* %2)
%113 = icmp eq i64 %112, 0
br i1 %113, label %142, label %111
114: ; preds = %105
%115 = call i64 @isalpha(i8 signext %103)
%116 = icmp eq i64 %115, 0
br i1 %116, label %121, label %117
117: ; preds = %114
%118 = add nsw i32 %94, 1
%119 = sext i32 %94 to i64
%120 = getelementptr inbounds i8, i8* %1, i64 %119
store i8 %103, i8* %120
br label %124
121: ; preds = %114
%122 = load i8, i8* %95
%123 = icmp eq i8 %122, 10
br i1 %123, label %130, label %124
124: ; preds = %117, %121
%125 = phi i32 [ %118, %117 ], [ %94, %121 ]
%126 = add nuw nsw i64 %93, 1
%127 = icmp ult i64 %126, %91
%128 = icmp slt i32 %125, 65536
%129 = select i1 %127, i1 %128, i1 false
br i1 %129, label %92, label %130
130: ; preds = %124, %121, %85
%131 = phi i32 [ %82, %85 ], [ %94, %121 ], [ %125, %124 ]
%132 = call i64 @fgets(i8* %5, i32 65536, i32* %2)
%133 = icmp eq i64 %132, 0
br i1 %133, label %134, label %81
134: ; preds = %130, %81
%135 = phi i32 [ %131, %130 ], [ %82, %81 ]
%136 = icmp eq i32 %135, 65536
br i1 %136, label %137, label %139
137: ; preds = %134
%138 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.9, i64 0, i64 0), i8* %0, i32 65536)
br label %139
139: ; preds = %137, %134
%140 = sext i32 %135 to i64
%141 = getelementptr inbounds i8, i8* %1, i64 %140
store i8 0, i8* %141
br label %142
142: ; preds = %61, %111, %3, %139
%143 = phi i32 [ %135, %139 ], [ -1, %3 ], [ %94, %111 ], [ -1, %61 ]
ret i32 %143
}