#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*/ printf(char *, char const *, char const *, char const *);
void print_help_message(const char *self) {
  printf(
      "Usage: %s [options] COMMAND [ARGS]\n"
      "Options:\n"
      "  --mem         Use /dev/mem instead of /dev/vpmu-device-0 for "
      "communication\n"
      ""
      "  --jit         Enable just-in-time model selection on performance "
      "simulation\n"
      "  --trace       Enable VPMU event tracing and function tracking "
      "ability\n"
      "                If \"--trace\" is set, the process will be traced "
      "automatically\n"
      "  --phase       Enable VPMU phase detection, --trace will be forced to "
      "set\n"
      "  --[MODEL]     [MODEL] could be one of the following\n"
      "                    inst, cache, branch, pipeline, all_models\n"
      "  --monitor     Enable VPMU event tracing and set the binary without\n"
      "                executing them when using -e action\n"
      "  --remove      Remove binary (specified by -e option) from monitoring "
      "list\n"
      "  --help        Show this message\n"
      "\n\n"
      "Example:\n"
      "    %s --all_models ls -al\n"
      "    %s --all_models --monitor ls -al\n",
      self, self, self);
}


x86 assembly (clang, -O0):
<print_help_message>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    -0x8(%rbp),%rcx
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help_message>:
mov    %rdi,%rcx
lea    0xee6(%rip),%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [847 x i8] c"Usage: %s [options] COMMAND [ARGS]\0AOptions:\0A --mem Use /dev/mem instead of /dev/vpmu-device-0 for communication\0A --jit Enable just-in-time model selection on performance simulation\0A --trace Enable VPMU event tracing and function tracking ability\0A If \22--trace\22 is set, the process will be traced automatically\0A --phase Enable VPMU phase detection, --trace will be forced to set\0A --[MODEL] [MODEL] could be one of the following\0A inst, cache, branch, pipeline, all_models\0A --monitor Enable VPMU event tracing and set the binary without\0A executing them when using -e action\0A --remove Remove binary (specified by -e option) from monitoring list\0A --help Show this message\0A\0A\0AExample:\0A %s --all_models ls -al\0A %s --all_models --monitor ls -al\0A\00"
define void @print_help_message(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @printf(i8* getelementptr inbounds ([847 x i8], [847 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %4, i8* %5)
ret void
}

LLVM IR (-O2):
@.str = [847 x i8] c"Usage: %s [options] COMMAND [ARGS]\0AOptions:\0A --mem Use /dev/mem instead of /dev/vpmu-device-0 for communication\0A --jit Enable just-in-time model selection on performance simulation\0A --trace Enable VPMU event tracing and function tracking ability\0A If \22--trace\22 is set, the process will be traced automatically\0A --phase Enable VPMU phase detection, --trace will be forced to set\0A --[MODEL] [MODEL] could be one of the following\0A inst, cache, branch, pipeline, all_models\0A --monitor Enable VPMU event tracing and set the binary without\0A executing them when using -e action\0A --remove Remove binary (specified by -e option) from monitoring list\0A --help Show this message\0A\0A\0AExample:\0A %s --all_models ls -al\0A %s --all_models --monitor ls -al\0A\00"
define void @print_help_message(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([847 x i8], [847 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0, i8* %0)
ret void
}