#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr, "interbench v "
                  "0.31"
                  " by Con Kolivas\n");
  fprintf(stderr,
          "interbench [-l <int>] [-L <int>] [-t <int] [-B <int>] [-N <int>]\n");
  fprintf(stderr, "\t[-b] [-c] [-r] [-C <int> -I <int>] [-m <comment>]\n");
  fprintf(stderr,
          "\t[-w <load type>] [-x <load type>] [-W <bench>] [-X <bench>]\n");
  fprintf(stderr, "\t[-h]\n\n");
  fprintf(stderr,
          " -l\tUse <int> loops per sec (default: use saved benchmark)\n");
  fprintf(stderr, " -L\tUse cpu load of <int> with burn load (default: 4)\n");
  fprintf(stderr, " -t\tSeconds to run each benchmark (default: 30)\n");
  fprintf(stderr, " -B\tNice the benchmarked thread to <int> (default: 0)\n");
  fprintf(stderr, " -N\tNice the load thread to <int> (default: 0)\n");
  fprintf(stderr, " -b\tBenchmark loops_per_ms even if it is already known\n");
  fprintf(stderr,
          " -c\tOutput to console only (default: use console and logfile)\n");
  fprintf(stderr,
          " -r\tPerform real time scheduling benchmarks (default: non-rt)\n");
  fprintf(stderr, " -C\tUse <int> percentage cpu as a custom load (default: no "
                  "custom load)\n");
  fprintf(stderr, " -I\tUse <int> microsecond intervals for custom load (needs "
                  "-C as well)\n");
  fprintf(stderr, " -m\tAdd <comment> to the log file as a separate line\n");
  fprintf(stderr,
          " -w\tAdd <load type> to the list of loads to be tested against\n");
  fprintf(
      stderr,
      " -x\tExclude <load type> from the list of loads to be tested against\n");
  fprintf(stderr, " -W\tAdd <bench> to the list of benchmarks to be tested\n");
  fprintf(stderr,
          " -X\tExclude <bench> from the list of benchmarks to be tested\n");
  fprintf(stderr, " -h\tShow this help\n");
  fprintf(
      stderr,
      "\nIf run without parameters interbench will run a standard benchmark\n");
  fprintf(stderr, "\nRecommend to run as root and set -L to number of CPUs on "
                  "the system\n\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
lea    0xee9(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
lea    0xf16(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%edi
lea    0xf35(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%edi
lea    0xf5e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
lea    0xf51(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%edi
lea    0xf78(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
lea    0xf9a(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%edi
lea    0xfb6(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
lea    0xfd8(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
lea    0xff3(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dde(%rip),%rax
mov    (%rax),%edi
lea    0x1016(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dc9(%rip),%rax
mov    (%rax),%edi
lea    0x1040(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2db4(%rip),%rax
mov    (%rax),%edi
lea    0x106a(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d9f(%rip),%rax
mov    (%rax),%edi
lea    0x109e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d8a(%rip),%rax
mov    (%rax),%edi
lea    0x10d1(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d75(%rip),%rax
mov    (%rax),%edi
lea    0x10f2(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d60(%rip),%rax
mov    (%rax),%edi
lea    0x111c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d4b(%rip),%rax
mov    (%rax),%edi
lea    0x114c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d36(%rip),%rax
mov    (%rax),%edi
lea    0x116f(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d21(%rip),%rax
mov    (%rax),%edi
lea    0x1198(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d0c(%rip),%rax
mov    (%rax),%edi
lea    0x1197(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2cf7(%rip),%rax
mov    (%rax),%edi
lea    0x11c7(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xef3(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf27(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf4d(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf7d(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf77(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfa5(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfce(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xff1(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x101a(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x103c(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1066(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1097(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10c8(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1103(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x113d(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1165(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1196(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x11cd(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x11f7(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1227(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x122d(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1264(%rip),%rsi
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [34 x i8] c"interbench v 0.31 by Con Kolivas\0A\00"
@.str.1 = [66 x i8] c"interbench [-l <int>] [-L <int>] [-t <int] [-B <int>] [-N <int>]\0A\00"
@.str.2 = [52 x i8] c"\09[-b] [-c] [-r] [-C <int> -I <int>] [-m <comment>]\0A\00"
@.str.3 = [62 x i8] c"\09[-w <load type>] [-x <load type>] [-W <bench>] [-X <bench>]\0A\00"
@.str.4 = [8 x i8] c"\09[-h]\0A\0A\00"
@.str.5 = [60 x i8] c" -l\09Use <int> loops per sec (default: use saved benchmark)\0A\00"
@.str.6 = [55 x i8] c" -L\09Use cpu load of <int> with burn load (default: 4)\0A\00"
@.str.7 = [49 x i8] c" -t\09Seconds to run each benchmark (default: 30)\0A\00"
@.str.8 = [55 x i8] c" -B\09Nice the benchmarked thread to <int> (default: 0)\0A\00"
@.str.9 = [48 x i8] c" -N\09Nice the load thread to <int> (default: 0)\0A\00"
@.str.10 = [56 x i8] c" -b\09Benchmark loops_per_ms even if it is already known\0A\00"
@.str.11 = [63 x i8] c" -c\09Output to console only (default: use console and logfile)\0A\00"
@.str.12 = [63 x i8] c" -r\09Perform real time scheduling benchmarks (default: non-rt)\0A\00"
@.str.13 = [73 x i8] c" -C\09Use <int> percentage cpu as a custom load (default: no custom load)\0A\00"
@.str.14 = [72 x i8] c" -I\09Use <int> microsecond intervals for custom load (needs -C as well)\0A\00"
@.str.15 = [54 x i8] c" -m\09Add <comment> to the log file as a separate line\0A\00"
@.str.16 = [63 x i8] c" -w\09Add <load type> to the list of loads to be tested against\0A\00"
@.str.17 = [69 x i8] c" -x\09Exclude <load type> from the list of loads to be tested against\0A\00"
@.str.18 = [56 x i8] c" -W\09Add <bench> to the list of benchmarks to be tested\0A\00"
@.str.19 = [62 x i8] c" -X\09Exclude <bench> from the list of benchmarks to be tested\0A\00"
@.str.20 = [20 x i8] c" -h\09Show this help\0A\00"
@.str.21 = [69 x i8] c"\0AIf run without parameters interbench will run a standard benchmark\0A\00"
@.str.22 = [71 x i8] c"\0ARecommend to run as root and set -L to number of CPUs on the system\0A\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.9, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.12, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.13, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.14, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.15, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.16, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.17, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.18, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.19, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.20, i64 0, i64 0))
%43 = load i32, i32* @stderr
%44 = call i32 @fprintf(i32 %43, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.21, i64 0, i64 0))
%45 = load i32, i32* @stderr
%46 = call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.22, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [34 x i8] c"interbench v 0.31 by Con Kolivas\0A\00"
@.str.1 = [66 x i8] c"interbench [-l <int>] [-L <int>] [-t <int] [-B <int>] [-N <int>]\0A\00"
@.str.2 = [52 x i8] c"\09[-b] [-c] [-r] [-C <int> -I <int>] [-m <comment>]\0A\00"
@.str.3 = [62 x i8] c"\09[-w <load type>] [-x <load type>] [-W <bench>] [-X <bench>]\0A\00"
@.str.4 = [8 x i8] c"\09[-h]\0A\0A\00"
@.str.5 = [60 x i8] c" -l\09Use <int> loops per sec (default: use saved benchmark)\0A\00"
@.str.6 = [55 x i8] c" -L\09Use cpu load of <int> with burn load (default: 4)\0A\00"
@.str.7 = [49 x i8] c" -t\09Seconds to run each benchmark (default: 30)\0A\00"
@.str.8 = [55 x i8] c" -B\09Nice the benchmarked thread to <int> (default: 0)\0A\00"
@.str.9 = [48 x i8] c" -N\09Nice the load thread to <int> (default: 0)\0A\00"
@.str.10 = [56 x i8] c" -b\09Benchmark loops_per_ms even if it is already known\0A\00"
@.str.11 = [63 x i8] c" -c\09Output to console only (default: use console and logfile)\0A\00"
@.str.12 = [63 x i8] c" -r\09Perform real time scheduling benchmarks (default: non-rt)\0A\00"
@.str.13 = [73 x i8] c" -C\09Use <int> percentage cpu as a custom load (default: no custom load)\0A\00"
@.str.14 = [72 x i8] c" -I\09Use <int> microsecond intervals for custom load (needs -C as well)\0A\00"
@.str.15 = [54 x i8] c" -m\09Add <comment> to the log file as a separate line\0A\00"
@.str.16 = [63 x i8] c" -w\09Add <load type> to the list of loads to be tested against\0A\00"
@.str.17 = [69 x i8] c" -x\09Exclude <load type> from the list of loads to be tested against\0A\00"
@.str.18 = [56 x i8] c" -W\09Add <bench> to the list of benchmarks to be tested\0A\00"
@.str.19 = [62 x i8] c" -X\09Exclude <bench> from the list of benchmarks to be tested\0A\00"
@.str.20 = [20 x i8] c" -h\09Show this help\0A\00"
@.str.21 = [69 x i8] c"\0AIf run without parameters interbench will run a standard benchmark\0A\00"
@.str.22 = [71 x i8] c"\0ARecommend to run as root and set -L to number of CPUs on the system\0A\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.9, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = tail call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.12, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = tail call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.13, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.14, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = tail call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.15, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = tail call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.16, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = tail call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.17, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = tail call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.18, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = tail call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.19, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = tail call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.20, i64 0, i64 0))
%43 = load i32, i32* @stderr
%44 = tail call i32 @fprintf(i32 %43, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.21, i64 0, i64 0))
%45 = load i32, i32* @stderr
%46 = tail call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.22, i64 0, i64 0))
ret void
}