#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 showMenu(void) {
  printf("\n");
  printf("1. Emfanisi kenon theseon\n");
  printf("2. Kratisi sygkekrimenis thesis\n");
  printf("3. Evresi kai kratisi proths diathesimis thesis se parathiro\n");
  printf("4. Akirosi kratisis thesis\n");
  printf("5. Anazitisi thesis an einai kratimeni\n");
  printf("6. Lista kratimenon theseon\n");
  printf("7. Emfanisi pinakidas kai diagrammatos theseon\n");
  printf("8. Apothikeysi pinakidas kai diagrammatos sto layout.txt\n");
  printf("------------------------------------------------------------\n");
  printf("0. Eksodos\n");
  printf("\nEpilogi: ");
}


x86 assembly (clang, -O0):
<showMenu>:
push   %rbp
mov    %rsp,%rbp
lea    0x1066(%rip),%rdi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf90(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbe(%rip),%rdi
call   1030 <printf@plt>
lea    0xff0(%rip),%rdi
call   1030 <printf@plt>
lea    0xff0(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<showMenu>:
push   %rax
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xec9(%rip),%rdi
call   1040 <puts@plt>
lea    0xed7(%rip),%rdi
call   1040 <puts@plt>
lea    0xeeb(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf2b(%rip),%rdi
call   1040 <puts@plt>
lea    0xf46(%rip),%rdi
call   1040 <puts@plt>
lea    0xf56(%rip),%rdi
call   1040 <puts@plt>
lea    0xf79(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa6(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd7(%rip),%rdi
call   1040 <puts@plt>
lea    0xe46(%rip),%rdi
pop    %rax
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [27 x i8] c"1. Emfanisi kenon theseon\0A\00"
@.str.2 = [33 x i8] c"2. Kratisi sygkekrimenis thesis\0A\00"
@.str.3 = [62 x i8] c"3. Evresi kai kratisi proths diathesimis thesis se parathiro\0A\00"
@.str.4 = [28 x i8] c"4. Akirosi kratisis thesis\0A\00"
@.str.5 = [40 x i8] c"5. Anazitisi thesis an einai kratimeni\0A\00"
@.str.6 = [29 x i8] c"6. Lista kratimenon theseon\0A\00"
@.str.7 = [48 x i8] c"7. Emfanisi pinakidas kai diagrammatos theseon\0A\00"
@.str.8 = [58 x i8] c"8. Apothikeysi pinakidas kai diagrammatos sto layout.txt\0A\00"
@.str.9 = [62 x i8] c"------------------------------------------------------------\0A\00"
@.str.10 = [12 x i8] c"0. Eksodos\0A\00"
@.str.11 = [11 x i8] c"\0AEpilogi: \00"
define void @showMenu() {
%1 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.11 = [11 x i8] c"\0AEpilogi: \00"
@str = [26 x i8] c"1. Emfanisi kenon theseon\00"
@str.12 = [32 x i8] c"2. Kratisi sygkekrimenis thesis\00"
@str.13 = [61 x i8] c"3. Evresi kai kratisi proths diathesimis thesis se parathiro\00"
@str.14 = [27 x i8] c"4. Akirosi kratisis thesis\00"
@str.15 = [39 x i8] c"5. Anazitisi thesis an einai kratimeni\00"
@str.16 = [28 x i8] c"6. Lista kratimenon theseon\00"
@str.17 = [47 x i8] c"7. Emfanisi pinakidas kai diagrammatos theseon\00"
@str.18 = [57 x i8] c"8. Apothikeysi pinakidas kai diagrammatos sto layout.txt\00"
@str.19 = [61 x i8] c"------------------------------------------------------------\00"
@str.20 = [11 x i8] c"0. Eksodos\00"
define void @showMenu() {
%1 = tail call i32 @putchar(i32 10)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.12, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.20, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
ret void
}