#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*/ coloration(char *, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ system(char *);
int /*<<< orphan*/ titre(char *, int);
void afficherMenuPrincipal(void) {
  system("clear");
  titre("Menu principal", 32);
  printf("Que souhaitez-vous faire ?\n\n");
  printf("\t1 - ");
  coloration("Sauvegarde\n\n", 34);
  printf("\t2 - ");
  coloration("Highscore\n\n", 34);
  printf("\t3 - ");
  coloration("Aide\n\n", 32);
  printf("\t4 - ");
  coloration("Quitter\n\n", 31);
}


x86 assembly (clang, -O0):
<afficherMenuPrincipal>:
push   %rbp
mov    %rsp,%rbp
lea    0xeb5(%rip),%rdi
call   1030 <system@plt>
lea    0xeaf(%rip),%rdi
mov    $0x20,%esi
call   1060 <titre@plt>
lea    0xead(%rip),%rdi
call   1040 <printf@plt>
lea    0xebe(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb8(%rip),%rdi
mov    $0x22,%esi
call   1050 <coloration@plt>
lea    0xeb4(%rip),%rdi
call   1040 <printf@plt>
lea    0xeae(%rip),%rdi
mov    $0x22,%esi
call   1050 <coloration@plt>
lea    0xea9(%rip),%rdi
call   1040 <printf@plt>
lea    0xea3(%rip),%rdi
mov    $0x20,%esi
call   1050 <coloration@plt>
lea    0xe99(%rip),%rdi
call   1040 <printf@plt>
lea    0xe93(%rip),%rdi
mov    $0x1f,%esi
call   1050 <coloration@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<afficherMenuPrincipal>:
push   %rax
lea    0xea8(%rip),%rdi
call   1040 <system@plt>
lea    0xea2(%rip),%rdi
mov    $0x20,%esi
call   1070 <titre@plt>
lea    0xee2(%rip),%rdi
call   1030 <puts@plt>
lea    0xe94(%rip),%rdi
call   1050 <printf@plt>
lea    0xe8e(%rip),%rdi
mov    $0x22,%esi
call   1060 <coloration@plt>
lea    0xe8a(%rip),%rdi
call   1050 <printf@plt>
lea    0xe84(%rip),%rdi
mov    $0x22,%esi
call   1060 <coloration@plt>
lea    0xe7f(%rip),%rdi
call   1050 <printf@plt>
lea    0xe79(%rip),%rdi
mov    $0x20,%esi
call   1060 <coloration@plt>
lea    0xe6f(%rip),%rdi
call   1050 <printf@plt>
lea    0xe69(%rip),%rdi
mov    $0x1f,%esi
pop    %rax
jmp    1060 <coloration@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [15 x i8] c"Menu principal\00"
@.str.2 = [29 x i8] c"Que souhaitez-vous faire ?\0A\0A\00"
@.str.3 = [6 x i8] c"\091 - \00"
@.str.4 = [13 x i8] c"Sauvegarde\0A\0A\00"
@.str.5 = [6 x i8] c"\092 - \00"
@.str.6 = [12 x i8] c"Highscore\0A\0A\00"
@.str.7 = [6 x i8] c"\093 - \00"
@.str.8 = [7 x i8] c"Aide\0A\0A\00"
@.str.9 = [6 x i8] c"\094 - \00"
@.str.10 = [10 x i8] c"Quitter\0A\0A\00"
define void @afficherMenuPrincipal() {
%1 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @titre(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 32)
%3 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @coloration(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 34)
%6 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @coloration(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 34)
%8 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @coloration(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 32)
%10 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @coloration(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), i32 31)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.1 = [15 x i8] c"Menu principal\00"
@.str.3 = [6 x i8] c"\091 - \00"
@.str.4 = [13 x i8] c"Sauvegarde\0A\0A\00"
@.str.5 = [6 x i8] c"\092 - \00"
@.str.6 = [12 x i8] c"Highscore\0A\0A\00"
@.str.7 = [6 x i8] c"\093 - \00"
@.str.8 = [7 x i8] c"Aide\0A\0A\00"
@.str.9 = [6 x i8] c"\094 - \00"
@.str.10 = [10 x i8] c"Quitter\0A\0A\00"
@str = [28 x i8] c"Que souhaitez-vous faire ?\0A\00"
define void @afficherMenuPrincipal() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @titre(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 32)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @coloration(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 34)
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @coloration(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 34)
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @coloration(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 32)
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @coloration(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), i32 31)
ret void
}