#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 menuPrincipalAcheteur() {
  system("clear");
  fprintf(stdout, "\t\t\t\tBIENVENUE SUR MUVI - Acheteur\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 - Encherir\n", 3);
  fprintf(stdout, "\t\t\t\t%d - Retour\n", 0);
  return saisieChar() - '0';
}


x86 assembly (clang, -O0):
<menuPrincipalAcheteur>:
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    0xec4(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e66(%rip),%rax
mov    (%rax),%edi
lea    0xec1(%rip),%rsi
mov    $0x2,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e4a(%rip),%rax
mov    (%rax),%edi
lea    0xed1(%rip),%rsi
mov    $0x3,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e2e(%rip),%rax
mov    (%rax),%edi
lea    0xec8(%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):
<menuPrincipalAcheteur>:
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    0xece(%rip),%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xed2(%rip),%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xee9(%rip),%rsi
mov    $0x3,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xee7(%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 = [37 x i8] c"\09\09\09\09BIENVENUE SUR MUVI - Acheteur\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 = [19 x i8] c"\09\09\09\09%d - Encherir\0A\00"
@.str.5 = [17 x i8] c"\09\09\09\09%d - Retour\0A\00"
define i32 @menuPrincipalAcheteur() {
%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 ([37 x i8], [37 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 ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 3)
%10 = load i32, i32* @stdout
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([17 x i8], [17 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 = [37 x i8] c"\09\09\09\09BIENVENUE SUR MUVI - Acheteur\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 = [19 x i8] c"\09\09\09\09%d - Encherir\0A\00"
@.str.5 = [17 x i8] c"\09\09\09\09%d - Retour\0A\00"
define i32 @menuPrincipalAcheteur() {
%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 ([37 x i8], [37 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 ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 3)
%10 = load i32, i32* @stdout
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 0)
%12 = tail call i32 (...) @saisieChar()
%13 = add nsw i32 %12, -48
ret i32 %13
}