#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 *, ...);
int /*<<< orphan*/ stderr;
void print_usage(void) {
  fprintf(
      stderr,
      "usage: c-index-test -code-completion-at=<site> <compiler arguments>\n"
      "       c-index-test -code-completion-timing=<site> <compiler "
      "arguments>\n"
      "       c-index-test -cursor-at=<site> <compiler arguments>\n"
      "       c-index-test -test-file-scan <AST file> <source file> "
      "[FileCheck prefix]\n"
      "       c-index-test -test-load-tu <AST file> <symbol filter> "
      "[FileCheck prefix]\n"
      "       c-index-test -test-load-tu-usrs <AST file> <symbol filter> "
      "[FileCheck prefix]\n"
      "       c-index-test -test-load-source <symbol filter> {<args>}*\n");
  fprintf(
      stderr,
      "       c-index-test -test-load-source-reparse <trials> <symbol filter> "
      "          {<args>}*\n"
      "       c-index-test -test-load-source-usrs <symbol filter> {<args>}*\n"
      "       c-index-test -test-annotate-tokens=<range> {<args>}*\n"
      "       c-index-test -test-inclusion-stack-source {<args>}*\n"
      "       c-index-test -test-inclusion-stack-tu <AST file>\n"
      "       c-index-test -test-print-linkage-source {<args>}*\n"
      "       c-index-test -test-print-typekind {<args>}*\n"
      "       c-index-test -print-usr [<CursorKind> {<args>}]*\n");
  fprintf(stderr,
          "       c-index-test -print-usr-file <file>\n"
          "       c-index-test -write-pch <file> <compiler arguments>\n\n");
  fprintf(stderr, " <symbol filter> values:\n%s",
          "   all - load all symbols, including those from PCH\n"
          "   local - load all symbols except those in PCH\n"
          "   category - only load ObjC categories (non-PCH)\n"
          "   interface - only load ObjC interfaces (non-PCH)\n"
          "   protocol - only load ObjC protocols (non-PCH)\n"
          "   function - only load functions (non-PCH)\n"
          "   typedef - only load typdefs (non-PCH)\n"
          "   scan-function - scan function bodies (non-PCH)\n\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
lea    0x10c2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
lea    0x129f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
lea    0x12f0(%rip),%rsi
lea    0x1305(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10cc(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x12b0(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1308(%rip),%rsi
lea    0x131d(%rip),%rdx
xor    %eax,%eax
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [509 x i8] c"usage: c-index-test -code-completion-at=<site> <compiler arguments>\0A c-index-test -code-completion-timing=<site> <compiler arguments>\0A c-index-test -cursor-at=<site> <compiler arguments>\0A c-index-test -test-file-scan <AST file> <source file> [FileCheck prefix]\0A c-index-test -test-load-tu <AST file> <symbol filter> [FileCheck prefix]\0A c-index-test -test-load-tu-usrs <AST file> <symbol filter> [FileCheck prefix]\0A c-index-test -test-load-source <symbol filter> {<args>}*\0A\00"
@.str.1 = [500 x i8] c" c-index-test -test-load-source-reparse <trials> <symbol filter> {<args>}*\0A c-index-test -test-load-source-usrs <symbol filter> {<args>}*\0A c-index-test -test-annotate-tokens=<range> {<args>}*\0A c-index-test -test-inclusion-stack-source {<args>}*\0A c-index-test -test-inclusion-stack-tu <AST file>\0A c-index-test -test-print-linkage-source {<args>}*\0A c-index-test -test-print-typekind {<args>}*\0A c-index-test -print-usr [<CursorKind> {<args>}]*\0A\00"
@.str.2 = [104 x i8] c" c-index-test -print-usr-file <file>\0A c-index-test -write-pch <file> <compiler arguments>\0A\0A\00"
@.str.3 = [28 x i8] c" <symbol filter> values:\0A%s\00"
@.str.4 = [387 x i8] c" all - load all symbols, including those from PCH\0A local - load all symbols except those in PCH\0A category - only load ObjC categories (non-PCH)\0A interface - only load ObjC interfaces (non-PCH)\0A protocol - only load ObjC protocols (non-PCH)\0A function - only load functions (non-PCH)\0A typedef - only load typdefs (non-PCH)\0A scan-function - scan function bodies (non-PCH)\0A\0A\00"
define void @print_usage() {
%1 = load i32, i32* @stderr
%2 = call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([509 x i8], [509 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([500 x i8], [500 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([387 x i8], [387 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [509 x i8] c"usage: c-index-test -code-completion-at=<site> <compiler arguments>\0A c-index-test -code-completion-timing=<site> <compiler arguments>\0A c-index-test -cursor-at=<site> <compiler arguments>\0A c-index-test -test-file-scan <AST file> <source file> [FileCheck prefix]\0A c-index-test -test-load-tu <AST file> <symbol filter> [FileCheck prefix]\0A c-index-test -test-load-tu-usrs <AST file> <symbol filter> [FileCheck prefix]\0A c-index-test -test-load-source <symbol filter> {<args>}*\0A\00"
@.str.1 = [500 x i8] c" c-index-test -test-load-source-reparse <trials> <symbol filter> {<args>}*\0A c-index-test -test-load-source-usrs <symbol filter> {<args>}*\0A c-index-test -test-annotate-tokens=<range> {<args>}*\0A c-index-test -test-inclusion-stack-source {<args>}*\0A c-index-test -test-inclusion-stack-tu <AST file>\0A c-index-test -test-print-linkage-source {<args>}*\0A c-index-test -test-print-typekind {<args>}*\0A c-index-test -print-usr [<CursorKind> {<args>}]*\0A\00"
@.str.2 = [104 x i8] c" c-index-test -print-usr-file <file>\0A c-index-test -write-pch <file> <compiler arguments>\0A\0A\00"
@.str.3 = [28 x i8] c" <symbol filter> values:\0A%s\00"
@.str.4 = [387 x i8] c" all - load all symbols, including those from PCH\0A local - load all symbols except those in PCH\0A category - only load ObjC categories (non-PCH)\0A interface - only load ObjC interfaces (non-PCH)\0A protocol - only load ObjC protocols (non-PCH)\0A function - only load functions (non-PCH)\0A typedef - only load typdefs (non-PCH)\0A scan-function - scan function bodies (non-PCH)\0A\0A\00"
define void @print_usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([509 x i8], [509 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([500 x i8], [500 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([387 x i8], [387 x i8]* @.str.4, i64 0, i64 0))
ret void
}