#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(int);
int /*<<< orphan*/ printf(char *, ...);
void Help(char *prog) {
  printf("\nUsage: %s <ALGORITHM> <COMMANDS> <INPUT> <OUTPUT>\n\n", prog);
  printf("Algorithms:\n");
  printf("  -lz77   		LZ77 Compression\n");
  printf("  -huff   		Huffman Compression\n");
  printf("Commands:\n");
  printf("  -c			Compress/Encode input file to output file.\n");
  printf("  -d 	 		Decompress/Decode input file to output "
         "file.\n");
  printf("Input/Output Files:\n");
  printf("  -i <filename>		Name of input file.\n");
  printf("  -o <filename>		Name of output file.\n");
  printf("Optional for LZ77 Compression:\n");
  printf("  -l <value>   		Lookahead size (default 15)\n");
  printf("  -s <value>   		Search-buffer size (default 4095)\n\n");
  exit(1);
}


x86 assembly (clang, -O0):
<Help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf64(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<Help>:
push   %rax
mov    %rdi,%rsi
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeec(%rip),%rdi
call   1030 <puts@plt>
lea    0xeec(%rip),%rdi
call   1030 <puts@plt>
lea    0xefd(%rip),%rdi
call   1030 <puts@plt>
lea    0xf11(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf35(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf67(%rip),%rdi
call   1030 <puts@plt>
lea    0xf80(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9a(%rip),%rdi
call   1030 <puts@plt>
lea    0xfad(%rip),%rdi
call   1030 <puts@plt>
lea    0xfce(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [53 x i8] c"\0AUsage: %s <ALGORITHM> <COMMANDS> <INPUT> <OUTPUT>\0A\0A\00"
@.str.1 = [13 x i8] c"Algorithms:\0A\00"
@.str.2 = [30 x i8] c" -lz77 \09\09LZ77 Compression\0A\00"
@.str.3 = [33 x i8] c" -huff \09\09Huffman Compression\0A\00"
@.str.4 = [11 x i8] c"Commands:\0A\00"
@.str.5 = [51 x i8] c" -c\09\09\09Compress/Encode input file to output file.\0A\00"
@.str.6 = [55 x i8] c" -d \09 \09\09Decompress/Decode input file to output file.\0A\00"
@.str.7 = [21 x i8] c"Input/Output Files:\0A\00"
@.str.8 = [38 x i8] c" -i <filename>\09\09Name of input file.\0A\00"
@.str.9 = [39 x i8] c" -o <filename>\09\09Name of output file.\0A\00"
@.str.10 = [32 x i8] c"Optional for LZ77 Compression:\0A\00"
@.str.11 = [46 x i8] c" -l <value> \09\09Lookahead size (default 15)\0A\00"
@.str.12 = [53 x i8] c" -s <value> \09\09Search-buffer size (default 4095)\0A\0A\00"
define void @Help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [53 x i8] c"\0AUsage: %s <ALGORITHM> <COMMANDS> <INPUT> <OUTPUT>\0A\0A\00"
@str = [12 x i8] c"Algorithms:\00"
@str.13 = [29 x i8] c" -lz77 \09\09LZ77 Compression\00"
@str.14 = [32 x i8] c" -huff \09\09Huffman Compression\00"
@str.15 = [10 x i8] c"Commands:\00"
@str.16 = [50 x i8] c" -c\09\09\09Compress/Encode input file to output file.\00"
@str.17 = [54 x i8] c" -d \09 \09\09Decompress/Decode input file to output file.\00"
@str.18 = [20 x i8] c"Input/Output Files:\00"
@str.19 = [37 x i8] c" -i <filename>\09\09Name of input file.\00"
@str.20 = [38 x i8] c" -o <filename>\09\09Name of output file.\00"
@str.21 = [31 x i8] c"Optional for LZ77 Compression:\00"
@str.22 = [45 x i8] c" -l <value> \09\09Lookahead size (default 15)\00"
@str.23 = [52 x i8] c" -s <value> \09\09Search-buffer size (default 4095)\0A\00"
define void @Help(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.20, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.21, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.22, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.23, i64 0, i64 0))
%15 = tail call i32 @exit(i32 1)
unreachable
}