#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(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void usage(char **argv) {
  printf("\nUSAGE: %s [options]\n\n", argv[0]);
  printf("Options:\n");
  printf("-c = Use color index rendering (default is RGB)\n");
  printf("-fs = Full-screen mode\n");
  printf(
      "-i = Interactive mode.  Frames advance in response to mouse movement\n");
  printf("-l = Use fewer than 24 colors (to force non-JPEG encoding in "
         "TurboVNC)\n");
  printf("-m = Use immediate mode rendering (default is display list)\n");
  printf("-o = Test 8-bit transparent overlays\n");
  printf("-p <p> = Use (approximately) <p> polygons to render scene\n");
  printf("-s = Use stereographic rendering initially\n");
  printf("     (this can be switched on and off in the application)\n");
  printf("-32 = Use 32-bit visual (default is 24-bit)\n");
  printf("-f <n> = max frames to render\n");
  printf("-bt <t> = print benchmark results every <t> seconds (default=%.1f)\n",
         2.0);
  printf("-w <wxh> = specify window width and height\n");
  printf("-ic = Use indirect rendering context\n");
  printf("-sc 
 = Create window on X screen # 
\n");
  printf("\n");
  exit(0);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf38(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfe6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1004(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1031(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1050(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1061(%rip),%rdi
movsd  0xe08(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0x108f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10ad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10c5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    (%rdi),%rsi
lea    0xebd(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf0a(%rip),%rdi
call   1040 <puts@plt>
lea    0xf07(%rip),%rdi
call   1040 <puts@plt>
lea    0xf2b(%rip),%rdi
call   1040 <puts@plt>
lea    0xf36(%rip),%rdi
call   1040 <puts@plt>
lea    0xf6f(%rip),%rdi
call   1040 <puts@plt>
lea    0xfaa(%rip),%rdi
call   1040 <puts@plt>
lea    0xfda(%rip),%rdi
call   1040 <puts@plt>
lea    0xff3(%rip),%rdi
call   1040 <puts@plt>
lea    0x1021(%rip),%rdi
call   1040 <puts@plt>
lea    0x1040(%rip),%rdi
call   1040 <puts@plt>
lea    0x106e(%rip),%rdi
call   1040 <puts@plt>
lea    0x108e(%rip),%rdi
call   1040 <puts@plt>
lea    0xe36(%rip),%rdi
movsd  0xe0f(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0x108a(%rip),%rdi
call   1040 <puts@plt>
lea    0x10a9(%rip),%rdi
call   1040 <puts@plt>
lea    0x10c2(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"\0AUSAGE: %s [options]\0A\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [49 x i8] c"-c = Use color index rendering (default is RGB)\0A\00"
@.str.3 = [24 x i8] c"-fs = Full-screen mode\0A\00"
@.str.4 = [70 x i8] c"-i = Interactive mode. Frames advance in response to mouse movement\0A\00"
@.str.5 = [72 x i8] c"-l = Use fewer than 24 colors (to force non-JPEG encoding in TurboVNC)\0A\00"
@.str.6 = [61 x i8] c"-m = Use immediate mode rendering (default is display list)\0A\00"
@.str.7 = [38 x i8] c"-o = Test 8-bit transparent overlays\0A\00"
@.str.8 = [59 x i8] c"-p <p> = Use (approximately) <p> polygons to render scene\0A\00"
@.str.9 = [44 x i8] c"-s = Use stereographic rendering initially\0A\00"
@.str.10 = [59 x i8] c" (this can be switched on and off in the application)\0A\00"
@.str.11 = [45 x i8] c"-32 = Use 32-bit visual (default is 24-bit)\0A\00"
@.str.12 = [31 x i8] c"-f <n> = max frames to render\0A\00"
@.str.13 = [68 x i8] c"-bt <t> = print benchmark results every <t> seconds (default=%.1f)\0A\00"
@.str.14 = [44 x i8] c"-w <wxh> = specify window width and height\0A\00"
@.str.15 = [38 x i8] c"-ic = Use indirect rendering context\0A\00"
@.str.16 = [43 x i8] c"-sc 
 = Create window on X screen # 
\0A\00"
@.str.17 = [2 x i8] c"\0A\00"
define void @usage(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = getelementptr inbounds i8*, i8** %3, i64 0
%5 = load i8*, i8** %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.9, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.10, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.11, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.13, i64 0, i64 0), double 2.000000e+00)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.14, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.16, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
%24 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [23 x i8] c"\0AUSAGE: %s [options]\0A\0A\00"
@.str.13 = [68 x i8] c"-bt <t> = print benchmark results every <t> seconds (default=%.1f)\0A\00"
@str = [9 x i8] c"Options:\00"
@str.18 = [48 x i8] c"-c = Use color index rendering (default is RGB)\00"
@str.19 = [23 x i8] c"-fs = Full-screen mode\00"
@str.20 = [69 x i8] c"-i = Interactive mode. Frames advance in response to mouse movement\00"
@str.21 = [71 x i8] c"-l = Use fewer than 24 colors (to force non-JPEG encoding in TurboVNC)\00"
@str.22 = [60 x i8] c"-m = Use immediate mode rendering (default is display list)\00"
@str.23 = [37 x i8] c"-o = Test 8-bit transparent overlays\00"
@str.24 = [58 x i8] c"-p <p> = Use (approximately) <p> polygons to render scene\00"
@str.25 = [43 x i8] c"-s = Use stereographic rendering initially\00"
@str.26 = [58 x i8] c" (this can be switched on and off in the application)\00"
@str.27 = [44 x i8] c"-32 = Use 32-bit visual (default is 24-bit)\00"
@str.28 = [30 x i8] c"-f <n> = max frames to render\00"
@str.29 = [43 x i8] c"-w <wxh> = specify window width and height\00"
@str.30 = [37 x i8] c"-ic = Use indirect rendering context\00"
@str.31 = [42 x i8] c"-sc 
 = Create window on X screen # 
\00"
define void @usage(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.18, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.19, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.20, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.21, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.22, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.23, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.24, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.25, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.26, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.27, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.28, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.13, i64 0, i64 0), double 2.000000e+00)
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.29, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.30, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.31, i64 0, i64 0))
%20 = tail call i32 @putchar(i32 10)
%21 = tail call i32 @exit(i32 0)
unreachable
}