#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*/ printf(char *, ...);
int usage(char **argv) {
  printf("\nUsage: %s <command> [options]\n\n", argv[0]);
  printf("Main commands:\n");
  printf(
      "       create      -   Create bindump from bam file that subsequent\n");
  printf("                       analysis will take as input.\n");
  printf(
      "       view        -   Inspect contents of bindump and apply filters\n");
  printf("                       to it.\n");
  printf("       histo       -   Show ASCII histogram of frequencies in "
         "bindump.\n");
  printf("                       \n");
  printf("       lrdmodel    -   Use the GMM to combine the fixed and free "
         "models\n");
  printf("                       and assess the delta-log-likelihood.\n");
  printf("       denoise     -   Use the GMMU model to detect and remove a "
         "uniform\n");
  printf("                       baseline from the histogram.\n\n");
  printf("other:\n");
  printf("       modeltest   -   Use the GMM based test against the three "
         "fixed\n");
  printf("                       models.\n");
  printf("       estmodel    -   Use the GMM to estimate the free model.\n");
  printf("                       \n");
  printf("       histotest   -   Use a simple, linear regression based test "
         "against\n");
  printf("                       the three fixed models.\n\n");
  printf("Please run any of these commands without arguments for usage "
         "instructions.\n\n");
  printf("For further documentation please also refer to the online manual\n");
  printf("at https://github.com/clwgg/nQuire or the README.org file.\n\n");
  return 1;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfcc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1012(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1041(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x107d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x109f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10d8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10ea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x110e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x114b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x116e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11ad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11e1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    (%rdi),%rsi
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xeeb(%rip),%rdi
call   1030 <puts@plt>
lea    0xf23(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf84(%rip),%rdi
call   1030 <puts@plt>
lea    0xf96(%rip),%rdi
call   1030 <puts@plt>
lea    0x117e(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xfc2(%rip),%rdi
call   1030 <puts@plt>
lea    0xffe(%rip),%rdi
call   1030 <puts@plt>
lea    0x102e(%rip),%rdi
call   1030 <puts@plt>
lea    0x106b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1094(%rip),%rdi
call   1030 <puts@plt>
lea    0x108f(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c9(%rip),%rdi
call   1030 <puts@plt>
lea    0x10dc(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x111f(%rip),%rdi
call   1030 <puts@plt>
lea    0x115d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1181(%rip),%rdi
call   1030 <puts@plt>
lea    0x11c1(%rip),%rdi
call   1030 <puts@plt>
lea    0x11f6(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [33 x i8] c"\0AUsage: %s <command> [options]\0A\0A\00"
@.str.1 = [16 x i8] c"Main commands:\0A\00"
@.str.2 = [69 x i8] c" create - Create bindump from bam file that subsequent\0A\00"
@.str.3 = [53 x i8] c" analysis will take as input.\0A\00"
@.str.4 = [70 x i8] c" view - Inspect contents of bindump and apply filters\0A\00"
@.str.5 = [31 x i8] c" to it.\0A\00"
@.str.6 = [72 x i8] c" histo - Show ASCII histogram of frequencies in bindump.\0A\00"
@.str.7 = [25 x i8] c" \0A\00"
@.str.8 = [73 x i8] c" lrdmodel - Use the GMM to combine the fixed and free models\0A\00"
@.str.9 = [61 x i8] c" and assess the delta-log-likelihood.\0A\00"
@.str.10 = [74 x i8] c" denoise - Use the GMMU model to detect and remove a uniform\0A\00"
@.str.11 = [54 x i8] c" baseline from the histogram.\0A\0A\00"
@.str.12 = [8 x i8] c"other:\0A\00"
@.str.13 = [71 x i8] c" modeltest - Use the GMM based test against the three fixed\0A\00"
@.str.14 = [32 x i8] c" models.\0A\00"
@.str.15 = [64 x i8] c" estmodel - Use the GMM to estimate the free model.\0A\00"
@.str.16 = [75 x i8] c" histotest - Use a simple, linear regression based test against\0A\00"
@.str.17 = [49 x i8] c" the three fixed models.\0A\0A\00"
@.str.18 = [77 x i8] c"Please run any of these commands without arguments for usage instructions.\0A\0A\00"
@.str.19 = [66 x i8] c"For further documentation please also refer to the online manual\0A\00"
@.str.20 = [61 x i8] c"at https://github.com/clwgg/nQuire or the README.org file.\0A\0A\00"
define i32 @usage(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = getelementptr inbounds i8*, i8** %3, i64 0
%5 = load i8*, i8** %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.10, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.11, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.13, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.14, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.15, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.16, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.17, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.18, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.19, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.20, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
@.str = [33 x i8] c"\0AUsage: %s <command> [options]\0A\0A\00"
@str = [15 x i8] c"Main commands:\00"
@str.21 = [68 x i8] c" create - Create bindump from bam file that subsequent\00"
@str.22 = [52 x i8] c" analysis will take as input.\00"
@str.23 = [69 x i8] c" view - Inspect contents of bindump and apply filters\00"
@str.24 = [30 x i8] c" to it.\00"
@str.25 = [71 x i8] c" histo - Show ASCII histogram of frequencies in bindump.\00"
@str.27 = [72 x i8] c" lrdmodel - Use the GMM to combine the fixed and free models\00"
@str.28 = [60 x i8] c" and assess the delta-log-likelihood.\00"
@str.29 = [73 x i8] c" denoise - Use the GMMU model to detect and remove a uniform\00"
@str.30 = [53 x i8] c" baseline from the histogram.\0A\00"
@str.31 = [7 x i8] c"other:\00"
@str.32 = [70 x i8] c" modeltest - Use the GMM based test against the three fixed\00"
@str.33 = [31 x i8] c" models.\00"
@str.34 = [63 x i8] c" estmodel - Use the GMM to estimate the free model.\00"
@str.35 = [24 x i8] c" \00"
@str.36 = [74 x i8] c" histotest - Use a simple, linear regression based test against\00"
@str.37 = [48 x i8] c" the three fixed models.\0A\00"
@str.38 = [76 x i8] c"Please run any of these commands without arguments for usage instructions.\0A\00"
@str.39 = [65 x i8] c"For further documentation please also refer to the online manual\00"
@str.40 = [60 x i8] c"at https://github.com/clwgg/nQuire or the README.org file.\0A\00"
define i32 @usage(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.21, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.22, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.23, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.24, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.25, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.35, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.27, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.28, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.29, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.30, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.31, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.32, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.33, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.34, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.35, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.36, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.37, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.38, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.39, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.40, i64 0, i64 0))
ret i32 1
}