#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 menuAccueil() {
  system("clear");
  fprintf(stdout, "\n\t\t\t\tBIENVENUE SUR MUVI\n\n\n");
  fprintf(stdout, "\t\t\t\t%d - Poursuivre anonymement\n", 3);
  fprintf(stdout, "\t\t\t\t%d - Creation de compte\n", 2);
  fprintf(stdout, "\t\t\t\t%d - Connexion\n", 1);
  fprintf(stdout, "\t\t\t\t%d - Quitter\n", 0);
  return saisieChar() - '0';
}


x86 assembly (clang, -O0):
<menuAccueil>:
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    0xeba(%rip),%rsi
mov    $0x3,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e66(%rip),%rax
mov    (%rax),%edi
lea    0xebf(%rip),%rsi
mov    $0x2,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e4a(%rip),%rax
mov    (%rax),%edi
lea    0xec0(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e2e(%rip),%rax
mov    (%rax),%edi
lea    0xeb8(%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):
<menuAccueil>:
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    0xec4(%rip),%rsi
mov    $0x3,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xed0(%rip),%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xed8(%rip),%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xed7(%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 = [27 x i8] c"\0A\09\09\09\09BIENVENUE SUR MUVI\0A\0A\0A\00"
@.str.2 = [33 x i8] c"\09\09\09\09%d - Poursuivre anonymement\0A\00"
@.str.3 = [29 x i8] c"\09\09\09\09%d - Creation de compte\0A\00"
@.str.4 = [20 x i8] c"\09\09\09\09%d - Connexion\0A\00"
@.str.5 = [18 x i8] c"\09\09\09\09%d - Quitter\0A\00"
define i32 @menuAccueil() {
%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 ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%4 = load i32, i32* @stdout
%5 = call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 3)
%6 = load i32, i32* @stdout
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([29 x i8], [29 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 ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 1)
%10 = load i32, i32* @stdout
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 0)
%12 = call i32 (...) @saisieChar()
%13 = sub nsw i32 %12, 48
ret i32 %13
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@stdout = global i32 0
@.str.1 = [27 x i8] c"\0A\09\09\09\09BIENVENUE SUR MUVI\0A\0A\0A\00"
@.str.2 = [33 x i8] c"\09\09\09\09%d - Poursuivre anonymement\0A\00"
@.str.3 = [29 x i8] c"\09\09\09\09%d - Creation de compte\0A\00"
@.str.4 = [20 x i8] c"\09\09\09\09%d - Connexion\0A\00"
@.str.5 = [18 x i8] c"\09\09\09\09%d - Quitter\0A\00"
define i32 @menuAccueil() {
%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 ([27 x i8], [27 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 ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 3)
%6 = load i32, i32* @stdout
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([29 x i8], [29 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 ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 1)
%10 = load i32, i32* @stdout
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 0)
%12 = tail call i32 (...) @saisieChar()
%13 = add nsw i32 %12, -48
ret i32 %13
}