#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 display_help(void) {
  printf("cyclictest %s\n", "V 0.15");
  printf(
      "Usage:\n"
      "cyclictest <options>\n\n"
      "-b USEC  --breaktrace=USEC send break trace command when latency > "
      "USEC\n"
      "-c CLOCK --clock=CLOCK     select clock\n"
      "                           0 = CLOCK_MONOTONIC (default)\n"
      "                           1 = CLOCK_REALTIME\n"
      "-d DIST  --distance=DIST   distance of thread intervals in us "
      "default=500\n"
      "-f                         function trace (when -b is active)\n"
      "-i INTV  --interval=INTV   base interval of thread in us default=1000\n"
      "-l LOOPS --loops=LOOPS     number of loops: default=0(endless)\n"
      "-n       --nanosleep       use clock_nanosleep\n"
      "-p PRIO  --prio=PRIO       priority of highest prio thread\n"
      "-q       --quiet           print only a summary on exit\n"
      "-r       --relative        use relative timer instead of absolute\n"
      "-s       --system          use sys_nanosleep and sys_setitimer\n"
      "-t NUM   --threads=NUM     number of threads: default=1\n"
      "-v       --verbose         output values on stdout for statistics\n"
      "                           format: n:c:v n=tasknum c=count v=value in "
      "us\n");
  exit(0);
}


x86 assembly (clang, -O0):
<display_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xedd(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<display_help>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xed0(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec9(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"cyclictest %s\0A\00"
@.str.1 = [7 x i8] c"V 0.15\00"
@.str.2 = [1000 x i8] c"Usage:\0Acyclictest <options>\0A\0A-b USEC --breaktrace=USEC send break trace command when latency > USEC\0A-c CLOCK --clock=CLOCK select clock\0A 0 = CLOCK_MONOTONIC (default)\0A 1 = CLOCK_REALTIME\0A-d DIST --distance=DIST distance of thread intervals in us default=500\0A-f function trace (when -b is active)\0A-i INTV --interval=INTV base interval of thread in us default=1000\0A-l LOOPS --loops=LOOPS number of loops: default=0(endless)\0A-n --nanosleep use clock_nanosleep\0A-p PRIO --prio=PRIO priority of highest prio thread\0A-q --quiet print only a summary on exit\0A-r --relative use relative timer instead of absolute\0A-s --system use sys_nanosleep and sys_setitimer\0A-t NUM --threads=NUM number of threads: default=1\0A-v --verbose output values on stdout for statistics\0A format: n:c:v n=tasknum c=count v=value in us\0A\00"
define void @display_help() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([1000 x i8], [1000 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [15 x i8] c"cyclictest %s\0A\00"
@.str.1 = [7 x i8] c"V 0.15\00"
@str = [999 x i8] c"Usage:\0Acyclictest <options>\0A\0A-b USEC --breaktrace=USEC send break trace command when latency > USEC\0A-c CLOCK --clock=CLOCK select clock\0A 0 = CLOCK_MONOTONIC (default)\0A 1 = CLOCK_REALTIME\0A-d DIST --distance=DIST distance of thread intervals in us default=500\0A-f function trace (when -b is active)\0A-i INTV --interval=INTV base interval of thread in us default=1000\0A-l LOOPS --loops=LOOPS number of loops: default=0(endless)\0A-n --nanosleep use clock_nanosleep\0A-p PRIO --prio=PRIO priority of highest prio thread\0A-q --quiet print only a summary on exit\0A-r --relative use relative timer instead of absolute\0A-s --system use sys_nanosleep and sys_setitimer\0A-t NUM --threads=NUM number of threads: default=1\0A-v --verbose output values on stdout for statistics\0A format: n:c:v n=tasknum c=count v=value in us\00"
define void @display_help() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([999 x i8], [999 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 0)
unreachable
}