#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*/ printf(char *);
void print_CLI_error(void) {
  printf("Usage: ./XSBench <options>\n");
  printf("Options include:\n");
  printf("  -m <simulation method>   Simulation method (history, event)\n");
  printf("  -s <size>                Size of H-M Benchmark to run (small, "
         "large, XL, XXL)\n");
  printf("  -g <gridpoints>          Number of gridpoints per nuclide "
         "(overrides -s defaults)\n");
  printf("  -G <grid type>           Grid search type (unionized, nuclide, "
         "hash). Defaults to unionized.\n");
  printf("  -p <particles>           Number of particle histories\n");
  printf(
      "  -l <lookups>             History Based: Number of Cross-section (XS) "
      "lookups per particle. Event Based: Total number of XS lookups.\n");
  printf("  -h <hash bins>           Number of hash bins (only relevant when "
         "used with \"-G hash\")\n");
  printf(
      "  -b <binary mode>         Read or write all data structures to file. "
      "If reading, this will skip initialization phase. (read, write)\n");
  printf("  -k <kernel ID>           Specifies which kernel to run. 0 is "
         "baseline, 1, 2, etc are optimized variants. (0 is default.)\n");
  printf("  -P <platform id>         Manually specify the OpenCL platform id "
         "to run on\n");
  printf("  -D <device id>           Manually specify the OpenCL device id to "
         "run on\n");
  printf("Default is equivalent to: -m history -s large -l 34 -p 500000 -G "
         "unionized\n");
  printf("See readme for full description of default run values\n");
  exit(4);
}


x86 assembly (clang, -O0):
<print_CLI_error>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf63(%rip),%rdi
call   1030 <printf@plt>
lea    0xfac(%rip),%rdi
call   1030 <printf@plt>
lea    0x1000(%rip),%rdi
call   1030 <printf@plt>
lea    0x102d(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a8(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f5(%rip),%rdi
call   1030 <printf@plt>
lea    0x116f(%rip),%rdi
call   1030 <printf@plt>
lea    0x11df(%rip),%rdi
call   1030 <printf@plt>
lea    0x1221(%rip),%rdi
call   1030 <printf@plt>
lea    0x1261(%rip),%rdi
call   1030 <printf@plt>
lea    0x12a1(%rip),%rdi
call   1030 <printf@plt>
mov    $0x4,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_CLI_error>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee7(%rip),%rdi
call   1030 <puts@plt>
lea    0xeec(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf62(%rip),%rdi
call   1030 <puts@plt>
lea    0xfaa(%rip),%rdi
call   1030 <puts@plt>
lea    0xffd(%rip),%rdi
call   1030 <puts@plt>
lea    0x1029(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a3(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ef(%rip),%rdi
call   1030 <puts@plt>
lea    0x1168(%rip),%rdi
call   1030 <puts@plt>
lea    0x11d7(%rip),%rdi
call   1030 <puts@plt>
lea    0x1218(%rip),%rdi
call   1030 <puts@plt>
lea    0x1257(%rip),%rdi
call   1030 <puts@plt>
lea    0x1296(%rip),%rdi
call   1030 <puts@plt>
mov    $0x4,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"Usage: ./XSBench <options>\0A\00"
@.str.1 = [18 x i8] c"Options include:\0A\00"
@.str.2 = [63 x i8] c" -m <simulation method> Simulation method (history, event)\0A\00"
@.str.3 = [81 x i8] c" -s <size> Size of H-M Benchmark to run (small, large, XL, XXL)\0A\00"
@.str.4 = [85 x i8] c" -g <gridpoints> Number of gridpoints per nuclide (overrides -s defaults)\0A\00"
@.str.5 = [96 x i8] c" -G <grid type> Grid search type (unionized, nuclide, hash). Defaults to unionized.\0A\00"
@.str.6 = [57 x i8] c" -p <particles> Number of particle histories\0A\00"
@.str.7 = [135 x i8] c" -l <lookups> History Based: Number of Cross-section (XS) lookups per particle. Event Based: Total number of XS lookups.\0A\00"
@.str.8 = [89 x i8] c" -h <hash bins> Number of hash bins (only relevant when used with \22-G hash\22)\0A\00"
@.str.9 = [134 x i8] c" -b <binary mode> Read or write all data structures to file. If reading, this will skip initialization phase. (read, write)\0A\00"
@.str.10 = [124 x i8] c" -k <kernel ID> Specifies which kernel to run. 0 is baseline, 1, 2, etc are optimized variants. (0 is default.)\0A\00"
@.str.11 = [78 x i8] c" -P <platform id> Manually specify the OpenCL platform id to run on\0A\00"
@.str.12 = [76 x i8] c" -D <device id> Manually specify the OpenCL device id to run on\0A\00"
@.str.13 = [76 x i8] c"Default is equivalent to: -m history -s large -l 34 -p 500000 -G unionized\0A\00"
@.str.14 = [55 x i8] c"See readme for full description of default run values\0A\00"
define void @print_CLI_error() {
%1 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([124 x i8], [124 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @exit(i32 4)
unreachable
}

LLVM IR (-O2):
@str = [27 x i8] c"Usage: ./XSBench <options>\00"
@str.15 = [17 x i8] c"Options include:\00"
@str.16 = [62 x i8] c" -m <simulation method> Simulation method (history, event)\00"
@str.17 = [80 x i8] c" -s <size> Size of H-M Benchmark to run (small, large, XL, XXL)\00"
@str.18 = [84 x i8] c" -g <gridpoints> Number of gridpoints per nuclide (overrides -s defaults)\00"
@str.19 = [95 x i8] c" -G <grid type> Grid search type (unionized, nuclide, hash). Defaults to unionized.\00"
@str.20 = [56 x i8] c" -p <particles> Number of particle histories\00"
@str.21 = [134 x i8] c" -l <lookups> History Based: Number of Cross-section (XS) lookups per particle. Event Based: Total number of XS lookups.\00"
@str.22 = [88 x i8] c" -h <hash bins> Number of hash bins (only relevant when used with \22-G hash\22)\00"
@str.23 = [133 x i8] c" -b <binary mode> Read or write all data structures to file. If reading, this will skip initialization phase. (read, write)\00"
@str.24 = [123 x i8] c" -k <kernel ID> Specifies which kernel to run. 0 is baseline, 1, 2, etc are optimized variants. (0 is default.)\00"
@str.25 = [77 x i8] c" -P <platform id> Manually specify the OpenCL platform id to run on\00"
@str.26 = [75 x i8] c" -D <device id> Manually specify the OpenCL device id to run on\00"
@str.27 = [75 x i8] c"Default is equivalent to: -m history -s large -l 34 -p 500000 -G unionized\00"
@str.28 = [54 x i8] c"See readme for full description of default run values\00"
define void @print_CLI_error() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.15, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.16, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.17, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @str.18, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @str.19, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.20, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([134 x i8], [134 x i8]* @str.21, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @str.22, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([133 x i8], [133 x i8]* @str.23, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([123 x i8], [123 x i8]* @str.24, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.25, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.26, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.27, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.28, i64 0, i64 0))
%16 = tail call i32 @exit(i32 4)
unreachable
}