#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 num_reader(char *);
int /*<<< orphan*/ printf(char *);
int display(void) {
  printf(":=============================================================:\n"
         "| ANAC - Airports management and air control system.          |\n"
         "| 1 - Register airport.                                       |\n"
         "| 2 - Remove airport.                                         |\n"
         "| 3 - List all registered airports.                           |\n"
         "| 4 - Register flight.                                        |\n"
         "| 5 - Delete flight.                                          |\n"
         "| 6 - Interactive travel.                                     |\n"
         "| 7 - Export file.                                            |\n"
         "| 8 - Import flie.                                            |\n"
         "| 0 - Exit.                                                   |\n"
         ":=============================================================:\n");
  printf("$ ");
  return num_reader("Type an option: ");
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0x11ca(%rip),%rdi
call   1030 <printf@plt>
lea    0x11c1(%rip),%rdi
call   1040 <num_reader@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %rax
lea    0xedc(%rip),%rdi
call   1030 <puts@plt>
lea    0xebc(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb3(%rip),%rdi
pop    %rax
jmp    1050 <num_reader@plt>

LLVM IR (-O0):
@.str = [769 x i8] c":=============================================================:\0A| ANAC - Airports management and air control system. |\0A| 1 - Register airport. |\0A| 2 - Remove airport. |\0A| 3 - List all registered airports. |\0A| 4 - Register flight. |\0A| 5 - Delete flight. |\0A| 6 - Interactive travel. |\0A| 7 - Export file. |\0A| 8 - Import flie. |\0A| 0 - Exit. |\0A:=============================================================:\0A\00"
@.str.1 = [3 x i8] c"$ \00"
@.str.2 = [17 x i8] c"Type an option: \00"
define i32 @display() {
%1 = call i32 @printf(i8* getelementptr inbounds ([769 x i8], [769 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @num_reader(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
ret i32 %3
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"$ \00"
@.str.2 = [17 x i8] c"Type an option: \00"
@str = [768 x i8] c":=============================================================:\0A| ANAC - Airports management and air control system. |\0A| 1 - Register airport. |\0A| 2 - Remove airport. |\0A| 3 - List all registered airports. |\0A| 4 - Register flight. |\0A| 5 - Delete flight. |\0A| 6 - Interactive travel. |\0A| 7 - Export file. |\0A| 8 - Import flie. |\0A| 0 - Exit. |\0A:=============================================================:\00"
define i32 @display() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([768 x i8], [768 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @num_reader(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
ret i32 %3
}