#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*/ bitmapOptions();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ showTitle();
int /*<<< orphan*/ sprWriterPlusOptions();
void showUsage() {
  showTitle();
  printf("Usage:\n");
  printf("\tPCX2SPR+ [options] pcxFilename\n");
  printf("where:\n");
  printf("\tpcxFilename input PCX file\n");
  printf("options are:\n");
  printf("\t-v\tverbose execution\n");
  printf("\t-d\tdry run. Doesn't write output files\n");
  bitmapOptions();
  sprWriterPlusOptions();
}


x86 assembly (clang, -O0):
<showUsage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <showTitle@plt>
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
lea    0xebf(%rip),%rdi
call   1030 <printf@plt>
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <bitmapOptions@plt>
mov    $0x0,%al
call   1060 <sprWriterPlusOptions@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<showUsage>:
push   %rax
xor    %eax,%eax
call   1040 <showTitle@plt>
lea    0xeb1(%rip),%rdi
call   1030 <puts@plt>
lea    0xeac(%rip),%rdi
call   1030 <puts@plt>
lea    0xec0(%rip),%rdi
call   1030 <puts@plt>
lea    0xebb(%rip),%rdi
call   1030 <puts@plt>
lea    0xecb(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
call   1030 <puts@plt>
lea    0xed6(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <bitmapOptions@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <sprWriterPlusOptions@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Usage:\0A\00"
@.str.1 = [33 x i8] c"\09PCX2SPR+ [options] pcxFilename\0A\00"
@.str.2 = [8 x i8] c"where:\0A\00"
@.str.3 = [29 x i8] c"\09pcxFilename input PCX file\0A\00"
@.str.4 = [14 x i8] c"options are:\0A\00"
@.str.5 = [23 x i8] c"\09-v\09verbose execution\0A\00"
@.str.6 = [41 x i8] c"\09-d\09dry run. Doesn't write output files\0A\00"
define void @showUsage() {
%1 = call i32 (...) @showTitle()
%2 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 (...) @bitmapOptions()
%10 = call i32 (...) @sprWriterPlusOptions()
ret void
}

LLVM IR (-O2):
@str = [7 x i8] c"Usage:\00"
@str.7 = [32 x i8] c"\09PCX2SPR+ [options] pcxFilename\00"
@str.8 = [7 x i8] c"where:\00"
@str.9 = [28 x i8] c"\09pcxFilename input PCX file\00"
@str.10 = [13 x i8] c"options are:\00"
@str.11 = [22 x i8] c"\09-v\09verbose execution\00"
@str.12 = [40 x i8] c"\09-d\09dry run. Doesn't write output files\00"
define void @showUsage() {
%1 = tail call i32 (...) @showTitle()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.7, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.8, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.9, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.10, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.11, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.12, i64 0, i64 0))
%9 = tail call i32 (...) @bitmapOptions()
%10 = tail call i32 (...) @sprWriterPlusOptions()
ret void
}