#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 -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"
      "       c-index-test -test-load-source-usrs <symbol filter> {<args>}*\n");
  fprintf(stderr,
          "       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\n"
          " <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    0x10bf(%rip),%rsi
lea    0x11bd(%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    0x10c9(%rip),%rsi
lea    0x11c7(%rip),%rdx
xor    %eax,%eax
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [506 x i8] c"usage: c-index-test -code-completion-at=<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 c-index-test -test-load-source-usrs <symbol filter> {<args>}*\0A\00"
@.str.1 = [261 x i8] c" 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\0A <symbol filter> values:\0A%s\00"
@.str.2 = [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 ([506 x i8], [506 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([261 x i8], [261 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([387 x i8], [387 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [506 x i8] c"usage: c-index-test -code-completion-at=<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 c-index-test -test-load-source-usrs <symbol filter> {<args>}*\0A\00"
@.str.1 = [261 x i8] c" 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\0A <symbol filter> values:\0A%s\00"
@.str.2 = [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 ([506 x i8], [506 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([261 x i8], [261 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([387 x i8], [387 x i8]* @.str.2, i64 0, i64 0))
ret void
}