#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*/ printf(char *, ...);
char *program_name();
void usage(void) {
  printf("usage: %s [OPTIONS]\n", program_name());
  printf("-h, -?, --help\t\tthis help message\n"
         "-a\t\t\tlogically 'and' the display filters\n"
         "-A chassis\t\tdisplay buses in chAssis\n"
         "-B bay\t\t\tdisplay buses in Bay\n"
         "-b bus\t\t\tdisplay buses matching bus\n"
         "-C cabinet\t\tdisplay buses in Cabinet\n"
         "-D domain\t\tdisplay buses in PCI Domain\n"
         "-o\t\t\tlogically 'or' the display filters\n"
         "-P lspci \t\tdisplay bus matching 'lspci-esque' pci address\n"
         "-S slot\t\t\tdisplay buses matching slot number\n"
         "-v,--verbose\t\tverbose mode\n"
         "-V,--version\t\tprint version\n"
         "-i,--info\t\tprint bus information only\n"
         "-t,--timeout\t\tset print interval in seconds [default 1s]\n"
         "-c num\t\t\tnumber of samples [default 60]\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <program_name@plt>
mov    %rax,%rsi
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
xor    %eax,%eax
call   1050 <program_name@plt>
lea    0xec1(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec5(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"usage: %s [OPTIONS]\0A\00"
@.str.1 = [588 x i8] c"-h, -?, --help\09\09this help message\0A-a\09\09\09logically 'and' the display filters\0A-A chassis\09\09display buses in chAssis\0A-B bay\09\09\09display buses in Bay\0A-b bus\09\09\09display buses matching bus\0A-C cabinet\09\09display buses in Cabinet\0A-D domain\09\09display buses in PCI Domain\0A-o\09\09\09logically 'or' the display filters\0A-P lspci \09\09display bus matching 'lspci-esque' pci address\0A-S slot\09\09\09display buses matching slot number\0A-v,--verbose\09\09verbose mode\0A-V,--version\09\09print version\0A-i,--info\09\09print bus information only\0A-t,--timeout\09\09set print interval in seconds [default 1s]\0A-c num\09\09\09number of samples [default 60]\0A\00"
define void @usage() {
%1 = call i8* (...) @program_name()
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([588 x i8], [588 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"usage: %s [OPTIONS]\0A\00"
@str = [587 x i8] c"-h, -?, --help\09\09this help message\0A-a\09\09\09logically 'and' the display filters\0A-A chassis\09\09display buses in chAssis\0A-B bay\09\09\09display buses in Bay\0A-b bus\09\09\09display buses matching bus\0A-C cabinet\09\09display buses in Cabinet\0A-D domain\09\09display buses in PCI Domain\0A-o\09\09\09logically 'or' the display filters\0A-P lspci \09\09display bus matching 'lspci-esque' pci address\0A-S slot\09\09\09display buses matching slot number\0A-v,--verbose\09\09verbose mode\0A-V,--version\09\09print version\0A-i,--info\09\09print bus information only\0A-t,--timeout\09\09set print interval in seconds [default 1s]\0A-c num\09\09\09number of samples [default 60]\00"
define void @usage() {
%1 = tail call i8* (...) @program_name()
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([587 x i8], [587 x i8]* @str, i64 0, i64 0))
ret void
}