#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 usage() {
  printf("\nUsage: %s [options]\n", "WPABF");
  printf("\n\t-d \tdictionary file\n"
         "\t-f \tpacket capture file\n"
         "\t-e \textended SSID\n"
         "\t-b \tbasic SSID\n"
         "\t-c \tclient SSID\n"
         "\t-a \tanonce\n"
         "\t-s \tsnonce\n"
         "\t-m \tmessage integrity check (MIC)\n"
         "\t-w \twrite passphrase to file\n"
         "\t-h \thelp!\n"
         "\t-v \tverbosity\n"
         "\t-V \tprint program version\n\n");
  printf("\tOnly options [dfe] are required\n\n");
  exit(-1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xee4(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xed7(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb5(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"\0AUsage: %s [options]\0A\00"
@.str.1 = [6 x i8] c"WPABF\00"
@.str.2 = [243 x i8] c"\0A\09-d \09dictionary file\0A\09-f \09packet capture file\0A\09-e \09extended SSID\0A\09-b \09basic SSID\0A\09-c \09client SSID\0A\09-a \09anonce\0A\09-s \09snonce\0A\09-m \09message integrity check (MIC)\0A\09-w \09write passphrase to file\0A\09-h \09help!\0A\09-v \09verbosity\0A\09-V \09print program version\0A\0A\00"
@.str.3 = [35 x i8] c"\09Only options [dfe] are required\0A\0A\00"
define void @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([243 x i8], [243 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@.str = [22 x i8] c"\0AUsage: %s [options]\0A\00"
@.str.1 = [6 x i8] c"WPABF\00"
@str = [242 x i8] c"\0A\09-d \09dictionary file\0A\09-f \09packet capture file\0A\09-e \09extended SSID\0A\09-b \09basic SSID\0A\09-c \09client SSID\0A\09-a \09anonce\0A\09-s \09snonce\0A\09-m \09message integrity check (MIC)\0A\09-w \09write passphrase to file\0A\09-h \09help!\0A\09-v \09verbosity\0A\09-V \09print program version\0A\00"
@str.4 = [34 x i8] c"\09Only options [dfe] are required\0A\00"
define void @usage() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([242 x i8], [242 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.4, i64 0, i64 0))
%4 = tail call i32 @exit(i32 -1)
unreachable
}