#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 printHelp(char *target) {
  printf("Usage: %s [OPTION] < [ENTRY_FILE]\n\n", target);
  printf("Simulate the use of a Hash Map using the speficied M for treating "
         "colisions.\n");
  printf("  %s\t\tuse the chaining M.\n", "-encadeamento");
  printf("  %s\t\tuse the linear M.\n", "-linear");
  printf("  %s\t\tuse the quadratic M.\n", "-quadratica");
  printf("  %s\t\tuse the double hash M.\n\n", "-hash_duplo");
  printf("  --help\t\tshows this text.\n\n");
  printf("Examples: \n  %s %s < hash_keys.txt\n", target, "-hash_duplo");
  printf("  %s %s < hash_keys.txt\n", target, "-linear");
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
lea    0xf43(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf43(%rip),%rdi
lea    0xf55(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4f(%rip),%rdi
lea    0xf64(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf62(%rip),%rdi
lea    0xf7a(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf83(%rip),%rdi
lea    0xf53(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf75(%rip),%rdi
lea    0xeeb(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelp>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%rbx
lea    0xed1(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfa5(%rip),%rdi
call   1030 <puts@plt>
lea    0xed8(%rip),%rdi
lea    0xeec(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeec(%rip),%rdi
lea    0xefe(%rip),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef5(%rip),%rdi
lea    0xf0a(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf08(%rip),%rdi
lea    0xf20(%rip),%r15
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf8c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0f(%rip),%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf06(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"Usage: %s [OPTION] < [ENTRY_FILE]\0A\0A\00"
@.str.1 = [78 x i8] c"Simulate the use of a Hash Map using the speficied M for treating colisions.\0A\00"
@.str.2 = [27 x i8] c" %s\09\09use the chaining M.\0A\00"
@.str.3 = [14 x i8] c"-encadeamento\00"
@.str.4 = [25 x i8] c" %s\09\09use the linear M.\0A\00"
@.str.5 = [8 x i8] c"-linear\00"
@.str.6 = [28 x i8] c" %s\09\09use the quadratic M.\0A\00"
@.str.7 = [12 x i8] c"-quadratica\00"
@.str.8 = [31 x i8] c" %s\09\09use the double hash M.\0A\0A\00"
@.str.9 = [12 x i8] c"-hash_duplo\00"
@.str.10 = [29 x i8] c" --help\09\09shows this text.\0A\0A\00"
@.str.11 = [36 x i8] c"Examples: \0A %s %s < hash_keys.txt\0A\00"
@.str.12 = [25 x i8] c" %s %s < hash_keys.txt\0A\00"
define void @printHelp(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0))
%11 = load i8*, i8** %2
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), i8* %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%13 = load i8*, i8** %2
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), i8* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [36 x i8] c"Usage: %s [OPTION] < [ENTRY_FILE]\0A\0A\00"
@.str.2 = [27 x i8] c" %s\09\09use the chaining M.\0A\00"
@.str.3 = [14 x i8] c"-encadeamento\00"
@.str.4 = [25 x i8] c" %s\09\09use the linear M.\0A\00"
@.str.5 = [8 x i8] c"-linear\00"
@.str.6 = [28 x i8] c" %s\09\09use the quadratic M.\0A\00"
@.str.7 = [12 x i8] c"-quadratica\00"
@.str.8 = [31 x i8] c" %s\09\09use the double hash M.\0A\0A\00"
@.str.9 = [12 x i8] c"-hash_duplo\00"
@.str.11 = [36 x i8] c"Examples: \0A %s %s < hash_keys.txt\0A\00"
@.str.12 = [25 x i8] c" %s %s < hash_keys.txt\0A\00"
@str = [77 x i8] c"Simulate the use of a Hash Map using the speficied M for treating colisions.\00"
@str.13 = [28 x i8] c" --help\09\09shows this text.\0A\00"
define void @printHelp(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.13, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), i8* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
ret void
}