#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 *);
void show_help() {
  printf("Pressure Test [--help] [--working_set_size N] [--shared_size N] "
         "[--loop N]\n\n");
  printf("-w   --working_set_size   to specify the size of private working set "
         "using random\n");
  printf("                          single static assignment, each element is "
         "64 bit and the total\n");
  printf("                          size is woking_set_size * 64 bit\n\n");
  printf(
      "-wb  --working_set_bytes  to specify the size of private working set\n");
  printf("                          by bytes in unit m, k, b ex. 64k for 64k "
         "working set\n\n");
  printf("-s   --shared_size        to specify the shared space by threads "
         "visiting an uint64_t\n");
  printf("                          array and the tatol size is shared_size * "
         "8 bytes\n\n");
  printf("-sb  --shared_bytes       to specify the shared space by threads by "
         "bytes in unit\n");
  printf(
      "                          k, m, b ex. -sb 8m for 8mb shared space\n\n");
  printf("-wt  --workload_type      wokload type: r indicates "
         "single_static_assignment,\n");
  printf("                                        s indicates "
         "stream_access_bandwidth\n");
  printf("-l   --loop_num           times to visit working set and shared "
         "memory space\n\n");
  printf("-t   --threads            running threads of micro benchmark\n\n");
  printf("-b   --binding            binding cpu affinity with two parameters, "
         "the first one to\n");
  printf("                          specify the cpuid to bind and the second "
         "is the number of threads\n");
  printf("                          binding on this cpu, ex. --bind 0 2 for 2 "
         "threads are binding to\n");
  printf("                          cpu 0, supporting more than one binding "
         "rules\n\n");
  printf("-h   --help               to show this help\n\n");
  printf("Version 1.0 by Yuxia @ 2013.07.31\n");
  printf("Thanks!.\n");
  exit(0);
}


