#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*/ credit();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ high();
int lireLettre();
int /*<<< orphan*/ menu();
int /*<<< orphan*/ play();
int /*<<< orphan*/ play2();
int /*<<< orphan*/ system(char *);
int /*<<< orphan*/ titre();
void debut() {
  int choise = 0;
  system("clear");
  titre();
  menu();
  choise = lireLettre();
  switch (choise) {
  case 49:
    credit();
    break;
  case 50:
    play();
    break;
  case 51:
    play2();
    break;
  case 52:
    high();
    break;
  case 53:
    system("clear");
    exit(0);
    break;
  }
}


x86 assembly (clang, -O0):
<debut>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe6e(%rip),%rdi
call   1050 <system@plt>
xor    %eax,%eax
mov    %al,-0x11(%rbp)
call   1090 <titre@plt>
mov    -0x11(%rbp),%al
call   1040 <menu@plt>
mov    -0x11(%rbp),%al
call   1060 <lireLettre@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffcf,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x4,%eax
ja     1234 <debut+0xa4>
mov    -0x10(%rbp),%rax
lea    0xe18(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   10a0 <credit@plt>
jmp    1234 <debut+0xa4>
mov    $0x0,%al
call   1070 <play@plt>
jmp    1234 <debut+0xa4>
mov    $0x0,%al
call   1080 <play2@plt>
jmp    1234 <debut+0xa4>
mov    $0x0,%al
call   1030 <high@plt>
jmp    1234 <debut+0xa4>
lea    0xdec(%rip),%rdi
call   1050 <system@plt>
xor    %edi,%edi
call   10b0 <exit@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<debut>:
push   %rax
lea    0xe7c(%rip),%rdi
call   1050 <system@plt>
xor    %eax,%eax
call   1090 <titre@plt>
xor    %eax,%eax
call   1040 <menu@plt>
xor    %eax,%eax
call   1060 <lireLettre@plt>
add    $0xffffffcf,%eax
cmp    $0x4,%eax
ja     11e2 <debut+0x52>
lea    0xe3f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %eax,%eax
pop    %rcx
jmp    10a0 <credit@plt>
xor    %eax,%eax
pop    %rcx
jmp    1080 <play2@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <high@plt>
pop    %rax
ret
xor    %eax,%eax
pop    %rcx
jmp    1070 <play@plt>
lea    0xe21(%rip),%rdi
call   1050 <system@plt>
xor    %edi,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
define void @debut() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @titre()
%4 = call i32 (...) @menu()
%5 = call i32 (...) @lireLettre()
store i32 %5, i32* %1
%6 = load i32, i32* %1
switch i32 %6, label %18 [
i32 49, label %7
i32 50, label %9
i32 51, label %11
i32 52, label %13
i32 53, label %15
]
7: ; preds = %0
%8 = call i32 (...) @credit()
br label %18
9: ; preds = %0
%10 = call i32 (...) @play()
br label %18
11: ; preds = %0
%12 = call i32 (...) @play2()
br label %18
13: ; preds = %0
%14 = call i32 (...) @high()
br label %18
15: ; preds = %0
%16 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%17 = call i32 @exit(i32 0)
unreachable
18: ; preds = %0, %13, %11, %9, %7
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
define void @debut() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @titre()
%3 = tail call i32 (...) @menu()
%4 = tail call i32 (...) @lireLettre()
switch i32 %4, label %16 [
i32 49, label %5
i32 50, label %7
i32 51, label %9
i32 52, label %11
i32 53, label %13
]
5: ; preds = %0
%6 = tail call i32 (...) @credit()
br label %16
7: ; preds = %0
%8 = tail call i32 (...) @play()
br label %16
9: ; preds = %0
%10 = tail call i32 (...) @play2()
br label %16
11: ; preds = %0
%12 = tail call i32 (...) @high()
br label %16
13: ; preds = %0
%14 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%15 = tail call i32 @exit(i32 0)
unreachable
16: ; preds = %0, %11, %9, %7, %5
ret void
}