#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*/ printf(char *);
void Display_Analysis_Menu() {
  printf("\n1 - Develop key from user defined features & perform frequency "
         "analysis\n");
  printf("2 - Enter a key manually\n");
  printf("3 - Calculate possible keys from frequency analysis\n");
  printf("4 - Caeser shift!\n");
  printf("5 - Check for defined plain words or cribs\n");
  printf("8 - Return to cipher entry menu\n");
  printf("9 - Exit\n");
  printf("\nPlease enter a selection, 1 - 9:  ");
  return;
}


x86 assembly (clang, -O0):
<Display_Analysis_Menu>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf23(%rip),%rdi
call   1030 <printf@plt>
lea    0xf31(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf61(%rip),%rdi
call   1030 <printf@plt>
lea    0xf81(%rip),%rdi
call   1030 <printf@plt>
lea    0xf96(%rip),%rdi
call   1030 <printf@plt>
lea    0xf94(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Display_Analysis_Menu>:
push   %rax
lea    0xefc(%rip),%rdi
call   1030 <puts@plt>
lea    0xf39(%rip),%rdi
call   1030 <puts@plt>
lea    0xf46(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf74(%rip),%rdi
call   1030 <puts@plt>
lea    0xf93(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa7(%rip),%rdi
call   1030 <puts@plt>
lea    0xe84(%rip),%rdi
pop    %rax
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [74 x i8] c"\0A1 - Develop key from user defined features & perform frequency analysis\0A\00"
@.str.1 = [26 x i8] c"2 - Enter a key manually\0A\00"
@.str.2 = [53 x i8] c"3 - Calculate possible keys from frequency analysis\0A\00"
@.str.3 = [19 x i8] c"4 - Caeser shift!\0A\00"
@.str.4 = [44 x i8] c"5 - Check for defined plain words or cribs\0A\00"
@.str.5 = [33 x i8] c"8 - Return to cipher entry menu\0A\00"
@.str.6 = [10 x i8] c"9 - Exit\0A\00"
@.str.7 = [36 x i8] c"\0APlease enter a selection, 1 - 9: \00"
define void @Display_Analysis_Menu() {
%1 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.7 = [36 x i8] c"\0APlease enter a selection, 1 - 9: \00"
@str = [73 x i8] c"\0A1 - Develop key from user defined features & perform frequency analysis\00"
@str.8 = [25 x i8] c"2 - Enter a key manually\00"
@str.9 = [52 x i8] c"3 - Calculate possible keys from frequency analysis\00"
@str.10 = [18 x i8] c"4 - Caeser shift!\00"
@str.11 = [43 x i8] c"5 - Check for defined plain words or cribs\00"
@str.12 = [32 x i8] c"8 - Return to cipher entry menu\00"
@str.13 = [9 x i8] c"9 - Exit\00"
define void @Display_Analysis_Menu() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.8, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.9, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.10, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.11, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.12, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.13, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
ret void
}