#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*/ printHead();
int /*<<< orphan*/ printHelpOption(char *, char, char *, char *);
int /*<<< orphan*/ printf(char *);
void printHelp() {
  printHead();
  printf("\nGenerates keys and passwords.\n");
  printf("\n Usage: keygen [Options]\n\n");
  printHelpOption("ascii", 'a', NULL,
                  "Generates a key of ASCII characters, ranging from "
                  "'!'\n\t\t\tto'~' (default)");
  printHelpOption("ascii-blank", 'w', NULL,
                  "Generates a key of ASCII characters, ranging from ' "
                  "'\n\t\t\tto'~'; same as --ascii, but includes blanks");
  printHelpOption("ascii-reduced", 'r', NULL,
                  "Generates a key of reduced ASCII");
  printHelpOption("alphanum", 'p', NULL,
                  "Generates a key of alphanumeric characters");
  printHelpOption("length", 'l', "n", "Generates a key of <n> bytes length");
  printHelpOption("short", 's', NULL, "Shows only the key");
  printHelpOption("help", 'h', NULL, "Shows the help");
  printHelpOption("version", 'v', NULL,
                  "Shows version informations and license.");
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <printHead@plt>
lea    0xebe(%rip),%rdi
call   1040 <printf@plt>
lea    0xed2(%rip),%rdi
call   1040 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0x61,%esi
xor    %eax,%eax
mov    %eax,%edx
lea    0xed8(%rip),%rcx
call   1050 <printHelpOption@plt>
lea    0xf15(%rip),%rdi
mov    $0x77,%esi
xor    %eax,%eax
mov    %eax,%edx
lea    0xf11(%rip),%rcx
call   1050 <printHelpOption@plt>
lea    0xf6a(%rip),%rdi
mov    $0x72,%esi
xor    %eax,%eax
mov    %eax,%edx
lea    0xf68(%rip),%rcx
call   1050 <printHelpOption@plt>
lea    0xf7d(%rip),%rdi
mov    $0x70,%esi
xor    %eax,%eax
mov    %eax,%edx
lea    0xf76(%rip),%rcx
call   1050 <printHelpOption@plt>
lea    0xfb2(%rip),%rdi
mov    $0x6c,%esi
lea    0xfdb(%rip),%rdx
lea    0xf82(%rip),%rcx
call   1050 <printHelpOption@plt>
lea    0xf9a(%rip),%rdi
mov    $0x73,%esi
xor    %eax,%eax
mov    %eax,%edx
lea    0xf90(%rip),%rcx
call   1050 <printHelpOption@plt>
lea    0xfa1(%rip),%rdi
mov    $0x68,%esi
xor    %eax,%eax
mov    %eax,%edx
lea    0xf87(%rip),%rcx
call   1050 <printHelpOption@plt>
lea    0xf8a(%rip),%rdi
mov    $0x76,%esi
xor    %eax,%eax
mov    %eax,%edx
lea    0xf82(%rip),%rcx
call   1050 <printHelpOption@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelp>:
push   %rax
xor    %eax,%eax
call   1040 <printHead@plt>
lea    0x1060(%rip),%rdi
call   1030 <puts@plt>
lea    0x1073(%rip),%rdi
call   1030 <puts@plt>
lea    0xea9(%rip),%rdi
lea    0xea8(%rip),%rcx
mov    $0x61,%esi
xor    %edx,%edx
call   1050 <printHelpOption@plt>
lea    0xede(%rip),%rdi
lea    0xee3(%rip),%rcx
mov    $0x77,%esi
xor    %edx,%edx
call   1050 <printHelpOption@plt>
lea    0xf35(%rip),%rdi
lea    0xf3c(%rip),%rcx
mov    $0x72,%esi
xor    %edx,%edx
call   1050 <printHelpOption@plt>
lea    0xf4a(%rip),%rdi
lea    0xf4c(%rip),%rcx
mov    $0x70,%esi
xor    %edx,%edx
call   1050 <printHelpOption@plt>
lea    0xf81(%rip),%rdi
lea    0xfaf(%rip),%rdx
lea    0xf56(%rip),%rcx
mov    $0x6c,%esi
call   1050 <printHelpOption@plt>
lea    0xf69(%rip),%rdi
lea    0xf68(%rip),%rcx
mov    $0x73,%esi
xor    %edx,%edx
call   1050 <printHelpOption@plt>
lea    0xf72(%rip),%rdi
lea    0xf61(%rip),%rcx
mov    $0x68,%esi
xor    %edx,%edx
call   1050 <printHelpOption@plt>
lea    0xf5d(%rip),%rdi
lea    0xf5e(%rip),%rcx
mov    $0x76,%esi
xor    %edx,%edx
pop    %rax
jmp    1050 <printHelpOption@plt>

LLVM IR (-O0):
@.str = [32 x i8] c"\0AGenerates keys and passwords.\0A\00"
@.str.1 = [28 x i8] c"\0A Usage: keygen [Options]\0A\0A\00"
@.str.2 = [6 x i8] c"ascii\00"
@.str.3 = [73 x i8] c"Generates a key of ASCII characters, ranging from '!'\0A\09\09\09to'~' (default)\00"
@.str.4 = [12 x i8] c"ascii-blank\00"
@.str.5 = [101 x i8] c"Generates a key of ASCII characters, ranging from ' '\0A\09\09\09to'~'; same as --ascii, but includes blanks\00"
@.str.6 = [14 x i8] c"ascii-reduced\00"
@.str.7 = [33 x i8] c"Generates a key of reduced ASCII\00"
@.str.8 = [9 x i8] c"alphanum\00"
@.str.9 = [43 x i8] c"Generates a key of alphanumeric characters\00"
@.str.10 = [7 x i8] c"length\00"
@.str.11 = [2 x i8] c"n\00"
@.str.12 = [36 x i8] c"Generates a key of <n> bytes length\00"
@.str.13 = [6 x i8] c"short\00"
@.str.14 = [19 x i8] c"Shows only the key\00"
@.str.15 = [5 x i8] c"help\00"
@.str.16 = [15 x i8] c"Shows the help\00"
@.str.17 = [8 x i8] c"version\00"
@.str.18 = [40 x i8] c"Shows version informations and license.\00"
define void @printHelp() {
%1 = call i32 (...) @printHead()
%2 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printHelpOption(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8 signext 97, i8* null, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printHelpOption(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8 signext 119, i8* null, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 @printHelpOption(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8 signext 114, i8* null, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
%7 = call i32 @printHelpOption(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8 signext 112, i8* null, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0))
%8 = call i32 @printHelpOption(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i8 signext 108, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0))
%9 = call i32 @printHelpOption(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8 signext 115, i8* null, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0))
%10 = call i32 @printHelpOption(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i8 signext 104, i8* null, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0))
%11 = call i32 @printHelpOption(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i8 signext 118, i8* null, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.18, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.2 = [6 x i8] c"ascii\00"
@.str.3 = [73 x i8] c"Generates a key of ASCII characters, ranging from '!'\0A\09\09\09to'~' (default)\00"
@.str.4 = [12 x i8] c"ascii-blank\00"
@.str.5 = [101 x i8] c"Generates a key of ASCII characters, ranging from ' '\0A\09\09\09to'~'; same as --ascii, but includes blanks\00"
@.str.6 = [14 x i8] c"ascii-reduced\00"
@.str.7 = [33 x i8] c"Generates a key of reduced ASCII\00"
@.str.8 = [9 x i8] c"alphanum\00"
@.str.9 = [43 x i8] c"Generates a key of alphanumeric characters\00"
@.str.10 = [7 x i8] c"length\00"
@.str.11 = [2 x i8] c"n\00"
@.str.12 = [36 x i8] c"Generates a key of <n> bytes length\00"
@.str.13 = [6 x i8] c"short\00"
@.str.14 = [19 x i8] c"Shows only the key\00"
@.str.15 = [5 x i8] c"help\00"
@.str.16 = [15 x i8] c"Shows the help\00"
@.str.17 = [8 x i8] c"version\00"
@.str.18 = [40 x i8] c"Shows version informations and license.\00"
@str = [31 x i8] c"\0AGenerates keys and passwords.\00"
@str.19 = [27 x i8] c"\0A Usage: keygen [Options]\0A\00"
define void @printHelp() {
%1 = tail call i32 (...) @printHead()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.19, i64 0, i64 0))
%4 = tail call i32 @printHelpOption(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8 signext 97, i8* null, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @printHelpOption(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8 signext 119, i8* null, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i32 @printHelpOption(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8 signext 114, i8* null, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
%7 = tail call i32 @printHelpOption(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8 signext 112, i8* null, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0))
%8 = tail call i32 @printHelpOption(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i8 signext 108, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0))
%9 = tail call i32 @printHelpOption(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8 signext 115, i8* null, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0))
%10 = tail call i32 @printHelpOption(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i8 signext 104, i8* null, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0))
%11 = tail call i32 @printHelpOption(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i8 signext 118, i8* null, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.18, i64 0, i64 0))
ret void
}