#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 const *, ...);
int /*<<< orphan*/ stdout;
void print_usage(char const *arg) {
  char const *out = "usage: %s [-v] [OPTION]... SEARCH\n\n";
  fprintf(stdout, out, arg);
  fprintf(stdout, "available commands:\n");
  fprintf(stdout, "    %-20s %-30s\n", "-v", "print verbose output");
  fprintf(stdout, "    %-20s %-30s\n", "--version", "print version and exit");
  fprintf(stdout, "    %-20s %-30s\n", "-h, --help",
          "print this help and exit");
  fprintf(stdout, "    %-20s %-30s\n", "-u, --update", "update local database");
  fprintf(stdout, "    %-20s %-30s\n", "-c, --clear-cache",
          "clear local database");
  fprintf(stdout, "    %-20s %-30s\n", "-l, --list",
          "list all entries in the local databse");
  fprintf(
      stdout, "    %-20s %-30s\n", "-p, --platform=PLATFORM",
      "select platform, supported are linux / osx / sunos / windows / common");
  fprintf(stdout, "    %-20s %-30s\n", "--linux",
          "show command page for Linux");
  fprintf(stdout, "    %-20s %-30s\n", "--osx", "show command page for OSX");
  fprintf(stdout, "    %-20s %-30s\n", "--sunos",
          "show command page for SunOS");
  fprintf(stdout, "    %-20s %-30s\n", "-r, --render=PATH",
          "render a local page for testing purposes");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0x2eb2(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e9a(%rip),%rax
mov    (%rax),%edi
lea    0xed5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e83(%rip),%rax
mov    (%rax),%edi
lea    0xed3(%rip),%rsi
lea    0xedd(%rip),%rdx
lea    0xed9(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e5e(%rip),%rax
mov    (%rax),%edi
lea    0xeae(%rip),%rsi
lea    0xed0(%rip),%rdx
lea    0xed3(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e39(%rip),%rax
mov    (%rax),%edi
lea    0xe89(%rip),%rsi
lea    0xecc(%rip),%rdx
lea    0xed0(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e14(%rip),%rax
mov    (%rax),%edi
lea    0xe64(%rip),%rsi
lea    0xecb(%rip),%rdx
lea    0xed1(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2def(%rip),%rax
mov    (%rax),%edi
lea    0xe3f(%rip),%rsi
lea    0xec9(%rip),%rdx
lea    0xed4(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dca(%rip),%rax
mov    (%rax),%edi
lea    0xe1a(%rip),%rsi
lea    0xecb(%rip),%rdx
lea    0xecf(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2da5(%rip),%rax
mov    (%rax),%edi
lea    0xdf5(%rip),%rsi
lea    0xed7(%rip),%rdx
lea    0xee8(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d80(%rip),%rax
mov    (%rax),%edi
lea    0xdd0(%rip),%rsi
lea    0xf10(%rip),%rdx
lea    0xf11(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d5b(%rip),%rax
mov    (%rax),%edi
lea    0xdab(%rip),%rsi
lea    0xf0f(%rip),%rdx
lea    0xf0e(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d36(%rip),%rax
mov    (%rax),%edi
lea    0xd86(%rip),%rsi
lea    0xf0a(%rip),%rdx
lea    0xf0b(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d11(%rip),%rax
mov    (%rax),%edi
lea    0xd61(%rip),%rsi
lea    0xf09(%rip),%rdx
lea    0xf14(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rdx
mov    0x2ec2(%rip),%rbx
mov    (%rbx),%edi
lea    0xed9(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xeed(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xef2(%rip),%r14
lea    0xefc(%rip),%rdx
lea    0xef8(%rip),%rcx
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xefa(%rip),%rdx
lea    0xefd(%rip),%rcx
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf01(%rip),%rdx
lea    0xf05(%rip),%rcx
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf0b(%rip),%rdx
lea    0xf11(%rip),%rcx
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf14(%rip),%rdx
lea    0xf1f(%rip),%rcx
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf21(%rip),%rdx
lea    0xf25(%rip),%rcx
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf38(%rip),%rdx
lea    0xf49(%rip),%rcx
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf7c(%rip),%rdx
lea    0xf7d(%rip),%rcx
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf86(%rip),%rdx
lea    0xf85(%rip),%rcx
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf8c(%rip),%rdx
lea    0xf8d(%rip),%rcx
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf96(%rip),%rdx
lea    0xfa1(%rip),%rcx
mov    %r14,%rsi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"usage: %s [-v] [OPTION]... SEARCH\0A\0A\00"
@stdout = global i32 0
@.str.1 = [21 x i8] c"available commands:\0A\00"
@.str.2 = [17 x i8] c" %-20s %-30s\0A\00"
@.str.3 = [3 x i8] c"-v\00"
@.str.4 = [21 x i8] c"print verbose output\00"
@.str.5 = [10 x i8] c"--version\00"
@.str.6 = [23 x i8] c"print version and exit\00"
@.str.7 = [11 x i8] c"-h, --help\00"
@.str.8 = [25 x i8] c"print this help and exit\00"
@.str.9 = [13 x i8] c"-u, --update\00"
@.str.10 = [22 x i8] c"update local database\00"
@.str.11 = [18 x i8] c"-c, --clear-cache\00"
@.str.12 = [21 x i8] c"clear local database\00"
@.str.13 = [11 x i8] c"-l, --list\00"
@.str.14 = [38 x i8] c"list all entries in the local databse\00"
@.str.15 = [24 x i8] c"-p, --platform=PLATFORM\00"
@.str.16 = [70 x i8] c"select platform, supported are linux / osx / sunos / windows / common\00"
@.str.17 = [8 x i8] c"--linux\00"
@.str.18 = [28 x i8] c"show command page for Linux\00"
@.str.19 = [6 x i8] c"--osx\00"
@.str.20 = [26 x i8] c"show command page for OSX\00"
@.str.21 = [8 x i8] c"--sunos\00"
@.str.22 = [28 x i8] c"show command page for SunOS\00"
@.str.23 = [18 x i8] c"-r, --render=PATH\00"
@.str.24 = [41 x i8] c"render a local page for testing purposes\00"
define void @print_usage(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
store i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8** %3
%4 = load i32, i32* @stdout
%5 = load i8*, i8** %3
%6 = load i8*, i8** %2
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* %5, i8* %6)
%8 = load i32, i32* @stdout
%9 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32, i32* @stdout
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%12 = load i32, i32* @stdout
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
%14 = load i32, i32* @stdout
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0))
%16 = load i32, i32* @stdout
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0))
%18 = load i32, i32* @stdout
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%20 = load i32, i32* @stdout
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0))
%22 = load i32, i32* @stdout
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.16, i64 0, i64 0))
%24 = load i32, i32* @stdout
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0))
%26 = load i32, i32* @stdout
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.20, i64 0, i64 0))
%28 = load i32, i32* @stdout
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.22, i64 0, i64 0))
%30 = load i32, i32* @stdout
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.24, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [36 x i8] c"usage: %s [-v] [OPTION]... SEARCH\0A\0A\00"
@stdout = global i32 0
@.str.1 = [21 x i8] c"available commands:\0A\00"
@.str.2 = [17 x i8] c" %-20s %-30s\0A\00"
@.str.3 = [3 x i8] c"-v\00"
@.str.4 = [21 x i8] c"print verbose output\00"
@.str.5 = [10 x i8] c"--version\00"
@.str.6 = [23 x i8] c"print version and exit\00"
@.str.7 = [11 x i8] c"-h, --help\00"
@.str.8 = [25 x i8] c"print this help and exit\00"
@.str.9 = [13 x i8] c"-u, --update\00"
@.str.10 = [22 x i8] c"update local database\00"
@.str.11 = [18 x i8] c"-c, --clear-cache\00"
@.str.12 = [21 x i8] c"clear local database\00"
@.str.13 = [11 x i8] c"-l, --list\00"
@.str.14 = [38 x i8] c"list all entries in the local databse\00"
@.str.15 = [24 x i8] c"-p, --platform=PLATFORM\00"
@.str.16 = [70 x i8] c"select platform, supported are linux / osx / sunos / windows / common\00"
@.str.17 = [8 x i8] c"--linux\00"
@.str.18 = [28 x i8] c"show command page for Linux\00"
@.str.19 = [6 x i8] c"--osx\00"
@.str.20 = [26 x i8] c"show command page for OSX\00"
@.str.21 = [8 x i8] c"--sunos\00"
@.str.22 = [28 x i8] c"show command page for SunOS\00"
@.str.23 = [18 x i8] c"-r, --render=PATH\00"
@.str.24 = [41 x i8] c"render a local page for testing purposes\00"
define void @print_usage(i8* %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = load i32, i32* @stdout
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%6 = load i32, i32* @stdout
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%8 = load i32, i32* @stdout
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
%10 = load i32, i32* @stdout
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0))
%12 = load i32, i32* @stdout
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0))
%14 = load i32, i32* @stdout
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%16 = load i32, i32* @stdout
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0))
%18 = load i32, i32* @stdout
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.16, i64 0, i64 0))
%20 = load i32, i32* @stdout
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0))
%22 = load i32, i32* @stdout
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.20, i64 0, i64 0))
%24 = load i32, i32* @stdout
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.22, i64 0, i64 0))
%26 = load i32, i32* @stdout
%27 = tail call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.24, i64 0, i64 0))
ret void
}