#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("signaltest %s\n", "V 0.3");
  printf("Usage:\n"
         "signaltest <options>\n\n"
         "-b USEC  --breaktrace=USEC send break trace command when latency > "
         "USEC\n"
         "-f                         function trace (when -b is active)\n"
         "-l LOOPS --loops=LOOPS     number of loops: default=0(endless)\n"
         "-p PRIO  --prio=PRIO       priority of highest prio thread\n"
         "-q       --quiet           print only a summary on exit\n"
         "-t NUM   --threads=NUM     number of threads: default=2\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    0xed5(%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    0xec8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"signaltest %s\0A\00"
@.str.1 = [6 x i8] c"V 0.3\00"
@.str.2 = [537 x i8] c"Usage:\0Asignaltest <options>\0A\0A-b USEC --breaktrace=USEC send break trace command when latency > USEC\0A-f function trace (when -b is active)\0A-l LOOPS --loops=LOOPS number of loops: default=0(endless)\0A-p PRIO --prio=PRIO priority of highest prio thread\0A-q --quiet print only a summary on exit\0A-t NUM --threads=NUM number of threads: default=2\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 ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([537 x i8], [537 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [15 x i8] c"signaltest %s\0A\00"
@.str.1 = [6 x i8] c"V 0.3\00"
@str = [536 x i8] c"Usage:\0Asignaltest <options>\0A\0A-b USEC --breaktrace=USEC send break trace command when latency > USEC\0A-f function trace (when -b is active)\0A-l LOOPS --loops=LOOPS number of loops: default=0(endless)\0A-p PRIO --prio=PRIO priority of highest prio thread\0A-q --quiet print only a summary on exit\0A-t NUM --threads=NUM number of threads: default=2\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 ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([536 x i8], [536 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 0)
unreachable
}