#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_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void help(void) {
  printf("%s - %s\n", "ex10", "Analise de grafos");
  printf("\nUsage: %s [-h|-f]\n", "ex10");
  printf("\nOptions:\n");
  printf("\t-h, --help\n\t\tShow this help.\n");
  printf("\t-f, --flag\n\t\tCall the arquivo.txt\n");
  printf("\nQuit:\n\t Para sair basta digitar na entrada \"--\"\n");
  printf("\nAuthor:\n by %s \n\n", "Grupo1");
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xed7(%rip),%rsi
lea    0xed5(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
lea    0xebb(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf20(%rip),%rdi
lea    0xf2c(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e37(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rbx
lea    0xec8(%rip),%rdi
lea    0xeca(%rip),%rbx
lea    0xec8(%rip),%rdx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec9(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee6(%rip),%rdi
call   1030 <puts@plt>
lea    0xee4(%rip),%rdi
call   1030 <puts@plt>
lea    0xef6(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0d(%rip),%rdi
call   1030 <puts@plt>
lea    0xe9c(%rip),%rdi
lea    0xea8(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e33(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"%s - %s\0A\00"
@.str.1 = [5 x i8] c"ex10\00"
@.str.2 = [18 x i8] c"Analise de grafos\00"
@.str.3 = [20 x i8] c"\0AUsage: %s [-h|-f]\0A\00"
@.str.4 = [11 x i8] c"\0AOptions:\0A\00"
@.str.5 = [31 x i8] c"\09-h, --help\0A\09\09Show this help.\0A\00"
@.str.6 = [36 x i8] c"\09-f, --flag\0A\09\09Call the arquivo.txt\0A\00"
@.str.7 = [50 x i8] c"\0AQuit:\0A\09 Para sair basta digitar na entrada \22--\22\0A\00"
@.str.8 = [19 x i8] c"\0AAuthor:\0A by %s \0A\0A\00"
@.str.9 = [7 x i8] c"Grupo1\00"
@EXIT_FAILURE = global i32 0
define void @help() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%8 = load i32, i32* @EXIT_FAILURE
%9 = call i32 @exit(i32 %8)
unreachable
}

LLVM IR (-O2):
@.str = [9 x i8] c"%s - %s\0A\00"
@.str.1 = [5 x i8] c"ex10\00"
@.str.2 = [18 x i8] c"Analise de grafos\00"
@.str.3 = [20 x i8] c"\0AUsage: %s [-h|-f]\0A\00"
@.str.8 = [19 x i8] c"\0AAuthor:\0A by %s \0A\0A\00"
@.str.9 = [7 x i8] c"Grupo1\00"
@EXIT_FAILURE = global i32 0
@str = [10 x i8] c"\0AOptions:\00"
@str.10 = [30 x i8] c"\09-h, --help\0A\09\09Show this help.\00"
@str.11 = [35 x i8] c"\09-f, --flag\0A\09\09Call the arquivo.txt\00"
@str.12 = [49 x i8] c"\0AQuit:\0A\09 Para sair basta digitar na entrada \22--\22\00"
define void @help() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.10, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.11, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.12, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%8 = load i32, i32* @EXIT_FAILURE
%9 = tail call i32 @exit(i32 %8)
unreachable
}