#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 */
scalar_t__ akngInstall(char *);
int /*<<< orphan*/ checkVersion();
scalar_t__ depInstall();
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
scalar_t__ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ sscanf(char *, char *, char *);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
char toupper(char);
void installer() {
  char c = 0, buff[256];
  fprintf(stdout, "\nDo you want to check for available updates? (requires "
                  "internet connection!)  [Y-N]\n");
  do {
    fgets(buff, 256 - 1, stdin);
    sscanf(buff, "%c", &c);
    c = toupper(c);
  } while (c != 'Y' && c != 'N' && fprintf(stdout, "Type only [Y-N]\n"));
  if (c == 'Y')
    checkVersion();
  c = '0';
  fprintf(stdout,
          "\nInstall requested dependencies to run this program?  [Y-N]\n");
  do {
    fgets(buff, 256 - 1, stdin);
    sscanf(buff, "%c", &c);
    c = toupper(c);
  } while (c != 'Y' && c != 'N' && fprintf(stdout, "Type only [Y-N]\n"));
  if (c == 'Y')
    if (depInstall())
      fprintf(stdout, "Attention: without all dependencies this program may "
                      "not work properly!\n\n");
  c = '0';
  fprintf(stdout, "\nDownload and install \"Aircrack-ng\"?  [Y-N]\n");
  do {
    fgets(buff, 256 - 1, stdin);
    sscanf(buff, "%c", &c);
    c = toupper(c);
  } while (c != 'Y' && c != 'N' && fprintf(stdout, "Type only [Y-N]\n"));
  if (c == 'Y')
    if (akngInstall("aircrack-ng"))
      fprintf(stdout, "Attention: \"Aircrack-ng\" NOT installed!\n\n");
  c = '0';
  fprintf(stdout, "\nDownload and install \"Reaver-WPS\"?  [Y-N]\n");
  do {
    fgets(buff, 256 - 1, stdin);
    sscanf(buff, "%c", &c);
    c = toupper(c);
  } while (c != 'Y' && c != 'N' && fprintf(stdout, "Type only [Y-N]\n"));
  if (c == 'Y')
    if (akngInstall("reaver-wps"))
      fprintf(stdout, "Attention: \"Reaver-WPS\" NOT installed!\n\n");
}


