#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 *, ...);
int /*<<< orphan*/ stderr;
void Usage(const char *argv0, const char *argvN) {
  fprintf(stderr, "%s: Illegal argument \"%s\"\n", argv0, argvN);
  fprintf(
      stderr,
      "Usage: %s [options] filename...\n"
      "Options:\n"
      "  -h          Generate a single .h to standard output.\n"
      "  -H          Like -h, but only output EXPORT declarations.\n"
      "  -v          (verbose) Write status information to the screen.\n"
      "  -doc        Generate no header files.  Instead, output information\n"
      "              that can be used by an automatic program documentation\n"
      "              and cross-reference generator.\n"
      "  -local      Generate prototypes for \"static\" functions and\n"
      "              procedures.\n"
      "  -f FILE     Read additional command-line arguments from the file "
      "named\n"
      "              \"FILE\".\n"
      "  --          Treat all subsequent comment-line parameters as "
      "filenames,\n"
      "              even if they begin with \"-\".\n",
      argv0);
}


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

x86 assembly (clang, -O2):
<Usage>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rcx
mov    %rdi,%rbx
mov    0x2ebf(%rip),%r14
mov    (%r14),%edi
lea    0xed5(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xedc(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [27 x i8] c"%s: Illegal argument \22%s\22\0A\00"
@.str.1 = [702 x i8] c"Usage: %s [options] filename...\0AOptions:\0A -h Generate a single .h to standard output.\0A -H Like -h, but only output EXPORT declarations.\0A -v (verbose) Write status information to the screen.\0A -doc Generate no header files. Instead, output information\0A that can be used by an automatic program documentation\0A and cross-reference generator.\0A -local Generate prototypes for \22static\22 functions and\0A procedures.\0A -f FILE Read additional command-line arguments from the file named\0A \22FILE\22.\0A -- Treat all subsequent comment-line parameters as filenames,\0A even if they begin with \22-\22.\0A\00"
define void @Usage(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %3
%7 = load i8*, i8** %4
%8 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %6, i8* %7)
%9 = load i32, i32* @stderr
%10 = load i8*, i8** %3
%11 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([702 x i8], [702 x i8]* @.str.1, i64 0, i64 0), i8* %10)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [27 x i8] c"%s: Illegal argument \22%s\22\0A\00"
@.str.1 = [702 x i8] c"Usage: %s [options] filename...\0AOptions:\0A -h Generate a single .h to standard output.\0A -H Like -h, but only output EXPORT declarations.\0A -v (verbose) Write status information to the screen.\0A -doc Generate no header files. Instead, output information\0A that can be used by an automatic program documentation\0A and cross-reference generator.\0A -local Generate prototypes for \22static\22 functions and\0A procedures.\0A -f FILE Read additional command-line arguments from the file named\0A \22FILE\22.\0A -- Treat all subsequent comment-line parameters as filenames,\0A even if they begin with \22-\22.\0A\00"
define void @Usage(i8* %0, i8* %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1)
%5 = load i32, i32* @stderr
%6 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([702 x i8], [702 x i8]* @.str.1, i64 0, i64 0), i8* %0)
ret void
}