#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 *, char const *);
void help(void) {
  const char *help_msg =
      "HyperLink version 1.0, Copyright (c) 2014 Jidong Xiao & Lei Lu\n"
      "usage: hyperlink [options] -o OS trusted_dumpfile_path "
      "monitored_dumpfile_path\n"
      "HyperLink memory forensic utility\n"
      "\n"
      "Command options and parameters:\n"
      "  '-d' indicates that the dump file is a virtual memory dump or a "
      "physical memory dump,\n"
      "    the parameter can be either 'virt' or 'phys'\n"
      "  '-h' shows this help message\n"
      "  '-l' indicates that the linked list in the operating system is the "
      "old type of the new type,\n"
      "    the parameter can be either 'old' or 'new'\n"
      "  '-o' indicates the operating system of the dump file\n"
      "  'trusted_dumpfile_path' is the path to the trusted dump file\n"
      "  'monitored_dumpfile_path' is the path to the monitored dump file\n"
      "\n";
  printf("%s\n", help_msg);
  exit(1);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0x1184(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0x119a(%rip),%rdi
lea    0xed1(%rip),%rsi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [706 x i8] c"HyperLink version 1.0, Copyright (c) 2014 Jidong Xiao & Lei Lu\0Ausage: hyperlink [options] -o OS trusted_dumpfile_path monitored_dumpfile_path\0AHyperLink memory forensic utility\0A\0ACommand options and parameters:\0A '-d' indicates that the dump file is a virtual memory dump or a physical memory dump,\0A the parameter can be either 'virt' or 'phys'\0A '-h' shows this help message\0A '-l' indicates that the linked list in the operating system is the old type of the new type,\0A the parameter can be either 'old' or 'new'\0A '-o' indicates the operating system of the dump file\0A 'trusted_dumpfile_path' is the path to the trusted dump file\0A 'monitored_dumpfile_path' is the path to the monitored dump file\0A\0A\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define void @help() {
%1 = alloca i8*
store i8* getelementptr inbounds ([706 x i8], [706 x i8]* @.str, i64 0, i64 0), i8** %1
%2 = load i8*, i8** %1
%3 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%4 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [706 x i8] c"HyperLink version 1.0, Copyright (c) 2014 Jidong Xiao & Lei Lu\0Ausage: hyperlink [options] -o OS trusted_dumpfile_path monitored_dumpfile_path\0AHyperLink memory forensic utility\0A\0ACommand options and parameters:\0A '-d' indicates that the dump file is a virtual memory dump or a physical memory dump,\0A the parameter can be either 'virt' or 'phys'\0A '-h' shows this help message\0A '-l' indicates that the linked list in the operating system is the old type of the new type,\0A the parameter can be either 'old' or 'new'\0A '-o' indicates the operating system of the dump file\0A 'trusted_dumpfile_path' is the path to the trusted dump file\0A 'monitored_dumpfile_path' is the path to the monitored dump file\0A\0A\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define void @help() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([706 x i8], [706 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 1)
unreachable
}