#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);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void usage(const char *progName, int exit_val) {
  fprintf(stderr, "%s [-h] -s seed -t startIdx -n numSamples", progName);
  fprintf(stderr, "\nwhere options are:");
  fprintf(stderr, "\n    -s    : Seed for the RNG engine");
  fprintf(
      stderr,
      "\n    -t    : Starting index (starting with 0) of RNG draws to output");
  fprintf(
      stderr,
      "\n    -n    : Number of pseudo-random samples to output (default 25)");
  fprintf(stderr, "\n    -h    : Show this help");
  fprintf(stderr, "\n\nIf no options are provided, files for the following "
                  "seeds and startIdx");
  fprintf(stderr, "\n            combinations are generated:");
  fprintf(stderr, "\n    int_type seeds[5] = { 1, 1740, 3812201, 6662751973, "
                  "5164531120897553273};");
  fprintf(stderr, "\n    int_type starts[7] = { 0, 1024, 9118, 674637, "
                  "7536456, 1e9, 5e9 };");
  fprintf(stderr, "\n\nOutput filenames use the following naming convention:");
  fprintf(stderr,
          "\n    tinymt64-<seed>-<sample_type>-<start_idx>-<num_samples>.txt");
  fprintf(
      stderr,
      "\nWhere 'sample_type' values indicate the following RNG output ranges:");
  fprintf(stderr, "\n    'uint64': [0, 2^64)");
  fprintf(stderr, "\n    'double_co': [0.0, 1.0)");
  fprintf(stderr, "\n    'double_oc': (0.0, 1.0]");
  fprintf(stderr, "\n    'double_oo': (0.0, 1.0)");
  fprintf(stderr, "\n");
  fflush(stderr);
  exit(exit_val);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    0x2e9a(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xead(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e7f(%rip),%rax
mov    (%rax),%edi
lea    0xec0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e68(%rip),%rax
mov    (%rax),%edi
lea    0xebd(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e51(%rip),%rax
mov    (%rax),%edi
lea    0xecb(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e3a(%rip),%rax
mov    (%rax),%edi
lea    0xef9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e23(%rip),%rax
mov    (%rax),%edi
lea    0xf26(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e0c(%rip),%rax
mov    (%rax),%edi
lea    0xf2b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2df5(%rip),%rax
mov    (%rax),%edi
lea    0xf5d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dde(%rip),%rax
mov    (%rax),%edi
lea    0xf6f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dc7(%rip),%rax
mov    (%rax),%edi
lea    0xfa7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2db0(%rip),%rax
mov    (%rax),%edi
lea    0xfd8(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d99(%rip),%rax
mov    (%rax),%edi
lea    0xff9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d82(%rip),%rax
mov    (%rax),%edi
lea    0x1023(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d6b(%rip),%rax
mov    (%rax),%edi
lea    0x1052(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d54(%rip),%rax
mov    (%rax),%edi
lea    0x1054(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d3d(%rip),%rax
mov    (%rax),%edi
lea    0x105a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d26(%rip),%rax
mov    (%rax),%edi
lea    0x1060(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d0f(%rip),%rax
mov    (%rax),%edi
lea    0x1066(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2cf8(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
mov    -0xc(%rbp),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rdx
mov    0x2ea1(%rip),%rbx
mov    (%rbx),%edi
lea    0xeb8(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xed2(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xed6(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xeeb(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf20(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf54(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf60(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf99(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfb2(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xff1(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1029(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1051(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1082(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10b8(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10c1(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10ce(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10db(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10e8(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
call   1040 <fflush@plt>
mov    %ebp,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [42 x i8] c"%s [-h] -s seed -t startIdx -n numSamples\00"
@.str.1 = [20 x i8] c"\0Awhere options are:\00"
@.str.2 = [37 x i8] c"\0A -s : Seed for the RNG engine\00"
@.str.3 = [69 x i8] c"\0A -t : Starting index (starting with 0) of RNG draws to output\00"
@.str.4 = [68 x i8] c"\0A -n : Number of pseudo-random samples to output (default 25)\00"
@.str.5 = [28 x i8] c"\0A -h : Show this help\00"
@.str.6 = [73 x i8] c"\0A\0AIf no options are provided, files for the following seeds and startIdx\00"
@.str.7 = [41 x i8] c"\0A combinations are generated:\00"
@.str.8 = [79 x i8] c"\0A int_type seeds[5] = { 1, 1740, 3812201, 6662751973, 5164531120897553273};\00"
@.str.9 = [72 x i8] c"\0A int_type starts[7] = { 0, 1024, 9118, 674637, 7536456, 1e9, 5e9 };\00"
@.str.10 = [56 x i8] c"\0A\0AOutput filenames use the following naming convention:\00"
@.str.11 = [65 x i8] c"\0A tinymt64-<seed>-<sample_type>-<start_idx>-<num_samples>.txt\00"
@.str.12 = [70 x i8] c"\0AWhere 'sample_type' values indicate the following RNG output ranges:\00"
@.str.13 = [25 x i8] c"\0A 'uint64': [0, 2^64)\00"
@.str.14 = [29 x i8] c"\0A 'double_co': [0.0, 1.0)\00"
@.str.15 = [29 x i8] c"\0A 'double_oc': (0.0, 1.0]\00"
@.str.16 = [29 x i8] c"\0A 'double_oo': (0.0, 1.0)\00"
@.str.17 = [2 x i8] c"\0A\00"
define void @usage(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %3
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i32, i32* @stderr
%9 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.4, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.6, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.8, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.9, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0))
%28 = load i32, i32* @stderr
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.11, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.12, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0))
%34 = load i32, i32* @stderr
%35 = call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.14, i64 0, i64 0))
%36 = load i32, i32* @stderr
%37 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0))
%38 = load i32, i32* @stderr
%39 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0))
%40 = load i32, i32* @stderr
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
%42 = load i32, i32* @stderr
%43 = call i32 @fflush(i32 %42)
%44 = load i32, i32* %4
%45 = call i32 @exit(i32 %44)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [42 x i8] c"%s [-h] -s seed -t startIdx -n numSamples\00"
@.str.1 = [20 x i8] c"\0Awhere options are:\00"
@.str.2 = [37 x i8] c"\0A -s : Seed for the RNG engine\00"
@.str.3 = [69 x i8] c"\0A -t : Starting index (starting with 0) of RNG draws to output\00"
@.str.4 = [68 x i8] c"\0A -n : Number of pseudo-random samples to output (default 25)\00"
@.str.5 = [28 x i8] c"\0A -h : Show this help\00"
@.str.6 = [73 x i8] c"\0A\0AIf no options are provided, files for the following seeds and startIdx\00"
@.str.7 = [41 x i8] c"\0A combinations are generated:\00"
@.str.8 = [79 x i8] c"\0A int_type seeds[5] = { 1, 1740, 3812201, 6662751973, 5164531120897553273};\00"
@.str.9 = [72 x i8] c"\0A int_type starts[7] = { 0, 1024, 9118, 674637, 7536456, 1e9, 5e9 };\00"
@.str.10 = [56 x i8] c"\0A\0AOutput filenames use the following naming convention:\00"
@.str.11 = [65 x i8] c"\0A tinymt64-<seed>-<sample_type>-<start_idx>-<num_samples>.txt\00"
@.str.12 = [70 x i8] c"\0AWhere 'sample_type' values indicate the following RNG output ranges:\00"
@.str.13 = [25 x i8] c"\0A 'uint64': [0, 2^64)\00"
@.str.14 = [29 x i8] c"\0A 'double_co': [0.0, 1.0)\00"
@.str.15 = [29 x i8] c"\0A 'double_oc': (0.0, 1.0]\00"
@.str.16 = [29 x i8] c"\0A 'double_oo': (0.0, 1.0)\00"
@.str.17 = [2 x i8] c"\0A\00"
define void @usage(i8* %0, i32 %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = load i32, i32* @stderr
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.4, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.6, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.8, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.9, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = tail call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.11, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = tail call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.12, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = tail call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.14, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = tail call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = tail call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = tail call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = tail call i32 @fflush(i32 %39)
%41 = tail call i32 @exit(i32 %1)
unreachable
}