#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 *);
int /*<<< orphan*/ system(char *);
void mostra_opcao_menu(void) {
  system("clear");
  printf("    _    _       ____     _____           _                      \n");
  printf("   | |  | |     |  _ \\   / ____|         | |                    \n");
  printf("   | |  | |_ __ | |_) | | (___  _   _ ___| |_ ___ _ __ ___       \n");
  printf("   | |  | | '_ \\|  _ <   \\___ \\| | | / __| __/ _ \\ '_ ` _ \\ \n");
  printf("   | |__| | | | | |_) |  ____) | |_| \\__ \\ ||  __/ | | | | |   \n");
  printf("    \\____/|_| |_|____/  |_____/ \\__, |___/\\__\\___|_| |_| |_| \n");
  printf("                                 __/ |                           \n");
  printf(
      "                                |___/                            \n\n");
  printf("Sistema de Notas UnB v0.1 beta\n");
  printf("1. Inserir novo aluno na UnB\n");
  printf("2. Jubilar um aluno da UnB\n");
  printf("3. Dar nota ao aluno numa disciplina\n");
  printf("4. Relatório\n");
  printf("5. Buscar\n");
  printf("6. Sair\n");
}


x86 assembly (clang, -O0):
<mostra_opcao_menu>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <system@plt>
lea    0xecf(%rip),%rdi
call   1040 <printf@plt>
lea    0xf06(%rip),%rdi
call   1040 <printf@plt>
lea    0xf3c(%rip),%rdi
call   1040 <printf@plt>
lea    0xf73(%rip),%rdi
call   1040 <printf@plt>
lea    0xfa5(%rip),%rdi
call   1040 <printf@plt>
lea    0xfda(%rip),%rdi
call   1040 <printf@plt>
lea    0x100d(%rip),%rdi
call   1040 <printf@plt>
lea    0x1044(%rip),%rdi
call   1040 <printf@plt>
lea    0x107c(%rip),%rdi
call   1040 <printf@plt>
lea    0x1090(%rip),%rdi
call   1040 <printf@plt>
lea    0x10a2(%rip),%rdi
call   1040 <printf@plt>
lea    0x10b2(%rip),%rdi
call   1040 <printf@plt>
lea    0x10cc(%rip),%rdi
call   1040 <printf@plt>
lea    0x10cf(%rip),%rdi
call   1040 <printf@plt>
lea    0x10ce(%rip),%rdi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<mostra_opcao_menu>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <system@plt>
lea    0xed2(%rip),%rdi
call   1030 <puts@plt>
lea    0xf08(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf73(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa4(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd8(%rip),%rdi
call   1030 <puts@plt>
lea    0x100a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1040(%rip),%rdi
call   1030 <puts@plt>
lea    0x1077(%rip),%rdi
call   1030 <puts@plt>
lea    0x108a(%rip),%rdi
call   1030 <puts@plt>
lea    0x109b(%rip),%rdi
call   1030 <puts@plt>
lea    0x10aa(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c3(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c5(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c3(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [67 x i8] c" _ _ ____ _____ _ \0A\00"
@.str.2 = [66 x i8] c" | | | | | _ \\ / ____| | | \0A\00"
@.str.3 = [67 x i8] c" | | | |_ __ | |_) | | (___ _ _ ___| |_ ___ _ __ ___ \0A\00"
@.str.4 = [62 x i8] c" | | | | '_ \\| _ < \\___ \\| | | / __| __/ _ \\ '_ ` _ \\ \0A\00"
@.str.5 = [65 x i8] c" | |__| | | | | |_) | ____) | |_| \\__ \\ || __/ | | | | | \0A\00"
@.str.6 = [63 x i8] c" \\____/|_| |_|____/ |_____/ \\__, |___/\\__\\___|_| |_| |_| \0A\00"
@.str.7 = [67 x i8] c" __/ | \0A\00"
@.str.8 = [68 x i8] c" |___/ \0A\0A\00"
@.str.9 = [32 x i8] c"Sistema de Notas UnB v0.1 beta\0A\00"
@.str.10 = [30 x i8] c"1. Inserir novo aluno na UnB\0A\00"
@.str.11 = [28 x i8] c"2. Jubilar um aluno da UnB\0A\00"
@.str.12 = [38 x i8] c"3. Dar nota ao aluno numa disciplina\0A\00"
@.str.13 = [15 x i8] c"4. Relat\C3\B3rio\0A\00"
@.str.14 = [11 x i8] c"5. Buscar\0A\00"
@.str.15 = [9 x i8] c"6. Sair\0A\00"
define void @mostra_opcao_menu() {
%1 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@str = [66 x i8] c" _ _ ____ _____ _ \00"
@str.16 = [65 x i8] c" | | | | | _ \\ / ____| | | \00"
@str.17 = [66 x i8] c" | | | |_ __ | |_) | | (___ _ _ ___| |_ ___ _ __ ___ \00"
@str.18 = [61 x i8] c" | | | | '_ \\| _ < \\___ \\| | | / __| __/ _ \\ '_ ` _ \\ \00"
@str.19 = [64 x i8] c" | |__| | | | | |_) | ____) | |_| \\__ \\ || __/ | | | | | \00"
@str.20 = [62 x i8] c" \\____/|_| |_|____/ |_____/ \\__, |___/\\__\\___|_| |_| |_| \00"
@str.21 = [66 x i8] c" __/ | \00"
@str.22 = [67 x i8] c" |___/ \0A\00"
@str.23 = [31 x i8] c"Sistema de Notas UnB v0.1 beta\00"
@str.24 = [29 x i8] c"1. Inserir novo aluno na UnB\00"
@str.25 = [27 x i8] c"2. Jubilar um aluno da UnB\00"
@str.26 = [37 x i8] c"3. Dar nota ao aluno numa disciplina\00"
@str.27 = [14 x i8] c"4. Relat\C3\B3rio\00"
@str.28 = [10 x i8] c"5. Buscar\00"
@str.29 = [8 x i8] c"6. Sair\00"
define void @mostra_opcao_menu() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.16, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.17, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.18, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.19, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.20, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.21, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.22, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.23, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.24, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.25, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.26, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.27, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.28, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.29, i64 0, i64 0))
ret void
}