#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*/ print_menu_choice();
int /*<<< orphan*/ print_menu_item(char *, int, int);
int /*<<< orphan*/ print_seperator_line();
void print_menu() {
  print_menu_item("Menu", 1, 1);
  print_seperator_line();
  print_menu_item("1. Input the student's names and scores", 0, 1);
  print_menu_item("2. Search scores of some students", 0, 1);
  print_menu_item("3. Modify scores of some students", 0, 1);
  print_menu_item("4. List all students' scores", 0, 1);
  print_menu_item("3. Quit the system", 0, 1);
  print_seperator_line();
  print_menu_choice();
}


x86 assembly (clang, -O0):
<print_menu>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1050 <print_menu_item@plt>
mov    $0x0,%al
call   1030 <print_seperator_line@plt>
lea    0xeb0(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1050 <print_menu_item@plt>
lea    0xec5(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1050 <print_menu_item@plt>
lea    0xed4(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1050 <print_menu_item@plt>
lea    0xee3(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1050 <print_menu_item@plt>
lea    0xeed(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1050 <print_menu_item@plt>
mov    $0x0,%al
call   1030 <print_seperator_line@plt>
mov    $0x0,%al
call   1040 <print_menu_choice@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_menu>:
push   %rax
lea    0xec8(%rip),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1050 <print_menu_item@plt>
xor    %eax,%eax
call   1030 <print_seperator_line@plt>
lea    0xeb0(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1050 <print_menu_item@plt>
lea    0xec5(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1050 <print_menu_item@plt>
lea    0xed4(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1050 <print_menu_item@plt>
lea    0xee3(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1050 <print_menu_item@plt>
lea    0xeed(%rip),%rdi
xor    %esi,%esi
mov    $0x1,%edx
call   1050 <print_menu_item@plt>
xor    %eax,%eax
call   1030 <print_seperator_line@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <print_menu_choice@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"Menu\00"
@.str.1 = [40 x i8] c"1. Input the student's names and scores\00"
@.str.2 = [34 x i8] c"2. Search scores of some students\00"
@.str.3 = [34 x i8] c"3. Modify scores of some students\00"
@.str.4 = [29 x i8] c"4. List all students' scores\00"
@.str.5 = [19 x i8] c"3. Quit the system\00"
define void @print_menu() {
%1 = call i32 @print_menu_item(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 1, i32 1)
%2 = call i32 (...) @print_seperator_line()
%3 = call i32 @print_menu_item(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 1)
%4 = call i32 @print_menu_item(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 1)
%5 = call i32 @print_menu_item(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 0, i32 1)
%6 = call i32 @print_menu_item(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 1)
%7 = call i32 @print_menu_item(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 0, i32 1)
%8 = call i32 (...) @print_seperator_line()
%9 = call i32 (...) @print_menu_choice()
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"Menu\00"
@.str.1 = [40 x i8] c"1. Input the student's names and scores\00"
@.str.2 = [34 x i8] c"2. Search scores of some students\00"
@.str.3 = [34 x i8] c"3. Modify scores of some students\00"
@.str.4 = [29 x i8] c"4. List all students' scores\00"
@.str.5 = [19 x i8] c"3. Quit the system\00"
define void @print_menu() {
%1 = tail call i32 @print_menu_item(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 1, i32 1)
%2 = tail call i32 (...) @print_seperator_line()
%3 = tail call i32 @print_menu_item(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 1)
%4 = tail call i32 @print_menu_item(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 1)
%5 = tail call i32 @print_menu_item(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 0, i32 1)
%6 = tail call i32 @print_menu_item(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 1)
%7 = tail call i32 @print_menu_item(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 0, i32 1)
%8 = tail call i32 (...) @print_seperator_line()
%9 = tail call i32 (...) @print_menu_choice()
ret void
}