#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*/ printf(char *);
void show_usage() {
  printf("usage:\n");
  printf("\tfnc -s: run the interactive shell\n");
  printf("\tfnc -h: shows this help\n");
  printf("\tfnc -r module function [argumens*]: runs function from module "
         "passing optional arguments\n");
  printf("options:\n");
  printf("\t-t: type, can be beam (the default), lex, tree, ast, mod, erl or "
         "erl2ast\n");
  printf(
      "\t-o: output path, the path where the compiled files will be written\n");
  printf("\t-T: test, instead of running the command print it to the screen\n");
  printf("\t-a: append a path to look for modules\n");
  printf("\t-p: prepend a path to look for modules\n");
  printf("examples:\n");
  printf("\tfnc foo.ifn: compile foo.ifn, write the result in the current "
         "directory\n");
  printf("\tfnc foo.ifn bar.fn baz.ifn: same as before but multiple files "
         "compiled\n");
  printf("\tfnc foo.ifn -o /tmp: compile foo.ifn, write the result in /tmp\n");
  printf(
      "\tfnc -t beam -o /tmp foo.ifn: same as before but with the type set\n");
  printf("\tfnc -t erl foo.ifn: translate foo.ifn to erlang\n");
  printf("\tfnc -r foo run: runs the run function in the foo module\n");
}


x86 assembly (clang, -O0):
<show_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
call   1030 <printf@plt>
lea    0xf07(%rip),%rdi
call   1030 <printf@plt>
lea    0xf56(%rip),%rdi
call   1030 <printf@plt>
lea    0xf54(%rip),%rdi
call   1030 <printf@plt>
lea    0xf93(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcc(%rip),%rdi
call   1030 <printf@plt>
lea    0x1002(%rip),%rdi
call   1030 <printf@plt>
lea    0x101e(%rip),%rdi
call   1030 <printf@plt>
lea    0x103b(%rip),%rdi
call   1030 <printf@plt>
lea    0x103a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1078(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b5(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ea(%rip),%rdi
call   1030 <printf@plt>
lea    0x1122(%rip),%rdi
call   1030 <printf@plt>
lea    0x1148(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
lea    0xefa(%rip),%rdi
call   1030 <puts@plt>
lea    0xf07(%rip),%rdi
call   1030 <puts@plt>
lea    0xf55(%rip),%rdi
call   1030 <puts@plt>
lea    0xf52(%rip),%rdi
call   1030 <puts@plt>
lea    0xf90(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc8(%rip),%rdi
call   1030 <puts@plt>
lea    0xffd(%rip),%rdi
call   1030 <puts@plt>
lea    0x1018(%rip),%rdi
call   1030 <puts@plt>
lea    0x1034(%rip),%rdi
call   1030 <puts@plt>
lea    0x1032(%rip),%rdi
call   1030 <puts@plt>
lea    0x106f(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ab(%rip),%rdi
call   1030 <puts@plt>
lea    0x10df(%rip),%rdi
call   1030 <puts@plt>
lea    0x1116(%rip),%rdi
call   1030 <puts@plt>
lea    0x113b(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"usage:\0A\00"
@.str.1 = [36 x i8] c"\09fnc -s: run the interactive shell\0A\00"
@.str.2 = [26 x i8] c"\09fnc -h: shows this help\0A\00"
@.str.3 = [91 x i8] c"\09fnc -r module function [argumens*]: runs function from module passing optional arguments\0A\00"
@.str.4 = [10 x i8] c"options:\0A\00"
@.str.5 = [75 x i8] c"\09-t: type, can be beam (the default), lex, tree, ast, mod, erl or erl2ast\0A\00"
@.str.6 = [69 x i8] c"\09-o: output path, the path where the compiled files will be written\0A\00"
@.str.7 = [66 x i8] c"\09-T: test, instead of running the command print it to the screen\0A\00"
@.str.8 = [40 x i8] c"\09-a: append a path to look for modules\0A\00"
@.str.9 = [41 x i8] c"\09-p: prepend a path to look for modules\0A\00"
@.str.10 = [11 x i8] c"examples:\0A\00"
@.str.11 = [74 x i8] c"\09fnc foo.ifn: compile foo.ifn, write the result in the current directory\0A\00"
@.str.12 = [73 x i8] c"\09fnc foo.ifn bar.fn baz.ifn: same as before but multiple files compiled\0A\00"
@.str.13 = [65 x i8] c"\09fnc foo.ifn -o /tmp: compile foo.ifn, write the result in /tmp\0A\00"
@.str.14 = [68 x i8] c"\09fnc -t beam -o /tmp foo.ifn: same as before but with the type set\0A\00"
@.str.15 = [50 x i8] c"\09fnc -t erl foo.ifn: translate foo.ifn to erlang\0A\00"
@.str.16 = [58 x i8] c"\09fnc -r foo run: runs the run function in the foo module\0A\00"
define void @show_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [7 x i8] c"usage:\00"
@str.17 = [35 x i8] c"\09fnc -s: run the interactive shell\00"
@str.18 = [25 x i8] c"\09fnc -h: shows this help\00"
@str.19 = [90 x i8] c"\09fnc -r module function [argumens*]: runs function from module passing optional arguments\00"
@str.20 = [9 x i8] c"options:\00"
@str.21 = [74 x i8] c"\09-t: type, can be beam (the default), lex, tree, ast, mod, erl or erl2ast\00"
@str.22 = [68 x i8] c"\09-o: output path, the path where the compiled files will be written\00"
@str.23 = [65 x i8] c"\09-T: test, instead of running the command print it to the screen\00"
@str.24 = [39 x i8] c"\09-a: append a path to look for modules\00"
@str.25 = [40 x i8] c"\09-p: prepend a path to look for modules\00"
@str.26 = [10 x i8] c"examples:\00"
@str.27 = [73 x i8] c"\09fnc foo.ifn: compile foo.ifn, write the result in the current directory\00"
@str.28 = [72 x i8] c"\09fnc foo.ifn bar.fn baz.ifn: same as before but multiple files compiled\00"
@str.29 = [64 x i8] c"\09fnc foo.ifn -o /tmp: compile foo.ifn, write the result in /tmp\00"
@str.30 = [67 x i8] c"\09fnc -t beam -o /tmp foo.ifn: same as before but with the type set\00"
@str.31 = [49 x i8] c"\09fnc -t erl foo.ifn: translate foo.ifn to erlang\00"
@str.32 = [57 x i8] c"\09fnc -r foo run: runs the run function in the foo module\00"
define void @show_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.17, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.18, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.22, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.23, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.24, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.27, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.29, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.30, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.31, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.32, i64 0, i64 0))
ret void
}