#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*/ F_OK;
int access(char *, int /*<<< orphan*/);
int atoi(char *);
int /*<<< orphan*/ create_2B_ctr_key(char *, int, int);
int /*<<< orphan*/ crypt_program(int, char *, char *, char *);
scalar_t__ isnumber(char *);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  if (argc == 5) {
    if ((strcmp(argv[1], "--create-key") == 0) ||
        (strcmp(argv[1], "-c") == 0)) {
      printf("Is now kreating a new key\n");
      printf("argv[2] = %s\n", argv[2]);
      printf("argv[3] = %s\n", argv[3]);
      printf("argv[4] = %s\n", argv[4]);
      if (isnumber(argv[3]) && isnumber(argv[4])) {
        int exponent = atoi(argv[3]);
        int rounds = atoi(argv[4]);
        create_2B_ctr_key(argv[2], exponent, rounds);
      }
    } else if ((strcmp(argv[1], "--encrypt") == 0) ||
               (strcmp(argv[1], "-e") == 0)) {
      if ((access(argv[2], F_OK) != -1) && (access(argv[3], F_OK) != -1)) {
        crypt_program(1, argv[2], argv[3], argv[4]);
      }
    } else if ((strcmp(argv[1], "--decrypt") == 0) ||
               (strcmp(argv[1], "-d") == 0)) {
      if ((access(argv[2], F_OK) != -1) && (access(argv[3], F_OK) != -1)) {
        crypt_program(2, argv[2], argv[3], argv[4]);
      }
    }
  } else {
    printf("Invalid Input! Please give 5 parameters!\n");
    printf("possible program calls:\n");
    printf("./program (-c|--create-key) filename-key exponent rounds\n");
    printf("./program (-e|--encrypt) filename-key filename-input "
           "filename-output\n");
    printf("./program (-d|--decrypt) filename-key filename-input "
           "filename-output\n");
  }
  return 0;
}


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)
cmpl   $0x5,-0x8(%rbp)
jne    13d3 <main+0x263>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe61(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11cc <main+0x5c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe50(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1282 <main+0x112>
lea    0xe3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rsi
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rsi
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1050 <isnumber@plt>
cmp    $0x0,%rax
je     127d <main+0x10d>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   1050 <isnumber@plt>
cmp    $0x0,%rax
je     127d <main+0x10d>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1080 <create_2B_ctr_key@plt>
jmp    13ce <main+0x25e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdc4(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     12be <main+0x14e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdb0(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1323 <main+0x1b3>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    0x2d0b(%rip),%rax
mov    (%rax),%esi
call   1070 <access@plt>
cmp    $0xffffffff,%eax
je     131e <main+0x1ae>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
mov    0x2cec(%rip),%rax
mov    (%rax),%esi
call   1070 <access@plt>
cmp    $0xffffffff,%eax
je     131e <main+0x1ae>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rcx
mov    $0x1,%edi
call   1060 <crypt_program@plt>
jmp    13c9 <main+0x259>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd30(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     135f <main+0x1ef>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd1c(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    13c4 <main+0x254>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    0x2c6a(%rip),%rax
mov    (%rax),%esi
call   1070 <access@plt>
cmp    $0xffffffff,%eax
je     13bf <main+0x24f>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
mov    0x2c4b(%rip),%rax
mov    (%rax),%esi
call   1070 <access@plt>
cmp    $0xffffffff,%eax
je     13bf <main+0x24f>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rcx
mov    $0x2,%edi
call   1060 <crypt_program@plt>
jmp    13c4 <main+0x254>
jmp    13c9 <main+0x259>
jmp    13ce <main+0x25e>
jmp    1419 <main+0x2a9>
lea    0xc95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcbc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xce8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
cmp    $0x5,%edi
jne    125e <main+0xde>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
lea    0xe66(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12a3 <main+0x123>
mov    0x8(%rbx),%rdi
lea    0xe5a(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12a3 <main+0x123>
mov    0x8(%rbx),%rdi
lea    0xe6e(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1327 <main+0x1a7>
mov    0x8(%rbx),%rdi
lea    0xe5f(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1327 <main+0x1a7>
mov    0x8(%rbx),%rdi
lea    0xe49(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     121d <main+0x9d>
mov    0x8(%rbx),%rdi
lea    0xe3e(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    129a <main+0x11a>
mov    0x10(%rbx),%rdi
mov    0x2db0(%rip),%rbp
mov    0x0(%rbp),%esi
call   1080 <access@plt>
cmp    $0xffffffff,%eax
je     129a <main+0x11a>
mov    0x18(%rbx),%rdi
mov    0x0(%rbp),%esi
call   1080 <access@plt>
cmp    $0xffffffff,%eax
je     129a <main+0x11a>
mov    0x10(%rbx),%rsi
mov    0x18(%rbx),%rdx
mov    0x20(%rbx),%rcx
mov    $0x2,%edi
call   1070 <crypt_program@plt>
jmp    129a <main+0x11a>
lea    0xdef(%rip),%rdi
call   1030 <puts@plt>
lea    0xe0c(%rip),%rdi
call   1030 <puts@plt>
lea    0xe18(%rip),%rdi
call   1030 <puts@plt>
lea    0xe45(%rip),%rdi
call   1030 <puts@plt>
lea    0xe7e(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
lea    0xeae(%rip),%rdi
call   1030 <puts@plt>
mov    0x10(%rbx),%rsi
lea    0xd56(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rbx),%rsi
lea    0xd52(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rbx),%rsi
lea    0xd4e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rbx),%rdi
call   1060 <isnumber@plt>
test   %rax,%rax
je     129a <main+0x11a>
mov    0x20(%rbx),%rdi
call   1060 <isnumber@plt>
test   %rax,%rax
je     129a <main+0x11a>
mov    0x18(%rbx),%rdi
call   10a0 <atoi@plt>
mov    %eax,%ebp
mov    0x20(%rbx),%rdi
call   10a0 <atoi@plt>
mov    0x10(%rbx),%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1090 <create_2B_ctr_key@plt>
jmp    129a <main+0x11a>
mov    0x10(%rbx),%rdi
mov    0x2ca6(%rip),%rbp
mov    0x0(%rbp),%esi
call   1080 <access@plt>
cmp    $0xffffffff,%eax
je     129a <main+0x11a>
mov    0x18(%rbx),%rdi
mov    0x0(%rbp),%esi
call   1080 <access@plt>
cmp    $0xffffffff,%eax
je     129a <main+0x11a>
mov    0x10(%rbx),%rsi
mov    0x18(%rbx),%rdx
mov    0x20(%rbx),%rcx
mov    $0x1,%edi
call   1070 <crypt_program@plt>
jmp    129a <main+0x11a>

LLVM IR (-O0):
@.str = [13 x i8] c"--create-key\00"
@.str.1 = [3 x i8] c"-c\00"
@.str.2 = [27 x i8] c"Is now kreating a new key\0A\00"
@.str.3 = [14 x i8] c"argv[2] = %s\0A\00"
@.str.4 = [14 x i8] c"argv[3] = %s\0A\00"
@.str.5 = [14 x i8] c"argv[4] = %s\0A\00"
@.str.6 = [10 x i8] c"--encrypt\00"
@.str.7 = [3 x i8] c"-e\00"
@F_OK = global i32 0
@.str.8 = [10 x i8] c"--decrypt\00"
@.str.9 = [3 x i8] c"-d\00"
@.str.10 = [42 x i8] c"Invalid Input! Please give 5 parameters!\0A\00"
@.str.11 = [25 x i8] c"possible program calls:\0A\00"
@.str.12 = [58 x i8] c"./program (-c|--create-key) filename-key exponent rounds\0A\00"
@.str.13 = [70 x i8] c"./program (-e|--encrypt) filename-key filename-input filename-output\0A\00"
@.str.14 = [70 x i8] c"./program (-d|--decrypt) filename-key filename-input filename-output\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i32, i32* %4
%9 = icmp eq i32 %8, 5
br i1 %9, label %10, label %142
10: ; preds = %2
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds i8*, i8** %11, i64 1
%13 = load i8*, i8** %12
%14 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %22, label %16
16: ; preds = %10
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %63
22: ; preds = %16, %10
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 2
%26 = load i8*, i8** %25
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 3
%30 = load i8*, i8** %29
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* %30)
%32 = load i8**, i8*** %5
%33 = getelementptr inbounds i8*, i8** %32, i64 4
%34 = load i8*, i8** %33
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* %34)
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 3
%38 = load i8*, i8** %37
%39 = call i64 @isnumber(i8* %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %62
41: ; preds = %22
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 4
%44 = load i8*, i8** %43
%45 = call i64 @isnumber(i8* %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %62
47: ; preds = %41
%48 = load i8**, i8*** %5
%49 = getelementptr inbounds i8*, i8** %48, i64 3
%50 = load i8*, i8** %49
%51 = call i32 @atoi(i8* %50)
store i32 %51, i32* %6
%52 = load i8**, i8*** %5
%53 = getelementptr inbounds i8*, i8** %52, i64 4
%54 = load i8*, i8** %53
%55 = call i32 @atoi(i8* %54)
store i32 %55, i32* %7
%56 = load i8**, i8*** %5
%57 = getelementptr inbounds i8*, i8** %56, i64 2
%58 = load i8*, i8** %57
%59 = load i32, i32* %6
%60 = load i32, i32* %7
%61 = call i32 @create_2B_ctr_key(i8* %58, i32 %59, i32 %60)
br label %62
62: ; preds = %47, %41, %22
br label %141
63: ; preds = %16
%64 = load i8**, i8*** %5
%65 = getelementptr inbounds i8*, i8** %64, i64 1
%66 = load i8*, i8** %65
%67 = call i64 @strcmp(i8* %66, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %75, label %69
69: ; preds = %63
%70 = load i8**, i8*** %5
%71 = getelementptr inbounds i8*, i8** %70, i64 1
%72 = load i8*, i8** %71
%73 = call i64 @strcmp(i8* %72, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %101
75: ; preds = %69, %63
%76 = load i8**, i8*** %5
%77 = getelementptr inbounds i8*, i8** %76, i64 2
%78 = load i8*, i8** %77
%79 = load i32, i32* @F_OK
%80 = call i32 @access(i8* %78, i32 %79)
%81 = icmp ne i32 %80, -1
br i1 %81, label %82, label %100
82: ; preds = %75
%83 = load i8**, i8*** %5
%84 = getelementptr inbounds i8*, i8** %83, i64 3
%85 = load i8*, i8** %84
%86 = load i32, i32* @F_OK
%87 = call i32 @access(i8* %85, i32 %86)
%88 = icmp ne i32 %87, -1
br i1 %88, label %89, label %100
89: ; preds = %82
%90 = load i8**, i8*** %5
%91 = getelementptr inbounds i8*, i8** %90, i64 2
%92 = load i8*, i8** %91
%93 = load i8**, i8*** %5
%94 = getelementptr inbounds i8*, i8** %93, i64 3
%95 = load i8*, i8** %94
%96 = load i8**, i8*** %5
%97 = getelementptr inbounds i8*, i8** %96, i64 4
%98 = load i8*, i8** %97
%99 = call i32 @crypt_program(i32 1, i8* %92, i8* %95, i8* %98)
br label %100
100: ; preds = %89, %82, %75
br label %140
101: ; preds = %69
%102 = load i8**, i8*** %5
%103 = getelementptr inbounds i8*, i8** %102, i64 1
%104 = load i8*, i8** %103
%105 = call i64 @strcmp(i8* %104, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%106 = icmp eq i64 %105, 0
br i1 %106, label %113, label %107
107: ; preds = %101
%108 = load i8**, i8*** %5
%109 = getelementptr inbounds i8*, i8** %108, i64 1
%110 = load i8*, i8** %109
%111 = call i64 @strcmp(i8* %110, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%112 = icmp eq i64 %111, 0
br i1 %112, label %113, label %139
113: ; preds = %107, %101
%114 = load i8**, i8*** %5
%115 = getelementptr inbounds i8*, i8** %114, i64 2
%116 = load i8*, i8** %115
%117 = load i32, i32* @F_OK
%118 = call i32 @access(i8* %116, i32 %117)
%119 = icmp ne i32 %118, -1
br i1 %119, label %120, label %138
120: ; preds = %113
%121 = load i8**, i8*** %5
%122 = getelementptr inbounds i8*, i8** %121, i64 3
%123 = load i8*, i8** %122
%124 = load i32, i32* @F_OK
%125 = call i32 @access(i8* %123, i32 %124)
%126 = icmp ne i32 %125, -1
br i1 %126, label %127, label %138
127: ; preds = %120
%128 = load i8**, i8*** %5
%129 = getelementptr inbounds i8*, i8** %128, i64 2
%130 = load i8*, i8** %129
%131 = load i8**, i8*** %5
%132 = getelementptr inbounds i8*, i8** %131, i64 3
%133 = load i8*, i8** %132
%134 = load i8**, i8*** %5
%135 = getelementptr inbounds i8*, i8** %134, i64 4
%136 = load i8*, i8** %135
%137 = call i32 @crypt_program(i32 2, i8* %130, i8* %133, i8* %136)
br label %138
138: ; preds = %127, %120, %113
br label %139
139: ; preds = %138, %107
br label %140
140: ; preds = %139, %100
br label %141
141: ; preds = %140, %62
br label %148
142: ; preds = %2
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0))
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
%145 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.12, i64 0, i64 0))
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.13, i64 0, i64 0))
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.14, i64 0, i64 0))
br label %148
148: ; preds = %142, %141
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"--create-key\00"
@.str.1 = [3 x i8] c"-c\00"
@.str.3 = [14 x i8] c"argv[2] = %s\0A\00"
@.str.4 = [14 x i8] c"argv[3] = %s\0A\00"
@.str.5 = [14 x i8] c"argv[4] = %s\0A\00"
@.str.6 = [10 x i8] c"--encrypt\00"
@.str.7 = [3 x i8] c"-e\00"
@F_OK = global i32 0
@.str.8 = [10 x i8] c"--decrypt\00"
@.str.9 = [3 x i8] c"-d\00"
@str = [41 x i8] c"Invalid Input! Please give 5 parameters!\00"
@str.15 = [24 x i8] c"possible program calls:\00"
@str.16 = [57 x i8] c"./program (-c|--create-key) filename-key exponent rounds\00"
@str.17 = [69 x i8] c"./program (-e|--encrypt) filename-key filename-input filename-output\00"
@str.18 = [69 x i8] c"./program (-d|--decrypt) filename-key filename-input filename-output\00"
@str.19 = [26 x i8] c"Is now kreating a new key\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 5
br i1 %3, label %4, label %90
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %4
%10 = load i8*, i8** %5
%11 = tail call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %38
13: ; preds = %9, %4
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.19, i64 0, i64 0))
%15 = getelementptr inbounds i8*, i8** %1, i64 2
%16 = load i8*, i8** %15
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* %16)
%18 = getelementptr inbounds i8*, i8** %1, i64 3
%19 = load i8*, i8** %18
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* %19)
%21 = getelementptr inbounds i8*, i8** %1, i64 4
%22 = load i8*, i8** %21
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* %22)
%24 = load i8*, i8** %18
%25 = tail call i64 @isnumber(i8* %24)
%26 = icmp eq i64 %25, 0
br i1 %26, label %96, label %27
27: ; preds = %13
%28 = load i8*, i8** %21
%29 = tail call i64 @isnumber(i8* %28)
%30 = icmp eq i64 %29, 0
br i1 %30, label %96, label %31
31: ; preds = %27
%32 = load i8*, i8** %18
%33 = tail call i32 @atoi(i8* %32)
%34 = load i8*, i8** %21
%35 = tail call i32 @atoi(i8* %34)
%36 = load i8*, i8** %15
%37 = tail call i32 @create_2B_ctr_key(i8* %36, i32 %33, i32 %35)
br label %96
38: ; preds = %9
%39 = load i8*, i8** %5
%40 = tail call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %46, label %42
42: ; preds = %38
%43 = load i8*, i8** %5
%44 = tail call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %64
46: ; preds = %42, %38
%47 = getelementptr inbounds i8*, i8** %1, i64 2
%48 = load i8*, i8** %47
%49 = load i32, i32* @F_OK
%50 = tail call i32 @access(i8* %48, i32 %49)
%51 = icmp eq i32 %50, -1
br i1 %51, label %96, label %52
52: ; preds = %46
%53 = getelementptr inbounds i8*, i8** %1, i64 3
%54 = load i8*, i8** %53
%55 = load i32, i32* @F_OK
%56 = tail call i32 @access(i8* %54, i32 %55)
%57 = icmp eq i32 %56, -1
br i1 %57, label %96, label %58
58: ; preds = %52
%59 = load i8*, i8** %47
%60 = load i8*, i8** %53
%61 = getelementptr inbounds i8*, i8** %1, i64 4
%62 = load i8*, i8** %61
%63 = tail call i32 @crypt_program(i32 1, i8* %59, i8* %60, i8* %62)
br label %96
64: ; preds = %42
%65 = load i8*, i8** %5
%66 = tail call i64 @strcmp(i8* %65, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %72, label %68
68: ; preds = %64
%69 = load i8*, i8** %5
%70 = tail call i64 @strcmp(i8* %69, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %96
72: ; preds = %68, %64
%73 = getelementptr inbounds i8*, i8** %1, i64 2
%74 = load i8*, i8** %73
%75 = load i32, i32* @F_OK
%76 = tail call i32 @access(i8* %74, i32 %75)
%77 = icmp eq i32 %76, -1
br i1 %77, label %96, label %78
78: ; preds = %72
%79 = getelementptr inbounds i8*, i8** %1, i64 3
%80 = load i8*, i8** %79
%81 = load i32, i32* @F_OK
%82 = tail call i32 @access(i8* %80, i32 %81)
%83 = icmp eq i32 %82, -1
br i1 %83, label %96, label %84
84: ; preds = %78
%85 = load i8*, i8** %73
%86 = load i8*, i8** %79
%87 = getelementptr inbounds i8*, i8** %1, i64 4
%88 = load i8*, i8** %87
%89 = tail call i32 @crypt_program(i32 2, i8* %85, i8* %86, i8* %88)
br label %96
90: ; preds = %2
%91 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str, i64 0, i64 0))
%92 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.15, i64 0, i64 0))
%93 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.16, i64 0, i64 0))
%94 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.17, i64 0, i64 0))
%95 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.18, i64 0, i64 0))
br label %96
96: ; preds = %31, %27, %13, %68, %84, %78, %72, %46, %52, %58, %90
ret i32 0
}