#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 *, ...);
void usage(FILE *out, const char *name) {
  fprintf(out,
          "Usage: %s [-h] [-d <date>] [-s <section> ] [ -t <title> ] "
          "[input-file]\n\n",
          name);
  fprintf(out,
          "\t-d, --date\n"
          "\t\tSet the date of the manpage (default: now),\n"
          "\t-h, --help\n"
          "\t\tDisplay this help text and exit without further processing\n"
          "\t-s, --section\n"
          "\t\tSet the section of the manpage (default: 1)\n"
          "\t-t, --title\n"
          "\t\tSet the title of the manpage (default: filename)\n");
}


x86 assembly (clang, -O0):
<usage>:
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
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf08(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rsi,%rdx
mov    %rdi,%rbx
lea    0xed2(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf0d(%rip),%rdi
mov    $0x100,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [73 x i8] c"Usage: %s [-h] [-d <date>] [-s <section> ] [ -t <title> ] [input-file]\0A\0A\00"
@.str.1 = [257 x i8] c"\09-d, --date\0A\09\09Set the date of the manpage (default: now),\0A\09-h, --help\0A\09\09Display this help text and exit without further processing\0A\09-s, --section\0A\09\09Set the section of the manpage (default: 1)\0A\09-t, --title\0A\09\09Set the title of the manpage (default: filename)\0A\00"
define void @usage(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 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i32*, i32** %3
%9 = call i32 (i32*, i8*, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([257 x i8], [257 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [73 x i8] c"Usage: %s [-h] [-d <date>] [-s <section> ] [ -t <title> ] [input-file]\0A\0A\00"
@.str.1 = [257 x i8] c"\09-d, --date\0A\09\09Set the date of the manpage (default: now),\0A\09-h, --help\0A\09\09Display this help text and exit without further processing\0A\09-s, --section\0A\09\09Set the section of the manpage (default: 1)\0A\09-t, --title\0A\09\09Set the title of the manpage (default: filename)\0A\00"
define void @usage(i32* nocapture %0, i8* %1) {
%3 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %1)
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([257 x i8], [257 x i8]* @.str.1, i64 0, i64 0), i64 256, i64 1, i32* %0)
ret void
}