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


x86 assembly (clang, -O0):
<showUsage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <showTitle@plt>
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
lea    0xeab(%rip),%rdi
call   1030 <printf@plt>
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <pngReaderOptions@plt>
mov    $0x0,%al
call   1060 <bitmapOptions@plt>
mov    $0x0,%al
call   1070 <sprWriterPlusOptions@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<showUsage>:
push   %rax
xor    %eax,%eax
call   1050 <showTitle@plt>
lea    0xea1(%rip),%rdi
call   1030 <puts@plt>
lea    0xe9c(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb0(%rip),%rdi
call   1030 <puts@plt>
lea    0xeab(%rip),%rdi
call   1030 <puts@plt>
lea    0xebb(%rip),%rdi
call   1030 <puts@plt>
lea    0xebc(%rip),%rdi
call   1030 <puts@plt>
lea    0xec6(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <pngReaderOptions@plt>
xor    %eax,%eax
call   1060 <bitmapOptions@plt>
xor    %eax,%eax
pop    %rcx
jmp    1070 <sprWriterPlusOptions@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Usage:\0A\00"
@.str.1 = [33 x i8] c"\09PNG2SPR+ [options] pngFilename\0A\00"
@.str.2 = [8 x i8] c"where:\0A\00"
@.str.3 = [29 x i8] c"\09pngFilename input PNG 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 (...) @pngReaderOptions()
%10 = call i32 (...) @bitmapOptions()
%11 = call i32 (...) @sprWriterPlusOptions()
ret void
}

LLVM IR (-O2):
@str = [7 x i8] c"Usage:\00"
@str.7 = [32 x i8] c"\09PNG2SPR+ [options] pngFilename\00"
@str.8 = [7 x i8] c"where:\00"
@str.9 = [28 x i8] c"\09pngFilename input PNG 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 (...) @pngReaderOptions()
%10 = tail call i32 (...) @bitmapOptions()
%11 = tail call i32 (...) @sprWriterPlusOptions()
ret void
}