#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 usage() {
  printf("usage: ./bench\n");
  printf("Options:\n");
  printf(" -l, --load=<long int>\t\tinitial load time in us\n");
  printf(" -s, --sleep=<long int>\t\tinitial sleep time in us\n");
  printf(" -x, --load-step=<long int>\ttime to be added to load time, in us\n");
  printf(
      " -y, --sleep-step=<long int>\ttime to be added to sleep time, in us\n");
  printf(" -c, --cpu=<cpu #>\t\t\tCPU Nr. to use, starting at 0\n");
  printf(
      " -p, --prio=<priority>\t\t\tscheduler priority, HIGH, LOW or DEFAULT\n");
  printf(" -g, --governor=<governor>\t\tcpufreq governor to test\n");
  printf(" -n, --cycles=<int>\t\t\tload/sleep cycles\n");
  printf(" -r, --rounds<int>\t\t\tload/sleep rounds\n");
  printf(" -f, --file=<configfile>\t\tconfig file to use\n");
  printf(" -o, --output=<dir>\t\t\toutput path. Filename will be "
         "OUTPUTPATH/benchmark_TIMESTAMP.log\n");
  printf(" -v, --verbose\t\t\t\tverbose output on/off\n");
  printf(" -h, --help\t\t\t\tPrint this help screen\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
call   1030 <printf@plt>
lea    0xf23(%rip),%rdi
call   1030 <printf@plt>
lea    0xf59(%rip),%rdi
call   1030 <printf@plt>
lea    0xf91(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb9(%rip),%rdi
call   1030 <printf@plt>
lea    0xff0(%rip),%rdi
call   1030 <printf@plt>
lea    0x101a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1037(%rip),%rdi
call   1030 <printf@plt>
lea    0x1053(%rip),%rdi
call   1030 <printf@plt>
lea    0x1075(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c1(%rip),%rdi
call   1030 <printf@plt>
lea    0x10de(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xedb(%rip),%rdi
call   1030 <puts@plt>
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xefc(%rip),%rdi
call   1030 <puts@plt>
lea    0xf22(%rip),%rdi
call   1030 <puts@plt>
lea    0xf57(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8e(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb5(%rip),%rdi
call   1030 <puts@plt>
lea    0xfeb(%rip),%rdi
call   1030 <puts@plt>
lea    0x1014(%rip),%rdi
call   1030 <puts@plt>
lea    0x1030(%rip),%rdi
call   1030 <puts@plt>
lea    0x104b(%rip),%rdi
call   1030 <puts@plt>
lea    0x106c(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b7(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d3(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"usage: ./bench\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [49 x i8] c" -l, --load=<long int>\09\09initial load time in us\0A\00"
@.str.3 = [51 x i8] c" -s, --sleep=<long int>\09\09initial sleep time in us\0A\00"
@.str.4 = [66 x i8] c" -x, --load-step=<long int>\09time to be added to load time, in us\0A\00"
@.str.5 = [68 x i8] c" -y, --sleep-step=<long int>\09time to be added to sleep time, in us\0A\00"
@.str.6 = [52 x i8] c" -c, --cpu=<cpu #>\09\09\09CPU Nr. to use, starting at 0\0A\00"
@.str.7 = [67 x i8] c" -p, --prio=<priority>\09\09\09scheduler priority, HIGH, LOW or DEFAULT\0A\00"
@.str.8 = [54 x i8] c" -g, --governor=<governor>\09\09cpufreq governor to test\0A\00"
@.str.9 = [41 x i8] c" -n, --cycles=<int>\09\09\09load/sleep cycles\0A\00"
@.str.10 = [40 x i8] c" -r, --rounds<int>\09\09\09load/sleep rounds\0A\00"
@.str.11 = [46 x i8] c" -f, --file=<configfile>\09\09config file to use\0A\00"
@.str.12 = [88 x i8] c" -o, --output=<dir>\09\09\09output path. Filename will be OUTPUTPATH/benchmark_TIMESTAMP.log\0A\00"
@.str.13 = [41 x i8] c" -v, --verbose\09\09\09\09verbose output on/off\0A\00"
@.str.14 = [39 x i8] c" -h, --help\09\09\09\09Print this help screen\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [15 x i8] c"usage: ./bench\00"
@str.15 = [9 x i8] c"Options:\00"
@str.16 = [48 x i8] c" -l, --load=<long int>\09\09initial load time in us\00"
@str.17 = [50 x i8] c" -s, --sleep=<long int>\09\09initial sleep time in us\00"
@str.18 = [65 x i8] c" -x, --load-step=<long int>\09time to be added to load time, in us\00"
@str.19 = [67 x i8] c" -y, --sleep-step=<long int>\09time to be added to sleep time, in us\00"
@str.20 = [51 x i8] c" -c, --cpu=<cpu #>\09\09\09CPU Nr. to use, starting at 0\00"
@str.21 = [66 x i8] c" -p, --prio=<priority>\09\09\09scheduler priority, HIGH, LOW or DEFAULT\00"
@str.22 = [53 x i8] c" -g, --governor=<governor>\09\09cpufreq governor to test\00"
@str.23 = [40 x i8] c" -n, --cycles=<int>\09\09\09load/sleep cycles\00"
@str.24 = [39 x i8] c" -r, --rounds<int>\09\09\09load/sleep rounds\00"
@str.25 = [45 x i8] c" -f, --file=<configfile>\09\09config file to use\00"
@str.26 = [87 x i8] c" -o, --output=<dir>\09\09\09output path. Filename will be OUTPUTPATH/benchmark_TIMESTAMP.log\00"
@str.27 = [40 x i8] c" -v, --verbose\09\09\09\09verbose output on/off\00"
@str.28 = [38 x i8] c" -h, --help\09\09\09\09Print this help screen\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.15, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.16, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.17, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.18, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.19, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.20, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.21, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.22, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.23, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.24, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.25, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.26, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.27, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.28, i64 0, i64 0))
%16 = tail call i32 @exit(i32 1)
unreachable
}