#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*/ printf(char *, ...);
char *progname();
void printUsage() {
  printf("Usage: %s [options] [inputFiles]\n", progname());
  printf("Purpose: Simulate crossover data for analysis with xov\n");
  printf("Example: six\n");
  printf("Options:\n");
  printf("\t[-r <NUM> number of replicates; default: %d]\n", 5);
  printf("\t[-m <NUM> number of experiments per replicate, followed by number "
         "of molecules per exp.; default: %d %d %d %d]\n",
         3, 60, 120, 240);
  printf("\t[-n <NUM> number of replicates per experiment; default: %d]\n", 12);
  printf("\t[-x <NUM> crossover rate in cM; default: %.1f]\n", 1.0);
  printf("\t[-s <NUM> seed for random number generator; default: generated "
         "internally]\n");
  printf("\t[-h print this help message and exit]\n");
  printf("\t[-v print program information and exit]\n");
  exit(0);
}


x86 assembly (clang, -O0):
<printUsage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <progname@plt>
mov    %rax,%rsi
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf01(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf01(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xefd(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf19(%rip),%rdi
mov    $0x3,%esi
mov    $0x3c,%edx
mov    $0x78,%ecx
mov    $0xf0,%r8d
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf67(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf92(%rip),%rdi
movsd  0xe32(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xfad(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfec(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x1006(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<printUsage>:
push   %rax
xor    %eax,%eax
call   1030 <progname@plt>
lea    0xeb9(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfd9(%rip),%rdi
call   1040 <puts@plt>
lea    0x1004(%rip),%rdi
call   1040 <puts@plt>
lea    0x1005(%rip),%rdi
call   1040 <puts@plt>
lea    0xea6(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xec2(%rip),%rdi
mov    $0x3,%esi
mov    $0x3c,%edx
mov    $0x78,%ecx
mov    $0xf0,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf10(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf3b(%rip),%rdi
movsd  0xe2b(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xfa3(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe3(%rip),%rdi
call   1040 <puts@plt>
lea    0xffe(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"Usage: %s [options] [inputFiles]\0A\00"
@.str.1 = [56 x i8] c"Purpose: Simulate crossover data for analysis with xov\0A\00"
@.str.2 = [14 x i8] c"Example: six\0A\00"
@.str.3 = [10 x i8] c"Options:\0A\00"
@.str.4 = [47 x i8] c"\09[-r <NUM> number of replicates; default: %d]\0A\00"
@.str.5 = [113 x i8] c"\09[-m <NUM> number of experiments per replicate, followed by number of molecules per exp.; default: %d %d %d %d]\0A\00"
@.str.6 = [62 x i8] c"\09[-n <NUM> number of replicates per experiment; default: %d]\0A\00"
@.str.7 = [49 x i8] c"\09[-x <NUM> crossover rate in cM; default: %.1f]\0A\00"
@.str.8 = [77 x i8] c"\09[-s <NUM> seed for random number generator; default: generated internally]\0A\00"
@.str.9 = [40 x i8] c"\09[-h print this help message and exit]\0A\00"
@.str.10 = [42 x i8] c"\09[-v print program information and exit]\0A\00"
define void @printUsage() {
%1 = call i8* (...) @progname()
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), i32 5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.5, i64 0, i64 0), i32 3, i32 60, i32 120, i32 240)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0), i32 12)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), double 1.000000e+00)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [34 x i8] c"Usage: %s [options] [inputFiles]\0A\00"
@.str.4 = [47 x i8] c"\09[-r <NUM> number of replicates; default: %d]\0A\00"
@.str.5 = [113 x i8] c"\09[-m <NUM> number of experiments per replicate, followed by number of molecules per exp.; default: %d %d %d %d]\0A\00"
@.str.6 = [62 x i8] c"\09[-n <NUM> number of replicates per experiment; default: %d]\0A\00"
@.str.7 = [49 x i8] c"\09[-x <NUM> crossover rate in cM; default: %.1f]\0A\00"
@str = [55 x i8] c"Purpose: Simulate crossover data for analysis with xov\00"
@str.11 = [13 x i8] c"Example: six\00"
@str.12 = [9 x i8] c"Options:\00"
@str.13 = [76 x i8] c"\09[-s <NUM> seed for random number generator; default: generated internally]\00"
@str.14 = [39 x i8] c"\09[-h print this help message and exit]\00"
@str.15 = [41 x i8] c"\09[-v print program information and exit]\00"
define void @printUsage() {
%1 = tail call i8* (...) @progname()
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.11, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.12, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), i32 5)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([113 x i8], [113 x i8]* @.str.5, i64 0, i64 0), i32 3, i32 60, i32 120, i32 240)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0), i32 12)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), double 1.000000e+00)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.13, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.14, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.15, i64 0, i64 0))
%13 = tail call i32 @exit(i32 0)
unreachable
}