x86 assembly (clang, -O0):
<show_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf16(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5d(%rip),%rdi
call   1030 <printf@plt>
lea    0xfab(%rip),%rdi
call   1030 <printf@plt>
lea    0xfdc(%rip),%rdi
call   1030 <printf@plt>
lea    0x1016(%rip),%rdi
call   1030 <printf@plt>
lea    0x105b(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a6(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e8(%rip),%rdi
call   1030 <printf@plt>
lea    0x112f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1167(%rip),%rdi
call   1030 <printf@plt>
lea    0x11aa(%rip),%rdi
call   1030 <printf@plt>
lea    0x11eb(%rip),%rdi
call   1030 <printf@plt>
lea    0x122e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1261(%rip),%rdi
call   1030 <printf@plt>
lea    0x12ab(%rip),%rdi
call   1030 <printf@plt>
lea    0x12fc(%rip),%rdi
call   1030 <printf@plt>
lea    0x134c(%rip),%rdi
call   1030 <printf@plt>
lea    0x138a(%rip),%rdi
call   1030 <printf@plt>
lea    0x13ac(%rip),%rdi
call   1030 <printf@plt>
lea    0x13c3(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<show_help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf18(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xfab(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdb(%rip),%rdi
call   1030 <puts@plt>
lea    0x1014(%rip),%rdi
call   1030 <puts@plt>
lea    0x1058(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a2(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e3(%rip),%rdi
call   1030 <puts@plt>
lea    0x1129(%rip),%rdi
call   1030 <puts@plt>
lea    0x1160(%rip),%rdi
call   1030 <puts@plt>
lea    0x11a2(%rip),%rdi
call   1030 <puts@plt>
lea    0x11e2(%rip),%rdi
call   1030 <puts@plt>
lea    0x1224(%rip),%rdi
call   1030 <puts@plt>
lea    0x1256(%rip),%rdi
call   1030 <puts@plt>
lea    0x129f(%rip),%rdi
call   1030 <puts@plt>
lea    0x12ef(%rip),%rdi
call   1030 <puts@plt>
lea    0x133e(%rip),%rdi
call   1030 <puts@plt>
lea    0x137b(%rip),%rdi
call   1030 <puts@plt>
lea    0x139c(%rip),%rdi
call   1030 <puts@plt>
lea    0x13b2(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [77 x i8] c"Pressure Test [--help] [--working_set_size N] [--shared_size N] [--loop N]\0A\0A\00"
@.str.1 = [83 x i8] c"-w --working_set_size to specify the size of private working set using random\0A\00"
@.str.2 = [90 x i8] c" single static assignment, each element is 64 bit and the total\0A\00"
@.str.3 = [61 x i8] c" size is woking_set_size * 64 bit\0A\0A\00"
@.str.4 = [70 x i8] c"-wb --working_set_bytes to specify the size of private working set\0A\00"
@.str.5 = [81 x i8] c" by bytes in unit m, k, b ex. 64k for 64k working set\0A\0A\00"
@.str.6 = [87 x i8] c"-s --shared_size to specify the shared space by threads visiting an uint64_t\0A\00"
@.str.7 = [78 x i8] c" array and the tatol size is shared_size * 8 bytes\0A\0A\00"
@.str.8 = [83 x i8] c"-sb --shared_bytes to specify the shared space by threads by bytes in unit\0A\00"
@.str.9 = [68 x i8] c" k, m, b ex. -sb 8m for 8mb shared space\0A\0A\00"
@.str.10 = [79 x i8] c"-wt --workload_type wokload type: r indicates single_static_assignment,\0A\00"
@.str.11 = [77 x i8] c" s indicates stream_access_bandwidth\0A\00"
@.str.12 = [79 x i8] c"-l --loop_num times to visit working set and shared memory space\0A\0A\00"
@.str.13 = [63 x i8] c"-t --threads running threads of micro benchmark\0A\0A\00"
@.str.14 = [86 x i8] c"-b --binding binding cpu affinity with two parameters, the first one to\0A\00"
@.str.15 = [93 x i8] c" specify the cpuid to bind and the second is the number of threads\0A\00"
@.str.16 = [92 x i8] c" binding on this cpu, ex. --bind 0 2 for 2 threads are binding to\0A\00"
@.str.17 = [74 x i8] c" cpu 0, supporting more than one binding rules\0A\0A\00"
@.str.18 = [46 x i8] c"-h --help to show this help\0A\0A\00"
@.str.19 = [35 x i8] c"Version 1.0 by Yuxia @ 2013.07.31\0A\00"
@.str.20 = [10 x i8] c"Thanks!.\0A\00"
define void @show_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [76 x i8] c"Pressure Test [--help] [--working_set_size N] [--shared_size N] [--loop N]\0A\00"
@str.21 = [82 x i8] c"-w --working_set_size to specify the size of private working set using random\00"
@str.22 = [89 x i8] c" single static assignment, each element is 64 bit and the total\00"
@str.23 = [60 x i8] c" size is woking_set_size * 64 bit\0A\00"
@str.24 = [69 x i8] c"-wb --working_set_bytes to specify the size of private working set\00"
@str.25 = [80 x i8] c" by bytes in unit m, k, b ex. 64k for 64k working set\0A\00"
@str.26 = [86 x i8] c"-s --shared_size to specify the shared space by threads visiting an uint64_t\00"
@str.27 = [77 x i8] c" array and the tatol size is shared_size * 8 bytes\0A\00"
@str.28 = [82 x i8] c"-sb --shared_bytes to specify the shared space by threads by bytes in unit\00"
@str.29 = [67 x i8] c" k, m, b ex. -sb 8m for 8mb shared space\0A\00"
@str.30 = [78 x i8] c"-wt --workload_type wokload type: r indicates single_static_assignment,\00"
@str.31 = [76 x i8] c" s indicates stream_access_bandwidth\00"
@str.32 = [78 x i8] c"-l --loop_num times to visit working set and shared memory space\0A\00"
@str.33 = [62 x i8] c"-t --threads running threads of micro benchmark\0A\00"
@str.34 = [85 x i8] c"-b --binding binding cpu affinity with two parameters, the first one to\00"
@str.35 = [92 x i8] c" specify the cpuid to bind and the second is the number of threads\00"
@str.36 = [91 x i8] c" binding on this cpu, ex. --bind 0 2 for 2 threads are binding to\00"
@str.37 = [73 x i8] c" cpu 0, supporting more than one binding rules\0A\00"
@str.38 = [45 x i8] c"-h --help to show this help\0A\00"
@str.39 = [34 x i8] c"Version 1.0 by Yuxia @ 2013.07.31\00"
@str.40 = [9 x i8] c"Thanks!.\00"
define void @show_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.21, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @str.22, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.23, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.24, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.25, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.26, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.27, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.28, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.29, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.30, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.31, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.32, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.33, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.34, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([92 x i8], [92 x i8]* @str.35, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @str.36, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.37, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.38, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.39, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.40, i64 0, i64 0))
%22 = tail call i32 @exit(i32 0)
unreachable
}