#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 usage(const char *progname) {
  printf("\nUsage: %s [options]\n", progname);
  printf("\nOptions:\n-------------\n");
  printf("-P<plugin>, --plugin-info[=..] \t  Show plugins summary or detailed "
         "plugin information if <plugin> is provided\n");
  printf("-p <plugin>, --plugin          \t  Use plugin (default plugin is "
         "'md5')\n");
  printf("-S<session>, --session-info[=..]  Display sessions summary/detailed "
         "info on <session>\n");
  printf("-s <session>, --session        \t  Load <session> (you may list "
         "sessions using -S)\n");
  printf(
      "-f <hashfile>, --hashfile     \t  Load hashes from file \'hashfile\'\n");
  printf("-b<ruleset>, --brute[=...]    \t  Enables bruteforce mode, load "
         "ruleset  \'ruleset\' (default: \'1:8:lalphanum\')\n");
  printf("-o <filename>, --outfile     \t  Write cracked hashes to <filename> "
         "upon completion\n");
  printf("-O <filename>, --uncrackedfile \t  Write uncracked hashes to "
         "<filename> upon completion\n");
  printf("-M, --markov-info[=...]      \t  Show available Markov stats files "
         "summary\n");
  printf(
      "-m <statfile>, --markov    \t  Enable Markov attack, use <statfile>\n");
  printf("-n <threshold>,--markov-threshold Set Markov attack threshold\n");
  printf("-N <limit>, --markov-limit \t  Set Markov attack password length "
         "limit (<=10, default 8)\n");
  printf("-c, --cpu \t\t\t  Use CPU even if GPU acceleration is enabled\n");
  printf("-F, --fast-markov \t\t  Faster markov attack (when using GPU)\n");
  printf("-G, --gpu-threads \t\t  Number of GPU threads (up to 4). Increases "
         "load/memory utilization, but may improve speeds.\n");
  printf("-C, --cpu-threads \t\t  Number of CPU worker threads.\n");
  printf("-D, --gpu-double \t\t  GPU 2x mode. Better speeds, but less "
         "scallable. \n");
  printf("-T, --gpu-temp \t\t\t  GPU temperature threshold (default:90 deg "
         "celsius). \n");
  printf("-t, --gpu-platform \t\t  OpenCL platform (default:0). \n");
  printf("-i, --interactive-mode \t\t  Interactive mode (reduce flicker and "
         "tearing). \n");
  printf(
      "-a, --add-opts \t\t\t  Additional options (for rule-based attacks). \n");
  printf("\nRuleset format: "
         "\'start_len:end_len:predefined_set:additional_args\'\n\n");
  printf("start_len:  \t  generated plaintexts are equal in length or longer "
         "than that value\n"
         "end_len:  \t  generated plaintexts are equal in length or shorter "
         "than that value\n"
         "predefined_set:   one of \'alpha\', \'ualpha\', \'lalpha\', "
         "\'lalphanum\', \'ualphanum\', \'alphanum\', \'ascii\', \'none\'\n"
         "additional_args:  additional characters, e.g \'+()\'\n\n"
         "Example:\n\n -t hello -b1:2:lalpha:* - try all permutations of "
         "length 1-2, comprised of lower alphabetical chars and \'*\'\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<usage>:
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    0xee1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1015(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x104a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10aa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10f0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x113a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1177(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11ad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11de(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1229(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1257(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1286(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12eb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1312(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x134b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1387(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13af(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13ed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1422(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x145a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x144a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rsi
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xecd(%rip),%rdi
call   1040 <puts@plt>
lea    0xed9(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3b(%rip),%rdi
call   1040 <puts@plt>
lea    0xf76(%rip),%rdi
call   1040 <puts@plt>
lea    0xfc0(%rip),%rdi
call   1040 <puts@plt>
lea    0x1006(%rip),%rdi
call   1040 <puts@plt>
lea    0x103c(%rip),%rdi
call   1040 <puts@plt>
lea    0x109d(%rip),%rdi
call   1040 <puts@plt>
lea    0x10e4(%rip),%rdi
call   1040 <puts@plt>
lea    0x112f(%rip),%rdi
call   1040 <puts@plt>
lea    0x116d(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a4(%rip),%rdi
call   1040 <puts@plt>
lea    0x11d6(%rip),%rdi
call   1040 <puts@plt>
lea    0x1222(%rip),%rdi
call   1040 <puts@plt>
lea    0x1251(%rip),%rdi
call   1040 <puts@plt>
lea    0x1281(%rip),%rdi
call   1040 <puts@plt>
lea    0x12e7(%rip),%rdi
call   1040 <puts@plt>
lea    0x130f(%rip),%rdi
call   1040 <puts@plt>
lea    0x1349(%rip),%rdi
call   1040 <puts@plt>
lea    0x1386(%rip),%rdi
call   1040 <puts@plt>
lea    0x13af(%rip),%rdi
call   1040 <puts@plt>
lea    0x13ee(%rip),%rdi
call   1040 <puts@plt>
lea    0x1424(%rip),%rdi
call   1040 <puts@plt>
lea    0x145d(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"\0AUsage: %s [options]\0A\00"
@.str.1 = [25 x i8] c"\0AOptions:\0A-------------\0A\00"
@.str.2 = [111 x i8] c"-P<plugin>, --plugin-info[=..] \09 Show plugins summary or detailed plugin information if <plugin> is provided\0A\00"
@.str.3 = [72 x i8] c"-p <plugin>, --plugin \09 Use plugin (default plugin is 'md5')\0A\00"
@.str.4 = [87 x i8] c"-S<session>, --session-info[=..] Display sessions summary/detailed info on <session>\0A\00"
@.str.5 = [83 x i8] c"-s <session>, --session \09 Load <session> (you may list sessions using -S)\0A\00"
@.str.6 = [67 x i8] c"-f <hashfile>, --hashfile \09 Load hashes from file 'hashfile'\0A\00"
@.str.7 = [110 x i8] c"-b<ruleset>, --brute[=...] \09 Enables bruteforce mode, load ruleset 'ruleset' (default: '1:8:lalphanum')\0A\00"
@.str.8 = [84 x i8] c"-o <filename>, --outfile \09 Write cracked hashes to <filename> upon completion\0A\00"
@.str.9 = [88 x i8] c"-O <filename>, --uncrackedfile \09 Write uncracked hashes to <filename> upon completion\0A\00"
@.str.10 = [75 x i8] c"-M, --markov-info[=...] \09 Show available Markov stats files summary\0A\00"
@.str.11 = [68 x i8] c"-m <statfile>, --markov \09 Enable Markov attack, use <statfile>\0A\00"
@.str.12 = [63 x i8] c"-n <threshold>,--markov-threshold Set Markov attack threshold\0A\00"
@.str.13 = [89 x i8] c"-N <limit>, --markov-limit \09 Set Markov attack password length limit (<=10, default 8)\0A\00"
@.str.14 = [60 x i8] c"-c, --cpu \09\09\09 Use CPU even if GPU acceleration is enabled\0A\00"
@.str.15 = [61 x i8] c"-F, --fast-markov \09\09 Faster markov attack (when using GPU)\0A\00"
@.str.16 = [115 x i8] c"-G, --gpu-threads \09\09 Number of GPU threads (up to 4). Increases load/memory utilization, but may improve speeds.\0A\00"
@.str.17 = [53 x i8] c"-C, --cpu-threads \09\09 Number of CPU worker threads.\0A\00"
@.str.18 = [71 x i8] c"-D, --gpu-double \09\09 GPU 2x mode. Better speeds, but less scallable. \0A\00"
@.str.19 = [74 x i8] c"-T, --gpu-temp \09\09\09 GPU temperature threshold (default:90 deg celsius). \0A\00"
@.str.20 = [54 x i8] c"-t, --gpu-platform \09\09 OpenCL platform (default:0). \0A\00"
@.str.21 = [76 x i8] c"-i, --interactive-mode \09\09 Interactive mode (reduce flicker and tearing). \0A\00"
@.str.22 = [67 x i8] c"-a, --add-opts \09\09\09 Additional options (for rule-based attacks). \0A\00"
@.str.23 = [70 x i8] c"\0ARuleset format: 'start_len:end_len:predefined_set:additional_args'\0A\0A\00"
@.str.24 = [443 x i8] c"start_len: \09 generated plaintexts are equal in length or longer than that value\0Aend_len: \09 generated plaintexts are equal in length or shorter than that value\0Apredefined_set: one of 'alpha', 'ualpha', 'lalpha', 'lalphanum', 'ualphanum', 'alphanum', 'ascii', 'none'\0Aadditional_args: additional characters, e.g '+()'\0A\0AExample:\0A\0A -t hello -b1:2:lalpha:* - try all permutations of length 1-2, comprised of lower alphabetical chars and '*'\0A\00"
@.str.25 = [2 x i8] c"\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.13, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.14, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.15, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([115 x i8], [115 x i8]* @.str.16, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.17, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.18, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.19, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.20, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.21, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.22, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.23, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([443 x i8], [443 x i8]* @.str.24, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"\0AUsage: %s [options]\0A\00"
@str = [24 x i8] c"\0AOptions:\0A-------------\00"
@str.26 = [110 x i8] c"-P<plugin>, --plugin-info[=..] \09 Show plugins summary or detailed plugin information if <plugin> is provided\00"
@str.27 = [71 x i8] c"-p <plugin>, --plugin \09 Use plugin (default plugin is 'md5')\00"
@str.28 = [86 x i8] c"-S<session>, --session-info[=..] Display sessions summary/detailed info on <session>\00"
@str.29 = [82 x i8] c"-s <session>, --session \09 Load <session> (you may list sessions using -S)\00"
@str.30 = [66 x i8] c"-f <hashfile>, --hashfile \09 Load hashes from file 'hashfile'\00"
@str.31 = [109 x i8] c"-b<ruleset>, --brute[=...] \09 Enables bruteforce mode, load ruleset 'ruleset' (default: '1:8:lalphanum')\00"
@str.32 = [83 x i8] c"-o <filename>, --outfile \09 Write cracked hashes to <filename> upon completion\00"
@str.33 = [87 x i8] c"-O <filename>, --uncrackedfile \09 Write uncracked hashes to <filename> upon completion\00"
@str.34 = [74 x i8] c"-M, --markov-info[=...] \09 Show available Markov stats files summary\00"
@str.35 = [67 x i8] c"-m <statfile>, --markov \09 Enable Markov attack, use <statfile>\00"
@str.36 = [62 x i8] c"-n <threshold>,--markov-threshold Set Markov attack threshold\00"
@str.37 = [88 x i8] c"-N <limit>, --markov-limit \09 Set Markov attack password length limit (<=10, default 8)\00"
@str.38 = [59 x i8] c"-c, --cpu \09\09\09 Use CPU even if GPU acceleration is enabled\00"
@str.39 = [60 x i8] c"-F, --fast-markov \09\09 Faster markov attack (when using GPU)\00"
@str.40 = [114 x i8] c"-G, --gpu-threads \09\09 Number of GPU threads (up to 4). Increases load/memory utilization, but may improve speeds.\00"
@str.41 = [52 x i8] c"-C, --cpu-threads \09\09 Number of CPU worker threads.\00"
@str.42 = [70 x i8] c"-D, --gpu-double \09\09 GPU 2x mode. Better speeds, but less scallable. \00"
@str.43 = [73 x i8] c"-T, --gpu-temp \09\09\09 GPU temperature threshold (default:90 deg celsius). \00"
@str.44 = [53 x i8] c"-t, --gpu-platform \09\09 OpenCL platform (default:0). \00"
@str.45 = [75 x i8] c"-i, --interactive-mode \09\09 Interactive mode (reduce flicker and tearing). \00"
@str.46 = [66 x i8] c"-a, --add-opts \09\09\09 Additional options (for rule-based attacks). \00"
@str.47 = [69 x i8] c"\0ARuleset format: 'start_len:end_len:predefined_set:additional_args'\0A\00"
@str.48 = [442 x i8] c"start_len: \09 generated plaintexts are equal in length or longer than that value\0Aend_len: \09 generated plaintexts are equal in length or shorter than that value\0Apredefined_set: one of 'alpha', 'ualpha', 'lalpha', 'lalphanum', 'ualphanum', 'alphanum', 'ascii', 'none'\0Aadditional_args: additional characters, e.g '+()'\0A\0AExample:\0A\0A -t hello -b1:2:lalpha:* - try all permutations of length 1-2, comprised of lower alphabetical chars and '*'\00"
define void @usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([110 x i8], [110 x i8]* @str.26, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.27, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.28, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.29, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.30, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([109 x i8], [109 x i8]* @str.31, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.32, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.33, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.34, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.35, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.36, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @str.37, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.38, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.39, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([114 x i8], [114 x i8]* @str.40, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.41, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.42, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.43, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.44, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.45, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.46, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.47, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([442 x i8], [442 x i8]* @str.48, i64 0, i64 0))
%27 = tail call i32 @putchar(i32 10)
ret void
}