#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*/ fprintf(int /*<<< orphan*/ *, char *, ...);
void print_usage(FILE *ofs) {
  fprintf(ofs, "gmer_caller version %u.%u.%u (%s)\n", 4, 2, 6, "stable");
  fprintf(ofs, "Usage:\n");
  fprintf(ofs, "  gmer_caller ARGUMENTS COUNTS_FILE\n");
  fprintf(ofs, "Arguments:\n");
  fprintf(ofs,
          "    -v | --version      - Print version information and exit\n");
  fprintf(ofs, "    --training_size NUM - Use NUM markers for training "
               "(default 100000)\n");
  fprintf(ofs, "    --runs NUMBER       - Perfom NUMBER runs of model training "
               "(use 0 for no training)\n");
  fprintf(
      ofs,
      "    --num_threads NUM   - Use NUM threads (min 1, max %u, default %u)\n",
      32, 32 / 2);
  fprintf(ofs, "    --header            - Print table header\n");
  fprintf(ofs, "    --non_canonical     - Output non-canonical genotypes\n");
  fprintf(ofs, "    --prob_cutoff       - probability cutoff for calling "
               "genotype (default 0)\n");
  fprintf(ofs, "    --alternatives      - Print probabilities of all "
               "alternative genotypes\n");
  fprintf(ofs,
          "    --info              - Print information about individual\n");
  fprintf(ofs, "    --no_genotypes      - Print only summary information, not "
               "actual genotypes\n");
  fprintf(ofs,
          "    --model TYPE        - Model type (full, diploid, haploid)\n");
  fprintf(ofs, "    --params PARAMS     - Model parameters (error, p0, p1, p2, "
               "coverage, size, size2)\n");
  fprintf(ofs, "    --coverage NUM      - Average coverage of reads\n");
  fprintf(ofs, "    -D                  - increase debug level\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
mov    $0x4,%edx
mov    $0x2,%ecx
mov    $0x6,%r8d
lea    0xee5(%rip),%r9
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xeda(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xed0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xee3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xedd(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf09(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf40(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf86(%rip),%rsi
mov    $0x20,%edx
mov    $0x10,%ecx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xfb1(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xfcd(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xff5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1032(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x106c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1098(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x10d6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1103(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1148(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x116b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rsi
lea    0xef1(%rip),%r9
mov    $0x4,%edx
mov    $0x2,%ecx
mov    $0x6,%r8d
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xeda(%rip),%rdi
mov    $0x7,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xec9(%rip),%rdi
mov    $0x24,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xed5(%rip),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xec8(%rip),%rdi
mov    $0x3d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xeed(%rip),%rdi
mov    $0x48,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf1d(%rip),%rdi
mov    $0x57,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf5c(%rip),%rsi
mov    %rbx,%rdi
mov    $0x20,%edx
mov    $0x10,%ecx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf88(%rip),%rdi
mov    $0x2d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf9d(%rip),%rdi
mov    $0x39,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xfbe(%rip),%rdi
mov    $0x4e,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xff4(%rip),%rdi
mov    $0x4b,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x1027(%rip),%rdi
mov    $0x3d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x104c(%rip),%rdi
mov    $0x4f,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x1083(%rip),%rdi
mov    $0x3e,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x10a9(%rip),%rdi
mov    $0x56,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x10e7(%rip),%rdi
mov    $0x34,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x1103(%rip),%rdi
mov    $0x2f,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [35 x i8] c"gmer_caller version %u.%u.%u (%s)\0A\00"
@.str.1 = [7 x i8] c"stable\00"
@.str.2 = [8 x i8] c"Usage:\0A\00"
@.str.3 = [37 x i8] c" gmer_caller ARGUMENTS COUNTS_FILE\0A\00"
@.str.4 = [12 x i8] c"Arguments:\0A\00"
@.str.5 = [62 x i8] c" -v | --version - Print version information and exit\0A\00"
@.str.6 = [73 x i8] c" --training_size NUM - Use NUM markers for training (default 100000)\0A\00"
@.str.7 = [88 x i8] c" --runs NUMBER - Perfom NUMBER runs of model training (use 0 for no training)\0A\00"
@.str.8 = [71 x i8] c" --num_threads NUM - Use NUM threads (min 1, max %u, default %u)\0A\00"
@.str.9 = [46 x i8] c" --header - Print table header\0A\00"
@.str.10 = [58 x i8] c" --non_canonical - Output non-canonical genotypes\0A\00"
@.str.11 = [79 x i8] c" --prob_cutoff - probability cutoff for calling genotype (default 0)\0A\00"
@.str.12 = [76 x i8] c" --alternatives - Print probabilities of all alternative genotypes\0A\00"
@.str.13 = [62 x i8] c" --info - Print information about individual\0A\00"
@.str.14 = [80 x i8] c" --no_genotypes - Print only summary information, not actual genotypes\0A\00"
@.str.15 = [63 x i8] c" --model TYPE - Model type (full, diploid, haploid)\0A\00"
@.str.16 = [87 x i8] c" --params PARAMS - Model parameters (error, p0, p1, p2, coverage, size, size2)\0A\00"
@.str.17 = [53 x i8] c" --coverage NUM - Average coverage of reads\0A\00"
@.str.18 = [48 x i8] c" -D - increase debug level\0A\00"
define void @print_usage(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 4, i32 2, i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32*, i32** %2
%6 = call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32*, i32** %2
%8 = call i32 (i32*, i8*, ...) @fprintf(i32* %7, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32*, i32** %2
%10 = call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32*, i32** %2
%12 = call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32*, i32** %2
%14 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32*, i32** %2
%16 = call i32 (i32*, i8*, ...) @fprintf(i32* %15, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32*, i32** %2
%18 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.8, i64 0, i64 0), i32 32, i32 16)
%19 = load i32*, i32** %2
%20 = call i32 (i32*, i8*, ...) @fprintf(i32* %19, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.9, i64 0, i64 0))
%21 = load i32*, i32** %2
%22 = call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0))
%23 = load i32*, i32** %2
%24 = call i32 (i32*, i8*, ...) @fprintf(i32* %23, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32*, i32** %2
%26 = call i32 (i32*, i8*, ...) @fprintf(i32* %25, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.12, i64 0, i64 0))
%27 = load i32*, i32** %2
%28 = call i32 (i32*, i8*, ...) @fprintf(i32* %27, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.13, i64 0, i64 0))
%29 = load i32*, i32** %2
%30 = call i32 (i32*, i8*, ...) @fprintf(i32* %29, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.14, i64 0, i64 0))
%31 = load i32*, i32** %2
%32 = call i32 (i32*, i8*, ...) @fprintf(i32* %31, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.15, i64 0, i64 0))
%33 = load i32*, i32** %2
%34 = call i32 (i32*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.16, i64 0, i64 0))
%35 = load i32*, i32** %2
%36 = call i32 (i32*, i8*, ...) @fprintf(i32* %35, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.17, i64 0, i64 0))
%37 = load i32*, i32** %2
%38 = call i32 (i32*, i8*, ...) @fprintf(i32* %37, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.18, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [35 x i8] c"gmer_caller version %u.%u.%u (%s)\0A\00"
@.str.1 = [7 x i8] c"stable\00"
@.str.2 = [8 x i8] c"Usage:\0A\00"
@.str.3 = [37 x i8] c" gmer_caller ARGUMENTS COUNTS_FILE\0A\00"
@.str.4 = [12 x i8] c"Arguments:\0A\00"
@.str.5 = [62 x i8] c" -v | --version - Print version information and exit\0A\00"
@.str.6 = [73 x i8] c" --training_size NUM - Use NUM markers for training (default 100000)\0A\00"
@.str.7 = [88 x i8] c" --runs NUMBER - Perfom NUMBER runs of model training (use 0 for no training)\0A\00"
@.str.8 = [71 x i8] c" --num_threads NUM - Use NUM threads (min 1, max %u, default %u)\0A\00"
@.str.9 = [46 x i8] c" --header - Print table header\0A\00"
@.str.10 = [58 x i8] c" --non_canonical - Output non-canonical genotypes\0A\00"
@.str.11 = [79 x i8] c" --prob_cutoff - probability cutoff for calling genotype (default 0)\0A\00"
@.str.12 = [76 x i8] c" --alternatives - Print probabilities of all alternative genotypes\0A\00"
@.str.13 = [62 x i8] c" --info - Print information about individual\0A\00"
@.str.14 = [80 x i8] c" --no_genotypes - Print only summary information, not actual genotypes\0A\00"
@.str.15 = [63 x i8] c" --model TYPE - Model type (full, diploid, haploid)\0A\00"
@.str.16 = [87 x i8] c" --params PARAMS - Model parameters (error, p0, p1, p2, coverage, size, size2)\0A\00"
@.str.17 = [53 x i8] c" --coverage NUM - Average coverage of reads\0A\00"
@.str.18 = [48 x i8] c" -D - increase debug level\0A\00"
define void @print_usage(i32* nocapture %0) {
%2 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 4, i32 2, i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i64 7, i64 1, i32* %0)
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i64 36, i64 1, i32* %0)
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i64 11, i64 1, i32* %0)
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0), i64 61, i64 1, i32* %0)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.6, i64 0, i64 0), i64 72, i64 1, i32* %0)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.7, i64 0, i64 0), i64 87, i64 1, i32* %0)
%9 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.8, i64 0, i64 0), i32 32, i32 16)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.9, i64 0, i64 0), i64 45, i64 1, i32* %0)
%11 = tail call i64 @fwrite(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0), i64 57, i64 1, i32* %0)
%12 = tail call i64 @fwrite(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.11, i64 0, i64 0), i64 78, i64 1, i32* %0)
%13 = tail call i64 @fwrite(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.12, i64 0, i64 0), i64 75, i64 1, i32* %0)
%14 = tail call i64 @fwrite(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.13, i64 0, i64 0), i64 61, i64 1, i32* %0)
%15 = tail call i64 @fwrite(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.14, i64 0, i64 0), i64 79, i64 1, i32* %0)
%16 = tail call i64 @fwrite(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.15, i64 0, i64 0), i64 62, i64 1, i32* %0)
%17 = tail call i64 @fwrite(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.16, i64 0, i64 0), i64 86, i64 1, i32* %0)
%18 = tail call i64 @fwrite(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.17, i64 0, i64 0), i64 52, i64 1, i32* %0)
%19 = tail call i64 @fwrite(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.18, i64 0, i64 0), i64 47, i64 1, i32* %0)
ret void
}