x86 assembly (clang, -O0):
<installer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movb   $0x0,-0x1(%rbp)
mov    0x2e52(%rip),%rax
mov    (%rax),%edi
lea    0xe71(%rip),%rsi
call   1060 <fprintf@plt>
lea    -0x110(%rbp),%rdi
mov    0x2e46(%rip),%rax
mov    (%rax),%edx
mov    $0xff,%esi
call   1050 <fgets@plt>
lea    -0x110(%rbp),%rdi
lea    0xe99(%rip),%rsi
lea    -0x1(%rbp),%rdx
call   1090 <sscanf@plt>
movsbl -0x1(%rbp),%edi
call   1040 <toupper@plt>
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x59,%ecx
mov    %al,-0x111(%rbp)
je     121d <installer+0xad>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x4e,%ecx
mov    %al,-0x111(%rbp)
je     121d <installer+0xad>
mov    0x2dd6(%rip),%rax
mov    (%rax),%edi
lea    0xe4d(%rip),%rsi
call   1060 <fprintf@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x111(%rbp)
mov    -0x111(%rbp),%al
test   $0x1,%al
jne    1194 <installer+0x24>
movsbl -0x1(%rbp),%eax
cmp    $0x59,%eax
jne    123f <installer+0xcf>
mov    $0x0,%al
call   1030 <checkVersion@plt>
movb   $0x30,-0x1(%rbp)
mov    0x2d8e(%rip),%rax
mov    (%rax),%edi
lea    0xe16(%rip),%rsi
call   1060 <fprintf@plt>
lea    -0x110(%rbp),%rdi
mov    0x2d82(%rip),%rax
mov    (%rax),%edx
mov    $0xff,%esi
call   1050 <fgets@plt>
lea    -0x110(%rbp),%rdi
lea    0xdd5(%rip),%rsi
lea    -0x1(%rbp),%rdx
call   1090 <sscanf@plt>
movsbl -0x1(%rbp),%edi
call   1040 <toupper@plt>
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x59,%ecx
mov    %al,-0x112(%rbp)
je     12e1 <installer+0x171>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x4e,%ecx
mov    %al,-0x112(%rbp)
je     12e1 <installer+0x171>
mov    0x2d12(%rip),%rax
mov    (%rax),%edi
lea    0xd89(%rip),%rsi
call   1060 <fprintf@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x112(%rbp)
mov    -0x112(%rbp),%al
test   $0x1,%al
jne    1258 <installer+0xe8>
movsbl -0x1(%rbp),%eax
cmp    $0x59,%eax
jne    1327 <installer+0x1b7>
mov    $0x0,%al
call   1070 <depInstall@plt>
cmp    $0x0,%rax
je     1322 <installer+0x1b2>
mov    0x2cc4(%rip),%rax
mov    (%rax),%edi
lea    0xd89(%rip),%rsi
call   1060 <fprintf@plt>
jmp    1327 <installer+0x1b7>
movb   $0x30,-0x1(%rbp)
mov    0x2ca6(%rip),%rax
mov    (%rax),%edi
lea    0xdb5(%rip),%rsi
call   1060 <fprintf@plt>
lea    -0x110(%rbp),%rdi
mov    0x2c9a(%rip),%rax
mov    (%rax),%edx
mov    $0xff,%esi
call   1050 <fgets@plt>
lea    -0x110(%rbp),%rdi
lea    0xced(%rip),%rsi
lea    -0x1(%rbp),%rdx
call   1090 <sscanf@plt>
movsbl -0x1(%rbp),%edi
call   1040 <toupper@plt>
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x59,%ecx
mov    %al,-0x113(%rbp)
je     13c9 <installer+0x259>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x4e,%ecx
mov    %al,-0x113(%rbp)
je     13c9 <installer+0x259>
mov    0x2c2a(%rip),%rax
mov    (%rax),%edi
lea    0xca1(%rip),%rsi
call   1060 <fprintf@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x113(%rbp)
mov    -0x113(%rbp),%al
test   $0x1,%al
jne    1340 <installer+0x1d0>
movsbl -0x1(%rbp),%eax
cmp    $0x59,%eax
jne    1414 <installer+0x2a4>
lea    0xd32(%rip),%rdi
call   1080 <akngInstall@plt>
cmp    $0x0,%rax
je     140f <installer+0x29f>
mov    0x2bd7(%rip),%rax
mov    (%rax),%edi
lea    0xd1f(%rip),%rsi
call   1060 <fprintf@plt>
jmp    1414 <installer+0x2a4>
movb   $0x30,-0x1(%rbp)
mov    0x2bb9(%rip),%rax
mov    (%rax),%edi
lea    0xd2b(%rip),%rsi
call   1060 <fprintf@plt>
lea    -0x110(%rbp),%rdi
mov    0x2bad(%rip),%rax
mov    (%rax),%edx
mov    $0xff,%esi
call   1050 <fgets@plt>
lea    -0x110(%rbp),%rdi
lea    0xc00(%rip),%rsi
lea    -0x1(%rbp),%rdx
call   1090 <sscanf@plt>
movsbl -0x1(%rbp),%edi
call   1040 <toupper@plt>
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x59,%ecx
mov    %al,-0x114(%rbp)
je     14b6 <installer+0x346>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x4e,%ecx
mov    %al,-0x114(%rbp)
je     14b6 <installer+0x346>
mov    0x2b3d(%rip),%rax
mov    (%rax),%edi
lea    0xbb4(%rip),%rsi
call   1060 <fprintf@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x114(%rbp)
mov    -0x114(%rbp),%al
test   $0x1,%al
jne    142d <installer+0x2bd>
movsbl -0x1(%rbp),%eax
cmp    $0x59,%eax
jne    1501 <installer+0x391>
lea    0xca7(%rip),%rdi
call   1080 <akngInstall@plt>
cmp    $0x0,%rax
je     14fc <installer+0x38c>
mov    0x2aea(%rip),%rax
mov    (%rax),%edi
lea    0xc93(%rip),%rsi
call   1060 <fprintf@plt>
jmp    1501 <installer+0x391>
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<installer>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
movb   $0x0,0xf(%rsp)
mov    0x2e4b(%rip),%r13
mov    0x0(%r13),%edi
lea    0xe68(%rip),%rsi
call   1060 <fprintf@plt>
mov    0x2e44(%rip),%rbp
lea    0x10(%rsp),%rbx
lea    0xea5(%rip),%r14
lea    0xf(%rsp),%r15
lea    0xe9c(%rip),%r12
nopl   0x0(%rax)
mov    0x0(%rbp),%edx
mov    %rbx,%rdi
mov    $0xff,%esi
call   1050 <fgets@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1090 <sscanf@plt>
movsbl 0xf(%rsp),%edi
call   1040 <toupper@plt>
mov    %al,0xf(%rsp)
cmp    $0x4e,%al
je     1209 <installer+0x99>
cmp    $0x59,%al
je     1209 <installer+0x99>
mov    0x0(%r13),%edi
mov    %r12,%rsi
call   1060 <fprintf@plt>
test   %rax,%rax
jne    11c0 <installer+0x50>
mov    0xf(%rsp),%al
cmp    $0x59,%al
jne    1214 <installer+0xa4>
xor    %eax,%eax
call   1030 <checkVersion@plt>
movb   $0x30,0xf(%rsp)
mov    0x0(%r13),%edi
lea    0xe45(%rip),%rsi
call   1060 <fprintf@plt>
lea    0x10(%rsp),%rbx
lea    0xe20(%rip),%r14
lea    0xf(%rsp),%r15
lea    0xe17(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x0(%rbp),%edx
mov    %rbx,%rdi
mov    $0xff,%esi
call   1050 <fgets@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1090 <sscanf@plt>
movsbl 0xf(%rsp),%edi
call   1040 <toupper@plt>
mov    %al,0xf(%rsp)
cmp    $0x4e,%al
je     1299 <installer+0x129>
cmp    $0x59,%al
je     1299 <installer+0x129>
mov    0x0(%r13),%edi
mov    %r12,%rsi
call   1060 <fprintf@plt>
test   %rax,%rax
jne    1250 <installer+0xe0>
mov    0xf(%rsp),%al
cmp    $0x59,%al
jne    12b9 <installer+0x149>
xor    %eax,%eax
call   1070 <depInstall@plt>
test   %rax,%rax
je     12b9 <installer+0x149>
mov    0x0(%r13),%edi
lea    0xdf2(%rip),%rsi
call   1060 <fprintf@plt>
movb   $0x30,0xf(%rsp)
mov    0x0(%r13),%edi
lea    0xe27(%rip),%rsi
call   1060 <fprintf@plt>
lea    0x10(%rsp),%rbx
lea    0xd7b(%rip),%r14
lea    0xf(%rsp),%r15
lea    0xd72(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
mov    0x0(%rbp),%edx
mov    %rbx,%rdi
mov    $0xff,%esi
call   1050 <fgets@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1090 <sscanf@plt>
movsbl 0xf(%rsp),%edi
call   1040 <toupper@plt>
mov    %al,0xf(%rsp)
cmp    $0x4e,%al
je     1339 <installer+0x1c9>
cmp    $0x59,%al
je     1339 <installer+0x1c9>
mov    0x0(%r13),%edi
mov    %r12,%rsi
call   1060 <fprintf@plt>
test   %rax,%rax
jne    12f0 <installer+0x180>
mov    0xf(%rsp),%al
cmp    $0x59,%al
jne    135e <installer+0x1ee>
lea    0xdd9(%rip),%rdi
call   1080 <akngInstall@plt>
test   %rax,%rax
je     135e <installer+0x1ee>
mov    0x0(%r13),%edi
lea    0xdd0(%rip),%rsi
call   1060 <fprintf@plt>
movb   $0x30,0xf(%rsp)
mov    0x0(%r13),%edi
lea    0xde5(%rip),%rsi
call   1060 <fprintf@plt>
lea    0x10(%rsp),%rbx
lea    0xcd6(%rip),%r14
lea    0xf(%rsp),%r15
lea    0xccd(%rip),%r12
nopl   0x0(%rax,%rax,1)
mov    0x0(%rbp),%edx
mov    %rbx,%rdi
mov    $0xff,%esi
call   1050 <fgets@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1090 <sscanf@plt>
movsbl 0xf(%rsp),%edi
call   1040 <toupper@plt>
mov    %al,0xf(%rsp)
cmp    $0x4e,%al
je     13d9 <installer+0x269>
cmp    $0x59,%al
je     13d9 <installer+0x269>
mov    0x0(%r13),%edi
mov    %r12,%rsi
call   1060 <fprintf@plt>
test   %rax,%rax
jne    1390 <installer+0x220>
mov    0xf(%rsp),%al
cmp    $0x59,%al
jne    13fe <installer+0x28e>
lea    0xd9b(%rip),%rdi
call   1080 <akngInstall@plt>
test   %rax,%rax
je     13fe <installer+0x28e>
mov    0x0(%r13),%edi
lea    0xd91(%rip),%rsi
call   1060 <fprintf@plt>
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [85 x i8] c"\0ADo you want to check for available updates? (requires internet connection!) [Y-N]\0A\00"
@stdin = global i32 0
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [17 x i8] c"Type only [Y-N]\0A\00"
@.str.3 = [61 x i8] c"\0AInstall requested dependencies to run this program? [Y-N]\0A\00"
@.str.4 = [74 x i8] c"Attention: without all dependencies this program may not work properly!\0A\0A\00"
@.str.5 = [45 x i8] c"\0ADownload and install \22Aircrack-ng\22? [Y-N]\0A\00"
@.str.6 = [12 x i8] c"aircrack-ng\00"
@.str.7 = [42 x i8] c"Attention: \22Aircrack-ng\22 NOT installed!\0A\0A\00"
@.str.8 = [44 x i8] c"\0ADownload and install \22Reaver-WPS\22? [Y-N]\0A\00"
@.str.9 = [11 x i8] c"reaver-wps\00"
@.str.10 = [41 x i8] c"Attention: \22Reaver-WPS\22 NOT installed!\0A\0A\00"
define void @installer() {
%1 = alloca i8
%2 = alloca [256 x i8]
store i8 0, i8* %1
%3 = load i32, i32* @stdout
%4 = call i64 @fprintf(i32 %3, i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str, i64 0, i64 0))
br label %5
5: ; preds = %25, %0
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%7 = load i32, i32* @stdin
%8 = call i32 @fgets(i8* %6, i32 255, i32 %7)
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%10 = call i32 @sscanf(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%11 = load i8, i8* %1
%12 = call signext i8 @toupper(i8 signext %11)
store i8 %12, i8* %1
br label %13
13: ; preds = %5
%14 = load i8, i8* %1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 89
br i1 %16, label %17, label %25
17: ; preds = %13
%18 = load i8, i8* %1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 78
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = load i32, i32* @stdout
%23 = call i64 @fprintf(i32 %22, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%24 = icmp ne i64 %23, 0
br label %25
25: ; preds = %21, %17, %13
%26 = phi i1 [ false, %17 ], [ false, %13 ], [ %24, %21 ]
br i1 %26, label %5, label %27
27: ; preds = %25
%28 = load i8, i8* %1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 89
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 (...) @checkVersion()
br label %33
33: ; preds = %31, %27
store i8 48, i8* %1
%34 = load i32, i32* @stdout
%35 = call i64 @fprintf(i32 %34, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.3, i64 0, i64 0))
br label %36
36: ; preds = %56, %33
%37 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%38 = load i32, i32* @stdin
%39 = call i32 @fgets(i8* %37, i32 255, i32 %38)
%40 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%41 = call i32 @sscanf(i8* %40, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%42 = load i8, i8* %1
%43 = call signext i8 @toupper(i8 signext %42)
store i8 %43, i8* %1
br label %44
44: ; preds = %36
%45 = load i8, i8* %1
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %46, 89
br i1 %47, label %48, label %56
48: ; preds = %44
%49 = load i8, i8* %1
%50 = sext i8 %49 to i32
%51 = icmp ne i32 %50, 78
br i1 %51, label %52, label %56
52: ; preds = %48
%53 = load i32, i32* @stdout
%54 = call i64 @fprintf(i32 %53, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%55 = icmp ne i64 %54, 0
br label %56
56: ; preds = %52, %48, %44
%57 = phi i1 [ false, %48 ], [ false, %44 ], [ %55, %52 ]
br i1 %57, label %36, label %58
58: ; preds = %56
%59 = load i8, i8* %1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 89
br i1 %61, label %62, label %69
62: ; preds = %58
%63 = call i64 (...) @depInstall()
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %68
65: ; preds = %62
%66 = load i32, i32* @stdout
%67 = call i64 @fprintf(i32 %66, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.4, i64 0, i64 0))
br label %68
68: ; preds = %65, %62
br label %69
69: ; preds = %68, %58
store i8 48, i8* %1
%70 = load i32, i32* @stdout
%71 = call i64 @fprintf(i32 %70, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0))
br label %72
72: ; preds = %92, %69
%73 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%74 = load i32, i32* @stdin
%75 = call i32 @fgets(i8* %73, i32 255, i32 %74)
%76 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%77 = call i32 @sscanf(i8* %76, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%78 = load i8, i8* %1
%79 = call signext i8 @toupper(i8 signext %78)
store i8 %79, i8* %1
br label %80
80: ; preds = %72
%81 = load i8, i8* %1
%82 = sext i8 %81 to i32
%83 = icmp ne i32 %82, 89
br i1 %83, label %84, label %92
84: ; preds = %80
%85 = load i8, i8* %1
%86 = sext i8 %85 to i32
%87 = icmp ne i32 %86, 78
br i1 %87, label %88, label %92
88: ; preds = %84
%89 = load i32, i32* @stdout
%90 = call i64 @fprintf(i32 %89, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%91 = icmp ne i64 %90, 0
br label %92
92: ; preds = %88, %84, %80
%93 = phi i1 [ false, %84 ], [ false, %80 ], [ %91, %88 ]
br i1 %93, label %72, label %94
94: ; preds = %92
%95 = load i8, i8* %1
%96 = sext i8 %95 to i32
%97 = icmp eq i32 %96, 89
br i1 %97, label %98, label %105
98: ; preds = %94
%99 = call i64 @akngInstall(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%100 = icmp ne i64 %99, 0
br i1 %100, label %101, label %104
101: ; preds = %98
%102 = load i32, i32* @stdout
%103 = call i64 @fprintf(i32 %102, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
br label %104
104: ; preds = %101, %98
br label %105
105: ; preds = %104, %94
store i8 48, i8* %1
%106 = load i32, i32* @stdout
%107 = call i64 @fprintf(i32 %106, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0))
br label %108
108: ; preds = %128, %105
%109 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%110 = load i32, i32* @stdin
%111 = call i32 @fgets(i8* %109, i32 255, i32 %110)
%112 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%113 = call i32 @sscanf(i8* %112, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%114 = load i8, i8* %1
%115 = call signext i8 @toupper(i8 signext %114)
store i8 %115, i8* %1
br label %116
116: ; preds = %108
%117 = load i8, i8* %1
%118 = sext i8 %117 to i32
%119 = icmp ne i32 %118, 89
br i1 %119, label %120, label %128
120: ; preds = %116
%121 = load i8, i8* %1
%122 = sext i8 %121 to i32
%123 = icmp ne i32 %122, 78
br i1 %123, label %124, label %128
124: ; preds = %120
%125 = load i32, i32* @stdout
%126 = call i64 @fprintf(i32 %125, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%127 = icmp ne i64 %126, 0
br label %128
128: ; preds = %124, %120, %116
%129 = phi i1 [ false, %120 ], [ false, %116 ], [ %127, %124 ]
br i1 %129, label %108, label %130
130: ; preds = %128
%131 = load i8, i8* %1
%132 = sext i8 %131 to i32
%133 = icmp eq i32 %132, 89
br i1 %133, label %134, label %141
134: ; preds = %130
%135 = call i64 @akngInstall(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%136 = icmp ne i64 %135, 0
br i1 %136, label %137, label %140
137: ; preds = %134
%138 = load i32, i32* @stdout
%139 = call i64 @fprintf(i32 %138, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
br label %140
140: ; preds = %137, %134
br label %141
141: ; preds = %140, %130
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [85 x i8] c"\0ADo you want to check for available updates? (requires internet connection!) [Y-N]\0A\00"
@stdin = global i32 0
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [17 x i8] c"Type only [Y-N]\0A\00"
@.str.3 = [61 x i8] c"\0AInstall requested dependencies to run this program? [Y-N]\0A\00"
@.str.4 = [74 x i8] c"Attention: without all dependencies this program may not work properly!\0A\0A\00"
@.str.5 = [45 x i8] c"\0ADownload and install \22Aircrack-ng\22? [Y-N]\0A\00"
@.str.6 = [12 x i8] c"aircrack-ng\00"
@.str.7 = [42 x i8] c"Attention: \22Aircrack-ng\22 NOT installed!\0A\0A\00"
@.str.8 = [44 x i8] c"\0ADownload and install \22Reaver-WPS\22? [Y-N]\0A\00"
@.str.9 = [11 x i8] c"reaver-wps\00"
@.str.10 = [41 x i8] c"Attention: \22Reaver-WPS\22 NOT installed!\0A\0A\00"
define void @installer() {
%1 = alloca i8
%2 = alloca [256 x i8]
store i8 0, i8* %1
%3 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%4 = load i32, i32* @stdout
%5 = tail call i64 @fprintf(i32 %4, i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %12, %0
%7 = load i32, i32* @stdin
%8 = call i32 @fgets(i8* %3, i32 255, i32 %7)
%9 = call i32 @sscanf(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%10 = load i8, i8* %1
%11 = call signext i8 @toupper(i8 signext %10)
store i8 %11, i8* %1
switch i8 %11, label %12 [
i8 89, label %18
i8 78, label %18
]
12: ; preds = %6
%13 = load i32, i32* @stdout
%14 = call i64 @fprintf(i32 %13, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %6
16: ; preds = %12
%17 = load i8, i8* %1
br label %18
18: ; preds = %6, %6, %16
%19 = phi i8 [ %17, %16 ], [ %11, %6 ], [ %11, %6 ]
%20 = icmp eq i8 %19, 89
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 (...) @checkVersion()
br label %23
23: ; preds = %21, %18
store i8 48, i8* %1
%24 = load i32, i32* @stdout
%25 = call i64 @fprintf(i32 %24, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.3, i64 0, i64 0))
br label %26
26: ; preds = %32, %23
%27 = load i32, i32* @stdin
%28 = call i32 @fgets(i8* %3, i32 255, i32 %27)
%29 = call i32 @sscanf(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%30 = load i8, i8* %1
%31 = call signext i8 @toupper(i8 signext %30)
store i8 %31, i8* %1
switch i8 %31, label %32 [
i8 89, label %38
i8 78, label %38
]
32: ; preds = %26
%33 = load i32, i32* @stdout
%34 = call i64 @fprintf(i32 %33, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %26
36: ; preds = %32
%37 = load i8, i8* %1
br label %38
38: ; preds = %26, %26, %36
%39 = phi i8 [ %37, %36 ], [ %31, %26 ], [ %31, %26 ]
%40 = icmp eq i8 %39, 89
br i1 %40, label %41, label %47
41: ; preds = %38
%42 = call i64 (...) @depInstall()
%43 = icmp eq i64 %42, 0
br i1 %43, label %47, label %44
44: ; preds = %41
%45 = load i32, i32* @stdout
%46 = call i64 @fprintf(i32 %45, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.4, i64 0, i64 0))
br label %47
47: ; preds = %41, %44, %38
store i8 48, i8* %1
%48 = load i32, i32* @stdout
%49 = call i64 @fprintf(i32 %48, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0))
br label %50
50: ; preds = %56, %47
%51 = load i32, i32* @stdin
%52 = call i32 @fgets(i8* %3, i32 255, i32 %51)
%53 = call i32 @sscanf(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%54 = load i8, i8* %1
%55 = call signext i8 @toupper(i8 signext %54)
store i8 %55, i8* %1
switch i8 %55, label %56 [
i8 89, label %62
i8 78, label %62
]
56: ; preds = %50
%57 = load i32, i32* @stdout
%58 = call i64 @fprintf(i32 %57, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %50
60: ; preds = %56
%61 = load i8, i8* %1
br label %62
62: ; preds = %50, %50, %60
%63 = phi i8 [ %61, %60 ], [ %55, %50 ], [ %55, %50 ]
%64 = icmp eq i8 %63, 89
br i1 %64, label %65, label %71
65: ; preds = %62
%66 = call i64 @akngInstall(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %71, label %68
68: ; preds = %65
%69 = load i32, i32* @stdout
%70 = call i64 @fprintf(i32 %69, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
br label %71
71: ; preds = %65, %68, %62
store i8 48, i8* %1
%72 = load i32, i32* @stdout
%73 = call i64 @fprintf(i32 %72, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0))
br label %74
74: ; preds = %80, %71
%75 = load i32, i32* @stdin
%76 = call i32 @fgets(i8* %3, i32 255, i32 %75)
%77 = call i32 @sscanf(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%78 = load i8, i8* %1
%79 = call signext i8 @toupper(i8 signext %78)
store i8 %79, i8* %1
switch i8 %79, label %80 [
i8 89, label %86
i8 78, label %86
]
80: ; preds = %74
%81 = load i32, i32* @stdout
%82 = call i64 @fprintf(i32 %81, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %74
84: ; preds = %80
%85 = load i8, i8* %1
br label %86
86: ; preds = %74, %74, %84
%87 = phi i8 [ %85, %84 ], [ %79, %74 ], [ %79, %74 ]
%88 = icmp eq i8 %87, 89
br i1 %88, label %89, label %95
89: ; preds = %86
%90 = call i64 @akngInstall(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%91 = icmp eq i64 %90, 0
br i1 %91, label %95, label %92
92: ; preds = %89
%93 = load i32, i32* @stdout
%94 = call i64 @fprintf(i32 %93, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
br label %95
95: ; preds = %89, %92, %86
ret void
}