#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char const *);
void print_help(FILE *o, const char *argv0) {
  fprintf(
      o,
      "Usage: %s [OPTION]... {PID|CORE}\n"
      "Display arguments and other vectors of a process.\n\n"
      "  -a         print process arguments (argv, argument vector)\n"
      "  -d         enable debug output (when reading core files)\n"
      "  -e         print environment variables (envp, environment vector)\n"
      "  -h,--help  display this help text and exit\n"
      "  -l         print command line\n"
      "  -s         attach/detach process to stop process during -x reads\n"
      "             (for Linux < 3.2)\n"
      "  -x         print auxillary vector\n"
      "  -v         verbose mode\n"
      "\n\n"
      "2017, Georg Sauthoff <mail@gms.tf>, GPLv3+\n",
      argv0);
}


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

x86 assembly (clang, -O2):
<print_help>:
mov    %rsi,%rdx
lea    0xee6(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [555 x i8] c"Usage: %s [OPTION]... {PID|CORE}\0ADisplay arguments and other vectors of a process.\0A\0A -a print process arguments (argv, argument vector)\0A -d enable debug output (when reading core files)\0A -e print environment variables (envp, environment vector)\0A -h,--help display this help text and exit\0A -l print command line\0A -s attach/detach process to stop process during -x reads\0A (for Linux < 3.2)\0A -x print auxillary vector\0A -v verbose mode\0A\0A\0A2017, Georg Sauthoff <mail@gms.tf>, GPLv3+\0A\00"
define void @print_help(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
%5 = load i32*, i32** %3
%6 = load i8*, i8** %4
%7 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([555 x i8], [555 x i8]* @.str, i64 0, i64 0), i8* %6)
ret void
}

LLVM IR (-O2):
@.str = [555 x i8] c"Usage: %s [OPTION]... {PID|CORE}\0ADisplay arguments and other vectors of a process.\0A\0A -a print process arguments (argv, argument vector)\0A -d enable debug output (when reading core files)\0A -e print environment variables (envp, environment vector)\0A -h,--help display this help text and exit\0A -l print command line\0A -s attach/detach process to stop process during -x reads\0A (for Linux < 3.2)\0A -x print auxillary vector\0A -v verbose mode\0A\0A\0A2017, Georg Sauthoff <mail@gms.tf>, GPLv3+\0A\00"
define void @print_help(i32* nocapture %0, i8* %1) {
%3 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([555 x i8], [555 x i8]* @.str, i64 0, i64 0), i8* %1)
ret void
}