#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stdout;
int displayHelp() {
  fprintf(stdout, "\n");
  fprintf(stdout, "Description of filterfasta program\n");
  fprintf(stdout, "----------------------------------\n");
  fprintf(stdout,
          "NORMAL MODE:   parses sequences from a query (ungapped) FASTA file "
          "and writes the sequences to an output FASTA file\n\n");
  fprintf(stdout, "PIPELINE MODE: use a BLAST results file in tabular form to "
                  "parse hit sequences from the FASTA database used and write "
                  "the sequences to output FASTA files\n\n");
  fprintf(stdout, "\n");
  fprintf(stdout, "Help menu of filterfasta program\n");
  fprintf(stdout, "--------------------------------\n");
  fprintf(stdout, "Usage: filterfasta -q INFILE [-h] [-v] [-o OUTFILE] [-c "
                  "SEQCOUNT] [-l SEQLEN | -l SEQLEN1:SEQLEN2] [-a ANNOTCOUNT] "
                  "[-b BYTESLIMIT] [-t BLASTTABLE -p PIPEPROG]\n\n");
  fprintf(stdout, "-q, --query=INFILE      input query FASTA file\n");
  fprintf(stdout, "-h, --help              display this help menu\n");
  fprintf(stdout, "-v, --verbose           display processing info\n");
  fprintf(stdout, "-o, --output=OUTFILE    output FASTA file\n");
  fprintf(stdout, "-c, --count=SEQCOUNT    number of sequences to extract from "
                  "query file\n");
  fprintf(stdout,
          "-l, --length=SEQLEN     exact length of sequences to extract\n");
  fprintf(
      stdout,
      "-l, --length=SEQLEN1:SEQLEN2  range length of sequences to extract\n");
  fprintf(stdout, "-a, --annot=ANNOTCOUNT  number of in-order fields in "
                  "annotations to extract\n");
  fprintf(stdout, "-b, --bytes=BYTESLIMIT  upper bound size for output file\n");
  fprintf(stdout,
          "-t, --table=BLASTTABLE  input BLAST results file in tabular form\n");
  fprintf(stdout,
          "-p, --pipe=PIPEPROG     pipeline program (1 = HMMER, 2 = MUSCLE)\n");
  fprintf(stdout, "\n");
  exit(0);
  return 0;
}


