#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*/ AffineDecrypt(char *, int, int, int);
int /*<<< orphan*/ AffineEncrypt(char *, int, int, int);
int /*<<< orphan*/ AffineGetKey(int *, int *);
int /*<<< orphan*/ BeaufordCleanUp(char *);
int /*<<< orphan*/ BeaufordDecrypt(char *, int *, char *, int);
int /*<<< orphan*/ BeaufordEncrypt(char *, int *, char *, int);
char *BeaufordGetKey(int *, int);
int /*<<< orphan*/ CaesarDecrypt(char *, int, int);
int /*<<< orphan*/ CaesarEncrypt(char *, int, int);
int CaesarGetKey();
int /*<<< orphan*/ Display2dCharArray(char **, int, int);
int /*<<< orphan*/ DisplayText(char *, int);
int /*<<< orphan*/ GetInputText(char *, int, int *);
int /*<<< orphan*/ HomophonicDecrypt(char *, int);
int /*<<< orphan*/ HomophonicDisp();
int /*<<< orphan*/ HomophonicEncrypt(char *, int);
int MenuSelection();
int /*<<< orphan*/ MonoalphabeticCleanUp(char *);
char *MonoalphabeticCreateEncTable(char *, int);
int /*<<< orphan*/ MonoalphabeticDecrypt(char *, int, char *);
int /*<<< orphan*/ MonoalphabeticEncrypt(char *, int, char *);
char *MonoalphabeticGetKey(int *);
int /*<<< orphan*/ PurgeText(char *, int *);
int /*<<< orphan*/ StripSpaces(char *, int *);
int /*<<< orphan*/ TextToUpper(char *, int);
char **TranspositionCreateTable(int, int, int *);
int /*<<< orphan*/ TranspositionDecrypt(char *, int, int, int, int *, char **);
int /*<<< orphan*/ TranspositionEncrypt(char *, char **, int, int, int *);
int /*<<< orphan*/ TranspositionFillTable(char *, int, char **, int, int);
int /*<<< orphan*/ TranspositionGetColumns(int, int *);
int *TranspositionGetSequence(int);
int /*<<< orphan*/ TranspositionKeyCleanUp(int *);
int /*<<< orphan*/ TranspositionTableCleanUp(char **, int);
int /*<<< orphan*/ VigenereCleanUp(char *);
int /*<<< orphan*/ VigenereDecrypt(char *, int *, char *, int);
int /*<<< orphan*/ VigenereEncrypt(char *, int *, char *, int);
char *VigenereGetKey(int *, int);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  char text[20];
  int letters = 0, i = 0;
  switch (MenuSelection()) {
  case 1: {
    int c_key = 0;
    printf("Waiting input text (%d chars max) > ", 20);
    GetInputText(text, 20, &letters);
    printf("-> Re-Formatting text. Please wait...\n");
    TextToUpper(text, letters);
    printf("New text : ");
    DisplayText(text, letters);
    printf("Waiting encryption key > ");
    c_key = CaesarGetKey();
    printf("-> Using Caesar Cipher with key : '%d'\n", c_key);
    printf("-> Encrypting text. Please Wait...\n");
    CaesarEncrypt(text, letters, c_key);
    printf("Encrypted text : ");
    DisplayText(text, letters);
    printf("-> Decrypting text. Please Wait...\n");
    CaesarDecrypt(text, letters, c_key);
    printf("Original text : ");
    DisplayText(text, letters);
    printf("Quiting...bye...\n");
    break;
  }
  case 2: {
    int afkey_1, afkey_2;
    printf("Waiting input text (%d chars max) > ", 20);
    GetInputText(text, 20, &letters);
    printf("-> Re-Formatting text. Please wait...\n");
    TextToUpper(text, letters);
    printf("New text : ");
    DisplayText(text, letters);
    printf("Waiting encryption key...\nKey1 must be relatively prime to 26 and "
           "key2 [0-25]\n");
    AffineGetKey(&afkey_1, &afkey_2);
    printf("-> Using Affine Cipher with key1 : '%d' and key2 : '%d'\n", afkey_1,
           afkey_2);
    printf("-> Encrypting text. Please Wait...\n");
    AffineEncrypt(text, letters, afkey_1, afkey_2);
    printf("Encrypted text : ");
    DisplayText(text, letters);
    printf("-> Decrypting text. Please Wait...\n");
    AffineDecrypt(text, letters, afkey_1, afkey_2);
    printf("Original text : ");
    DisplayText(text, letters);
    printf("Quiting...bye...\n");
    break;
  }
  case 3: {
    char *mono_key = NULL;
    char *mono_encTable = NULL;
    int mono_keysize = 0;
    printf("Waiting input text (%d chars max) > ", 20);
    GetInputText(text, 20, &letters);
    printf("-> Re-Formatting text. Please wait...\n");
    TextToUpper(text, letters);
    printf("New text : ");
    DisplayText(text, letters);
    printf("Waiting encryption key (26 chars max) > ");
    mono_key = MonoalphabeticGetKey(&mono_keysize);
    StripSpaces(mono_key, &mono_keysize);
    TextToUpper(mono_key, mono_keysize);
    printf("-> Using Monoalphabetic Substitution Cipher with key : ");
    for (i = 0; i < mono_keysize; i++) {
      printf("%c", mono_key[i]);
    }
    printf("\n");
    printf("-> Calculating encryption table. Please wait...\n");
    mono_encTable = MonoalphabeticCreateEncTable(mono_key, mono_keysize);
    printf("-> Encryption table created successfully : \n");
    for (i = 0; i < 26; i++) {
      printf("%c ", mono_encTable[i]);
    }
    printf("\n");
    printf("-> Encrypting text. Please Wait...\n");
    MonoalphabeticEncrypt(text, letters, mono_encTable);
    printf("Encrypted text : ");
    DisplayText(text, letters);
    printf("-> Decrypting text. Please Wait...\n");
    MonoalphabeticDecrypt(text, letters, mono_encTable);
    printf("Original text : ");
    DisplayText(text, letters);
    printf("-> Cleaning the mesh...\n");
    MonoalphabeticCleanUp(mono_encTable);
    MonoalphabeticCleanUp(mono_key);
    printf("Quiting...bye...\n");
    break;
  }
  case 4: {
    int key_columns = 0;
    int *key_seq = NULL;
    char **enc_table = NULL;
    int encTableRows = 0;
    printf("Waiting input text (%d chars max) > ", 20);
    GetInputText(text, 20, &letters);
    printf("-> Re-Formatting text. Please wait...\n");
    StripSpaces(text, &letters);
    TextToUpper(text, letters);
    printf("New text : ");
    DisplayText(text, letters);
    printf("* For encryption keys enter the number of colums you want to use "
           "at your\n");
    printf("encryption table [2-%d) and then the sequence the columns will be "
           "used *\n",
           letters);
    printf("Columns > ");
    TranspositionGetColumns(letters, &key_columns);
    printf("Sequence [1-%d] > ", key_columns);
    key_seq = TranspositionGetSequence(key_columns);
    printf("-> Using Transposition Cipher with key (d, π) : ");
    printf("d = %d π = ( ");
    for (i = 0; i < key_columns; ++i)
      printf("%d ", key_seq[i]);
    printf(")\n");
    printf("-> Calculating encryption table. Please wait...\n");
    enc_table = TranspositionCreateTable(letters, key_columns, &encTableRows);
    TranspositionFillTable(text, letters, enc_table, key_columns, encTableRows);
    printf("-> Encryption table created successfully : \n");
    Display2dCharArray(enc_table, encTableRows, key_columns);
    printf("-> Encrypting text. Please Wait...\n");
    TranspositionEncrypt(text, enc_table, key_columns, encTableRows, key_seq);
    printf("Encrypted text : ");
    DisplayText(text, letters);
    TranspositionTableCleanUp(enc_table, encTableRows);
    enc_table = TranspositionCreateTable(letters, key_columns, &encTableRows);
    printf("-> Decrypting text. Please Wait...\n");
    TranspositionDecrypt(text, letters, key_columns, encTableRows, key_seq,
                         enc_table);
    printf("Original text : ");
    DisplayText(text, letters);
    printf("-> Cleaning the mesh...\n");
    TranspositionKeyCleanUp(key_seq);
    TranspositionTableCleanUp(enc_table, encTableRows);
    printf("Quiting...bye...\n");
    break;
  }
  case 5: {
    printf("Waiting input text (%d chars max) > ", 20);
    GetInputText(text, 20, &letters);
    printf("-> Re-Formatting text. Please wait...\n");
    TextToUpper(text, letters);
    PurgeText(text, &letters);
    printf("New text : ");
    DisplayText(text, letters);
    printf("-> Loading Homophonic Table. Please wait...\n");
    printf("Homophonic Table : \n");
    HomophonicDisp();
    printf("-> Encrypting text. Please Wait...\n");
    HomophonicEncrypt(text, letters);
    printf("Encrypted text : ");
    for (i = 0; i < letters; i++)
      printf("%d", text[i]);
    printf("\n");
    printf("-> Decrypting text. Please Wait...\n");
    HomophonicDecrypt(text, letters);
    printf("Original text : ");
    DisplayText(text, letters);
    printf("Quiting...bye...\n");
    break;
  }
  case 6: {
    char *v_key = NULL;
    int v_keysize = 0;
    printf("Waiting input text (%d chars max) > ", 20);
    GetInputText(text, 20, &letters);
    printf("-> Re-Formatting text. Please wait...\n");
    TextToUpper(text, letters);
    PurgeText(text, &letters);
    printf("New text : ");
    DisplayText(text, letters);
    printf("Waiting encryption key (%d chars max) > ", 15);
    v_key = VigenereGetKey(&v_keysize, 15);
    TextToUpper(v_key, v_keysize);
    printf("-> Using Vigenere Cipher with key : ");
    for (i = 0; i < v_keysize; i++) {
      printf("%c", v_key[i]);
    }
    printf("\n");
    printf("-> Encrypting text. Please Wait...\n");
    VigenereEncrypt(text, &letters, v_key, v_keysize);
    printf("Encrypted text : ");
    DisplayText(text, letters);
    printf("-> Decrypting text. Please Wait...\n");
    VigenereDecrypt(text, &letters, v_key, v_keysize);
    printf("Original text : ");
    DisplayText(text, letters);
    printf("-> Cleaning the mesh...\n");
    VigenereCleanUp(v_key);
    printf("Quiting...bye...\n");
    break;
  }
  case 7: {
    char *b_key = NULL;
    int b_keysize = 0;
    printf("Waiting input text (%d chars max) > ", 20);
    GetInputText(text, 20, &letters);
    printf("-> Re-Formatting text. Please wait...\n");
    TextToUpper(text, letters);
    PurgeText(text, &letters);
    printf("New text : ");
    DisplayText(text, letters);
    printf("Waiting encryption key (%d chars max) > ", 15);
    b_key = BeaufordGetKey(&b_keysize, 15);
    TextToUpper(b_key, b_keysize);
    printf("-> Using Beauford Cipher with key : ");
    for (i = 0; i < b_keysize; i++) {
      printf("%c", b_key[i]);
    }
    printf("\n");
    printf("-> Encrypting text. Please Wait...\n");
    BeaufordEncrypt(text, &letters, b_key, b_keysize);
    printf("Encrypted text : ");
    DisplayText(text, letters);
    printf("-> Decrypting text. Please Wait...\n");
    BeaufordDecrypt(text, &letters, b_key, b_keysize);
    printf("Original text : ");
    DisplayText(text, letters);
    printf("-> Cleaning the mesh...\n");
    BeaufordCleanUp(b_key);
    printf("Quiting...bye...\n");
    break;
  }
  case 8: {
    return 0;
  }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
xor    %eax,%eax
call   1030 <MenuSelection@plt>
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0xa0(%rbp)
sub    $0x7,%eax
ja     1f0e <main+0xbae>
mov    -0xa0(%rbp),%rax
lea    0xc4f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x0,-0x3c(%rbp)
lea    0xc58(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    $0x14,%esi
lea    -0x34(%rbp),%rdx
call   10c0 <GetInputText@plt>
lea    0xc58(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1220 <TextToUpper@plt>
lea    0xc65(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0xc57(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    $0x0,%al
call   10b0 <CaesarGetKey@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%esi
lea    0xc56(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    0xc70(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x3c(%rbp),%edx
call   1200 <CaesarEncrypt@plt>
lea    0xc77(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0xc6f(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x3c(%rbp),%edx
call   1210 <CaesarDecrypt@plt>
lea    0xc76(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0xc6d(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
jmp    1f0e <main+0xbae>
lea    0xb55(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    $0x14,%esi
lea    -0x34(%rbp),%rdx
call   10c0 <GetInputText@plt>
lea    0xb55(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1220 <TextToUpper@plt>
lea    0xb62(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0xc13(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x40(%rbp),%rdi
lea    -0x44(%rbp),%rsi
call   11d0 <AffineGetKey@plt>
mov    -0x40(%rbp),%esi
mov    -0x44(%rbp),%edx
lea    0xc41(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    0xb67(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x40(%rbp),%edx
mov    -0x44(%rbp),%ecx
call   1110 <AffineEncrypt@plt>
lea    0xb6b(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0xb63(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x40(%rbp),%edx
mov    -0x44(%rbp),%ecx
call   1240 <AffineDecrypt@plt>
lea    0xb67(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0xb5e(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
jmp    1f0e <main+0xbae>
movq   $0x0,-0x50(%rbp)
movq   $0x0,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
lea    0xa2f(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    $0x14,%esi
lea    -0x34(%rbp),%rdx
call   10c0 <GetInputText@plt>
lea    0xa2f(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1220 <TextToUpper@plt>
lea    0xa3c(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0xb75(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x5c(%rbp),%rdi
call   10f0 <MonoalphabeticGetKey@plt>
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rdi
lea    -0x5c(%rbp),%rsi
call   1260 <StripSpaces@plt>
mov    -0x50(%rbp),%rdi
mov    -0x5c(%rbp),%esi
call   1220 <TextToUpper@plt>
lea    0xb6a(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jge    16c0 <main+0x360>
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xb75(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    168c <main+0x32c>
lea    0xd11(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    0xb4e(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x50(%rbp),%rdi
mov    -0x5c(%rbp),%esi
call   10e0 <MonoalphabeticCreateEncTable@plt>
mov    %rax,-0x58(%rbp)
lea    0xb61(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0x1a,-0x38(%rbp)
jge    1733 <main+0x3d3>
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xb63(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1701 <main+0x3a1>
lea    0xc9e(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    0x972(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x58(%rbp),%rdx
call   1130 <MonoalphabeticEncrypt@plt>
lea    0x978(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0x970(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x58(%rbp),%rdx
call   11b0 <MonoalphabeticDecrypt@plt>
lea    0x976(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0xacd(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x58(%rbp),%rdi
call   1090 <MonoalphabeticCleanUp@plt>
mov    -0x50(%rbp),%rdi
call   1090 <MonoalphabeticCleanUp@plt>
lea    0x94d(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
jmp    1f0e <main+0xbae>
movl   $0x0,-0x60(%rbp)
movq   $0x0,-0x68(%rbp)
movq   $0x0,-0x70(%rbp)
movl   $0x0,-0x74(%rbp)
lea    0x817(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    $0x14,%esi
lea    -0x34(%rbp),%rdx
call   10c0 <GetInputText@plt>
lea    0x817(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
lea    -0x34(%rbp),%rsi
call   1260 <StripSpaces@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1220 <TextToUpper@plt>
lea    0x817(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0xa2f(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x34(%rbp),%esi
lea    0xa68(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    0xaa4(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x34(%rbp),%edi
lea    -0x60(%rbp),%rsi
call   11e0 <TranspositionGetColumns@plt>
mov    -0x60(%rbp),%esi
lea    0xa92(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x60(%rbp),%edi
call   1150 <TranspositionGetSequence@plt>
mov    %rax,-0x68(%rbp)
lea    0xa8b(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    0xaaf(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x60(%rbp),%eax
jge    1914 <main+0x5b4>
mov    -0x68(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xa92(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    18e1 <main+0x581>
lea    0xa7a(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    0x8fa(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x34(%rbp),%edi
mov    -0x60(%rbp),%esi
lea    -0x74(%rbp),%rdx
call   1120 <TranspositionCreateTable@plt>
mov    %rax,-0x70(%rbp)
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x70(%rbp),%rdx
mov    -0x60(%rbp),%ecx
mov    -0x74(%rbp),%r8d
call   1180 <TranspositionFillTable@plt>
lea    0x8f3(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x70(%rbp),%rdi
mov    -0x74(%rbp),%esi
mov    -0x60(%rbp),%edx
call   1050 <Display2dCharArray@plt>
lea    0x73c(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x70(%rbp),%rsi
mov    -0x60(%rbp),%edx
mov    -0x74(%rbp),%ecx
mov    -0x68(%rbp),%r8
call   11a0 <TranspositionEncrypt@plt>
lea    0x73b(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
mov    -0x70(%rbp),%rdi
mov    -0x74(%rbp),%esi
call   1250 <TranspositionTableCleanUp@plt>
mov    -0x34(%rbp),%edi
mov    -0x60(%rbp),%esi
lea    -0x74(%rbp),%rdx
call   1120 <TranspositionCreateTable@plt>
mov    %rax,-0x70(%rbp)
lea    0x714(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x60(%rbp),%edx
mov    -0x74(%rbp),%ecx
mov    -0x68(%rbp),%r8
mov    -0x70(%rbp),%r9
call   1080 <TranspositionDecrypt@plt>
lea    0x710(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0x867(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x68(%rbp),%rdi
call   1230 <TranspositionKeyCleanUp@plt>
mov    -0x70(%rbp),%rdi
mov    -0x74(%rbp),%esi
call   1250 <TranspositionTableCleanUp@plt>
lea    0x6e4(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
jmp    1f0e <main+0xbae>
lea    0x5cc(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    $0x14,%esi
lea    -0x34(%rbp),%rdx
call   10c0 <GetInputText@plt>
lea    0x5cc(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1220 <TextToUpper@plt>
lea    -0x30(%rbp),%rdi
lea    -0x34(%rbp),%rsi
call   1140 <PurgeText@plt>
lea    0x5cc(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0x8de(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    0x8fd(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    $0x0,%al
call   1070 <HomophonicDisp@plt>
lea    0x5dd(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1160 <HomophonicEncrypt@plt>
lea    0x5e7(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    1b36 <main+0x7d6>
movslq -0x38(%rbp),%rax
movsbl -0x30(%rbp,%rax,1),%esi
lea    0x8b9(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1b05 <main+0x7a5>
lea    0x89b(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    0x5a5(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1170 <HomophonicDecrypt@plt>
lea    0x5af(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0x5a6(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
jmp    1f0e <main+0xbae>
movq   $0x0,-0x80(%rbp)
movl   $0x0,-0x84(%rbp)
lea    0x47c(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    $0x14,%esi
lea    -0x34(%rbp),%rdx
call   10c0 <GetInputText@plt>
lea    0x47c(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1220 <TextToUpper@plt>
lea    -0x30(%rbp),%rdi
lea    -0x34(%rbp),%rsi
call   1140 <PurgeText@plt>
lea    0x47c(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0x7d3(%rip),%rdi
mov    $0xf,%esi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x84(%rbp),%rdi
mov    $0xf,%esi
call   10d0 <VigenereGetKey@plt>
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rdi
mov    -0x84(%rbp),%esi
call   1220 <TextToUpper@plt>
lea    0x7c5(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x84(%rbp),%eax
jge    1c86 <main+0x926>
mov    -0x80(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0x5af(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1c4f <main+0x8ef>
lea    0x74b(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    0x41f(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x80(%rbp),%rdx
mov    -0x84(%rbp),%ecx
lea    -0x34(%rbp),%rsi
call   1060 <VigenereEncrypt@plt>
lea    0x41e(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0x416(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x80(%rbp),%rdx
mov    -0x84(%rbp),%ecx
lea    -0x34(%rbp),%rsi
call   1270 <VigenereDecrypt@plt>
lea    0x415(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0x56c(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x80(%rbp),%rdi
call   11f0 <VigenereCleanUp@plt>
lea    0x3f5(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
jmp    1f0e <main+0xbae>
movq   $0x0,-0x90(%rbp)
movl   $0x0,-0x94(%rbp)
lea    0x2c8(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    $0x14,%esi
lea    -0x34(%rbp),%rdx
call   10c0 <GetInputText@plt>
lea    0x2c8(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1220 <TextToUpper@plt>
lea    -0x30(%rbp),%rdi
lea    -0x34(%rbp),%rsi
call   1140 <PurgeText@plt>
lea    0x2c8(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0x61f(%rip),%rdi
mov    $0xf,%esi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x94(%rbp),%rdi
mov    $0xf,%esi
call   1190 <BeaufordGetKey@plt>
mov    %rax,-0x90(%rbp)
mov    -0x90(%rbp),%rdi
mov    -0x94(%rbp),%esi
call   1220 <TextToUpper@plt>
lea    0x630(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x94(%rbp),%eax
jge    1e43 <main+0xae3>
mov    -0x90(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0x3f2(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1e09 <main+0xaa9>
lea    0x58e(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    0x262(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    -0x94(%rbp),%ecx
lea    -0x34(%rbp),%rsi
call   1100 <BeaufordEncrypt@plt>
lea    0x25e(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0x256(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    -0x94(%rbp),%ecx
lea    -0x34(%rbp),%rsi
call   1280 <BeaufordDecrypt@plt>
lea    0x252(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <DisplayText@plt>
lea    0x3a9(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x90(%rbp),%rdi
call   11c0 <BeaufordCleanUp@plt>
lea    0x22f(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
jmp    1f0e <main+0xbae>
movl   $0x0,-0x4(%rbp)
jmp    1f15 <main+0xbb5>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movl   $0x0,0x4(%rsp)
xor    %eax,%eax
call   1030 <MenuSelection@plt>
add    $0xffffffff,%eax
cmp    $0x6,%eax
ja     1eeb <main+0xb6b>
lea    0xc50(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xc5c(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0x10(%rsp),%rbx
lea    0x4(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x14,%esi
call   10e0 <GetInputText@plt>
lea    0xfd6(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1240 <TextToUpper@plt>
lea    0xc3f(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1040 <DisplayText@plt>
lea    0xc31(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
xor    %eax,%eax
call   10d0 <CaesarGetKey@plt>
mov    %eax,%ebp
lea    0xc34(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0xfa3(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
mov    %ebp,%edx
call   1220 <CaesarEncrypt@plt>
lea    0xc32(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1040 <DisplayText@plt>
lea    0xf92(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
mov    %ebp,%edx
call   1230 <CaesarDecrypt@plt>
jmp    1be4 <main+0x864>
lea    0xb86(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0x10(%rsp),%rbx
lea    0x4(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x14,%esi
call   10e0 <GetInputText@plt>
lea    0xf00(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1240 <TextToUpper@plt>
lea    0xb69(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1040 <DisplayText@plt>
lea    0xe80(%rip),%rdi
call   1080 <puts@plt>
lea    0x8(%rsp),%rdi
lea    0xc(%rsp),%rsi
call   11f0 <AffineGetKey@plt>
mov    0x8(%rsp),%esi
mov    0xc(%rsp),%edx
lea    0xb9d(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0xec3(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
mov    0x8(%rsp),%edx
mov    0xc(%rsp),%ecx
mov    %rbx,%rdi
call   1130 <AffineEncrypt@plt>
lea    0xb4c(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1040 <DisplayText@plt>
lea    0xeac(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
mov    0x8(%rsp),%edx
mov    0xc(%rsp),%ecx
mov    %rbx,%rdi
call   1260 <AffineDecrypt@plt>
jmp    1be4 <main+0x864>
movl   $0x0,0x8(%rsp)
lea    0xa92(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0x10(%rsp),%rbx
lea    0x4(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x14,%esi
call   10e0 <GetInputText@plt>
lea    0xe0c(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1240 <TextToUpper@plt>
lea    0xa75(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1040 <DisplayText@plt>
lea    0xb05(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1110 <MonoalphabeticGetKey@plt>
mov    %rax,%r14
mov    %rax,%rdi
mov    %rbx,%rsi
call   1280 <StripSpaces@plt>
mov    0x8(%rsp),%esi
mov    %r14,%rdi
call   1240 <TextToUpper@plt>
lea    0xaf9(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
cmpl   $0x0,0x8(%rsp)
jle    1648 <main+0x2c8>
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
movsbl (%r14,%rbx,1),%edi
call   1060 <putchar@plt>
add    $0x1,%rbx
movslq 0x8(%rsp),%rax
cmp    %rax,%rbx
jl     1630 <main+0x2b0>
mov    $0xa,%edi
call   1060 <putchar@plt>
lea    0xca5(%rip),%rdi
call   1080 <puts@plt>
mov    0x8(%rsp),%esi
mov    %r14,%rdi
call   1100 <MonoalphabeticCreateEncTable@plt>
mov    %rax,%rbx
lea    0xcba(%rip),%rdi
call   1080 <puts@plt>
movsbl (%rbx),%esi
lea    0xac9(%rip),%r15
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x1(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x2(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x3(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x4(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x5(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x6(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x7(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x8(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x9(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0xa(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0xb(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0xc(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0xd(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0xe(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0xf(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x10(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x11(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x12(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x13(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x14(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x15(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x16(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x17(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x18(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
movsbl 0x19(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    $0xa,%edi
call   1060 <putchar@plt>
lea    0xbea(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
lea    0x10(%rsp),%rbp
mov    %rbp,%rdi
mov    %rbx,%rdx
call   1150 <MonoalphabeticEncrypt@plt>
lea    0x873(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbp,%rdi
call   1040 <DisplayText@plt>
lea    0xbd3(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
mov    %rbp,%rdi
mov    %rbx,%rdx
call   11d0 <MonoalphabeticDecrypt@plt>
lea    0x850(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbp,%rdi
call   1040 <DisplayText@plt>
lea    0xaef(%rip),%rdi
call   1080 <puts@plt>
mov    %rbx,%rdi
call   10b0 <MonoalphabeticCleanUp@plt>
mov    %r14,%rdi
call   10b0 <MonoalphabeticCleanUp@plt>
jmp    1edf <main+0xb5f>
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
lea    0x780(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0x10(%rsp),%rbx
lea    0x4(%rsp),%rbp
mov    %rbx,%rdi
mov    $0x14,%esi
mov    %rbp,%rdx
call   10e0 <GetInputText@plt>
lea    0xaf7(%rip),%rdi
call   1080 <puts@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1280 <StripSpaces@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1240 <TextToUpper@plt>
lea    0x755(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1040 <DisplayText@plt>
lea    0x9ad(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
lea    0x83a(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0x876(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%edi
lea    0x8(%rsp),%rsi
call   1200 <TranspositionGetColumns@plt>
mov    0x8(%rsp),%esi
lea    0x861(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x8(%rsp),%edi
call   1170 <TranspositionGetSequence@plt>
mov    %rax,%r13
lea    0x85a(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0x87e(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
cmpl   $0x0,0x8(%rsp)
jle    19ad <main+0x62d>
lea    0x878(%rip),%rbp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x0(%r13,%rbx,4),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
add    $0x1,%rbx
movslq 0x8(%rsp),%rax
cmp    %rax,%rbx
jl     1990 <main+0x610>
lea    0x948(%rip),%rdi
call   1080 <puts@plt>
lea    0x93e(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%edi
mov    0x8(%rsp),%esi
lea    0xc(%rsp),%r15
mov    %r15,%rdx
call   1140 <TranspositionCreateTable@plt>
mov    %rax,%r12
mov    0x4(%rsp),%esi
mov    0x8(%rsp),%ecx
mov    0xc(%rsp),%r8d
lea    0x10(%rsp),%r14
mov    %r14,%rdi
mov    %rax,%rdx
call   11a0 <TranspositionFillTable@plt>
lea    0x92d(%rip),%rdi
call   1080 <puts@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
mov    %r12,%rdi
call   1050 <Display2dCharArray@plt>
lea    0x9c9(%rip),%rdi
call   1080 <puts@plt>
mov    0x8(%rsp),%edx
mov    0xc(%rsp),%ecx
mov    %r14,%rdi
mov    %r12,%rsi
mov    %r13,%r8
call   11c0 <TranspositionEncrypt@plt>
lea    0x650(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %r14,%rdi
call   1040 <DisplayText@plt>
mov    0xc(%rsp),%esi
mov    %r12,%rdi
call   1270 <TranspositionTableCleanUp@plt>
mov    0x4(%rsp),%edi
mov    0x8(%rsp),%esi
mov    %r15,%rdx
call   1140 <TranspositionCreateTable@plt>
mov    %rax,%r15
lea    0x991(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
mov    0x8(%rsp),%edx
mov    0xc(%rsp),%ecx
mov    %r14,%rdi
mov    %r13,%r8
mov    %r15,%r9
call   10a0 <TranspositionDecrypt@plt>
lea    0x603(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %r14,%rdi
call   1040 <DisplayText@plt>
lea    0x8a2(%rip),%rdi
call   1080 <puts@plt>
mov    %r13,%rdi
call   1250 <TranspositionKeyCleanUp@plt>
mov    0xc(%rsp),%esi
mov    %r15,%rdi
call   1270 <TranspositionTableCleanUp@plt>
jmp    1edf <main+0xb5f>
lea    0x53f(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0x10(%rsp),%rbx
lea    0x4(%rsp),%rbp
mov    %rbx,%rdi
mov    $0x14,%esi
mov    %rbp,%rdx
call   10e0 <GetInputText@plt>
lea    0x8b6(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1240 <TextToUpper@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1160 <PurgeText@plt>
lea    0x514(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1040 <DisplayText@plt>
lea    0x72c(%rip),%rdi
call   1080 <puts@plt>
lea    0x74c(%rip),%rdi
call   1080 <puts@plt>
xor    %eax,%eax
call   1090 <HomophonicDisp@plt>
lea    0x880(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1180 <HomophonicEncrypt@plt>
lea    0x511(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
cmpl   $0x0,0x4(%rsp)
jle    1bbd <main+0x83d>
lea    0x66a(%rip),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
movsbl 0x10(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
add    $0x1,%rbp
movslq 0x4(%rsp),%rax
cmp    %rax,%rbp
jl     1ba0 <main+0x820>
mov    $0xa,%edi
call   1060 <putchar@plt>
lea    0x83b(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1190 <HomophonicDecrypt@plt>
lea    0x4b6(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1040 <DisplayText@plt>
jmp    1edf <main+0xb5f>
movl   $0x0,0x8(%rsp)
lea    0x40a(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0x10(%rsp),%rbx
lea    0x4(%rsp),%rbp
mov    %rbx,%rdi
mov    $0x14,%esi
mov    %rbp,%rdx
call   10e0 <GetInputText@plt>
lea    0x781(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1240 <TextToUpper@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1160 <PurgeText@plt>
lea    0x3df(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1040 <DisplayText@plt>
lea    0x584(%rip),%rdi
mov    $0xf,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0x8(%rsp),%rdi
mov    $0xf,%esi
call   10f0 <VigenereGetKey@plt>
mov    %rax,%rbx
mov    0x8(%rsp),%esi
mov    %rax,%rdi
call   1240 <TextToUpper@plt>
lea    0x57c(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
cmpl   $0x0,0x8(%rsp)
jle    1cd7 <main+0x957>
xor    %ebp,%ebp
nopl   (%rax)
movsbl (%rbx,%rbp,1),%edi
call   1060 <putchar@plt>
add    $0x1,%rbp
movslq 0x8(%rsp),%rax
cmp    %rax,%rbp
jl     1cc0 <main+0x940>
mov    $0xa,%edi
call   1060 <putchar@plt>
lea    0x6fe(%rip),%rdi
call   1080 <puts@plt>
mov    0x8(%rsp),%ecx
lea    0x10(%rsp),%r14
lea    0x4(%rsp),%rbp
mov    %r14,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
call   1070 <VigenereEncrypt@plt>
lea    0x37f(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %r14,%rdi
call   1040 <DisplayText@plt>
lea    0x6df(%rip),%rdi
call   1080 <puts@plt>
mov    0x8(%rsp),%ecx
mov    %r14,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
call   1290 <VigenereDecrypt@plt>
lea    0x359(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %r14,%rdi
call   1040 <DisplayText@plt>
lea    0x5f8(%rip),%rdi
call   1080 <puts@plt>
mov    %rbx,%rdi
call   1210 <VigenereCleanUp@plt>
jmp    1edf <main+0xb5f>
movl   $0x0,0x8(%rsp)
lea    0x299(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0x10(%rsp),%rbx
lea    0x4(%rsp),%rbp
mov    %rbx,%rdi
mov    $0x14,%esi
mov    %rbp,%rdx
call   10e0 <GetInputText@plt>
lea    0x610(%rip),%rdi
call   1080 <puts@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1240 <TextToUpper@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1160 <PurgeText@plt>
lea    0x26e(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1040 <DisplayText@plt>
lea    0x413(%rip),%rdi
mov    $0xf,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
lea    0x8(%rsp),%rdi
mov    $0xf,%esi
call   11b0 <BeaufordGetKey@plt>
mov    %rax,%rbx
mov    0x8(%rsp),%esi
mov    %rax,%rdi
call   1240 <TextToUpper@plt>
lea    0x430(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
cmpl   $0x0,0x8(%rsp)
jle    1e47 <main+0xac7>
xor    %ebp,%ebp
xchg   %ax,%ax
movsbl (%rbx,%rbp,1),%edi
call   1060 <putchar@plt>
add    $0x1,%rbp
movslq 0x8(%rsp),%rax
cmp    %rax,%rbp
jl     1e30 <main+0xab0>
mov    $0xa,%edi
call   1060 <putchar@plt>
lea    0x58e(%rip),%rdi
call   1080 <puts@plt>
mov    0x8(%rsp),%ecx
lea    0x10(%rsp),%r14
lea    0x4(%rsp),%rbp
mov    %r14,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
call   1120 <BeaufordEncrypt@plt>
lea    0x20f(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %r14,%rdi
call   1040 <DisplayText@plt>
lea    0x56f(%rip),%rdi
call   1080 <puts@plt>
mov    0x8(%rsp),%ecx
mov    %r14,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
call   12a0 <BeaufordDecrypt@plt>
lea    0x1e9(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x4(%rsp),%esi
mov    %r14,%rdi
call   1040 <DisplayText@plt>
lea    0x488(%rip),%rdi
call   1080 <puts@plt>
mov    %rbx,%rdi
call   11e0 <BeaufordCleanUp@plt>
lea    0x546(%rip),%rdi
call   1080 <puts@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [37 x i8] c"Waiting input text (%d chars max) > \00"
@.str.1 = [39 x i8] c"-> Re-Formatting text. Please wait...\0A\00"
@.str.2 = [12 x i8] c"New text : \00"
@.str.3 = [26 x i8] c"Waiting encryption key > \00"
@.str.4 = [40 x i8] c"-> Using Caesar Cipher with key : '%d'\0A\00"
@.str.5 = [36 x i8] c"-> Encrypting text. Please Wait...\0A\00"
@.str.6 = [18 x i8] c"Encrypted text : \00"
@.str.7 = [36 x i8] c"-> Decrypting text. Please Wait...\0A\00"
@.str.8 = [17 x i8] c"Original text : \00"
@.str.9 = [18 x i8] c"Quiting...bye...\0A\00"
@.str.10 = [79 x i8] c"Waiting encryption key...\0AKey1 must be relatively prime to 26 and key2 [0-25]\0A\00"
@.str.11 = [57 x i8] c"-> Using Affine Cipher with key1 : '%d' and key2 : '%d'\0A\00"
@.str.12 = [41 x i8] c"Waiting encryption key (26 chars max) > \00"
@.str.13 = [56 x i8] c"-> Using Monoalphabetic Substitution Cipher with key : \00"
@.str.14 = [3 x i8] c"%c\00"
@.str.15 = [2 x i8] c"\0A\00"
@.str.16 = [49 x i8] c"-> Calculating encryption table. Please wait...\0A\00"
@.str.17 = [45 x i8] c"-> Encryption table created successfully : \0A\00"
@.str.18 = [4 x i8] c"%c \00"
@.str.19 = [25 x i8] c"-> Cleaning the mesh...\0A\00"
@.str.20 = [74 x i8] c"* For encryption keys enter the number of colums you want to use at your\0A\00"
@.str.21 = [74 x i8] c"encryption table [2-%d) and then the sequence the columns will be used *\0A\00"
@.str.22 = [11 x i8] c"Columns > \00"
@.str.23 = [19 x i8] c"Sequence [1-%d] > \00"
@.str.24 = [50 x i8] c"-> Using Transposition Cipher with key (d, \CF\80) : \00"
@.str.25 = [15 x i8] c"d = %d \CF\80 = ( \00"
@.str.26 = [4 x i8] c"%d \00"
@.str.27 = [3 x i8] c")\0A\00"
@.str.28 = [45 x i8] c"-> Loading Homophonic Table. Please wait...\0A\00"
@.str.29 = [21 x i8] c"Homophonic Table : \0A\00"
@.str.30 = [3 x i8] c"%d\00"
@.str.31 = [41 x i8] c"Waiting encryption key (%d chars max) > \00"
@.str.32 = [37 x i8] c"-> Using Vigenere Cipher with key : \00"
@.str.33 = [37 x i8] c"-> Using Beauford Cipher with key : \00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [20 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32*
%17 = alloca i8**
%18 = alloca i32
%19 = alloca i8*
%20 = alloca i32
%21 = alloca i8*
%22 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
store i32 0, i32* %8
%23 = call i32 (...) @MenuSelection()
switch i32 %23, label %438 [
i32 1, label %24
i32 2, label %59
i32 3, label %97
i32 4, label %179
i32 5, label %272
i32 6, label %319
i32 7, label %378
i32 8, label %437
]
24: ; preds = %2
store i32 0, i32* %9
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 20)
%26 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%27 = call i32 @GetInputText(i8* %26, i32 20, i32* %7)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%29 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%30 = load i32, i32* %7
%31 = call i32 @TextToUpper(i8* %29, i32 %30)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%33 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%34 = load i32, i32* %7
%35 = call i32 @DisplayText(i8* %33, i32 %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
%37 = call i32 (...) @CaesarGetKey()
store i32 %37, i32* %9
%38 = load i32, i32* %9
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0), i32 %38)
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%41 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%42 = load i32, i32* %7
%43 = load i32, i32* %9
%44 = call i32 @CaesarEncrypt(i8* %41, i32 %42, i32 %43)
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%46 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%47 = load i32, i32* %7
%48 = call i32 @DisplayText(i8* %46, i32 %47)
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
%50 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%51 = load i32, i32* %7
%52 = load i32, i32* %9
%53 = call i32 @CaesarDecrypt(i8* %50, i32 %51, i32 %52)
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%55 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%56 = load i32, i32* %7
%57 = call i32 @DisplayText(i8* %55, i32 %56)
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
br label %438
59: ; preds = %2
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 20)
%61 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%62 = call i32 @GetInputText(i8* %61, i32 20, i32* %7)
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%64 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%65 = load i32, i32* %7
%66 = call i32 @TextToUpper(i8* %64, i32 %65)
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%68 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%69 = load i32, i32* %7
%70 = call i32 @DisplayText(i8* %68, i32 %69)
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.10, i64 0, i64 0))
%72 = call i32 @AffineGetKey(i32* %10, i32* %11)
%73 = load i32, i32* %10
%74 = load i32, i32* %11
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.11, i64 0, i64 0), i32 %73, i32 %74)
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%77 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%78 = load i32, i32* %7
%79 = load i32, i32* %10
%80 = load i32, i32* %11
%81 = call i32 @AffineEncrypt(i8* %77, i32 %78, i32 %79, i32 %80)
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%83 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%84 = load i32, i32* %7
%85 = call i32 @DisplayText(i8* %83, i32 %84)
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
%87 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%88 = load i32, i32* %7
%89 = load i32, i32* %10
%90 = load i32, i32* %11
%91 = call i32 @AffineDecrypt(i8* %87, i32 %88, i32 %89, i32 %90)
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%93 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%94 = load i32, i32* %7
%95 = call i32 @DisplayText(i8* %93, i32 %94)
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
br label %438
97: ; preds = %2
store i8* null, i8** %12
store i8* null, i8** %13
store i32 0, i32* %14
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 20)
%99 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%100 = call i32 @GetInputText(i8* %99, i32 20, i32* %7)
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%102 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%103 = load i32, i32* %7
%104 = call i32 @TextToUpper(i8* %102, i32 %103)
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%106 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%107 = load i32, i32* %7
%108 = call i32 @DisplayText(i8* %106, i32 %107)
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0))
%110 = call i8* @MonoalphabeticGetKey(i32* %14)
store i8* %110, i8** %12
%111 = load i8*, i8** %12
%112 = call i32 @StripSpaces(i8* %111, i32* %14)
%113 = load i8*, i8** %12
%114 = load i32, i32* %14
%115 = call i32 @TextToUpper(i8* %113, i32 %114)
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0))
store i32 0, i32* %8
br label %117
117: ; preds = %129, %97
%118 = load i32, i32* %8
%119 = load i32, i32* %14
%120 = icmp slt i32 %118, %119
br i1 %120, label %121, label %132
121: ; preds = %117
%122 = load i8*, i8** %12
%123 = load i32, i32* %8
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i8, i8* %122, i64 %124
%126 = load i8, i8* %125
%127 = sext i8 %126 to i32
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i32 %127)
br label %129
129: ; preds = %121
%130 = load i32, i32* %8
%131 = add nsw i32 %130, 1
store i32 %131, i32* %8
br label %117
132: ; preds = %117
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.16, i64 0, i64 0))
%135 = load i8*, i8** %12
%136 = load i32, i32* %14
%137 = call i8* @MonoalphabeticCreateEncTable(i8* %135, i32 %136)
store i8* %137, i8** %13
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.17, i64 0, i64 0))
store i32 0, i32* %8
br label %139
139: ; preds = %150, %132
%140 = load i32, i32* %8
%141 = icmp slt i32 %140, 26
br i1 %141, label %142, label %153
142: ; preds = %139
%143 = load i8*, i8** %13
%144 = load i32, i32* %8
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i8, i8* %143, i64 %145
%147 = load i8, i8* %146
%148 = sext i8 %147 to i32
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %148)
br label %150
150: ; preds = %142
%151 = load i32, i32* %8
%152 = add nsw i32 %151, 1
store i32 %152, i32* %8
br label %139
153: ; preds = %139
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%156 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%157 = load i32, i32* %7
%158 = load i8*, i8** %13
%159 = call i32 @MonoalphabeticEncrypt(i8* %156, i32 %157, i8* %158)
%160 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%161 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%162 = load i32, i32* %7
%163 = call i32 @DisplayText(i8* %161, i32 %162)
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
%165 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%166 = load i32, i32* %7
%167 = load i8*, i8** %13
%168 = call i32 @MonoalphabeticDecrypt(i8* %165, i32 %166, i8* %167)
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%170 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%171 = load i32, i32* %7
%172 = call i32 @DisplayText(i8* %170, i32 %171)
%173 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0))
%174 = load i8*, i8** %13
%175 = call i32 @MonoalphabeticCleanUp(i8* %174)
%176 = load i8*, i8** %12
%177 = call i32 @MonoalphabeticCleanUp(i8* %176)
%178 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
br label %438
179: ; preds = %2
store i32 0, i32* %15
store i32* null, i32** %16
store i8** null, i8*** %17
store i32 0, i32* %18
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 20)
%181 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%182 = call i32 @GetInputText(i8* %181, i32 20, i32* %7)
%183 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%184 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%185 = call i32 @StripSpaces(i8* %184, i32* %7)
%186 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%187 = load i32, i32* %7
%188 = call i32 @TextToUpper(i8* %186, i32 %187)
%189 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%190 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%191 = load i32, i32* %7
%192 = call i32 @DisplayText(i8* %190, i32 %191)
%193 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.20, i64 0, i64 0))
%194 = load i32, i32* %7
%195 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.21, i64 0, i64 0), i32 %194)
%196 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.22, i64 0, i64 0))
%197 = load i32, i32* %7
%198 = call i32 @TranspositionGetColumns(i32 %197, i32* %15)
%199 = load i32, i32* %15
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.23, i64 0, i64 0), i32 %199)
%201 = load i32, i32* %15
%202 = call i32* @TranspositionGetSequence(i32 %201)
store i32* %202, i32** %16
%203 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.24, i64 0, i64 0))
%204 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0))
store i32 0, i32* %8
br label %205
205: ; preds = %216, %179
%206 = load i32, i32* %8
%207 = load i32, i32* %15
%208 = icmp slt i32 %206, %207
br i1 %208, label %209, label %219
209: ; preds = %205
%210 = load i32*, i32** %16
%211 = load i32, i32* %8
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds i32, i32* %210, i64 %212
%214 = load i32, i32* %213
%215 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0), i32 %214)
br label %216
216: ; preds = %209
%217 = load i32, i32* %8
%218 = add nsw i32 %217, 1
store i32 %218, i32* %8
br label %205
219: ; preds = %205
%220 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.27, i64 0, i64 0))
%221 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.16, i64 0, i64 0))
%222 = load i32, i32* %7
%223 = load i32, i32* %15
%224 = call i8** @TranspositionCreateTable(i32 %222, i32 %223, i32* %18)
store i8** %224, i8*** %17
%225 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%226 = load i32, i32* %7
%227 = load i8**, i8*** %17
%228 = load i32, i32* %15
%229 = load i32, i32* %18
%230 = call i32 @TranspositionFillTable(i8* %225, i32 %226, i8** %227, i32 %228, i32 %229)
%231 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.17, i64 0, i64 0))
%232 = load i8**, i8*** %17
%233 = load i32, i32* %18
%234 = load i32, i32* %15
%235 = call i32 @Display2dCharArray(i8** %232, i32 %233, i32 %234)
%236 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%237 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%238 = load i8**, i8*** %17
%239 = load i32, i32* %15
%240 = load i32, i32* %18
%241 = load i32*, i32** %16
%242 = call i32 @TranspositionEncrypt(i8* %237, i8** %238, i32 %239, i32 %240, i32* %241)
%243 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%244 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%245 = load i32, i32* %7
%246 = call i32 @DisplayText(i8* %244, i32 %245)
%247 = load i8**, i8*** %17
%248 = load i32, i32* %18
%249 = call i32 @TranspositionTableCleanUp(i8** %247, i32 %248)
%250 = load i32, i32* %7
%251 = load i32, i32* %15
%252 = call i8** @TranspositionCreateTable(i32 %250, i32 %251, i32* %18)
store i8** %252, i8*** %17
%253 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
%254 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%255 = load i32, i32* %7
%256 = load i32, i32* %15
%257 = load i32, i32* %18
%258 = load i32*, i32** %16
%259 = load i8**, i8*** %17
%260 = call i32 @TranspositionDecrypt(i8* %254, i32 %255, i32 %256, i32 %257, i32* %258, i8** %259)
%261 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%262 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%263 = load i32, i32* %7
%264 = call i32 @DisplayText(i8* %262, i32 %263)
%265 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0))
%266 = load i32*, i32** %16
%267 = call i32 @TranspositionKeyCleanUp(i32* %266)
%268 = load i8**, i8*** %17
%269 = load i32, i32* %18
%270 = call i32 @TranspositionTableCleanUp(i8** %268, i32 %269)
%271 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
br label %438
272: ; preds = %2
%273 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 20)
%274 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%275 = call i32 @GetInputText(i8* %274, i32 20, i32* %7)
%276 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%277 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%278 = load i32, i32* %7
%279 = call i32 @TextToUpper(i8* %277, i32 %278)
%280 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%281 = call i32 @PurgeText(i8* %280, i32* %7)
%282 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%283 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%284 = load i32, i32* %7
%285 = call i32 @DisplayText(i8* %283, i32 %284)
%286 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.28, i64 0, i64 0))
%287 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.29, i64 0, i64 0))
%288 = call i32 (...) @HomophonicDisp()
%289 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%290 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%291 = load i32, i32* %7
%292 = call i32 @HomophonicEncrypt(i8* %290, i32 %291)
%293 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %8
br label %294
294: ; preds = %305, %272
%295 = load i32, i32* %8
%296 = load i32, i32* %7
%297 = icmp slt i32 %295, %296
br i1 %297, label %298, label %308
298: ; preds = %294
%299 = load i32, i32* %8
%300 = sext i32 %299 to i64
%301 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 %300
%302 = load i8, i8* %301
%303 = sext i8 %302 to i32
%304 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.30, i64 0, i64 0), i32 %303)
br label %305
305: ; preds = %298
%306 = load i32, i32* %8
%307 = add nsw i32 %306, 1
store i32 %307, i32* %8
br label %294
308: ; preds = %294
%309 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%310 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
%311 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%312 = load i32, i32* %7
%313 = call i32 @HomophonicDecrypt(i8* %311, i32 %312)
%314 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%315 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%316 = load i32, i32* %7
%317 = call i32 @DisplayText(i8* %315, i32 %316)
%318 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
br label %438
319: ; preds = %2
store i8* null, i8** %19
store i32 0, i32* %20
%320 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 20)
%321 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%322 = call i32 @GetInputText(i8* %321, i32 20, i32* %7)
%323 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%324 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%325 = load i32, i32* %7
%326 = call i32 @TextToUpper(i8* %324, i32 %325)
%327 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%328 = call i32 @PurgeText(i8* %327, i32* %7)
%329 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%330 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%331 = load i32, i32* %7
%332 = call i32 @DisplayText(i8* %330, i32 %331)
%333 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.31, i64 0, i64 0), i32 15)
%334 = call i8* @VigenereGetKey(i32* %20, i32 15)
store i8* %334, i8** %19
%335 = load i8*, i8** %19
%336 = load i32, i32* %20
%337 = call i32 @TextToUpper(i8* %335, i32 %336)
%338 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.32, i64 0, i64 0))
store i32 0, i32* %8
br label %339
339: ; preds = %351, %319
%340 = load i32, i32* %8
%341 = load i32, i32* %20
%342 = icmp slt i32 %340, %341
br i1 %342, label %343, label %354
343: ; preds = %339
%344 = load i8*, i8** %19
%345 = load i32, i32* %8
%346 = sext i32 %345 to i64
%347 = getelementptr inbounds i8, i8* %344, i64 %346
%348 = load i8, i8* %347
%349 = sext i8 %348 to i32
%350 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i32 %349)
br label %351
351: ; preds = %343
%352 = load i32, i32* %8
%353 = add nsw i32 %352, 1
store i32 %353, i32* %8
br label %339
354: ; preds = %339
%355 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%356 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%357 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%358 = load i8*, i8** %19
%359 = load i32, i32* %20
%360 = call i32 @VigenereEncrypt(i8* %357, i32* %7, i8* %358, i32 %359)
%361 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%362 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%363 = load i32, i32* %7
%364 = call i32 @DisplayText(i8* %362, i32 %363)
%365 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
%366 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%367 = load i8*, i8** %19
%368 = load i32, i32* %20
%369 = call i32 @VigenereDecrypt(i8* %366, i32* %7, i8* %367, i32 %368)
%370 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%371 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%372 = load i32, i32* %7
%373 = call i32 @DisplayText(i8* %371, i32 %372)
%374 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0))
%375 = load i8*, i8** %19
%376 = call i32 @VigenereCleanUp(i8* %375)
%377 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
br label %438
378: ; preds = %2
store i8* null, i8** %21
store i32 0, i32* %22
%379 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 20)
%380 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%381 = call i32 @GetInputText(i8* %380, i32 20, i32* %7)
%382 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%383 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%384 = load i32, i32* %7
%385 = call i32 @TextToUpper(i8* %383, i32 %384)
%386 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%387 = call i32 @PurgeText(i8* %386, i32* %7)
%388 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%389 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%390 = load i32, i32* %7
%391 = call i32 @DisplayText(i8* %389, i32 %390)
%392 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.31, i64 0, i64 0), i32 15)
%393 = call i8* @BeaufordGetKey(i32* %22, i32 15)
store i8* %393, i8** %21
%394 = load i8*, i8** %21
%395 = load i32, i32* %22
%396 = call i32 @TextToUpper(i8* %394, i32 %395)
%397 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.33, i64 0, i64 0))
store i32 0, i32* %8
br label %398
398: ; preds = %410, %378
%399 = load i32, i32* %8
%400 = load i32, i32* %22
%401 = icmp slt i32 %399, %400
br i1 %401, label %402, label %413
402: ; preds = %398
%403 = load i8*, i8** %21
%404 = load i32, i32* %8
%405 = sext i32 %404 to i64
%406 = getelementptr inbounds i8, i8* %403, i64 %405
%407 = load i8, i8* %406
%408 = sext i8 %407 to i32
%409 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i32 %408)
br label %410
410: ; preds = %402
%411 = load i32, i32* %8
%412 = add nsw i32 %411, 1
store i32 %412, i32* %8
br label %398
413: ; preds = %398
%414 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%415 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%416 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%417 = load i8*, i8** %21
%418 = load i32, i32* %22
%419 = call i32 @BeaufordEncrypt(i8* %416, i32* %7, i8* %417, i32 %418)
%420 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%421 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%422 = load i32, i32* %7
%423 = call i32 @DisplayText(i8* %421, i32 %422)
%424 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
%425 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%426 = load i8*, i8** %21
%427 = load i32, i32* %22
%428 = call i32 @BeaufordDecrypt(i8* %425, i32* %7, i8* %426, i32 %427)
%429 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%430 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%431 = load i32, i32* %7
%432 = call i32 @DisplayText(i8* %430, i32 %431)
%433 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0))
%434 = load i8*, i8** %21
%435 = call i32 @BeaufordCleanUp(i8* %434)
%436 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
br label %438
437: ; preds = %2
store i32 0, i32* %3
br label %439
438: ; preds = %2, %413, %354, %308, %219, %153, %59, %24
store i32 0, i32* %3
br label %439
439: ; preds = %438, %437
%440 = load i32, i32* %3
ret i32 %440
}

LLVM IR (-O2):
@.str = [37 x i8] c"Waiting input text (%d chars max) > \00"
@.str.2 = [12 x i8] c"New text : \00"
@.str.3 = [26 x i8] c"Waiting encryption key > \00"
@.str.4 = [40 x i8] c"-> Using Caesar Cipher with key : '%d'\0A\00"
@.str.6 = [18 x i8] c"Encrypted text : \00"
@.str.8 = [17 x i8] c"Original text : \00"
@.str.11 = [57 x i8] c"-> Using Affine Cipher with key1 : '%d' and key2 : '%d'\0A\00"
@.str.12 = [41 x i8] c"Waiting encryption key (26 chars max) > \00"
@.str.13 = [56 x i8] c"-> Using Monoalphabetic Substitution Cipher with key : \00"
@.str.18 = [4 x i8] c"%c \00"
@.str.21 = [74 x i8] c"encryption table [2-%d) and then the sequence the columns will be used *\0A\00"
@.str.22 = [11 x i8] c"Columns > \00"
@.str.23 = [19 x i8] c"Sequence [1-%d] > \00"
@.str.24 = [50 x i8] c"-> Using Transposition Cipher with key (d, \CF\80) : \00"
@.str.25 = [15 x i8] c"d = %d \CF\80 = ( \00"
@.str.26 = [4 x i8] c"%d \00"
@.str.30 = [3 x i8] c"%d\00"
@.str.31 = [41 x i8] c"Waiting encryption key (%d chars max) > \00"
@.str.32 = [37 x i8] c"-> Using Vigenere Cipher with key : \00"
@.str.33 = [37 x i8] c"-> Using Beauford Cipher with key : \00"
@str.44 = [44 x i8] c"-> Loading Homophonic Table. Please wait...\00"
@str.45 = [20 x i8] c"Homophonic Table : \00"
@str.50 = [73 x i8] c"* For encryption keys enter the number of colums you want to use at your\00"
@str.51 = [2 x i8] c")\00"
@str.59 = [48 x i8] c"-> Calculating encryption table. Please wait...\00"
@str.60 = [44 x i8] c"-> Encryption table created successfully : \00"
@str.63 = [24 x i8] c"-> Cleaning the mesh...\00"
@str.66 = [78 x i8] c"Waiting encryption key...\0AKey1 must be relatively prime to 26 and key2 [0-25]\00"
@str.70 = [38 x i8] c"-> Re-Formatting text. Please wait...\00"
@str.71 = [35 x i8] c"-> Encrypting text. Please Wait...\00"
@str.72 = [35 x i8] c"-> Decrypting text. Please Wait...\00"
@str.73 = [17 x i8] c"Quiting...bye...\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [20 x i8]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%13 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%14 = tail call i32 (...) @MenuSelection()
switch i32 %14, label %429 [
i32 1, label %15
i32 2, label %40
i32 3, label %73
i32 4, label %227
i32 5, label %301
i32 6, label %339
i32 7, label %384
]
15: ; preds = %2
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 20)
%17 = call i32 @GetInputText(i8* %12, i32 20, i32* %4)
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.70, i64 0, i64 0))
%19 = load i32, i32* %4
%20 = call i32 @TextToUpper(i8* %12, i32 %19)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%22 = load i32, i32* %4
%23 = call i32 @DisplayText(i8* %12, i32 %22)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
%25 = call i32 (...) @CaesarGetKey()
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0), i32 %25)
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.71, i64 0, i64 0))
%28 = load i32, i32* %4
%29 = call i32 @CaesarEncrypt(i8* %12, i32 %28, i32 %25)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%31 = load i32, i32* %4
%32 = call i32 @DisplayText(i8* %12, i32 %31)
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.72, i64 0, i64 0))
%34 = load i32, i32* %4
%35 = call i32 @CaesarDecrypt(i8* %12, i32 %34, i32 %25)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%37 = load i32, i32* %4
%38 = call i32 @DisplayText(i8* %12, i32 %37)
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.73, i64 0, i64 0))
br label %429
40: ; preds = %2
%41 = bitcast i32* %5 to i8*
%42 = bitcast i32* %6 to i8*
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 20)
%44 = call i32 @GetInputText(i8* %12, i32 20, i32* %4)
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.70, i64 0, i64 0))
%46 = load i32, i32* %4
%47 = call i32 @TextToUpper(i8* %12, i32 %46)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%49 = load i32, i32* %4
%50 = call i32 @DisplayText(i8* %12, i32 %49)
%51 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.66, i64 0, i64 0))
%52 = call i32 @AffineGetKey(i32* %5, i32* %6)
%53 = load i32, i32* %5
%54 = load i32, i32* %6
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.11, i64 0, i64 0), i32 %53, i32 %54)
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.71, i64 0, i64 0))
%57 = load i32, i32* %4
%58 = load i32, i32* %5
%59 = load i32, i32* %6
%60 = call i32 @AffineEncrypt(i8* %12, i32 %57, i32 %58, i32 %59)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%62 = load i32, i32* %4
%63 = call i32 @DisplayText(i8* %12, i32 %62)
%64 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.72, i64 0, i64 0))
%65 = load i32, i32* %4
%66 = load i32, i32* %5
%67 = load i32, i32* %6
%68 = call i32 @AffineDecrypt(i8* %12, i32 %65, i32 %66, i32 %67)
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%70 = load i32, i32* %4
%71 = call i32 @DisplayText(i8* %12, i32 %70)
%72 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.73, i64 0, i64 0))
br label %429
73: ; preds = %2
%74 = bitcast i32* %7 to i8*
store i32 0, i32* %7
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 20)
%76 = call i32 @GetInputText(i8* %12, i32 20, i32* %4)
%77 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.70, i64 0, i64 0))
%78 = load i32, i32* %4
%79 = call i32 @TextToUpper(i8* %12, i32 %78)
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%81 = load i32, i32* %4
%82 = call i32 @DisplayText(i8* %12, i32 %81)
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0))
%84 = call i8* @MonoalphabeticGetKey(i32* %7)
%85 = call i32 @StripSpaces(i8* %84, i32* %7)
%86 = load i32, i32* %7
%87 = call i32 @TextToUpper(i8* %84, i32 %86)
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0))
%89 = load i32, i32* %7
%90 = icmp sgt i32 %89, 0
br i1 %90, label %91, label %101
91: ; preds = %73, %91
%92 = phi i64 [ %97, %91 ], [ 0, %73 ]
%93 = getelementptr inbounds i8, i8* %84, i64 %92
%94 = load i8, i8* %93
%95 = sext i8 %94 to i32
%96 = call i32 @putchar(i32 %95)
%97 = add nuw nsw i64 %92, 1
%98 = load i32, i32* %7
%99 = sext i32 %98 to i64
%100 = icmp slt i64 %97, %99
br i1 %100, label %91, label %101
101: ; preds = %91, %73
%102 = call i32 @putchar(i32 10)
%103 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.59, i64 0, i64 0))
%104 = load i32, i32* %7
%105 = call i8* @MonoalphabeticCreateEncTable(i8* %84, i32 %104)
%106 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.60, i64 0, i64 0))
%107 = load i8, i8* %105
%108 = sext i8 %107 to i32
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %108)
%110 = getelementptr inbounds i8, i8* %105, i64 1
%111 = load i8, i8* %110
%112 = sext i8 %111 to i32
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %112)
%114 = getelementptr inbounds i8, i8* %105, i64 2
%115 = load i8, i8* %114
%116 = sext i8 %115 to i32
%117 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %116)
%118 = getelementptr inbounds i8, i8* %105, i64 3
%119 = load i8, i8* %118
%120 = sext i8 %119 to i32
%121 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %120)
%122 = getelementptr inbounds i8, i8* %105, i64 4
%123 = load i8, i8* %122
%124 = sext i8 %123 to i32
%125 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %124)
%126 = getelementptr inbounds i8, i8* %105, i64 5
%127 = load i8, i8* %126
%128 = sext i8 %127 to i32
%129 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %128)
%130 = getelementptr inbounds i8, i8* %105, i64 6
%131 = load i8, i8* %130
%132 = sext i8 %131 to i32
%133 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %132)
%134 = getelementptr inbounds i8, i8* %105, i64 7
%135 = load i8, i8* %134
%136 = sext i8 %135 to i32
%137 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %136)
%138 = getelementptr inbounds i8, i8* %105, i64 8
%139 = load i8, i8* %138
%140 = sext i8 %139 to i32
%141 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %140)
%142 = getelementptr inbounds i8, i8* %105, i64 9
%143 = load i8, i8* %142
%144 = sext i8 %143 to i32
%145 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %144)
%146 = getelementptr inbounds i8, i8* %105, i64 10
%147 = load i8, i8* %146
%148 = sext i8 %147 to i32
%149 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %148)
%150 = getelementptr inbounds i8, i8* %105, i64 11
%151 = load i8, i8* %150
%152 = sext i8 %151 to i32
%153 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %152)
%154 = getelementptr inbounds i8, i8* %105, i64 12
%155 = load i8, i8* %154
%156 = sext i8 %155 to i32
%157 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %156)
%158 = getelementptr inbounds i8, i8* %105, i64 13
%159 = load i8, i8* %158
%160 = sext i8 %159 to i32
%161 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %160)
%162 = getelementptr inbounds i8, i8* %105, i64 14
%163 = load i8, i8* %162
%164 = sext i8 %163 to i32
%165 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %164)
%166 = getelementptr inbounds i8, i8* %105, i64 15
%167 = load i8, i8* %166
%168 = sext i8 %167 to i32
%169 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %168)
%170 = getelementptr inbounds i8, i8* %105, i64 16
%171 = load i8, i8* %170
%172 = sext i8 %171 to i32
%173 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %172)
%174 = getelementptr inbounds i8, i8* %105, i64 17
%175 = load i8, i8* %174
%176 = sext i8 %175 to i32
%177 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %176)
%178 = getelementptr inbounds i8, i8* %105, i64 18
%179 = load i8, i8* %178
%180 = sext i8 %179 to i32
%181 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %180)
%182 = getelementptr inbounds i8, i8* %105, i64 19
%183 = load i8, i8* %182
%184 = sext i8 %183 to i32
%185 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %184)
%186 = getelementptr inbounds i8, i8* %105, i64 20
%187 = load i8, i8* %186
%188 = sext i8 %187 to i32
%189 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %188)
%190 = getelementptr inbounds i8, i8* %105, i64 21
%191 = load i8, i8* %190
%192 = sext i8 %191 to i32
%193 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %192)
%194 = getelementptr inbounds i8, i8* %105, i64 22
%195 = load i8, i8* %194
%196 = sext i8 %195 to i32
%197 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %196)
%198 = getelementptr inbounds i8, i8* %105, i64 23
%199 = load i8, i8* %198
%200 = sext i8 %199 to i32
%201 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %200)
%202 = getelementptr inbounds i8, i8* %105, i64 24
%203 = load i8, i8* %202
%204 = sext i8 %203 to i32
%205 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %204)
%206 = getelementptr inbounds i8, i8* %105, i64 25
%207 = load i8, i8* %206
%208 = sext i8 %207 to i32
%209 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %208)
%210 = call i32 @putchar(i32 10)
%211 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.71, i64 0, i64 0))
%212 = load i32, i32* %4
%213 = call i32 @MonoalphabeticEncrypt(i8* %12, i32 %212, i8* %105)
%214 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%215 = load i32, i32* %4
%216 = call i32 @DisplayText(i8* %12, i32 %215)
%217 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.72, i64 0, i64 0))
%218 = load i32, i32* %4
%219 = call i32 @MonoalphabeticDecrypt(i8* %12, i32 %218, i8* %105)
%220 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%221 = load i32, i32* %4
%222 = call i32 @DisplayText(i8* %12, i32 %221)
%223 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.63, i64 0, i64 0))
%224 = call i32 @MonoalphabeticCleanUp(i8* %105)
%225 = call i32 @MonoalphabeticCleanUp(i8* %84)
%226 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.73, i64 0, i64 0))
br label %429
227: ; preds = %2
%228 = bitcast i32* %8 to i8*
store i32 0, i32* %8
%229 = bitcast i32* %9 to i8*
store i32 0, i32* %9
%230 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 20)
%231 = call i32 @GetInputText(i8* %12, i32 20, i32* %4)
%232 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.70, i64 0, i64 0))
%233 = call i32 @StripSpaces(i8* %12, i32* %4)
%234 = load i32, i32* %4
%235 = call i32 @TextToUpper(i8* %12, i32 %234)
%236 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%237 = load i32, i32* %4
%238 = call i32 @DisplayText(i8* %12, i32 %237)
%239 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.50, i64 0, i64 0))
%240 = load i32, i32* %4
%241 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.21, i64 0, i64 0), i32 %240)
%242 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.22, i64 0, i64 0))
%243 = load i32, i32* %4
%244 = call i32 @TranspositionGetColumns(i32 %243, i32* %8)
%245 = load i32, i32* %8
%246 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.23, i64 0, i64 0), i32 %245)
%247 = load i32, i32* %8
%248 = call i32* @TranspositionGetSequence(i32 %247)
%249 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.24, i64 0, i64 0))
%250 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0))
%251 = load i32, i32* %8
%252 = icmp sgt i32 %251, 0
br i1 %252, label %253, label %262
253: ; preds = %227, %253
%254 = phi i64 [ %258, %253 ], [ 0, %227 ]
%255 = getelementptr inbounds i32, i32* %248, i64 %254
%256 = load i32, i32* %255
%257 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0), i32 %256)
%258 = add nuw nsw i64 %254, 1
%259 = load i32, i32* %8
%260 = sext i32 %259 to i64
%261 = icmp slt i64 %258, %260
br i1 %261, label %253, label %262
262: ; preds = %253, %227
%263 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.51, i64 0, i64 0))
%264 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.59, i64 0, i64 0))
%265 = load i32, i32* %4
%266 = load i32, i32* %8
%267 = call i8** @TranspositionCreateTable(i32 %265, i32 %266, i32* %9)
%268 = load i32, i32* %4
%269 = load i32, i32* %8
%270 = load i32, i32* %9
%271 = call i32 @TranspositionFillTable(i8* %12, i32 %268, i8** %267, i32 %269, i32 %270)
%272 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.60, i64 0, i64 0))
%273 = load i32, i32* %9
%274 = load i32, i32* %8
%275 = call i32 @Display2dCharArray(i8** %267, i32 %273, i32 %274)
%276 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.71, i64 0, i64 0))
%277 = load i32, i32* %8
%278 = load i32, i32* %9
%279 = call i32 @TranspositionEncrypt(i8* %12, i8** %267, i32 %277, i32 %278, i32* %248)
%280 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%281 = load i32, i32* %4
%282 = call i32 @DisplayText(i8* %12, i32 %281)
%283 = load i32, i32* %9
%284 = call i32 @TranspositionTableCleanUp(i8** %267, i32 %283)
%285 = load i32, i32* %4
%286 = load i32, i32* %8
%287 = call i8** @TranspositionCreateTable(i32 %285, i32 %286, i32* %9)
%288 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.72, i64 0, i64 0))
%289 = load i32, i32* %4
%290 = load i32, i32* %8
%291 = load i32, i32* %9
%292 = call i32 @TranspositionDecrypt(i8* %12, i32 %289, i32 %290, i32 %291, i32* %248, i8** %287)
%293 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%294 = load i32, i32* %4
%295 = call i32 @DisplayText(i8* %12, i32 %294)
%296 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.63, i64 0, i64 0))
%297 = call i32 @TranspositionKeyCleanUp(i32* %248)
%298 = load i32, i32* %9
%299 = call i32 @TranspositionTableCleanUp(i8** %287, i32 %298)
%300 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.73, i64 0, i64 0))
br label %429
301: ; preds = %2
%302 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 20)
%303 = call i32 @GetInputText(i8* %12, i32 20, i32* %4)
%304 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.70, i64 0, i64 0))
%305 = load i32, i32* %4
%306 = call i32 @TextToUpper(i8* %12, i32 %305)
%307 = call i32 @PurgeText(i8* %12, i32* %4)
%308 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%309 = load i32, i32* %4
%310 = call i32 @DisplayText(i8* %12, i32 %309)
%311 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.44, i64 0, i64 0))
%312 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.45, i64 0, i64 0))
%313 = call i32 (...) @HomophonicDisp()
%314 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.71, i64 0, i64 0))
%315 = load i32, i32* %4
%316 = call i32 @HomophonicEncrypt(i8* %12, i32 %315)
%317 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%318 = load i32, i32* %4
%319 = icmp sgt i32 %318, 0
br i1 %319, label %320, label %330
320: ; preds = %301, %320
%321 = phi i64 [ %326, %320 ], [ 0, %301 ]
%322 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 %321
%323 = load i8, i8* %322
%324 = sext i8 %323 to i32
%325 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.30, i64 0, i64 0), i32 %324)
%326 = add nuw nsw i64 %321, 1
%327 = load i32, i32* %4
%328 = sext i32 %327 to i64
%329 = icmp slt i64 %326, %328
br i1 %329, label %320, label %330
330: ; preds = %320, %301
%331 = call i32 @putchar(i32 10)
%332 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.72, i64 0, i64 0))
%333 = load i32, i32* %4
%334 = call i32 @HomophonicDecrypt(i8* %12, i32 %333)
%335 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%336 = load i32, i32* %4
%337 = call i32 @DisplayText(i8* %12, i32 %336)
%338 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.73, i64 0, i64 0))
br label %429
339: ; preds = %2
%340 = bitcast i32* %10 to i8*
store i32 0, i32* %10
%341 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 20)
%342 = call i32 @GetInputText(i8* %12, i32 20, i32* %4)
%343 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.70, i64 0, i64 0))
%344 = load i32, i32* %4
%345 = call i32 @TextToUpper(i8* %12, i32 %344)
%346 = call i32 @PurgeText(i8* %12, i32* %4)
%347 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%348 = load i32, i32* %4
%349 = call i32 @DisplayText(i8* %12, i32 %348)
%350 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.31, i64 0, i64 0), i32 15)
%351 = call i8* @VigenereGetKey(i32* %10, i32 15)
%352 = load i32, i32* %10
%353 = call i32 @TextToUpper(i8* %351, i32 %352)
%354 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.32, i64 0, i64 0))
%355 = load i32, i32* %10
%356 = icmp sgt i32 %355, 0
br i1 %356, label %357, label %367
357: ; preds = %339, %357
%358 = phi i64 [ %363, %357 ], [ 0, %339 ]
%359 = getelementptr inbounds i8, i8* %351, i64 %358
%360 = load i8, i8* %359
%361 = sext i8 %360 to i32
%362 = call i32 @putchar(i32 %361)
%363 = add nuw nsw i64 %358, 1
%364 = load i32, i32* %10
%365 = sext i32 %364 to i64
%366 = icmp slt i64 %363, %365
br i1 %366, label %357, label %367
367: ; preds = %357, %339
%368 = call i32 @putchar(i32 10)
%369 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.71, i64 0, i64 0))
%370 = load i32, i32* %10
%371 = call i32 @VigenereEncrypt(i8* %12, i32* %4, i8* %351, i32 %370)
%372 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%373 = load i32, i32* %4
%374 = call i32 @DisplayText(i8* %12, i32 %373)
%375 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.72, i64 0, i64 0))
%376 = load i32, i32* %10
%377 = call i32 @VigenereDecrypt(i8* %12, i32* %4, i8* %351, i32 %376)
%378 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%379 = load i32, i32* %4
%380 = call i32 @DisplayText(i8* %12, i32 %379)
%381 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.63, i64 0, i64 0))
%382 = call i32 @VigenereCleanUp(i8* %351)
%383 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.73, i64 0, i64 0))
br label %429
384: ; preds = %2
%385 = bitcast i32* %11 to i8*
store i32 0, i32* %11
%386 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 20)
%387 = call i32 @GetInputText(i8* %12, i32 20, i32* %4)
%388 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.70, i64 0, i64 0))
%389 = load i32, i32* %4
%390 = call i32 @TextToUpper(i8* %12, i32 %389)
%391 = call i32 @PurgeText(i8* %12, i32* %4)
%392 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%393 = load i32, i32* %4
%394 = call i32 @DisplayText(i8* %12, i32 %393)
%395 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.31, i64 0, i64 0), i32 15)
%396 = call i8* @BeaufordGetKey(i32* %11, i32 15)
%397 = load i32, i32* %11
%398 = call i32 @TextToUpper(i8* %396, i32 %397)
%399 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.33, i64 0, i64 0))
%400 = load i32, i32* %11
%401 = icmp sgt i32 %400, 0
br i1 %401, label %402, label %412
402: ; preds = %384, %402
%403 = phi i64 [ %408, %402 ], [ 0, %384 ]
%404 = getelementptr inbounds i8, i8* %396, i64 %403
%405 = load i8, i8* %404
%406 = sext i8 %405 to i32
%407 = call i32 @putchar(i32 %406)
%408 = add nuw nsw i64 %403, 1
%409 = load i32, i32* %11
%410 = sext i32 %409 to i64
%411 = icmp slt i64 %408, %410
br i1 %411, label %402, label %412
412: ; preds = %402, %384
%413 = call i32 @putchar(i32 10)
%414 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.71, i64 0, i64 0))
%415 = load i32, i32* %11
%416 = call i32 @BeaufordEncrypt(i8* %12, i32* %4, i8* %396, i32 %415)
%417 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%418 = load i32, i32* %4
%419 = call i32 @DisplayText(i8* %12, i32 %418)
%420 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.72, i64 0, i64 0))
%421 = load i32, i32* %11
%422 = call i32 @BeaufordDecrypt(i8* %12, i32* %4, i8* %396, i32 %421)
%423 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%424 = load i32, i32* %4
%425 = call i32 @DisplayText(i8* %12, i32 %424)
%426 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.63, i64 0, i64 0))
%427 = call i32 @BeaufordCleanUp(i8* %396)
%428 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.73, i64 0, i64 0))
br label %429
429: ; preds = %15, %40, %101, %262, %330, %367, %412, %2
ret i32 0
}