#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
void show_usage(FILE *stream, int exit_code, char *arg0) {
  fprintf(stream, " %s v%s\n", "DES O'Dict", "1.0");
  fprintf(stream, " Usage: %s [options] -d <dict> DES_string\n", arg0);
  fprintf(stream, "  -d <dict>  --dictionary <dic>  Uses <dict> dictionary\n");
  fprintf(stream,
          "  -h         --help              Shows this help and exits\n");
  fprintf(stream,
          "  -V         --version           Display version and exits\n");
  fprintf(stream, "  -v         --verbose           Verbose mode on\n");
  fprintf(
      stream,
      "\n  If the string is not decrypted you should add more dictionaries\n");
  exit(exit_code);
}


x86 assembly (clang, -O0):
<show_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xec2(%rip),%rsi
lea    0xec4(%rip),%rdx
lea    0xec8(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xeb6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xecf(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xef6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf20(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf4a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf6a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0xc(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<show_usage>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%rbp
mov    %esi,%r14d
mov    %rdi,%rbx
lea    0xebc(%rip),%rsi
lea    0xebe(%rip),%rdx
lea    0xec2(%rip),%rcx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xeb8(%rip),%rsi
mov    %rbx,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xecf(%rip),%rdi
mov    $0x38,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xeef(%rip),%rdi
mov    $0x3b,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf12(%rip),%rdi
mov    $0x3b,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf35(%rip),%rdi
mov    $0x31,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf4e(%rip),%rdi
mov    $0x43,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
mov    %r14d,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [9 x i8] c" %s v%s\0A\00"
@.str.1 = [11 x i8] c"DES O'Dict\00"
@.str.2 = [4 x i8] c"1.0\00"
@.str.3 = [43 x i8] c" Usage: %s [options] -d <dict> DES_string\0A\00"
@.str.4 = [57 x i8] c" -d <dict> --dictionary <dic> Uses <dict> dictionary\0A\00"
@.str.5 = [60 x i8] c" -h --help Shows this help and exits\0A\00"
@.str.6 = [60 x i8] c" -V --version Display version and exits\0A\00"
@.str.7 = [50 x i8] c" -v --verbose Verbose mode on\0A\00"
@.str.8 = [68 x i8] c"\0A If the string is not decrypted you should add more dictionaries\0A\00"
define void @show_usage(i32* %0, i32 %1, i8* %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i8*
store i32* %0, i32** %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = load i32*, i32** %4
%8 = call i32 (i32*, i8*, ...) @fprintf(i32* %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32*, i32** %4
%10 = load i8*, i8** %6
%11 = call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0), i8* %10)
%12 = load i32*, i32** %4
%13 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0))
%14 = load i32*, i32** %4
%15 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i64 0, i64 0))
%16 = load i32*, i32** %4
%17 = call i32 (i32*, i8*, ...) @fprintf(i32* %16, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
%18 = load i32*, i32** %4
%19 = call i32 (i32*, i8*, ...) @fprintf(i32* %18, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%20 = load i32*, i32** %4
%21 = call i32 (i32*, i8*, ...) @fprintf(i32* %20, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%22 = load i32, i32* %5
%23 = call i32 @exit(i32 %22)
unreachable
}

LLVM IR (-O2):
@.str = [9 x i8] c" %s v%s\0A\00"
@.str.1 = [11 x i8] c"DES O'Dict\00"
@.str.2 = [4 x i8] c"1.0\00"
@.str.3 = [43 x i8] c" Usage: %s [options] -d <dict> DES_string\0A\00"
@.str.4 = [57 x i8] c" -d <dict> --dictionary <dic> Uses <dict> dictionary\0A\00"
@.str.5 = [60 x i8] c" -h --help Shows this help and exits\0A\00"
@.str.6 = [60 x i8] c" -V --version Display version and exits\0A\00"
@.str.7 = [50 x i8] c" -v --verbose Verbose mode on\0A\00"
@.str.8 = [68 x i8] c"\0A If the string is not decrypted you should add more dictionaries\0A\00"
define void @show_usage(i32* nocapture %0, i32 %1, i8* %2) {
%4 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0), i8* %2)
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0), i64 56, i64 1, i32* %0)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i64 0, i64 0), i64 59, i64 1, i32* %0)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0), i64 59, i64 1, i32* %0)
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0), i64 49, i64 1, i32* %0)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0), i64 67, i64 1, i32* %0)
%11 = tail call i32 @exit(i32 %1)
unreachable
}