#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: Compute rate of crossover from experimental data\n");
  printf("Example: xov foo.dat\n");
  printf("Options:\n");
  printf("\t[-c <NUM> confidence interval; default: %.2f]\n", 0.95);
  printf(
      "\t[-m <NUM> minimum x-value for log-likelihood curve; default %.3f]\n",
      0.);
  printf(
      "\t[-M <NUM> maximum x-value for log-likelihood curve; default: %.3f]\n",
      1.);
  printf("\t[-i <NUM> number of intervals for log-likelihood curve; default: "
         "%d]\n",
         100);
  printf("\t[-D <CHAR> column delimiter; default: TAB]\n");
  printf("\t[-o use Poisson approximation; default: use exact likelihood "
         "function]\n");
  printf("\t[-p print log-likelihood curve; default: print ML-estimates]\n");
  printf("\t[-d print data and exit (debug)]\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    0xecb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf14(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf10(%rip),%rdi
movsd  0xe83(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf2a(%rip),%rdi
xorps  %xmm0,%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf5d(%rip),%rdi
movsd  0xe54(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf8c(%rip),%rdi
mov    $0x64,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfc0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfdf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x101a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x104b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x1060(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x107a(%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    0xec1(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfd2(%rip),%rdi
call   1040 <puts@plt>
lea    0x1000(%rip),%rdi
call   1040 <puts@plt>
lea    0x1009(%rip),%rdi
call   1040 <puts@plt>
lea    0xeae(%rip),%rdi
movsd  0xe74(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xec8(%rip),%rdi
xorps  %xmm0,%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xefb(%rip),%rdi
movsd  0xe55(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xf2a(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfb6(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd6(%rip),%rdi
call   1040 <puts@plt>
lea    0x1012(%rip),%rdi
call   1040 <puts@plt>
lea    0x1044(%rip),%rdi
call   1040 <puts@plt>
lea    0x105a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1075(%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 = [59 x i8] c"Purpose: Compute rate of crossover from experimental data\0A\00"
@.str.2 = [22 x i8] c"Example: xov foo.dat\0A\00"
@.str.3 = [10 x i8] c"Options:\0A\00"
@.str.4 = [48 x i8] c"\09[-c <NUM> confidence interval; default: %.2f]\0A\00"
@.str.5 = [68 x i8] c"\09[-m <NUM> minimum x-value for log-likelihood curve; default %.3f]\0A\00"
@.str.6 = [69 x i8] c"\09[-M <NUM> maximum x-value for log-likelihood curve; default: %.3f]\0A\00"
@.str.7 = [71 x i8] c"\09[-i <NUM> number of intervals for log-likelihood curve; default: %d]\0A\00"
@.str.8 = [45 x i8] c"\09[-D <CHAR> column delimiter; default: TAB]\0A\00"
@.str.9 = [73 x i8] c"\09[-o use Poisson approximation; default: use exact likelihood function]\0A\00"
@.str.10 = [63 x i8] c"\09[-p print log-likelihood curve; default: print ML-estimates]\0A\00"
@.str.11 = [35 x i8] c"\09[-d print data and exit (debug)]\0A\00"
@.str.12 = [40 x i8] c"\09[-h print this help message and exit]\0A\00"
@.str.13 = [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 ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 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 ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), double 0x3FEE666666666666)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.5, i64 0, i64 0), double 0.000000e+00)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.6, i64 0, i64 0), double 1.000000e+00)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.7, i64 0, i64 0), i32 100)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.13, i64 0, i64 0))
%16 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [34 x i8] c"Usage: %s [options] [inputFiles]\0A\00"
@.str.4 = [48 x i8] c"\09[-c <NUM> confidence interval; default: %.2f]\0A\00"
@.str.5 = [68 x i8] c"\09[-m <NUM> minimum x-value for log-likelihood curve; default %.3f]\0A\00"
@.str.6 = [69 x i8] c"\09[-M <NUM> maximum x-value for log-likelihood curve; default: %.3f]\0A\00"
@.str.7 = [71 x i8] c"\09[-i <NUM> number of intervals for log-likelihood curve; default: %d]\0A\00"
@str = [58 x i8] c"Purpose: Compute rate of crossover from experimental data\00"
@str.14 = [21 x i8] c"Example: xov foo.dat\00"
@str.15 = [9 x i8] c"Options:\00"
@str.16 = [44 x i8] c"\09[-D <CHAR> column delimiter; default: TAB]\00"
@str.17 = [72 x i8] c"\09[-o use Poisson approximation; default: use exact likelihood function]\00"
@str.18 = [62 x i8] c"\09[-p print log-likelihood curve; default: print ML-estimates]\00"
@str.19 = [34 x i8] c"\09[-d print data and exit (debug)]\00"
@str.20 = [39 x i8] c"\09[-h print this help message and exit]\00"
@str.21 = [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 ([58 x i8], [58 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), double 0x3FEE666666666666)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.5, i64 0, i64 0), double 0.000000e+00)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.6, i64 0, i64 0), double 1.000000e+00)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str.7, i64 0, i64 0), i32 100)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.16, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.17, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.18, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.19, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.20, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.21, i64 0, i64 0))
%16 = tail call i32 @exit(i32 0)
unreachable
}