#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 /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void help() {
  printf("Usage:  ./brute [--help] [--alpha STR] [--len INT] [--maxlen INT] "
         "[--start STR] [--show]\n");
  printf("  --help        Show this menu.\n");
  printf("  --alpha STR   String of characters to use for password generation "
         "(default is all printable characters).\n");
  printf("  --len INT     Length of passwords (default is 8).\n");
  printf("  --maxlen INT  Length of passwords (includes passwords of size less "
         "than as well).\n");
  printf("  --start STR   Password to start at.\n");
  printf("  --show        Shows the passwords in stderr (nice for viewing "
         "current password when redirecting passwords to a file).\n");
  exit(0);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf23(%rip),%rdi
call   1030 <printf@plt>
lea    0xf38(%rip),%rdi
call   1030 <printf@plt>
lea    0xf98(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc1(%rip),%rdi
call   1030 <printf@plt>
lea    0x100a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1025(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf25(%rip),%rdi
call   1030 <puts@plt>
lea    0xf39(%rip),%rdi
call   1030 <puts@plt>
lea    0xf98(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc0(%rip),%rdi
call   1030 <puts@plt>
lea    0x1008(%rip),%rdi
call   1030 <puts@plt>
lea    0x1022(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [90 x i8] c"Usage: ./brute [--help] [--alpha STR] [--len INT] [--maxlen INT] [--start STR] [--show]\0A\00"
@.str.1 = [33 x i8] c" --help Show this menu.\0A\00"
@.str.2 = [108 x i8] c" --alpha STR String of characters to use for password generation (default is all printable characters).\0A\00"
@.str.3 = [53 x i8] c" --len INT Length of passwords (default is 8).\0A\00"
@.str.4 = [85 x i8] c" --maxlen INT Length of passwords (includes passwords of size less than as well).\0A\00"
@.str.5 = [39 x i8] c" --start STR Password to start at.\0A\00"
@.str.6 = [121 x i8] c" --show Shows the passwords in stderr (nice for viewing current password when redirecting passwords to a file).\0A\00"
define void @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([108 x i8], [108 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([121 x i8], [121 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [89 x i8] c"Usage: ./brute [--help] [--alpha STR] [--len INT] [--maxlen INT] [--start STR] [--show]\00"
@str.7 = [32 x i8] c" --help Show this menu.\00"
@str.8 = [107 x i8] c" --alpha STR String of characters to use for password generation (default is all printable characters).\00"
@str.9 = [52 x i8] c" --len INT Length of passwords (default is 8).\00"
@str.10 = [84 x i8] c" --maxlen INT Length of passwords (includes passwords of size less than as well).\00"
@str.11 = [38 x i8] c" --start STR Password to start at.\00"
@str.12 = [120 x i8] c" --show Shows the passwords in stderr (nice for viewing current password when redirecting passwords to a file).\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.7, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([107 x i8], [107 x i8]* @str.8, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.9, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @str.10, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.11, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([120 x i8], [120 x i8]* @str.12, i64 0, i64 0))
%8 = tail call i32 @exit(i32 0)
unreachable
}