#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*/ PrintHeader();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void PrintHelp(void) {
  PrintHeader();
  printf("\nUsage: b0 [-v] [-W] [-?|-h|-l] [-f<type>] [-i<include>] [-!] "
         "[-DEBUG] [-UTF8] [-UTF16] <filename>\n");
  printf("\nWhere:\n\t-v\t\tDisplay Version Information\n");
  printf("\t-W\t\tDisable warnings during compilation\n");
  printf("\t-? or -h\tDisplay Help\n");
  printf("\t-l\t\tDisplay Software License\n");
  printf("\t-f<type>\tOuptut Format Type, 'elf','elfo' or 'pe' accepted\n");
  printf("\t-i<include>\tInclude directories for libraries\n");
  printf("\t-!\t\tContinue to compile on error (DANGEROUS)\n");
  printf("\t-DEBUG\t\tDisplay Extremely Verbose Debugging Information\n");
  printf("\t-UTF8\t\tEncode strings as UTF8\n");
  printf("\t-UTF16\t\tEncode strings as UTF16\n");
  printf("\t<filename>\tFile to compile\n");
  printf("\neg: B0 -felf -i./include -DEBUG myprog.b0\n");
  exit(0);
}


x86 assembly (clang, -O0):
<PrintHelp>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <PrintHeader@plt>
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
lea    0xf16(%rip),%rdi
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
call   1030 <printf@plt>
lea    0xf52(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf71(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc6(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe9(%rip),%rdi
call   1030 <printf@plt>
lea    0x1017(%rip),%rdi
call   1030 <printf@plt>
lea    0x102b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1041(%rip),%rdi
call   1030 <printf@plt>
lea    0x1052(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<PrintHelp>:
push   %rax
xor    %eax,%eax
call   1040 <PrintHeader@plt>
lea    0xec1(%rip),%rdi
call   1030 <puts@plt>
lea    0xf18(%rip),%rdi
call   1030 <puts@plt>
lea    0xf35(%rip),%rdi
call   1030 <puts@plt>
lea    0xf52(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe4(%rip),%rdi
call   1030 <puts@plt>
lea    0x1011(%rip),%rdi
call   1030 <puts@plt>
lea    0x1024(%rip),%rdi
call   1030 <puts@plt>
lea    0x1039(%rip),%rdi
call   1030 <puts@plt>
lea    0x1049(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [100 x i8] c"\0AUsage: b0 [-v] [-W] [-?|-h|-l] [-f<type>] [-i<include>] [-!] [-DEBUG] [-UTF8] [-UTF16] <filename>\0A\00"
@.str.1 = [42 x i8] c"\0AWhere:\0A\09-v\09\09Display Version Information\0A\00"
@.str.2 = [42 x i8] c"\09-W\09\09Disable warnings during compilation\0A\00"
@.str.3 = [24 x i8] c"\09-? or -h\09Display Help\0A\00"
@.str.4 = [31 x i8] c"\09-l\09\09Display Software License\0A\00"
@.str.5 = [61 x i8] c"\09-f<type>\09Ouptut Format Type, 'elf','elfo' or 'pe' accepted\0A\00"
@.str.6 = [48 x i8] c"\09-i<include>\09Include directories for libraries\0A\00"
@.str.7 = [47 x i8] c"\09-!\09\09Continue to compile on error (DANGEROUS)\0A\00"
@.str.8 = [58 x i8] c"\09-DEBUG\09\09Display Extremely Verbose Debugging Information\0A\00"
@.str.9 = [32 x i8] c"\09-UTF8\09\09Encode strings as UTF8\0A\00"
@.str.10 = [34 x i8] c"\09-UTF16\09\09Encode strings as UTF16\0A\00"
@.str.11 = [29 x i8] c"\09<filename>\09File to compile\0A\00"
@.str.12 = [44 x i8] c"\0Aeg: B0 -felf -i./include -DEBUG myprog.b0\0A\00"
define void @PrintHelp() {
%1 = call i32 (...) @PrintHeader()
%2 = call i32 @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [99 x i8] c"\0AUsage: b0 [-v] [-W] [-?|-h|-l] [-f<type>] [-i<include>] [-!] [-DEBUG] [-UTF8] [-UTF16] <filename>\00"
@str.13 = [41 x i8] c"\0AWhere:\0A\09-v\09\09Display Version Information\00"
@str.14 = [41 x i8] c"\09-W\09\09Disable warnings during compilation\00"
@str.15 = [23 x i8] c"\09-? or -h\09Display Help\00"
@str.16 = [30 x i8] c"\09-l\09\09Display Software License\00"
@str.17 = [60 x i8] c"\09-f<type>\09Ouptut Format Type, 'elf','elfo' or 'pe' accepted\00"
@str.18 = [47 x i8] c"\09-i<include>\09Include directories for libraries\00"
@str.19 = [46 x i8] c"\09-!\09\09Continue to compile on error (DANGEROUS)\00"
@str.20 = [57 x i8] c"\09-DEBUG\09\09Display Extremely Verbose Debugging Information\00"
@str.21 = [31 x i8] c"\09-UTF8\09\09Encode strings as UTF8\00"
@str.22 = [33 x i8] c"\09-UTF16\09\09Encode strings as UTF16\00"
@str.23 = [28 x i8] c"\09<filename>\09File to compile\00"
@str.24 = [43 x i8] c"\0Aeg: B0 -felf -i./include -DEBUG myprog.b0\00"
define void @PrintHelp() {
%1 = tail call i32 (...) @PrintHeader()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.22, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.23, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.24, i64 0, i64 0))
%15 = tail call i32 @exit(i32 0)
unreachable
}