#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*/ getchar();
int /*<<< orphan*/ printf(char *, char *);
void print_banner() {
  printf("%s", "Welcome to the airport simulator.\n");
  printf(
      "%s",
      "Press p or P followed by return to display the state of the airport.\n");
  printf("%s",
         "Press q or Q followed by return to terminate the simulation.\n\n");
  printf("%s", "Press return to start the simulation.\n");
  getchar();
}


x86 assembly (clang, -O0):
<print_banner>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xed1(%rip),%rsi
call   1030 <printf@plt>
lea    0xec2(%rip),%rdi
lea    0xee1(%rip),%rsi
call   1030 <printf@plt>
lea    0xeaf(%rip),%rdi
lea    0xf14(%rip),%rsi
call   1030 <printf@plt>
lea    0xe9c(%rip),%rdi
lea    0xf40(%rip),%rsi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_banner>:
push   %rbx
lea    0xed8(%rip),%rbx
lea    0xed4(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xee8(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xf1f(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xf4f(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
jmp    1040 <getchar@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [35 x i8] c"Welcome to the airport simulator.\0A\00"
@.str.2 = [70 x i8] c"Press p or P followed by return to display the state of the airport.\0A\00"
@.str.3 = [63 x i8] c"Press q or Q followed by return to terminate the simulation.\0A\0A\00"
@.str.4 = [39 x i8] c"Press return to start the simulation.\0A\00"
define void @print_banner() {
%1 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (...) @getchar()
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [35 x i8] c"Welcome to the airport simulator.\0A\00"
@.str.2 = [70 x i8] c"Press p or P followed by return to display the state of the airport.\0A\00"
@.str.3 = [63 x i8] c"Press q or Q followed by return to terminate the simulation.\0A\0A\00"
@.str.4 = [39 x i8] c"Press return to start the simulation.\0A\00"
define void @print_banner() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 (...) @getchar()
ret void
}