#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 menuPrincipalVendeur() {
  system("clear");
  fprintf(stdout, "\t\t\t\tBIENVENUE SUR MUVI - Vendeur\n\n\n");
  fprintf(stdout, "\t\t\t\t%d - Vendre un objet\n", 1);
  fprintf(stdout, "\t\t\t\t%d - Voir vos objets en vente\n", 2);
  fprintf(stdout, "\t\t\t\t%d - Retour\n", 0);
  return saisieChar() - '0';
}


x86 assembly (clang, -O0):
<menuPrincipalVendeur>:
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    0xec3(%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    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):
<menuPrincipalVendeur>:
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    0xecd(%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    0xee0(%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 = [36 x i8] c"\09\09\09\09BIENVENUE SUR MUVI - Vendeur\0A\0A\0A\00"
@.str.2 = [26 x i8] c"\09\09\09\09%d - Vendre un objet\0A\00"
@.str.3 = [35 x i8] c"\09\09\09\09%d - Voir vos objets en vente\0A\00"
@.str.4 = [17 x i8] c"\09\09\09\09%d - Retour\0A\00"
define i32 @menuPrincipalVendeur() {
%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 ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%4 = load i32, i32* @stdout
%5 = call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([26 x i8], [26 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 ([35 x i8], [35 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 = [36 x i8] c"\09\09\09\09BIENVENUE SUR MUVI - Vendeur\0A\0A\0A\00"
@.str.2 = [26 x i8] c"\09\09\09\09%d - Vendre un objet\0A\00"
@.str.3 = [35 x i8] c"\09\09\09\09%d - Voir vos objets en vente\0A\00"
@.str.4 = [17 x i8] c"\09\09\09\09%d - Retour\0A\00"
define i32 @menuPrincipalVendeur() {
%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 ([36 x i8], [36 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 ([26 x i8], [26 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 ([35 x i8], [35 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
}