#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 */
char *basename(char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stdout;
char *strdup(char *);
void displayUsage(char *parent) {
  char *app;
  char *path = strdup(parent);
  app = basename(path);
  fprintf(stdout, "\n%s v%0.1f\n", app, 0.2);
  fprintf(stdout,
          "Usage: %s [readkmerlist] [refkmerlist_1] [refkmerlist_2] ... "
          "[refkmerlist_n]\n",
          app);
  fprintf(stdout, " [refkmerlist]       - File containing a list of sorted "
                  "kmers. This is generate off of a fastq\n");
  fprintf(stdout, "                     - file (reads) and used to investigate "
                  "similarities against the set of\n");
  fprintf(stdout, "                     - reference genomes\n");
  fprintf(stdout, " [refkmerlist_1,2,n] - List of files containing sorted "
                  "kmers. These files are the reference\n");
  fprintf(stdout, "                     - genomes used to compare against the "
                  "first kmer list (reads)\n");
}


x86 assembly (clang, -O0):
<displayUsage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <strdup@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <basename@plt>
mov    %rax,-0x10(%rbp)
mov    0x2e83(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe9e(%rip),%rsi
movsd  0xe8e(%rip),%xmm0
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    0x2e60(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe87(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e45(%rip),%rax
mov    (%rax),%edi
lea    0xebe(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e2e(%rip),%rax
mov    (%rax),%edi
lea    0xf07(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e17(%rip),%rax
mov    (%rax),%edi
lea    0xf4d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e00(%rip),%rax
mov    (%rax),%edi
lea    0xf60(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2de9(%rip),%rax
mov    (%rax),%edi
lea    0xfa6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<displayUsage>:
push   %r14
push   %rbx
push   %rax
call   1050 <strdup@plt>
mov    %rax,%rdi
call   1040 <basename@plt>
mov    %rax,%rbx
mov    0x2e95(%rip),%r14
mov    (%r14),%edi
lea    0xeb3(%rip),%rsi
movsd  0xea3(%rip),%xmm0
mov    %rax,%rdx
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xea3(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xedd(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xf2c(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xf78(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xf91(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xfdd(%rip),%rsi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [12 x i8] c"\0A%s v%0.1f\0A\00"
@.str.1 = [78 x i8] c"Usage: %s [readkmerlist] [refkmerlist_1] [refkmerlist_2] ... [refkmerlist_n]\0A\00"
@.str.2 = [96 x i8] c" [refkmerlist] - File containing a list of sorted kmers. This is generate off of a fastq\0A\00"
@.str.3 = [93 x i8] c" - file (reads) and used to investigate similarities against the set of\0A\00"
@.str.4 = [42 x i8] c" - reference genomes\0A\00"
@.str.5 = [93 x i8] c" [refkmerlist_1,2,n] - List of files containing sorted kmers. These files are the reference\0A\00"
@.str.6 = [84 x i8] c" - genomes used to compare against the first kmer list (reads)\0A\00"
define void @displayUsage(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i8* @strdup(i8* %5)
store i8* %6, i8** %4
%7 = load i8*, i8** %4
%8 = call i8* @basename(i8* %7)
store i8* %8, i8** %3
%9 = load i32, i32* @stdout
%10 = load i8*, i8** %3
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %10, double 2.000000e-01)
%12 = load i32, i32* @stdout
%13 = load i8*, i8** %3
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.1, i64 0, i64 0), i8* %13)
%15 = load i32, i32* @stdout
%16 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.2, i64 0, i64 0))
%17 = load i32, i32* @stdout
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.3, i64 0, i64 0))
%19 = load i32, i32* @stdout
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
%21 = load i32, i32* @stdout
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.5, i64 0, i64 0))
%23 = load i32, i32* @stdout
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [12 x i8] c"\0A%s v%0.1f\0A\00"
@.str.1 = [78 x i8] c"Usage: %s [readkmerlist] [refkmerlist_1] [refkmerlist_2] ... [refkmerlist_n]\0A\00"
@.str.2 = [96 x i8] c" [refkmerlist] - File containing a list of sorted kmers. This is generate off of a fastq\0A\00"
@.str.3 = [93 x i8] c" - file (reads) and used to investigate similarities against the set of\0A\00"
@.str.4 = [42 x i8] c" - reference genomes\0A\00"
@.str.5 = [93 x i8] c" [refkmerlist_1,2,n] - List of files containing sorted kmers. These files are the reference\0A\00"
@.str.6 = [84 x i8] c" - genomes used to compare against the first kmer list (reads)\0A\00"
define void @displayUsage(i8* nocapture %0) {
%2 = tail call i8* @strdup(i8* %0)
%3 = tail call i8* @basename(i8* %2)
%4 = load i32, i32* @stdout
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %3, double 2.000000e-01)
%6 = load i32, i32* @stdout
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%8 = load i32, i32* @stdout
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.2, i64 0, i64 0))
%10 = load i32, i32* @stdout
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.3, i64 0, i64 0))
%12 = load i32, i32* @stdout
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
%14 = load i32, i32* @stdout
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.5, i64 0, i64 0))
%16 = load i32, i32* @stdout
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.6, i64 0, i64 0))
ret void
}