#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*/ fprintf(int /*<<< orphan*/, char *, char const *,
                           char const *);
int /*<<< orphan*/ stdout;
void show_help_message(char const *name) {
  do {
    fprintf(stdout,
            ""
            "%s: a C version of the NAR archiver\n"
            "Usage: %s --narfile|-n <filename> [option]\n"
            "\n"
            "Copyright (c) 2014, Nicolas DI PRIMA <nicolas@di-prima.fr>\n"
            "this implementation of nar comes without any warranty\n"
            "\n"
            "Options:\n"
            "    --help|-h\n"
            "                        show this help message\n"
            "    --narfile=<file>|-n <file>\n"
            "                        specify a narfile\n"
            "    --create|-c create\n"
            "                        create the file specified in the option "
            "--narfile\n"
            "    --append=<path>|-a <path>\n"
            "                        append the file or directory pointed by "
            "the <path> in\n"
            "                        the narfile specified in the option "
            "--narfile\n"
            "    --list|-l\n"
            "                        list the content of the archive given by "
            "option\n"
            "                        --narfile\n"
            "    --extract=<path>|-e <path>\n"
            "                        extract the item file named (path) from "
            "the given\n"
            "                        narfile specified in the option --narfile"
            "\n",
            name, name);
  } while (0);
}


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

x86 assembly (clang, -O2):
<show_help_message>:
mov    %rdi,%rcx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
mov    %rcx,%rdx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [904 x i8] c"%s: a C version of the NAR archiver\0AUsage: %s --narfile|-n <filename> [option]\0A\0ACopyright (c) 2014, Nicolas DI PRIMA <nicolas@di-prima.fr>\0Athis implementation of nar comes without any warranty\0A\0AOptions:\0A --help|-h\0A show this help message\0A --narfile=<file>|-n <file>\0A specify a narfile\0A --create|-c create\0A create the file specified in the option --narfile\0A --append=<path>|-a <path>\0A append the file or directory pointed by the <path> in\0A the narfile specified in the option --narfile\0A --list|-l\0A list the content of the archive given by option\0A --narfile\0A --extract=<path>|-e <path>\0A extract the item file named (path) from the given\0A narfile specified in the option --narfile\0A\00"
define void @show_help_message(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %1
%4 = load i32, i32* @stdout
%5 = load i8*, i8** %2
%6 = load i8*, i8** %2
%7 = call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([904 x i8], [904 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %6)
br label %8
8: ; preds = %3
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [904 x i8] c"%s: a C version of the NAR archiver\0AUsage: %s --narfile|-n <filename> [option]\0A\0ACopyright (c) 2014, Nicolas DI PRIMA <nicolas@di-prima.fr>\0Athis implementation of nar comes without any warranty\0A\0AOptions:\0A --help|-h\0A show this help message\0A --narfile=<file>|-n <file>\0A specify a narfile\0A --create|-c create\0A create the file specified in the option --narfile\0A --append=<path>|-a <path>\0A append the file or directory pointed by the <path> in\0A the narfile specified in the option --narfile\0A --list|-l\0A list the content of the archive given by option\0A --narfile\0A --extract=<path>|-e <path>\0A extract the item file named (path) from the given\0A narfile specified in the option --narfile\0A\00"
define void @show_help_message(i8* %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([904 x i8], [904 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0)
ret void
}