#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 */
struct option {
  char *member_0;
  char member_3;
  int /*<<< orphan*/ *member_2;
  int /*<<< orphan*/ const member_1;
};

/* Variables and functions */
int /*<<< orphan*/ CRYPTO_cleanup_all_ex_data();
int /*<<< orphan*/ ERR_free_strings();
int /*<<< orphan*/ ERR_load_crypto_strings();
int /*<<< orphan*/ EVP_cleanup();
int EXIT_SUCCESS;
int /*<<< orphan*/ OpenSSL_add_all_algorithms();
int /*<<< orphan*/ basename(char *);
int getopt_long(int, char **, char const *, struct option const *, int *);
#define no_argument 128
char *optarg;
int optind;
scalar_t__ optopt;
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ showstandardinfo(char *, char *);
int /*<<< orphan*/ showstandardinfobase64(char *, char *);
int /*<<< orphan*/ showstandardinfohashlineessidpsk(char *, char *, char *);
int /*<<< orphan*/ showstandardinfohashlinepmk(char *, char *);
int /*<<< orphan*/ showstandardinfohashlinepsk(char *, char *);
int /*<<< orphan*/ showstandardinfopmk(char *, char *, char *);
int /*<<< orphan*/ usage(int /*<<< orphan*/);
int /*<<< orphan*/ usageerror(int /*<<< orphan*/);
int /*<<< orphan*/ version(int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  static int auswahl;
  static int index;
  static char *hashlinestring;
  static char *essidstring;
  static char *pskstring;
  static char *pmkstring;
  static const char *short_options = "i:e:p:m:hv";
  static const struct option long_options[] = {
      {"version", no_argument, NULL, 'v'},
      {"help", no_argument, NULL, 'h'},
      {NULL, 0, NULL, 0}};
  auswahl = -1;
  index = 0;
  optind = 1;
  optopt = 0;
  hashlinestring = NULL;
  essidstring = NULL;
  pskstring = NULL;
  pmkstring = NULL;
  while ((auswahl = getopt_long(argc, argv, short_options, long_options,
                                &index)) != -1) {
    switch (auswahl) {
    case 'i':
      hashlinestring = optarg;
      break;
    case 'e':
      essidstring = optarg;
      break;
    case 'p':
      pskstring = optarg;
      break;
    case 'm':
      pmkstring = optarg;
      break;
    case 'h':
      usage(basename(argv[0]));
      break;
    case 'v':
      version(basename(argv[0]));
      break;
    case '?':
      usageerror(basename(argv[0]));
      break;
    }
  }
  ERR_load_crypto_strings();
  OpenSSL_add_all_algorithms();
  printf("\n");
  if ((essidstring != NULL) && (pskstring != NULL) && (pmkstring == NULL) &&
      (hashlinestring == NULL)) {
    showstandardinfo(pskstring, essidstring);
  } else if ((essidstring != NULL) && (pskstring != NULL) &&
             (pmkstring != NULL) && (hashlinestring == NULL)) {
    showstandardinfopmk(pskstring, essidstring, pmkstring);
  } else if ((essidstring != NULL) && (pskstring == NULL) &&
             (pmkstring != NULL) && (hashlinestring == NULL)) {
    showstandardinfobase64(essidstring, pmkstring);
  } else if ((essidstring == NULL) && (pskstring != NULL) &&
             (pmkstring == NULL) && (hashlinestring != NULL)) {
    showstandardinfohashlinepsk(hashlinestring, pskstring);
  } else if ((essidstring == NULL) && (pskstring == NULL) &&
             (pmkstring != NULL) && (hashlinestring != NULL)) {
    showstandardinfohashlinepmk(hashlinestring, pmkstring);
  } else if ((essidstring != NULL) && (pskstring != NULL) &&
             (pmkstring == NULL) && (hashlinestring != NULL)) {
    showstandardinfohashlineessidpsk(hashlinestring, essidstring, pskstring);
  }
  printf("\n");
  EVP_cleanup();
  CRYPTO_cleanup_all_ex_data();
  ERR_free_strings();
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xffffffff,0x2e88(%rip)
ff ff ff
movl   $0x0,0x2e82(%rip)
mov    0x2d97(%rip),%rax
movl   $0x1,(%rax)
mov    0x2d92(%rip),%rax
movq   $0x0,(%rax)
movq   $0x0,0x2e60(%rip)
movq   $0x0,0x2e5d(%rip)
movq   $0x0,0x2e5a(%rip)
movq   $0x0,0x2e57(%rip)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    0x2e19(%rip),%rdx
lea    0x2b0a(%rip),%rcx
lea    0x2e1f(%rip),%r8
call   1050 <getopt_long@plt>
mov    %eax,0x2e10(%rip)
cmp    $0xffffffff,%eax
je     137d <main+0x16d>
mov    0x2e01(%rip),%eax
add    $0xffffffc1,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x37,%eax
ja     1378 <main+0x168>
mov    -0x18(%rbp),%rax
lea    0xd2c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2d14(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x2dd2(%rip)
jmp    1378 <main+0x168>
mov    0x2cfe(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x2dc4(%rip)
jmp    1378 <main+0x168>
mov    0x2ce8(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x2db6(%rip)
jmp    1378 <main+0x168>
mov    0x2cd2(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x2da8(%rip)
jmp    1378 <main+0x168>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1070 <basename@plt>
mov    %eax,%edi
call   10d0 <usage@plt>
jmp    1378 <main+0x168>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1070 <basename@plt>
mov    %eax,%edi
call   10c0 <version@plt>
jmp    1378 <main+0x168>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1070 <basename@plt>
mov    %eax,%edi
call   1100 <usageerror@plt>
jmp    1281 <main+0x71>
mov    $0x0,%al
call   10f0 <ERR_load_crypto_strings@plt>
mov    $0x0,%al
call   1090 <OpenSSL_add_all_algorithms@plt>
lea    0xd66(%rip),%rdi
call   1060 <printf@plt>
cmpq   $0x0,0x2d29(%rip)
je     13e7 <main+0x1d7>
cmpq   $0x0,0x2d23(%rip)
je     13e7 <main+0x1d7>
cmpq   $0x0,0x2d1d(%rip)
jne    13e7 <main+0x1d7>
cmpq   $0x0,0x2cf7(%rip)
jne    13e7 <main+0x1d7>
mov    0x2cfa(%rip),%rdi
mov    0x2ceb(%rip),%rsi
call   1120 <showstandardinfo@plt>
jmp    1599 <main+0x389>
cmpq   $0x0,0x2cd9(%rip)
je     143e <main+0x22e>
cmpq   $0x0,0x2cd3(%rip)
je     143e <main+0x22e>
cmpq   $0x0,0x2ccd(%rip)
je     143e <main+0x22e>
cmpq   $0x0,0x2ca7(%rip)
jne    143e <main+0x22e>
mov    0x2caa(%rip),%rdi
mov    0x2c9b(%rip),%rsi
mov    0x2ca4(%rip),%rdx
call   1130 <showstandardinfopmk@plt>
jmp    1594 <main+0x384>
cmpq   $0x0,0x2c82(%rip)
je     148e <main+0x27e>
cmpq   $0x0,0x2c7c(%rip)
jne    148e <main+0x27e>
cmpq   $0x0,0x2c76(%rip)
je     148e <main+0x27e>
cmpq   $0x0,0x2c50(%rip)
jne    148e <main+0x27e>
mov    0x2c4b(%rip),%rdi
mov    0x2c54(%rip),%rsi
call   10e0 <showstandardinfobase64@plt>
jmp    158f <main+0x37f>
cmpq   $0x0,0x2c32(%rip)
jne    14de <main+0x2ce>
cmpq   $0x0,0x2c2c(%rip)
je     14de <main+0x2ce>
cmpq   $0x0,0x2c26(%rip)
jne    14de <main+0x2ce>
cmpq   $0x0,0x2c00(%rip)
je     14de <main+0x2ce>
mov    0x2bf3(%rip),%rdi
mov    0x2bfc(%rip),%rsi
call   1110 <showstandardinfohashlinepsk@plt>
jmp    158a <main+0x37a>
cmpq   $0x0,0x2be2(%rip)
jne    152e <main+0x31e>
cmpq   $0x0,0x2bdc(%rip)
jne    152e <main+0x31e>
cmpq   $0x0,0x2bd6(%rip)
je     152e <main+0x31e>
cmpq   $0x0,0x2bb0(%rip)
je     152e <main+0x31e>
mov    0x2ba3(%rip),%rdi
mov    0x2bb4(%rip),%rsi
call   1080 <showstandardinfohashlinepmk@plt>
jmp    1585 <main+0x375>
cmpq   $0x0,0x2b92(%rip)
je     1580 <main+0x370>
cmpq   $0x0,0x2b8c(%rip)
je     1580 <main+0x370>
cmpq   $0x0,0x2b86(%rip)
jne    1580 <main+0x370>
cmpq   $0x0,0x2b60(%rip)
je     1580 <main+0x370>
mov    0x2b53(%rip),%rdi
mov    0x2b54(%rip),%rsi
mov    0x2b55(%rip),%rdx
call   1030 <showstandardinfohashlineessidpsk@plt>
jmp    1585 <main+0x375>
jmp    158a <main+0x37a>
jmp    158f <main+0x37f>
jmp    1594 <main+0x384>
jmp    1599 <main+0x389>
lea    0xb58(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   10a0 <EVP_cleanup@plt>
mov    $0x0,%al
call   1040 <CRYPTO_cleanup_all_ex_data@plt>
mov    $0x0,%al
call   10b0 <ERR_free_strings@plt>
mov    0x2a07(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%r13d
movl   $0x0,0x2e85(%rip)
mov    0x2da6(%rip),%rax
movl   $0x1,(%rax)
mov    0x2da1(%rip),%rax
movq   $0x0,(%rax)
movq   $0x0,0x2e67(%rip)
movq   $0x0,0x2e64(%rip)
movq   $0x0,0x2e61(%rip)
movq   $0x0,0x2e5e(%rip)
lea    0xe67(%rip),%r14
lea    0x2b20(%rip),%r15
lea    0x2e29(%rip),%r12
lea    0xd72(%rip),%rbp
jmp    12a0 <main+0x90>
mov    (%rbx),%rdi
call   1070 <basename@plt>
mov    %eax,%edi
call   1100 <usageerror@plt>
nop
mov    %r13d,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %r15,%rcx
mov    %r12,%r8
call   1060 <getopt_long@plt>
lea    -0x3f(%rax),%ecx
cmp    $0x37,%ecx
ja     133a <main+0x12a>
movslq 0x0(%rbp,%rcx,4),%rax
add    %rbp,%rax
jmp    *%rax
mov    0x2d2b(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x2de9(%rip)
jmp    12a0 <main+0x90>
mov    (%rbx),%rdi
call   1070 <basename@plt>
mov    %eax,%edi
call   10d0 <usage@plt>
jmp    12a0 <main+0x90>
mov    0x2d07(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x2dbd(%rip)
jmp    12a0 <main+0x90>
mov    0x2cf4(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x2dc2(%rip)
jmp    12a0 <main+0x90>
mov    0x2ce1(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x2da7(%rip)
jmp    12a0 <main+0x90>
mov    (%rbx),%rdi
call   1070 <basename@plt>
mov    %eax,%edi
call   10c0 <version@plt>
jmp    12a0 <main+0x90>
cmp    $0xffffffff,%eax
jne    12a0 <main+0x90>
xor    %eax,%eax
call   10f0 <ERR_load_crypto_strings@plt>
xor    %eax,%eax
call   1090 <OpenSSL_add_all_algorithms@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2d5e(%rip),%rsi
test   %rsi,%rsi
setne  %cl
mov    0x2d59(%rip),%rbp
test   %rbp,%rbp
setne  %bl
and    %cl,%bl
mov    0x2d52(%rip),%rdx
test   %rdx,%rdx
sete   %cl
and    %bl,%cl
mov    0x2d2b(%rip),%rdi
cmp    $0x1,%cl
jne    13a4 <main+0x194>
test   %rdi,%rdi
jne    13a4 <main+0x194>
mov    %rbp,%rdi
call   1120 <showstandardinfo@plt>
jmp    1432 <main+0x222>
test   %rdx,%rdx
setne  %al
and    %al,%bl
cmp    $0x1,%bl
jne    13c0 <main+0x1b0>
test   %rdi,%rdi
jne    13c0 <main+0x1b0>
mov    %rbp,%rdi
call   1130 <showstandardinfopmk@plt>
jmp    1432 <main+0x222>
test   %rsi,%rsi
je     13e1 <main+0x1d1>
test   %rbp,%rbp
jne    13e1 <main+0x1d1>
test   %rdx,%rdx
je     13e1 <main+0x1d1>
test   %rdi,%rdi
jne    13e1 <main+0x1d1>
mov    %rsi,%rdi
mov    %rdx,%rsi
call   10e0 <showstandardinfobase64@plt>
jmp    1432 <main+0x222>
test   %rsi,%rsi
jne    13ff <main+0x1ef>
test   %rbp,%rbp
je     13ff <main+0x1ef>
test   %rdx,%rdx
jne    13ff <main+0x1ef>
test   %rdi,%rdi
je     13ff <main+0x1ef>
mov    %rbp,%rsi
call   1110 <showstandardinfohashlinepsk@plt>
jmp    1432 <main+0x222>
test   %rsi,%rsi
jne    141d <main+0x20d>
test   %rbp,%rbp
jne    141d <main+0x20d>
test   %rdx,%rdx
je     141d <main+0x20d>
test   %rdi,%rdi
je     141d <main+0x20d>
mov    %rdx,%rsi
call   1080 <showstandardinfohashlinepmk@plt>
jmp    1432 <main+0x222>
test   %rdi,%rdi
setne  %al
and    %al,%cl
cmp    $0x1,%cl
jne    1432 <main+0x222>
mov    %rbp,%rdx
call   1040 <showstandardinfohashlineessidpsk@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   10a0 <EVP_cleanup@plt>
xor    %eax,%eax
call   1050 <CRYPTO_cleanup_all_ex_data@plt>
xor    %eax,%eax
call   10b0 <ERR_free_strings@plt>
mov    0x2b70(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.option = type { i8*, i8, i32*, i32 }
@main.auswahl = internal global i32 0
@main.index = internal global i32 0
@main.hashlinestring = internal global i8* null
@main.essidstring = internal global i8* null
@main.pskstring = internal global i8* null
@main.pmkstring = internal global i8* null
@main.short_options = internal global i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0)
@.str = [11 x i8] c"i:e:p:m:hv\00"
@main.long_options = internal constant [3 x %struct.option] [%struct.option { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i32 0, i32 0), i8 -128, i32* null, i32 118 }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8 -128, i32* null, i32 104 }, %struct.option zeroinitializer]
@.str.1 = [8 x i8] c"version\00"
@.str.2 = [5 x i8] c"help\00"
@optind = global i32 0
@optopt = global i64 0
@optarg = global i8* null
@.str.3 = [2 x i8] c"\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 -1, i32* @main.auswahl
store i32 0, i32* @main.index
store i32 1, i32* @optind
store i64 0, i64* @optopt
store i8* null, i8** @main.hashlinestring
store i8* null, i8** @main.essidstring
store i8* null, i8** @main.pskstring
store i8* null, i8** @main.pmkstring
br label %6
6: ; preds = %40, %2
%7 = load i32, i32* %4
%8 = load i8**, i8*** %5
%9 = load i8*, i8** @main.short_options
%10 = call i32 @getopt_long(i32 %7, i8** %8, i8* %9, %struct.option* getelementptr inbounds ([3 x %struct.option], [3 x %struct.option]* @main.long_options, i64 0, i64 0), i32* @main.index)
store i32 %10, i32* @main.auswahl
%11 = icmp ne i32 %10, -1
br i1 %11, label %12, label %41
12: ; preds = %6
%13 = load i32, i32* @main.auswahl
switch i32 %13, label %40 [
i32 105, label %14
i32 101, label %16
i32 112, label %18
i32 109, label %20
i32 104, label %22
i32 118, label %28
i32 63, label %34
]
14: ; preds = %12
%15 = load i8*, i8** @optarg
store i8* %15, i8** @main.hashlinestring
br label %40
16: ; preds = %12
%17 = load i8*, i8** @optarg
store i8* %17, i8** @main.essidstring
br label %40
18: ; preds = %12
%19 = load i8*, i8** @optarg
store i8* %19, i8** @main.pskstring
br label %40
20: ; preds = %12
%21 = load i8*, i8** @optarg
store i8* %21, i8** @main.pmkstring
br label %40
22: ; preds = %12
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 0
%25 = load i8*, i8** %24
%26 = call i32 @basename(i8* %25)
%27 = call i32 @usage(i32 %26)
br label %40
28: ; preds = %12
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 0
%31 = load i8*, i8** %30
%32 = call i32 @basename(i8* %31)
%33 = call i32 @version(i32 %32)
br label %40
34: ; preds = %12
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 0
%37 = load i8*, i8** %36
%38 = call i32 @basename(i8* %37)
%39 = call i32 @usageerror(i32 %38)
br label %40
40: ; preds = %12, %34, %28, %22, %20, %18, %16, %14
br label %6
41: ; preds = %6
%42 = call i32 (...) @ERR_load_crypto_strings()
%43 = call i32 (...) @OpenSSL_add_all_algorithms()
%44 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%45 = load i8*, i8** @main.essidstring
%46 = icmp ne i8* %45, null
br i1 %46, label %47, label %60
47: ; preds = %41
%48 = load i8*, i8** @main.pskstring
%49 = icmp ne i8* %48, null
br i1 %49, label %50, label %60
50: ; preds = %47
%51 = load i8*, i8** @main.pmkstring
%52 = icmp eq i8* %51, null
br i1 %52, label %53, label %60
53: ; preds = %50
%54 = load i8*, i8** @main.hashlinestring
%55 = icmp eq i8* %54, null
br i1 %55, label %56, label %60
56: ; preds = %53
%57 = load i8*, i8** @main.pskstring
%58 = load i8*, i8** @main.essidstring
%59 = call i32 @showstandardinfo(i8* %57, i8* %58)
br label %147
60: ; preds = %53, %50, %47, %41
%61 = load i8*, i8** @main.essidstring
%62 = icmp ne i8* %61, null
br i1 %62, label %63, label %77
63: ; preds = %60
%64 = load i8*, i8** @main.pskstring
%65 = icmp ne i8* %64, null
br i1 %65, label %66, label %77
66: ; preds = %63
%67 = load i8*, i8** @main.pmkstring
%68 = icmp ne i8* %67, null
br i1 %68, label %69, label %77
69: ; preds = %66
%70 = load i8*, i8** @main.hashlinestring
%71 = icmp eq i8* %70, null
br i1 %71, label %72, label %77
72: ; preds = %69
%73 = load i8*, i8** @main.pskstring
%74 = load i8*, i8** @main.essidstring
%75 = load i8*, i8** @main.pmkstring
%76 = call i32 @showstandardinfopmk(i8* %73, i8* %74, i8* %75)
br label %146
77: ; preds = %69, %66, %63, %60
%78 = load i8*, i8** @main.essidstring
%79 = icmp ne i8* %78, null
br i1 %79, label %80, label %93
80: ; preds = %77
%81 = load i8*, i8** @main.pskstring
%82 = icmp eq i8* %81, null
br i1 %82, label %83, label %93
83: ; preds = %80
%84 = load i8*, i8** @main.pmkstring
%85 = icmp ne i8* %84, null
br i1 %85, label %86, label %93
86: ; preds = %83
%87 = load i8*, i8** @main.hashlinestring
%88 = icmp eq i8* %87, null
br i1 %88, label %89, label %93
89: ; preds = %86
%90 = load i8*, i8** @main.essidstring
%91 = load i8*, i8** @main.pmkstring
%92 = call i32 @showstandardinfobase64(i8* %90, i8* %91)
br label %145
93: ; preds = %86, %83, %80, %77
%94 = load i8*, i8** @main.essidstring
%95 = icmp eq i8* %94, null
br i1 %95, label %96, label %109
96: ; preds = %93
%97 = load i8*, i8** @main.pskstring
%98 = icmp ne i8* %97, null
br i1 %98, label %99, label %109
99: ; preds = %96
%100 = load i8*, i8** @main.pmkstring
%101 = icmp eq i8* %100, null
br i1 %101, label %102, label %109
102: ; preds = %99
%103 = load i8*, i8** @main.hashlinestring
%104 = icmp ne i8* %103, null
br i1 %104, label %105, label %109
105: ; preds = %102
%106 = load i8*, i8** @main.hashlinestring
%107 = load i8*, i8** @main.pskstring
%108 = call i32 @showstandardinfohashlinepsk(i8* %106, i8* %107)
br label %144
109: ; preds = %102, %99, %96, %93
%110 = load i8*, i8** @main.essidstring
%111 = icmp eq i8* %110, null
br i1 %111, label %112, label %125
112: ; preds = %109
%113 = load i8*, i8** @main.pskstring
%114 = icmp eq i8* %113, null
br i1 %114, label %115, label %125
115: ; preds = %112
%116 = load i8*, i8** @main.pmkstring
%117 = icmp ne i8* %116, null
br i1 %117, label %118, label %125
118: ; preds = %115
%119 = load i8*, i8** @main.hashlinestring
%120 = icmp ne i8* %119, null
br i1 %120, label %121, label %125
121: ; preds = %118
%122 = load i8*, i8** @main.hashlinestring
%123 = load i8*, i8** @main.pmkstring
%124 = call i32 @showstandardinfohashlinepmk(i8* %122, i8* %123)
br label %143
125: ; preds = %118, %115, %112, %109
%126 = load i8*, i8** @main.essidstring
%127 = icmp ne i8* %126, null
br i1 %127, label %128, label %142
128: ; preds = %125
%129 = load i8*, i8** @main.pskstring
%130 = icmp ne i8* %129, null
br i1 %130, label %131, label %142
131: ; preds = %128
%132 = load i8*, i8** @main.pmkstring
%133 = icmp eq i8* %132, null
br i1 %133, label %134, label %142
134: ; preds = %131
%135 = load i8*, i8** @main.hashlinestring
%136 = icmp ne i8* %135, null
br i1 %136, label %137, label %142
137: ; preds = %134
%138 = load i8*, i8** @main.hashlinestring
%139 = load i8*, i8** @main.essidstring
%140 = load i8*, i8** @main.pskstring
%141 = call i32 @showstandardinfohashlineessidpsk(i8* %138, i8* %139, i8* %140)
br label %142
142: ; preds = %137, %134, %131, %128, %125
br label %143
143: ; preds = %142, %121
br label %144
144: ; preds = %143, %105
br label %145
145: ; preds = %144, %89
br label %146
146: ; preds = %145, %72
br label %147
147: ; preds = %146, %56
%148 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%149 = call i32 (...) @EVP_cleanup()
%150 = call i32 (...) @CRYPTO_cleanup_all_ex_data()
%151 = call i32 (...) @ERR_free_strings()
%152 = load i32, i32* @EXIT_SUCCESS
ret i32 %152
}

LLVM IR (-O2):
%struct.option = type { i8*, i8, i32*, i32 }
@main.index = internal global i32 0
@main.hashlinestring = internal unnamed_addr global i8* null
@main.essidstring = internal unnamed_addr global i8* null
@main.pskstring = internal unnamed_addr global i8* null
@main.pmkstring = internal unnamed_addr global i8* null
@.str = [11 x i8] c"i:e:p:m:hv\00"
@main.long_options = internal constant [3 x %struct.option] [%struct.option { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i32 0, i32 0), i8 -128, i32* null, i32 118 }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8 -128, i32* null, i32 104 }, %struct.option zeroinitializer]
@.str.1 = [8 x i8] c"version\00"
@.str.2 = [5 x i8] c"help\00"
@optind = global i32 0
@optopt = global i64 0
@optarg = global i8* null
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
store i32 0, i32* @main.index
store i32 1, i32* @optind
store i64 0, i64* @optopt
store i8* null, i8** @main.hashlinestring
store i8* null, i8** @main.essidstring
store i8* null, i8** @main.pskstring
store i8* null, i8** @main.pmkstring
br label %3
3: ; preds = %5, %2
%4 = tail call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), %struct.option* getelementptr inbounds ([3 x %struct.option], [3 x %struct.option]* @main.long_options, i64 0, i64 0), i32* @main.index)
switch i32 %4, label %5 [
i32 -1, label %26
i32 105, label %6
i32 101, label %8
i32 112, label %10
i32 109, label %12
i32 104, label %14
i32 118, label %18
i32 63, label %22
]
5: ; preds = %3, %22, %18, %14, %12, %10, %8, %6
br label %3
6: ; preds = %3
%7 = load i8*, i8** @optarg
store i8* %7, i8** @main.hashlinestring
br label %5
8: ; preds = %3
%9 = load i8*, i8** @optarg
store i8* %9, i8** @main.essidstring
br label %5
10: ; preds = %3
%11 = load i8*, i8** @optarg
store i8* %11, i8** @main.pskstring
br label %5
12: ; preds = %3
%13 = load i8*, i8** @optarg
store i8* %13, i8** @main.pmkstring
br label %5
14: ; preds = %3
%15 = load i8*, i8** %1
%16 = tail call i32 @basename(i8* %15)
%17 = tail call i32 @usage(i32 %16)
br label %5
18: ; preds = %3
%19 = load i8*, i8** %1
%20 = tail call i32 @basename(i8* %19)
%21 = tail call i32 @version(i32 %20)
br label %5
22: ; preds = %3
%23 = load i8*, i8** %1
%24 = tail call i32 @basename(i8* %23)
%25 = tail call i32 @usageerror(i32 %24)
br label %5
26: ; preds = %3
%27 = tail call i32 (...) @ERR_load_crypto_strings()
%28 = tail call i32 (...) @OpenSSL_add_all_algorithms()
%29 = tail call i32 @putchar(i32 10)
%30 = load i8*, i8** @main.essidstring
%31 = icmp ne i8* %30, null
%32 = load i8*, i8** @main.pskstring
%33 = icmp ne i8* %32, null
%34 = select i1 %31, i1 %33, i1 false
%35 = load i8*, i8** @main.pmkstring
%36 = icmp eq i8* %35, null
%37 = select i1 %34, i1 %36, i1 false
%38 = load i8*, i8** @main.hashlinestring
%39 = icmp eq i8* %38, null
%40 = select i1 %37, i1 %39, i1 false
br i1 %40, label %41, label %43
41: ; preds = %26
%42 = tail call i32 @showstandardinfo(i8* %32, i8* %30)
br label %74
43: ; preds = %26
%44 = icmp ne i8* %35, null
%45 = select i1 %34, i1 %44, i1 false
%46 = select i1 %45, i1 %39, i1 false
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = tail call i32 @showstandardinfopmk(i8* %32, i8* %30, i8* %35)
br label %74
49: ; preds = %43
%50 = icmp eq i8* %32, null
%51 = select i1 %31, i1 %50, i1 false
%52 = select i1 %51, i1 %44, i1 false
%53 = select i1 %52, i1 %39, i1 false
br i1 %53, label %54, label %56
54: ; preds = %49
%55 = tail call i32 @showstandardinfobase64(i8* %30, i8* %35)
br label %74
56: ; preds = %49
%57 = icmp eq i8* %30, null
%58 = select i1 %57, i1 %33, i1 false
%59 = select i1 %58, i1 %36, i1 false
%60 = icmp ne i8* %38, null
%61 = select i1 %59, i1 %60, i1 false
br i1 %61, label %62, label %64
62: ; preds = %56
%63 = tail call i32 @showstandardinfohashlinepsk(i8* %38, i8* %32)
br label %74
64: ; preds = %56
%65 = select i1 %57, i1 %50, i1 false
%66 = select i1 %65, i1 %44, i1 false
%67 = select i1 %66, i1 %60, i1 false
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = tail call i32 @showstandardinfohashlinepmk(i8* %38, i8* %35)
br label %74
70: ; preds = %64
%71 = select i1 %37, i1 %60, i1 false
br i1 %71, label %72, label %74
72: ; preds = %70
%73 = tail call i32 @showstandardinfohashlineessidpsk(i8* %38, i8* %30, i8* %32)
br label %74
74: ; preds = %47, %62, %70, %72, %68, %54, %41
%75 = tail call i32 @putchar(i32 10)
%76 = tail call i32 (...) @EVP_cleanup()
%77 = tail call i32 (...) @CRYPTO_cleanup_all_ex_data()
%78 = tail call i32 (...) @ERR_free_strings()
%79 = load i32, i32* @EXIT_SUCCESS
ret i32 %79
}