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


x86 assembly (clang, -O0):
<print_menu>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
mov    $0x1,%esi
call   1040 <print_menu_item@plt>
mov    $0x0,%al
call   1030 <print_seperator_line@plt>
lea    0xec2(%rip),%rdi
xor    %esi,%esi
call   1040 <print_menu_item@plt>
lea    0xedc(%rip),%rdi
xor    %esi,%esi
call   1040 <print_menu_item@plt>
lea    0xef0(%rip),%rdi
xor    %esi,%esi
call   1040 <print_menu_item@plt>
lea    0xf04(%rip),%rdi
xor    %esi,%esi
call   1040 <print_menu_item@plt>
lea    0xf13(%rip),%rdi
xor    %esi,%esi
call   1040 <print_menu_item@plt>
mov    $0x0,%al
call   1030 <print_seperator_line@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_menu>:
push   %rax
lea    0xed8(%rip),%rdi
mov    $0x1,%esi
call   1040 <print_menu_item@plt>
xor    %eax,%eax
call   1030 <print_seperator_line@plt>
lea    0xec5(%rip),%rdi
xor    %esi,%esi
call   1040 <print_menu_item@plt>
lea    0xedf(%rip),%rdi
xor    %esi,%esi
call   1040 <print_menu_item@plt>
lea    0xef3(%rip),%rdi
xor    %esi,%esi
call   1040 <print_menu_item@plt>
lea    0xf07(%rip),%rdi
xor    %esi,%esi
call   1040 <print_menu_item@plt>
lea    0xf16(%rip),%rdi
xor    %esi,%esi
call   1040 <print_menu_item@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <print_seperator_line@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)
%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)
%4 = call i32 @print_menu_item(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i32 0)
%5 = call i32 @print_menu_item(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 0)
%6 = call i32 @print_menu_item(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i32 0)
%7 = call i32 @print_menu_item(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 0)
%8 = call i32 (...) @print_seperator_line()
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)
%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)
%4 = tail call i32 @print_menu_item(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i32 0)
%5 = tail call i32 @print_menu_item(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 0)
%6 = tail call i32 @print_menu_item(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i32 0)
%7 = tail call i32 @print_menu_item(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 0)
%8 = tail call i32 (...) @print_seperator_line()
ret void
}