x86 assembly (clang, -O0):
<displayHelp>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0x10e7(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
lea    0xeb7(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e8b(%rip),%rax
mov    (%rax),%edi
lea    0xec6(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e76(%rip),%rax
mov    (%rax),%edi
lea    0xed5(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
lea    0xf36(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e4c(%rip),%rax
mov    (%rax),%edi
lea    0x107e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e37(%rip),%rax
mov    (%rax),%edi
lea    0xfa8(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%edi
lea    0xe5f(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
lea    0xfa0(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2df8(%rip),%rax
mov    (%rax),%edi
lea    0x102c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2de3(%rip),%rax
mov    (%rax),%edi
lea    0x1047(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
lea    0x1062(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2db9(%rip),%rax
mov    (%rax),%edi
lea    0x107e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2da4(%rip),%rax
mov    (%rax),%edi
lea    0x1094(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d8f(%rip),%rax
mov    (%rax),%edi
lea    0x10c7(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d7a(%rip),%rax
mov    (%rax),%edi
lea    0x10f0(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d65(%rip),%rax
mov    (%rax),%edi
lea    0x111f(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d50(%rip),%rax
mov    (%rax),%edi
lea    0x1157(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d3b(%rip),%rax
mov    (%rax),%edi
lea    0x117c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d26(%rip),%rax
mov    (%rax),%edi
lea    0x11a9(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d11(%rip),%rax
mov    (%rax),%edi
lea    0xf43(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<displayHelp>:
push   %r14
push   %rbx
push   %rax
mov    0x2eb5(%rip),%rbx
mov    (%rbx),%edi
lea    0x10e7(%rip),%r14
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xebb(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xed1(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xee7(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf4f(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfd3(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe91(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfd9(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x106c(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x108e(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10b0(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10d3(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10f0(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x112a(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x115a(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1190(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x11cf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x11fb(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x122f(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [2 x i8] c"\0A\00"
@.str.1 = [36 x i8] c"Description of filterfasta program\0A\00"
@.str.2 = [36 x i8] c"----------------------------------\0A\00"
@.str.3 = [118 x i8] c"NORMAL MODE: parses sequences from a query (ungapped) FASTA file and writes the sequences to an output FASTA file\0A\0A\00"
@.str.4 = [156 x i8] c"PIPELINE MODE: use a BLAST results file in tabular form to parse hit sequences from the FASTA database used and write the sequences to output FASTA files\0A\0A\00"
@.str.5 = [34 x i8] c"Help menu of filterfasta program\0A\00"
@.str.6 = [34 x i8] c"--------------------------------\0A\00"
@.str.7 = [161 x i8] c"Usage: filterfasta -q INFILE [-h] [-v] [-o OUTFILE] [-c SEQCOUNT] [-l SEQLEN | -l SEQLEN1:SEQLEN2] [-a ANNOTCOUNT] [-b BYTESLIMIT] [-t BLASTTABLE -p PIPEPROG]\0A\0A\00"
@.str.8 = [48 x i8] c"-q, --query=INFILE input query FASTA file\0A\00"
@.str.9 = [48 x i8] c"-h, --help display this help menu\0A\00"
@.str.10 = [49 x i8] c"-v, --verbose display processing info\0A\00"
@.str.11 = [43 x i8] c"-o, --output=OUTFILE output FASTA file\0A\00"
@.str.12 = [72 x i8] c"-c, --count=SEQCOUNT number of sequences to extract from query file\0A\00"
@.str.13 = [62 x i8] c"-l, --length=SEQLEN exact length of sequences to extract\0A\00"
@.str.14 = [68 x i8] c"-l, --length=SEQLEN1:SEQLEN2 range length of sequences to extract\0A\00"
@.str.15 = [77 x i8] c"-a, --annot=ANNOTCOUNT number of in-order fields in annotations to extract\0A\00"
@.str.16 = [58 x i8] c"-b, --bytes=BYTESLIMIT upper bound size for output file\0A\00"
@.str.17 = [66 x i8] c"-t, --table=BLASTTABLE input BLAST results file in tabular form\0A\00"
@.str.18 = [66 x i8] c"-p, --pipe=PIPEPROG pipeline program (1 = HMMER, 2 = MUSCLE)\0A\00"
define i32 @displayHelp() {
%1 = load i32, i32* @stdout
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stdout
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stdout
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stdout
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([118 x i8], [118 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stdout
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stdout
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%13 = load i32, i32* @stdout
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%15 = load i32, i32* @stdout
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%17 = load i32, i32* @stdout
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.7, i64 0, i64 0))
%19 = load i32, i32* @stdout
%20 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%21 = load i32, i32* @stdout
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.9, i64 0, i64 0))
%23 = load i32, i32* @stdout
%24 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0))
%25 = load i32, i32* @stdout
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%27 = load i32, i32* @stdout
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.12, i64 0, i64 0))
%29 = load i32, i32* @stdout
%30 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.13, i64 0, i64 0))
%31 = load i32, i32* @stdout
%32 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.14, i64 0, i64 0))
%33 = load i32, i32* @stdout
%34 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.15, i64 0, i64 0))
%35 = load i32, i32* @stdout
%36 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.16, i64 0, i64 0))
%37 = load i32, i32* @stdout
%38 = call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.17, i64 0, i64 0))
%39 = load i32, i32* @stdout
%40 = call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.18, i64 0, i64 0))
%41 = load i32, i32* @stdout
%42 = call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%43 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [2 x i8] c"\0A\00"
@.str.1 = [36 x i8] c"Description of filterfasta program\0A\00"
@.str.2 = [36 x i8] c"----------------------------------\0A\00"
@.str.3 = [118 x i8] c"NORMAL MODE: parses sequences from a query (ungapped) FASTA file and writes the sequences to an output FASTA file\0A\0A\00"
@.str.4 = [156 x i8] c"PIPELINE MODE: use a BLAST results file in tabular form to parse hit sequences from the FASTA database used and write the sequences to output FASTA files\0A\0A\00"
@.str.5 = [34 x i8] c"Help menu of filterfasta program\0A\00"
@.str.6 = [34 x i8] c"--------------------------------\0A\00"
@.str.7 = [161 x i8] c"Usage: filterfasta -q INFILE [-h] [-v] [-o OUTFILE] [-c SEQCOUNT] [-l SEQLEN | -l SEQLEN1:SEQLEN2] [-a ANNOTCOUNT] [-b BYTESLIMIT] [-t BLASTTABLE -p PIPEPROG]\0A\0A\00"
@.str.8 = [48 x i8] c"-q, --query=INFILE input query FASTA file\0A\00"
@.str.9 = [48 x i8] c"-h, --help display this help menu\0A\00"
@.str.10 = [49 x i8] c"-v, --verbose display processing info\0A\00"
@.str.11 = [43 x i8] c"-o, --output=OUTFILE output FASTA file\0A\00"
@.str.12 = [72 x i8] c"-c, --count=SEQCOUNT number of sequences to extract from query file\0A\00"
@.str.13 = [62 x i8] c"-l, --length=SEQLEN exact length of sequences to extract\0A\00"
@.str.14 = [68 x i8] c"-l, --length=SEQLEN1:SEQLEN2 range length of sequences to extract\0A\00"
@.str.15 = [77 x i8] c"-a, --annot=ANNOTCOUNT number of in-order fields in annotations to extract\0A\00"
@.str.16 = [58 x i8] c"-b, --bytes=BYTESLIMIT upper bound size for output file\0A\00"
@.str.17 = [66 x i8] c"-t, --table=BLASTTABLE input BLAST results file in tabular form\0A\00"
@.str.18 = [66 x i8] c"-p, --pipe=PIPEPROG pipeline program (1 = HMMER, 2 = MUSCLE)\0A\00"
define i32 @displayHelp() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stdout
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stdout
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stdout
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([118 x i8], [118 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stdout
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stdout
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%13 = load i32, i32* @stdout
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%15 = load i32, i32* @stdout
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%17 = load i32, i32* @stdout
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([161 x i8], [161 x i8]* @.str.7, i64 0, i64 0))
%19 = load i32, i32* @stdout
%20 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%21 = load i32, i32* @stdout
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.9, i64 0, i64 0))
%23 = load i32, i32* @stdout
%24 = tail call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0))
%25 = load i32, i32* @stdout
%26 = tail call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%27 = load i32, i32* @stdout
%28 = tail call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.12, i64 0, i64 0))
%29 = load i32, i32* @stdout
%30 = tail call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.13, i64 0, i64 0))
%31 = load i32, i32* @stdout
%32 = tail call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.14, i64 0, i64 0))
%33 = load i32, i32* @stdout
%34 = tail call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.15, i64 0, i64 0))
%35 = load i32, i32* @stdout
%36 = tail call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.16, i64 0, i64 0))
%37 = load i32, i32* @stdout
%38 = tail call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.17, i64 0, i64 0))
%39 = load i32, i32* @stdout
%40 = tail call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.18, i64 0, i64 0))
%41 = load i32, i32* @stdout
%42 = tail call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%43 = tail call i32 @exit(i32 0)
unreachable
}