#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_FAILURE;
int /*<<< orphan*/ basename(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char const *,
                           int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void print_usage_and_exit(char *command_path) {
  char const usage_format[] =
      "USAGE: %s [options]...\n"
      "  -h, --help      display this help message\n"
      "  -q, --quiet     only display results on failure\n"
      "  -v, --verbose   print each test case being run\n";
  fprintf(stderr, usage_format, basename(command_path));
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<print_usage_and_exit>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0xb0(%rbp),%rdi
lea    0xea3(%rip),%rsi
mov    $0xa7,%edx
call   1050 <memcpy@plt>
mov    0x2e72(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xbc(%rbp)
lea    -0xb0(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <basename@plt>
mov    -0xbc(%rbp),%edi
mov    -0xb8(%rbp),%rsi
mov    %eax,%edx
call   1030 <fprintf@plt>
mov    0x2e30(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<print_usage_and_exit>:
push   %rbp
push   %r14
push   %rbx
sub    $0xb0,%rsp
mov    %rdi,%rbx
lea    0xeab(%rip),%rsi
mov    %rsp,%r14
mov    $0xa7,%edx
mov    %r14,%rdi
call   1050 <memcpy@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%ebp
mov    %rbx,%rdi
call   1040 <basename@plt>
mov    %ebp,%edi
mov    %r14,%rsi
mov    %eax,%edx
call   1030 <fprintf@plt>
mov    0x2e4f(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@__const.print_usage_and_exit.usage_format = [167 x i8] c"USAGE: %s [options]...\0A -h, --help display this help message\0A -q, --quiet only display results on failure\0A -v, --verbose print each test case being run\0A\00"
@stderr = global i32 0
@EXIT_FAILURE = global i32 0
define void @print_usage_and_exit(i8* %0) {
%2 = alloca i8*
%3 = alloca [167 x i8]
store i8* %0, i8** %2
%4 = bitcast [167 x i8]* %3 to i8*
%5 = load i32, i32* @stderr
%6 = getelementptr inbounds [167 x i8], [167 x i8]* %3, i64 0, i64 0
%7 = load i8*, i8** %2
%8 = call i32 @basename(i8* %7)
%9 = call i32 @fprintf(i32 %5, i8* %6, i32 %8)
%10 = load i32, i32* @EXIT_FAILURE
%11 = call i32 @exit(i32 %10)
unreachable
}

LLVM IR (-O2):
@__const.print_usage_and_exit.usage_format = [167 x i8] c"USAGE: %s [options]...\0A -h, --help display this help message\0A -q, --quiet only display results on failure\0A -v, --verbose print each test case being run\0A\00"
@stderr = global i32 0
@EXIT_FAILURE = global i32 0
define void @print_usage_and_exit(i8* %0) {
%2 = alloca [167 x i8]
%3 = getelementptr inbounds [167 x i8], [167 x i8]* %2, i64 0, i64 0
%4 = load i32, i32* @stderr
%5 = tail call i32 @basename(i8* %0)
%6 = call i32 @fprintf(i32 %4, i8* %3, i32 %5)
%7 = load i32, i32* @EXIT_FAILURE
%8 = call i32 @exit(i32 %7)
unreachable
}