#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 */
int /*<<< orphan*/ Die(char *);
scalar_t__ IsBlankline(char *);
scalar_t__ IsInt(char *);
scalar_t__ Seqtype(char *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
int /*<<< orphan*/ *sre_fgets(char **, int *, int /*<<< orphan*/ *);
char *sre_strdup(char *, int);
char *sre_strtok(char **, char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ *strchr(char *, char);
scalar_t__ strncmp(char *, char *, int);
int /*<<< orphan*/ *strstr(char *, char *);
int SeqfileFormat(FILE *fp) {
  char *buf;
  int len;
  int fmt = 0;
  int ndataline;
  char *bufcpy, *s, *s1, *s2;
  int has_junk;
  buf = NULL;
  len = 0;
  ndataline = 0;
  has_junk = 0;
  while (sre_fgets(&buf, &len, fp) != NULL) {
    if (IsBlankline(buf))
      continue;
    if (ndataline == 0) {
      if (strncmp(buf, ">>>>", 4) == 0 && strstr(buf, "Len: ")) {
        fmt = 16;
        goto DONE;
      }
      if (buf[0] == '>') {
        fmt = 7;
        goto DONE;
      }
      if (strncmp(buf, "!!AA_SEQUENCE", 13) == 0 ||
          strncmp(buf, "!!NA_SEQUENCE", 13) == 0) {
        fmt = 5;
        goto DONE;
      }
      if (strncmp(buf, "# DUBLIN 1.", 11) == 0) {
        fmt = 109;
        goto DONE;
      }
      if (strncmp(buf, "# STOCKHOLM 1.", 14) == 0) {
        fmt = 101;
        goto DONE;
      }
      if (strncmp(buf, "CLUSTAL", 7) == 0 &&
          strstr(buf, "multiple sequence alignment") != NULL) {
        fmt = 104;
        goto DONE;
      }
      if (strncmp(buf, "!!AA_MULTIPLE_ALIGNMENT", 23) == 0 ||
          strncmp(buf, "!!NA_MULTIPLE_ALIGNMENT", 23) == 0) {
        fmt = 103;
        goto DONE;
      }
      bufcpy = sre_strdup(buf, -1);
      s = bufcpy;
      if ((s1 = sre_strtok(&s, " \t\n", NULL)) != NULL &&
          (s2 = sre_strtok(&s, " \t\n", NULL)) != NULL && IsInt(s1) &&
          IsInt(s2)) {
        free(bufcpy);
        fmt = 106;
        goto DONE;
      }
      free(bufcpy);
    }
    if (strncmp(buf, "#=AU", 4) == 0 || strncmp(buf, "#=ID", 4) == 0 ||
        strncmp(buf, "#=AC", 4) == 0 || strncmp(buf, "#=DE", 4) == 0 ||
        strncmp(buf, "#=GA", 4) == 0 || strncmp(buf, "#=TC", 4) == 0 ||
        strncmp(buf, "#=NC", 4) == 0 || strncmp(buf, "#=SQ", 4) == 0 ||
        strncmp(buf, "#=SS", 4) == 0 || strncmp(buf, "#=CS", 4) == 0 ||
        strncmp(buf, "#=RF", 4) == 0) {
      fmt = 102;
      goto DONE;
    }
    if (strncmp(buf, "///", 3) == 0 || strncmp(buf, "ENTRY ", 6) == 0) {
      fmt = 12;
      goto DONE;
    }
    if ((strstr(buf, "..") != NULL) && (strstr(buf, "MSF:") != NULL) &&
        (strstr(buf, "Check:") != NULL)) {
      fmt = 103;
      goto DONE;
    }
    if (strstr(buf, " Check: ") != NULL && strstr(buf, "..") != NULL) {
      fmt = 5;
      goto DONE;
    }
    if (strncmp(buf, "LOCUS ", 6) == 0 || strncmp(buf, "ORIGIN ", 6) == 0) {
      fmt = 2;
      goto DONE;
    }
    if (strncmp(buf, "ID   ", 5) == 0 || strncmp(buf, "SQ   ", 5) == 0) {
      fmt = 4;
      goto DONE;
    }
    s = buf;
    if ((s1 = sre_strtok(&s, " \t\n", NULL)) == NULL)
      continue;
    if (strchr("#%", *s1) != NULL)
      continue;
    if ((s2 = sre_strtok(&s, " \t\n", NULL)) == NULL)
      has_junk = 1;
    if (s2 != NULL && Seqtype(s2) == 0)
      has_junk = 1;
    ndataline++;
    if (ndataline == 300)
      break;
  }
  if (ndataline == 0)
    Die("Sequence file contains no data");
  if (has_junk == 1)
    fmt = 0;
  else
    fmt = 102;
DONE:
  if (buf != NULL)
    free(buf);
  rewind(fp);
  return fmt;
}


x86 assembly (clang, -O0):
<SeqfileFormat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x18(%rbp)
movq   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x8(%rbp),%rdx
lea    -0x10(%rbp),%rdi
lea    -0x14(%rbp),%rsi
call   1080 <sre_fgets@plt>
cmp    $0x0,%rax
je     17f7 <SeqfileFormat+0x637>
mov    -0x10(%rbp),%rdi
call   10d0 <IsBlankline@plt>
cmp    $0x0,%rax
je     1223 <SeqfileFormat+0x63>
jmp    11f0 <SeqfileFormat+0x30>
cmpl   $0x0,-0x1c(%rbp)
jne    145f <SeqfileFormat+0x29f>
mov    -0x10(%rbp),%rdi
lea    0xdc8(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1272 <SeqfileFormat+0xb2>
mov    -0x10(%rbp),%rdi
lea    0xdae(%rip),%rsi
call   10e0 <strstr@plt>
cmp    $0x0,%rax
je     1272 <SeqfileFormat+0xb2>
movl   $0x10,-0x18(%rbp)
jmp    182f <SeqfileFormat+0x66f>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3e,%eax
jne    128e <SeqfileFormat+0xce>
movl   $0x7,-0x18(%rbp)
jmp    182f <SeqfileFormat+0x66f>
mov    -0x10(%rbp),%rdi
lea    0xd72(%rip),%rsi
mov    $0xd,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     12cc <SeqfileFormat+0x10c>
mov    -0x10(%rbp),%rdi
lea    0xd61(%rip),%rsi
mov    $0xd,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    12d8 <SeqfileFormat+0x118>
movl   $0x5,-0x18(%rbp)
jmp    182f <SeqfileFormat+0x66f>
mov    -0x10(%rbp),%rdi
lea    0xd44(%rip),%rsi
mov    $0xb,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1303 <SeqfileFormat+0x143>
movl   $0x6d,-0x18(%rbp)
jmp    182f <SeqfileFormat+0x66f>
mov    -0x10(%rbp),%rdi
lea    0xd25(%rip),%rsi
mov    $0xe,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    132e <SeqfileFormat+0x16e>
movl   $0x65,-0x18(%rbp)
jmp    182f <SeqfileFormat+0x66f>
mov    -0x10(%rbp),%rdi
lea    0xd09(%rip),%rsi
mov    $0x7,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1373 <SeqfileFormat+0x1b3>
mov    -0x10(%rbp),%rdi
lea    0xcf2(%rip),%rsi
call   10e0 <strstr@plt>
cmp    $0x0,%rax
je     1373 <SeqfileFormat+0x1b3>
movl   $0x68,-0x18(%rbp)
jmp    182f <SeqfileFormat+0x66f>
mov    -0x10(%rbp),%rdi
lea    0xce8(%rip),%rsi
mov    $0x17,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     13b1 <SeqfileFormat+0x1f1>
mov    -0x10(%rbp),%rdi
lea    0xce1(%rip),%rsi
mov    $0x17,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    13bd <SeqfileFormat+0x1fd>
movl   $0x67,-0x18(%rbp)
jmp    182f <SeqfileFormat+0x66f>
mov    -0x10(%rbp),%rdi
mov    $0xffffffff,%esi
call   10b0 <sre_strdup@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xcb4(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1090 <sre_strtok@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
je     1456 <SeqfileFormat+0x296>
lea    -0x30(%rbp),%rdi
lea    0xc92(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1090 <sre_strtok@plt>
mov    %rax,-0x40(%rbp)
cmp    $0x0,%rax
je     1456 <SeqfileFormat+0x296>
mov    -0x38(%rbp),%rdi
call   10c0 <IsInt@plt>
cmp    $0x0,%rax
je     1456 <SeqfileFormat+0x296>
mov    -0x40(%rbp),%rdi
call   10c0 <IsInt@plt>
cmp    $0x0,%rax
je     1456 <SeqfileFormat+0x296>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
movl   $0x6a,-0x18(%rbp)
jmp    182f <SeqfileFormat+0x66f>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x10(%rbp),%rdi
lea    0xc30(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     15b4 <SeqfileFormat+0x3f4>
mov    -0x10(%rbp),%rdi
lea    0xc16(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     15b4 <SeqfileFormat+0x3f4>
mov    -0x10(%rbp),%rdi
lea    0xbfc(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     15b4 <SeqfileFormat+0x3f4>
mov    -0x10(%rbp),%rdi
lea    0xbe2(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     15b4 <SeqfileFormat+0x3f4>
mov    -0x10(%rbp),%rdi
lea    0xbc8(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     15b4 <SeqfileFormat+0x3f4>
mov    -0x10(%rbp),%rdi
lea    0xbae(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     15b4 <SeqfileFormat+0x3f4>
mov    -0x10(%rbp),%rdi
lea    0xb94(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     15b4 <SeqfileFormat+0x3f4>
mov    -0x10(%rbp),%rdi
lea    0xb7a(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     15b4 <SeqfileFormat+0x3f4>
mov    -0x10(%rbp),%rdi
lea    0xb60(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     15b4 <SeqfileFormat+0x3f4>
mov    -0x10(%rbp),%rdi
lea    0xb46(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     15b4 <SeqfileFormat+0x3f4>
mov    -0x10(%rbp),%rdi
lea    0xb2c(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    15c0 <SeqfileFormat+0x400>
movl   $0x66,-0x18(%rbp)
jmp    182f <SeqfileFormat+0x66f>
mov    -0x10(%rbp),%rdi
lea    0xb06(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     15fe <SeqfileFormat+0x43e>
mov    -0x10(%rbp),%rdi
lea    0xaeb(%rip),%rsi
mov    $0x6,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    160a <SeqfileFormat+0x44a>
movl   $0xc,-0x18(%rbp)
jmp    182f <SeqfileFormat+0x66f>
mov    -0x10(%rbp),%rdi
lea    0xac7(%rip),%rsi
call   10e0 <strstr@plt>
cmp    $0x0,%rax
je     1664 <SeqfileFormat+0x4a4>
mov    -0x10(%rbp),%rdi
lea    0xab0(%rip),%rsi
call   10e0 <strstr@plt>
cmp    $0x0,%rax
je     1664 <SeqfileFormat+0x4a4>
mov    -0x10(%rbp),%rdi
lea    0xa9b(%rip),%rsi
call   10e0 <strstr@plt>
cmp    $0x0,%rax
je     1664 <SeqfileFormat+0x4a4>
movl   $0x67,-0x18(%rbp)
jmp    182f <SeqfileFormat+0x66f>
mov    -0x10(%rbp),%rdi
lea    0xa7c(%rip),%rsi
call   10e0 <strstr@plt>
cmp    $0x0,%rax
je     16a4 <SeqfileFormat+0x4e4>
mov    -0x10(%rbp),%rdi
lea    0xa53(%rip),%rsi
call   10e0 <strstr@plt>
cmp    $0x0,%rax
je     16a4 <SeqfileFormat+0x4e4>
movl   $0x5,-0x18(%rbp)
jmp    182f <SeqfileFormat+0x66f>
mov    -0x10(%rbp),%rdi
lea    0xa45(%rip),%rsi
mov    $0x6,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     16e2 <SeqfileFormat+0x522>
mov    -0x10(%rbp),%rdi
lea    0xa2d(%rip),%rsi
mov    $0x6,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    16ee <SeqfileFormat+0x52e>
movl   $0x2,-0x18(%rbp)
jmp    182f <SeqfileFormat+0x66f>
mov    -0x10(%rbp),%rdi
lea    0xa0a(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     172c <SeqfileFormat+0x56c>
mov    -0x10(%rbp),%rdi
lea    0x9f1(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1738 <SeqfileFormat+0x578>
movl   $0x4,-0x18(%rbp)
jmp    182f <SeqfileFormat+0x66f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    -0x30(%rbp),%rdi
lea    0x94b(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1090 <sre_strtok@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
jne    1767 <SeqfileFormat+0x5a7>
jmp    11f0 <SeqfileFormat+0x30>
mov    -0x38(%rbp),%rax
lea    0x99d(%rip),%rdi
movsbl (%rax),%esi
call   1060 <strchr@plt>
cmp    $0x0,%rax
je     1789 <SeqfileFormat+0x5c9>
jmp    11f0 <SeqfileFormat+0x30>
lea    -0x30(%rbp),%rdi
lea    0x902(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1090 <sre_strtok@plt>
mov    %rax,-0x40(%rbp)
cmp    $0x0,%rax
jne    17b2 <SeqfileFormat+0x5f2>
movl   $0x1,-0x44(%rbp)
cmpq   $0x0,-0x40(%rbp)
je     17d7 <SeqfileFormat+0x617>
mov    -0x40(%rbp),%rdi
call   1050 <Seqtype@plt>
cmp    $0x0,%rax
jne    17d7 <SeqfileFormat+0x617>
movl   $0x1,-0x44(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x12c,-0x1c(%rbp)
jne    17f2 <SeqfileFormat+0x632>
jmp    17f7 <SeqfileFormat+0x637>
jmp    11f0 <SeqfileFormat+0x30>
cmpl   $0x0,-0x1c(%rbp)
jne    180d <SeqfileFormat+0x64d>
lea    0x90a(%rip),%rdi
call   10a0 <Die@plt>
cmpl   $0x1,-0x44(%rbp)
jne    1823 <SeqfileFormat+0x663>
movl   $0x0,-0x18(%rbp)
jmp    182a <SeqfileFormat+0x66a>
movl   $0x66,-0x18(%rbp)
jmp    182f <SeqfileFormat+0x66f>
cmpq   $0x0,-0x10(%rbp)
je     1843 <SeqfileFormat+0x683>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rdi
call   1070 <rewind@plt>
mov    -0x18(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SeqfileFormat>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdi,%r14
movq   $0x0,0x8(%rsp)
movl   $0x0,0x1c(%rsp)
xor    %eax,%eax
mov    %rax,0x20(%rsp)
lea    0x8(%rsp),%rbx
lea    0x1c(%rsp),%rbp
xor    %r15d,%r15d
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r14,%rdx
call   1080 <sre_fgets@plt>
test   %rax,%rax
je     16f0 <SeqfileFormat+0x530>
mov    0x8(%rsp),%rdi
call   10d0 <IsBlankline@plt>
test   %rax,%rax
jne    11f6 <SeqfileFormat+0x36>
cmpl   $0x0,0x20(%rsp)
jne    13dd <SeqfileFormat+0x21d>
mov    0x8(%rsp),%rdi
lea    0xdcd(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
mov    0x8(%rsp),%r13
test   %rax,%rax
jne    125f <SeqfileFormat+0x9f>
mov    %r13,%rdi
lea    0xdb4(%rip),%rsi
call   10e0 <strstr@plt>
test   %rax,%rax
jne    1767 <SeqfileFormat+0x5a7>
cmpb   $0x3e,0x0(%r13)
je     173f <SeqfileFormat+0x57f>
mov    %r13,%rdi
lea    0xd97(%rip),%rsi
mov    $0xd,%edx
call   1040 <strncmp@plt>
mov    $0x5,%r12d
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xd80(%rip),%rsi
mov    $0xd,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xd6f(%rip),%rsi
mov    $0xb,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     174f <SeqfileFormat+0x58f>
mov    0x8(%rsp),%rdi
lea    0xd5c(%rip),%rsi
mov    $0xe,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1757 <SeqfileFormat+0x597>
mov    0x8(%rsp),%rdi
lea    0xd4c(%rip),%rsi
mov    $0x7,%edx
call   1040 <strncmp@plt>
mov    0x8(%rsp),%r13
test   %rax,%rax
jne    1322 <SeqfileFormat+0x162>
mov    %r13,%rdi
lea    0xd36(%rip),%rsi
call   10e0 <strstr@plt>
test   %rax,%rax
jne    176f <SeqfileFormat+0x5af>
mov    %r13,%rdi
lea    0xd3a(%rip),%rsi
mov    $0x17,%edx
call   1040 <strncmp@plt>
mov    $0x67,%r12d
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xd2d(%rip),%rsi
mov    $0x17,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    %rbx,%r13
mov    0x8(%rsp),%rdi
mov    $0xffffffff,%esi
call   10b0 <sre_strdup@plt>
mov    %rax,%rbp
mov    %rax,0x10(%rsp)
lea    0x10(%rsp),%rdi
lea    0xd0c(%rip),%rsi
xor    %edx,%edx
call   1090 <sre_strtok@plt>
test   %rax,%rax
je     13d2 <SeqfileFormat+0x212>
mov    %rax,%rbx
lea    0x10(%rsp),%rdi
lea    0xcf1(%rip),%rsi
xor    %edx,%edx
call   1090 <sre_strtok@plt>
test   %rax,%rax
je     13d2 <SeqfileFormat+0x212>
mov    %rax,%r12
mov    %rbx,%rdi
call   10c0 <IsInt@plt>
test   %rax,%rax
je     13d2 <SeqfileFormat+0x212>
mov    %r12,%rdi
call   10c0 <IsInt@plt>
test   %rax,%rax
jne    1777 <SeqfileFormat+0x5b7>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r13,%rbx
mov    0x8(%rsp),%rdi
lea    0xcb1(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
mov    $0x66,%r12d
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xc91(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xc77(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xc5d(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xc43(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xc29(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xc0f(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xbf5(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xbdb(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xbc1(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xba7(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xb8d(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
mov    $0xc,%r12d
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xb6c(%rip),%rsi
mov    $0x6,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rbp
mov    %rbp,%rdi
lea    0xb51(%rip),%rsi
call   10e0 <strstr@plt>
test   %rax,%rax
je     15d9 <SeqfileFormat+0x419>
mov    %rbp,%rdi
lea    0xb40(%rip),%rsi
call   10e0 <strstr@plt>
test   %rax,%rax
je     15c1 <SeqfileFormat+0x401>
mov    %rbp,%rdi
lea    0xb31(%rip),%rsi
call   10e0 <strstr@plt>
test   %rax,%rax
jne    175f <SeqfileFormat+0x59f>
mov    %rbp,%rdi
lea    0xb20(%rip),%rsi
call   10e0 <strstr@plt>
test   %rax,%rax
jne    1747 <SeqfileFormat+0x587>
mov    %rbp,%rdi
lea    0xb11(%rip),%rsi
mov    $0x6,%edx
call   1040 <strncmp@plt>
mov    $0x2,%r12d
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xaf3(%rip),%rsi
mov    $0x6,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
lea    0x1c(%rsp),%rbp
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xad7(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
mov    $0x4,%r12d
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rdi
lea    0xab8(%rip),%rsi
mov    $0x5,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1713 <SeqfileFormat+0x553>
mov    0x8(%rsp),%rax
mov    %rax,0x10(%rsp)
lea    0x10(%rsp),%rdi
lea    0xa1c(%rip),%rsi
xor    %edx,%edx
call   1090 <sre_strtok@plt>
test   %rax,%rax
je     11f6 <SeqfileFormat+0x36>
movsbl (%rax),%esi
lea    0xa7b(%rip),%rdi
call   1060 <strchr@plt>
test   %rax,%rax
jne    11f6 <SeqfileFormat+0x36>
lea    0x10(%rsp),%rdi
lea    0x9e8(%rip),%rsi
xor    %edx,%edx
call   1090 <sre_strtok@plt>
test   %rax,%rax
je     16d0 <SeqfileFormat+0x510>
mov    %rax,%rdi
call   1050 <Seqtype@plt>
test   %rax,%rax
mov    $0x1,%eax
cmove  %eax,%r15d
jmp    16d6 <SeqfileFormat+0x516>
mov    $0x1,%r15d
mov    0x20(%rsp),%rax
add    $0x1,%eax
mov    %rax,0x20(%rsp)
cmp    $0x12c,%eax
jne    11f6 <SeqfileFormat+0x36>
jmp    1703 <SeqfileFormat+0x543>
cmpl   $0x0,0x20(%rsp)
jne    1703 <SeqfileFormat+0x543>
lea    0xa14(%rip),%rdi
call   10a0 <Die@plt>
xor    %eax,%eax
cmp    $0x1,%r15d
mov    $0x66,%r12d
cmove  %eax,%r12d
mov    0x8(%rsp),%r13
test   %r13,%r13
je     1725 <SeqfileFormat+0x565>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1070 <rewind@plt>
mov    %r12d,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x7,%r12d
jmp    171d <SeqfileFormat+0x55d>
mov    $0x5,%r12d
jmp    1713 <SeqfileFormat+0x553>
mov    $0x6d,%r12d
jmp    1713 <SeqfileFormat+0x553>
mov    $0x65,%r12d
jmp    1713 <SeqfileFormat+0x553>
mov    $0x67,%r12d
jmp    1713 <SeqfileFormat+0x553>
mov    $0x10,%r12d
jmp    1718 <SeqfileFormat+0x558>
mov    $0x68,%r12d
jmp    1718 <SeqfileFormat+0x558>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    $0x6a,%r12d
jmp    1713 <SeqfileFormat+0x553>

LLVM IR (-O0):
@.str = [5 x i8] c">>>>\00"
@.str.1 = [6 x i8] c"Len: \00"
@.str.2 = [14 x i8] c"!!AA_SEQUENCE\00"
@.str.3 = [14 x i8] c"!!NA_SEQUENCE\00"
@.str.4 = [12 x i8] c"# DUBLIN 1.\00"
@.str.5 = [15 x i8] c"# STOCKHOLM 1.\00"
@.str.6 = [8 x i8] c"CLUSTAL\00"
@.str.7 = [28 x i8] c"multiple sequence alignment\00"
@.str.8 = [24 x i8] c"!!AA_MULTIPLE_ALIGNMENT\00"
@.str.9 = [24 x i8] c"!!NA_MULTIPLE_ALIGNMENT\00"
@.str.10 = [4 x i8] c" \09\0A\00"
@.str.11 = [5 x i8] c"#=AU\00"
@.str.12 = [5 x i8] c"#=ID\00"
@.str.13 = [5 x i8] c"#=AC\00"
@.str.14 = [5 x i8] c"#=DE\00"
@.str.15 = [5 x i8] c"#=GA\00"
@.str.16 = [5 x i8] c"#=TC\00"
@.str.17 = [5 x i8] c"#=NC\00"
@.str.18 = [5 x i8] c"#=SQ\00"
@.str.19 = [5 x i8] c"#=SS\00"
@.str.20 = [5 x i8] c"#=CS\00"
@.str.21 = [5 x i8] c"#=RF\00"
@.str.22 = [4 x i8] c"///\00"
@.str.23 = [7 x i8] c"ENTRY \00"
@.str.24 = [3 x i8] c"..\00"
@.str.25 = [5 x i8] c"MSF:\00"
@.str.26 = [7 x i8] c"Check:\00"
@.str.27 = [9 x i8] c" Check: \00"
@.str.28 = [7 x i8] c"LOCUS \00"
@.str.29 = [8 x i8] c"ORIGIN \00"
@.str.30 = [6 x i8] c"ID \00"
@.str.31 = [6 x i8] c"SQ \00"
@.str.32 = [3 x i8] c"#%\00"
@.str.33 = [31 x i8] c"Sequence file contains no data\00"
define i32 @SeqfileFormat(i32* %0) {
%2 = alloca i32*
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
store i32* %0, i32** %2
store i32 0, i32* %5
store i8* null, i8** %3
store i32 0, i32* %4
store i32 0, i32* %6
store i32 0, i32* %11
br label %12
12: ; preds = %223, %204, %198, %20, %1
%13 = load i32*, i32** %2
%14 = call i32* @sre_fgets(i8** %3, i32* %4, i32* %13)
%15 = icmp ne i32* %14, null
br i1 %15, label %16, label %224
16: ; preds = %12
%17 = load i8*, i8** %3
%18 = call i64 @IsBlankline(i8* %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %16
br label %12
21: ; preds = %16
%22 = load i32, i32* %6
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %100
24: ; preds = %21
%25 = load i8*, i8** %3
%26 = call i64 @strncmp(i8* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %24
%29 = load i8*, i8** %3
%30 = call i32* @strstr(i8* %29, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%31 = icmp ne i32* %30, null
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 16, i32* %5
br label %235
33: ; preds = %28, %24
%34 = load i8*, i8** %3
%35 = getelementptr inbounds i8, i8* %34, i64 0
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 62
br i1 %38, label %39, label %40
39: ; preds = %33
store i32 7, i32* %5
br label %235
40: ; preds = %33
%41 = load i8*, i8** %3
%42 = call i64 @strncmp(i8* %41, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 13)
%43 = icmp eq i64 %42, 0
br i1 %43, label %48, label %44
44: ; preds = %40
%45 = load i8*, i8** %3
%46 = call i64 @strncmp(i8* %45, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 13)
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %44, %40
store i32 5, i32* %5
br label %235
49: ; preds = %44
%50 = load i8*, i8** %3
%51 = call i64 @strncmp(i8* %50, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 11)
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %54
53: ; preds = %49
store i32 109, i32* %5
br label %235
54: ; preds = %49
%55 = load i8*, i8** %3
%56 = call i64 @strncmp(i8* %55, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i32 14)
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %59
58: ; preds = %54
store i32 101, i32* %5
br label %235
59: ; preds = %54
%60 = load i8*, i8** %3
%61 = call i64 @strncmp(i8* %60, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 7)
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %68
63: ; preds = %59
%64 = load i8*, i8** %3
%65 = call i32* @strstr(i8* %64, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0))
%66 = icmp ne i32* %65, null
br i1 %66, label %67, label %68
67: ; preds = %63
store i32 104, i32* %5
br label %235
68: ; preds = %63, %59
%69 = load i8*, i8** %3
%70 = call i64 @strncmp(i8* %69, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0), i32 23)
%71 = icmp eq i64 %70, 0
br i1 %71, label %76, label %72
72: ; preds = %68
%73 = load i8*, i8** %3
%74 = call i64 @strncmp(i8* %73, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i32 23)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %77
76: ; preds = %72, %68
store i32 103, i32* %5
br label %235
77: ; preds = %72
%78 = load i8*, i8** %3
%79 = call i8* @sre_strdup(i8* %78, i32 -1)
store i8* %79, i8** %7
%80 = load i8*, i8** %7
store i8* %80, i8** %8
%81 = call i8* @sre_strtok(i8** %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32* null)
store i8* %81, i8** %9
%82 = icmp ne i8* %81, null
br i1 %82, label %83, label %97
83: ; preds = %77
%84 = call i8* @sre_strtok(i8** %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32* null)
store i8* %84, i8** %10
%85 = icmp ne i8* %84, null
br i1 %85, label %86, label %97
86: ; preds = %83
%87 = load i8*, i8** %9
%88 = call i64 @IsInt(i8* %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %97
90: ; preds = %86
%91 = load i8*, i8** %10
%92 = call i64 @IsInt(i8* %91)
%93 = icmp ne i64 %92, 0
br i1 %93, label %94, label %97
94: ; preds = %90
%95 = load i8*, i8** %7
%96 = call i32 @free(i8* %95)
store i32 106, i32* %5
br label %235
97: ; preds = %90, %86, %83, %77
%98 = load i8*, i8** %7
%99 = call i32 @free(i8* %98)
br label %100
100: ; preds = %97, %21
%101 = load i8*, i8** %3
%102 = call i64 @strncmp(i8* %101, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i32 4)
%103 = icmp eq i64 %102, 0
br i1 %103, label %144, label %104
104: ; preds = %100
%105 = load i8*, i8** %3
%106 = call i64 @strncmp(i8* %105, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i32 4)
%107 = icmp eq i64 %106, 0
br i1 %107, label %144, label %108
108: ; preds = %104
%109 = load i8*, i8** %3
%110 = call i64 @strncmp(i8* %109, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i32 4)
%111 = icmp eq i64 %110, 0
br i1 %111, label %144, label %112
112: ; preds = %108
%113 = load i8*, i8** %3
%114 = call i64 @strncmp(i8* %113, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i32 4)
%115 = icmp eq i64 %114, 0
br i1 %115, label %144, label %116
116: ; preds = %112
%117 = load i8*, i8** %3
%118 = call i64 @strncmp(i8* %117, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i32 4)
%119 = icmp eq i64 %118, 0
br i1 %119, label %144, label %120
120: ; preds = %116
%121 = load i8*, i8** %3
%122 = call i64 @strncmp(i8* %121, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i32 4)
%123 = icmp eq i64 %122, 0
br i1 %123, label %144, label %124
124: ; preds = %120
%125 = load i8*, i8** %3
%126 = call i64 @strncmp(i8* %125, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i32 4)
%127 = icmp eq i64 %126, 0
br i1 %127, label %144, label %128
128: ; preds = %124
%129 = load i8*, i8** %3
%130 = call i64 @strncmp(i8* %129, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), i32 4)
%131 = icmp eq i64 %130, 0
br i1 %131, label %144, label %132
132: ; preds = %128
%133 = load i8*, i8** %3
%134 = call i64 @strncmp(i8* %133, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 4)
%135 = icmp eq i64 %134, 0
br i1 %135, label %144, label %136
136: ; preds = %132
%137 = load i8*, i8** %3
%138 = call i64 @strncmp(i8* %137, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i32 4)
%139 = icmp eq i64 %138, 0
br i1 %139, label %144, label %140
140: ; preds = %136
%141 = load i8*, i8** %3
%142 = call i64 @strncmp(i8* %141, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i32 4)
%143 = icmp eq i64 %142, 0
br i1 %143, label %144, label %145
144: ; preds = %140, %136, %132, %128, %124, %120, %116, %112, %108, %104, %100
store i32 102, i32* %5
br label %235
145: ; preds = %140
%146 = load i8*, i8** %3
%147 = call i64 @strncmp(i8* %146, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), i32 3)
%148 = icmp eq i64 %147, 0
br i1 %148, label %153, label %149
149: ; preds = %145
%150 = load i8*, i8** %3
%151 = call i64 @strncmp(i8* %150, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0), i32 6)
%152 = icmp eq i64 %151, 0
br i1 %152, label %153, label %154
153: ; preds = %149, %145
store i32 12, i32* %5
br label %235
154: ; preds = %149
%155 = load i8*, i8** %3
%156 = call i32* @strstr(i8* %155, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.24, i64 0, i64 0))
%157 = icmp ne i32* %156, null
br i1 %157, label %158, label %167
158: ; preds = %154
%159 = load i8*, i8** %3
%160 = call i32* @strstr(i8* %159, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0))
%161 = icmp ne i32* %160, null
br i1 %161, label %162, label %167
162: ; preds = %158
%163 = load i8*, i8** %3
%164 = call i32* @strstr(i8* %163, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0))
%165 = icmp ne i32* %164, null
br i1 %165, label %166, label %167
166: ; preds = %162
store i32 103, i32* %5
br label %235
167: ; preds = %162, %158, %154
%168 = load i8*, i8** %3
%169 = call i32* @strstr(i8* %168, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.27, i64 0, i64 0))
%170 = icmp ne i32* %169, null
br i1 %170, label %171, label %176
171: ; preds = %167
%172 = load i8*, i8** %3
%173 = call i32* @strstr(i8* %172, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.24, i64 0, i64 0))
%174 = icmp ne i32* %173, null
br i1 %174, label %175, label %176
175: ; preds = %171
store i32 5, i32* %5
br label %235
176: ; preds = %171, %167
%177 = load i8*, i8** %3
%178 = call i64 @strncmp(i8* %177, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0), i32 6)
%179 = icmp eq i64 %178, 0
br i1 %179, label %184, label %180
180: ; preds = %176
%181 = load i8*, i8** %3
%182 = call i64 @strncmp(i8* %181, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.29, i64 0, i64 0), i32 6)
%183 = icmp eq i64 %182, 0
br i1 %183, label %184, label %185
184: ; preds = %180, %176
store i32 2, i32* %5
br label %235
185: ; preds = %180
%186 = load i8*, i8** %3
%187 = call i64 @strncmp(i8* %186, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0), i32 5)
%188 = icmp eq i64 %187, 0
br i1 %188, label %193, label %189
189: ; preds = %185
%190 = load i8*, i8** %3
%191 = call i64 @strncmp(i8* %190, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.31, i64 0, i64 0), i32 5)
%192 = icmp eq i64 %191, 0
br i1 %192, label %193, label %194
193: ; preds = %189, %185
store i32 4, i32* %5
br label %235
194: ; preds = %189
%195 = load i8*, i8** %3
store i8* %195, i8** %8
%196 = call i8* @sre_strtok(i8** %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32* null)
store i8* %196, i8** %9
%197 = icmp eq i8* %196, null
br i1 %197, label %198, label %199
198: ; preds = %194
br label %12
199: ; preds = %194
%200 = load i8*, i8** %9
%201 = load i8, i8* %200
%202 = call i32* @strchr(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.32, i64 0, i64 0), i8 signext %201)
%203 = icmp ne i32* %202, null
br i1 %203, label %204, label %205
204: ; preds = %199
br label %12
205: ; preds = %199
%206 = call i8* @sre_strtok(i8** %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32* null)
store i8* %206, i8** %10
%207 = icmp eq i8* %206, null
br i1 %207, label %208, label %209
208: ; preds = %205
store i32 1, i32* %11
br label %209
209: ; preds = %208, %205
%210 = load i8*, i8** %10
%211 = icmp ne i8* %210, null
br i1 %211, label %212, label %217
212: ; preds = %209
%213 = load i8*, i8** %10
%214 = call i64 @Seqtype(i8* %213)
%215 = icmp eq i64 %214, 0
br i1 %215, label %216, label %217
216: ; preds = %212
store i32 1, i32* %11
br label %217
217: ; preds = %216, %212, %209
%218 = load i32, i32* %6
%219 = add nsw i32 %218, 1
store i32 %219, i32* %6
%220 = load i32, i32* %6
%221 = icmp eq i32 %220, 300
br i1 %221, label %222, label %223
222: ; preds = %217
br label %224
223: ; preds = %217
br label %12
224: ; preds = %222, %12
%225 = load i32, i32* %6
%226 = icmp eq i32 %225, 0
br i1 %226, label %227, label %229
227: ; preds = %224
%228 = call i32 @Die(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.33, i64 0, i64 0))
br label %229
229: ; preds = %227, %224
%230 = load i32, i32* %11
%231 = icmp eq i32 %230, 1
br i1 %231, label %232, label %233
232: ; preds = %229
store i32 0, i32* %5
br label %234
233: ; preds = %229
store i32 102, i32* %5
br label %234
234: ; preds = %233, %232
br label %235
235: ; preds = %234, %193, %184, %175, %166, %153, %144, %94, %76, %67, %58, %53, %48, %39, %32
%236 = load i8*, i8** %3
%237 = icmp ne i8* %236, null
br i1 %237, label %238, label %241
238: ; preds = %235
%239 = load i8*, i8** %3
%240 = call i32 @free(i8* %239)
br label %241
241: ; preds = %238, %235
%242 = load i32*, i32** %2
%243 = call i32 @rewind(i32* %242)
%244 = load i32, i32* %5
ret i32 %244
}

LLVM IR (-O2):
@.str = [5 x i8] c">>>>\00"
@.str.1 = [6 x i8] c"Len: \00"
@.str.2 = [14 x i8] c"!!AA_SEQUENCE\00"
@.str.3 = [14 x i8] c"!!NA_SEQUENCE\00"
@.str.4 = [12 x i8] c"# DUBLIN 1.\00"
@.str.5 = [15 x i8] c"# STOCKHOLM 1.\00"
@.str.6 = [8 x i8] c"CLUSTAL\00"
@.str.7 = [28 x i8] c"multiple sequence alignment\00"
@.str.8 = [24 x i8] c"!!AA_MULTIPLE_ALIGNMENT\00"
@.str.9 = [24 x i8] c"!!NA_MULTIPLE_ALIGNMENT\00"
@.str.10 = [4 x i8] c" \09\0A\00"
@.str.11 = [5 x i8] c"#=AU\00"
@.str.12 = [5 x i8] c"#=ID\00"
@.str.13 = [5 x i8] c"#=AC\00"
@.str.14 = [5 x i8] c"#=DE\00"
@.str.15 = [5 x i8] c"#=GA\00"
@.str.16 = [5 x i8] c"#=TC\00"
@.str.17 = [5 x i8] c"#=NC\00"
@.str.18 = [5 x i8] c"#=SQ\00"
@.str.19 = [5 x i8] c"#=SS\00"
@.str.20 = [5 x i8] c"#=CS\00"
@.str.21 = [5 x i8] c"#=RF\00"
@.str.22 = [4 x i8] c"///\00"
@.str.23 = [7 x i8] c"ENTRY \00"
@.str.24 = [3 x i8] c"..\00"
@.str.25 = [5 x i8] c"MSF:\00"
@.str.26 = [7 x i8] c"Check:\00"
@.str.27 = [9 x i8] c" Check: \00"
@.str.28 = [7 x i8] c"LOCUS \00"
@.str.29 = [8 x i8] c"ORIGIN \00"
@.str.30 = [6 x i8] c"ID \00"
@.str.31 = [6 x i8] c"SQ \00"
@.str.32 = [3 x i8] c"#%\00"
@.str.33 = [31 x i8] c"Sequence file contains no data\00"
define i32 @SeqfileFormat(i32* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i8*
%5 = bitcast i8** %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = bitcast i8** %4 to i8*
store i8* null, i8** %2
store i32 0, i32* %3
br label %8
8: ; preds = %177, %1
%9 = phi i32 [ %179, %177 ], [ 0, %1 ]
%10 = phi i32 [ %178, %177 ], [ 0, %1 ]
%11 = call i32* @sre_fgets(i8** %2, i32* %3, i32* %0)
%12 = icmp eq i32* %11, null
br i1 %12, label %181, label %13
13: ; preds = %8
%14 = icmp eq i32 %9, 0
br label %15
15: ; preds = %13, %19
%16 = load i8*, i8** %2
%17 = call i64 @IsBlankline(i8* %16)
%18 = icmp eq i64 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %15, %162, %166
%20 = call i32* @sre_fgets(i8** %2, i32* %3, i32* %0)
%21 = icmp eq i32* %20, null
br i1 %21, label %181, label %15
22: ; preds = %15
br i1 %14, label %23, label %82
23: ; preds = %22
%24 = load i8*, i8** %2
%25 = call i64 @strncmp(i8* %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%26 = icmp eq i64 %25, 0
%27 = load i8*, i8** %2
br i1 %26, label %28, label %31
28: ; preds = %23
%29 = call i32* @strstr(i8* dereferenceable(1) %27, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%30 = icmp eq i32* %29, null
br i1 %30, label %31, label %192
31: ; preds = %23, %28
%32 = load i8, i8* %27
%33 = icmp eq i8 %32, 62
br i1 %33, label %196, label %34
34: ; preds = %31
%35 = call i64 @strncmp(i8* %27, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 13)
%36 = icmp eq i64 %35, 0
br i1 %36, label %189, label %37
37: ; preds = %34
%38 = load i8*, i8** %2
%39 = call i64 @strncmp(i8* %38, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 13)
%40 = icmp eq i64 %39, 0
br i1 %40, label %189, label %41
41: ; preds = %37
%42 = load i8*, i8** %2
%43 = call i64 @strncmp(i8* %42, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 11)
%44 = icmp eq i64 %43, 0
br i1 %44, label %189, label %45
45: ; preds = %41
%46 = load i8*, i8** %2
%47 = call i64 @strncmp(i8* %46, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i32 14)
%48 = icmp eq i64 %47, 0
br i1 %48, label %189, label %49
49: ; preds = %45
%50 = load i8*, i8** %2
%51 = call i64 @strncmp(i8* %50, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 7)
%52 = icmp eq i64 %51, 0
%53 = load i8*, i8** %2
br i1 %52, label %54, label %57
54: ; preds = %49
%55 = call i32* @strstr(i8* dereferenceable(1) %53, i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0))
%56 = icmp eq i32* %55, null
br i1 %56, label %57, label %192
57: ; preds = %49, %54
%58 = call i64 @strncmp(i8* %53, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0), i32 23)
%59 = icmp eq i64 %58, 0
br i1 %59, label %189, label %60
60: ; preds = %57
%61 = load i8*, i8** %2
%62 = call i64 @strncmp(i8* %61, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i32 23)
%63 = icmp eq i64 %62, 0
br i1 %63, label %189, label %64
64: ; preds = %60
%65 = load i8*, i8** %2
%66 = call i8* @sre_strdup(i8* %65, i32 -1)
store i8* %66, i8** %4
%67 = call i8* @sre_strtok(i8** %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32* null)
%68 = icmp eq i8* %67, null
br i1 %68, label %80, label %69
69: ; preds = %64
%70 = call i8* @sre_strtok(i8** %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32* null)
%71 = icmp eq i8* %70, null
br i1 %71, label %80, label %72
72: ; preds = %69
%73 = call i64 @IsInt(i8* %67)
%74 = icmp eq i64 %73, 0
br i1 %74, label %80, label %75
75: ; preds = %72
%76 = call i64 @IsInt(i8* %70)
%77 = icmp eq i64 %76, 0
br i1 %77, label %80, label %78
78: ; preds = %75
%79 = call i32 @free(i8* %66)
br label %189
80: ; preds = %75, %72, %69, %64
%81 = call i32 @free(i8* %66)
br label %82
82: ; preds = %80, %22
%83 = load i8*, i8** %2
%84 = call i64 @strncmp(i8* %83, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i32 4)
%85 = icmp eq i64 %84, 0
br i1 %85, label %189, label %86
86: ; preds = %82
%87 = load i8*, i8** %2
%88 = call i64 @strncmp(i8* %87, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i32 4)
%89 = icmp eq i64 %88, 0
br i1 %89, label %189, label %90
90: ; preds = %86
%91 = load i8*, i8** %2
%92 = call i64 @strncmp(i8* %91, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i32 4)
%93 = icmp eq i64 %92, 0
br i1 %93, label %189, label %94
94: ; preds = %90
%95 = load i8*, i8** %2
%96 = call i64 @strncmp(i8* %95, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i32 4)
%97 = icmp eq i64 %96, 0
br i1 %97, label %189, label %98
98: ; preds = %94
%99 = load i8*, i8** %2
%100 = call i64 @strncmp(i8* %99, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i32 4)
%101 = icmp eq i64 %100, 0
br i1 %101, label %189, label %102
102: ; preds = %98
%103 = load i8*, i8** %2
%104 = call i64 @strncmp(i8* %103, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i32 4)
%105 = icmp eq i64 %104, 0
br i1 %105, label %189, label %106
106: ; preds = %102
%107 = load i8*, i8** %2
%108 = call i64 @strncmp(i8* %107, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i32 4)
%109 = icmp eq i64 %108, 0
br i1 %109, label %189, label %110
110: ; preds = %106
%111 = load i8*, i8** %2
%112 = call i64 @strncmp(i8* %111, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), i32 4)
%113 = icmp eq i64 %112, 0
br i1 %113, label %189, label %114
114: ; preds = %110
%115 = load i8*, i8** %2
%116 = call i64 @strncmp(i8* %115, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 4)
%117 = icmp eq i64 %116, 0
br i1 %117, label %189, label %118
118: ; preds = %114
%119 = load i8*, i8** %2
%120 = call i64 @strncmp(i8* %119, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i32 4)
%121 = icmp eq i64 %120, 0
br i1 %121, label %189, label %122
122: ; preds = %118
%123 = load i8*, i8** %2
%124 = call i64 @strncmp(i8* %123, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i32 4)
%125 = icmp eq i64 %124, 0
br i1 %125, label %189, label %126
126: ; preds = %122
%127 = load i8*, i8** %2
%128 = call i64 @strncmp(i8* %127, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), i32 3)
%129 = icmp eq i64 %128, 0
br i1 %129, label %189, label %130
130: ; preds = %126
%131 = load i8*, i8** %2
%132 = call i64 @strncmp(i8* %131, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0), i32 6)
%133 = icmp eq i64 %132, 0
br i1 %133, label %189, label %134
134: ; preds = %130
%135 = load i8*, i8** %2
%136 = call i32* @strstr(i8* dereferenceable(1) %135, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.24, i64 0, i64 0))
%137 = icmp eq i32* %136, null
br i1 %137, label %147, label %138
138: ; preds = %134
%139 = call i32* @strstr(i8* dereferenceable(1) %135, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0))
%140 = icmp eq i32* %139, null
br i1 %140, label %144, label %141
141: ; preds = %138
%142 = call i32* @strstr(i8* dereferenceable(1) %135, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0))
%143 = icmp eq i32* %142, null
br i1 %143, label %144, label %189
144: ; preds = %141, %138
%145 = call i32* @strstr(i8* dereferenceable(1) %135, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.27, i64 0, i64 0))
%146 = icmp eq i32* %145, null
br i1 %146, label %147, label %189
147: ; preds = %144, %134
%148 = call i64 @strncmp(i8* %135, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0), i32 6)
%149 = icmp eq i64 %148, 0
br i1 %149, label %189, label %150
150: ; preds = %147
%151 = load i8*, i8** %2
%152 = call i64 @strncmp(i8* %151, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.29, i64 0, i64 0), i32 6)
%153 = icmp eq i64 %152, 0
br i1 %153, label %189, label %154
154: ; preds = %150
%155 = load i8*, i8** %2
%156 = call i64 @strncmp(i8* %155, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0), i32 5)
%157 = icmp eq i64 %156, 0
br i1 %157, label %189, label %158
158: ; preds = %154
%159 = load i8*, i8** %2
%160 = call i64 @strncmp(i8* %159, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.31, i64 0, i64 0), i32 5)
%161 = icmp eq i64 %160, 0
br i1 %161, label %189, label %162
162: ; preds = %158
%163 = load i8*, i8** %2
store i8* %163, i8** %4
%164 = call i8* @sre_strtok(i8** %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32* null)
%165 = icmp eq i8* %164, null
br i1 %165, label %19, label %166
166: ; preds = %162
%167 = load i8, i8* %164
%168 = call i32* @strchr(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.32, i64 0, i64 0), i8 signext %167)
%169 = icmp eq i32* %168, null
br i1 %169, label %170, label %19
170: ; preds = %166
%171 = call i8* @sre_strtok(i8** %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32* null)
%172 = icmp eq i8* %171, null
br i1 %172, label %177, label %173
173: ; preds = %170
%174 = call i64 @Seqtype(i8* %171)
%175 = icmp eq i64 %174, 0
%176 = select i1 %175, i32 1, i32 %10
br label %177
177: ; preds = %173, %170
%178 = phi i32 [ 1, %170 ], [ %176, %173 ]
%179 = add nuw nsw i32 %9, 1
%180 = icmp eq i32 %179, 300
br i1 %180, label %185, label %8
181: ; preds = %8, %19
%182 = icmp eq i32 %9, 0
br i1 %182, label %183, label %185
183: ; preds = %181
%184 = call i32 @Die(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.33, i64 0, i64 0))
br label %185
185: ; preds = %177, %183, %181
%186 = phi i32 [ %10, %183 ], [ %10, %181 ], [ %178, %177 ]
%187 = icmp eq i32 %186, 1
%188 = select i1 %187, i32 0, i32 102
br label %189
189: ; preds = %144, %37, %34, %41, %45, %60, %57, %122, %118, %114, %110, %106, %102, %98, %94, %90, %86, %82, %130, %126, %141, %150, %147, %158, %154, %78, %185
%190 = phi i32 [ %188, %185 ], [ 106, %78 ], [ 5, %144 ], [ 5, %37 ], [ 5, %34 ], [ 109, %41 ], [ 101, %45 ], [ 103, %60 ], [ 103, %57 ], [ 102, %122 ], [ 102, %118 ], [ 102, %114 ], [ 102, %110 ], [ 102, %106 ], [ 102, %102 ], [ 102, %98 ], [ 102, %94 ], [ 102, %90 ], [ 102, %86 ], [ 102, %82 ], [ 12, %130 ], [ 12, %126 ], [ 103, %141 ], [ 2, %150 ], [ 2, %147 ], [ 4, %158 ], [ 4, %154 ]
%191 = load i8*, i8** %2
br label %192
192: ; preds = %54, %28, %189
%193 = phi i8* [ %191, %189 ], [ %27, %28 ], [ %53, %54 ]
%194 = phi i32 [ %190, %189 ], [ 16, %28 ], [ 104, %54 ]
%195 = icmp eq i8* %193, null
br i1 %195, label %200, label %196
196: ; preds = %31, %192
%197 = phi i32 [ %194, %192 ], [ 7, %31 ]
%198 = phi i8* [ %193, %192 ], [ %27, %31 ]
%199 = call i32 @free(i8* %198)
br label %200
200: ; preds = %196, %192
%201 = phi i32 [ %197, %196 ], [ %194, %192 ]
%202 = call i32 @rewind(i32* %0)
ret i32 %201
}