#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int saisieChar();
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ system(char *);
int menuPrincipalAdmin() {
  system("clear");
  fprintf(stdout, "\t\t\t\tBIENVENUE SUR MUVI - Admin\n\n\n");
  fprintf(stdout, "\t\t\t\t%d - Liste d'objets\n", 1);
  fprintf(stdout, "\t\t\t\t%d - Recherche d'objet(s) par mot clef\n", 2);
  fprintf(stdout, "\t\t\t\t%d - Retour\n", 0);
  return saisieChar() - '0';
}


x86 assembly (clang, -O0):
<menuPrincipalAdmin>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1030 <system@plt>
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
lea    0xeb6(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e82(%rip),%rax
mov    (%rax),%edi
lea    0xec1(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e66(%rip),%rax
mov    (%rax),%edi
lea    0xebe(%rip),%rsi
mov    $0x2,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e4a(%rip),%rax
mov    (%rax),%edi
lea    0xece(%rip),%rsi
xor    %edx,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x0,%al
call   1050 <saisieChar@plt>
sub    $0x30,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<menuPrincipalAdmin>:
push   %rbx
lea    0xec8(%rip),%rdi
call   1030 <system@plt>
mov    0x2e9c(%rip),%rbx
mov    (%rbx),%edi
lea    0xeb9(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xecb(%rip),%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xecf(%rip),%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xee6(%rip),%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
xor    %eax,%eax
call   1050 <saisieChar@plt>
add    $0xffffffd0,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@stdout = global i32 0
@.str.1 = [34 x i8] c"\09\09\09\09BIENVENUE SUR MUVI - Admin\0A\0A\0A\00"
@.str.2 = [25 x i8] c"\09\09\09\09%d - Liste d'objets\0A\00"
@.str.3 = [44 x i8] c"\09\09\09\09%d - Recherche d'objet(s) par mot clef\0A\00"
@.str.4 = [17 x i8] c"\09\09\09\09%d - Retour\0A\00"
define i32 @menuPrincipalAdmin() {
%1 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @stdout
%3 = call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%4 = load i32, i32* @stdout
%5 = call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 1)
%6 = load i32, i32* @stdout
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0), i32 2)
%8 = load i32, i32* @stdout
%9 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 0)
%10 = call i32 (...) @saisieChar()
%11 = sub nsw i32 %10, 48
ret i32 %11
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@stdout = global i32 0
@.str.1 = [34 x i8] c"\09\09\09\09BIENVENUE SUR MUVI - Admin\0A\0A\0A\00"
@.str.2 = [25 x i8] c"\09\09\09\09%d - Liste d'objets\0A\00"
@.str.3 = [44 x i8] c"\09\09\09\09%d - Recherche d'objet(s) par mot clef\0A\00"
@.str.4 = [17 x i8] c"\09\09\09\09%d - Retour\0A\00"
define i32 @menuPrincipalAdmin() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @stdout
%3 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%4 = load i32, i32* @stdout
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 1)
%6 = load i32, i32* @stdout
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0), i32 2)
%8 = load i32, i32* @stdout
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 0)
%10 = tail call i32 (...) @saisieChar()
%11 = add nsw i32 %10, -48
ret i32 %11
}