#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 *, char *);
int /*<<< orphan*/ printf(char *);
void afficherLegendePacman(void) {
  printf("Legende : \n\n");
  printf("\t- ");
  coloration(">", "32");
  printf(", ");
  coloration("<", "32");
  printf(", ");
  coloration("^", "32");
  printf(", ");
  coloration("v", "32");
  printf(" : vous\n");
  printf("\t- ");
  coloration("$", "31");
  printf(", ");
  coloration("$", "36");
  printf(", ");
  printf("$");
  printf(", ");
  coloration("$", "33");
  printf(", ");
  coloration("$", "35");
  printf(", ");
  coloration("$", "32");
  printf(" : fantome\n");
  printf("\t- ");
  coloration(".", "33");
  printf(" : pac-gomme\n");
  printf("\t- ");
  coloration("@", "33");
  printf(" : bonus\n");
  printf("\t- ");
  coloration("#", "34");
  printf(" : mur\n\n");
}


x86 assembly (clang, -O0):
<afficherLegendePacman>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
lea    0xec9(%rip),%rsi
call   1040 <coloration@plt>
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb7(%rip),%rdi
lea    0xeaa(%rip),%rsi
call   1040 <coloration@plt>
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
lea    0xe9a(%rip),%rdi
lea    0xe8b(%rip),%rsi
call   1040 <coloration@plt>
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
lea    0xe7d(%rip),%rdi
lea    0xe6c(%rip),%rsi
call   1040 <coloration@plt>
lea    0xe6c(%rip),%rdi
call   1030 <printf@plt>
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
lea    0xe5d(%rip),%rdi
lea    0xe58(%rip),%rsi
call   1040 <coloration@plt>
lea    0xe38(%rip),%rdi
call   1030 <printf@plt>
lea    0xe3e(%rip),%rdi
lea    0xe3c(%rip),%rsi
call   1040 <coloration@plt>
lea    0xe19(%rip),%rdi
call   1030 <printf@plt>
lea    0xe1f(%rip),%rdi
call   1030 <printf@plt>
lea    0xe01(%rip),%rdi
call   1030 <printf@plt>
lea    0xe07(%rip),%rdi
lea    0xe08(%rip),%rsi
call   1040 <coloration@plt>
lea    0xde2(%rip),%rdi
call   1030 <printf@plt>
lea    0xde8(%rip),%rdi
lea    0xdec(%rip),%rsi
call   1040 <coloration@plt>
lea    0xdc3(%rip),%rdi
call   1030 <printf@plt>
lea    0xdc9(%rip),%rdi
lea    0xdad(%rip),%rsi
call   1040 <coloration@plt>
lea    0xdc4(%rip),%rdi
call   1030 <printf@plt>
lea    0xd8f(%rip),%rdi
call   1030 <printf@plt>
lea    0xdb8(%rip),%rdi
lea    0xd9f(%rip),%rsi
call   1040 <coloration@plt>
lea    0xda7(%rip),%rdi
call   1030 <printf@plt>
lea    0xd64(%rip),%rdi
call   1030 <printf@plt>
lea    0xd9d(%rip),%rdi
lea    0xd74(%rip),%rsi
call   1040 <coloration@plt>
lea    0xd8c(%rip),%rdi
call   1030 <printf@plt>
lea    0xd39(%rip),%rdi
call   1030 <printf@plt>
lea    0xd7e(%rip),%rdi
lea    0xd79(%rip),%rsi
call   1040 <coloration@plt>
lea    0xd70(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<afficherLegendePacman>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
lea    0xed9(%rip),%rdi
call   1040 <puts@plt>
lea    0xea4(%rip),%r14
mov    %r14,%rdi
call   1050 <printf@plt>
lea    0xe99(%rip),%rdi
lea    0xe94(%rip),%r15
mov    %r15,%rsi
call   1060 <coloration@plt>
lea    0xe88(%rip),%rbx
mov    %rbx,%rdi
call   1050 <printf@plt>
lea    0xe7c(%rip),%rdi
mov    %r15,%rsi
call   1060 <coloration@plt>
mov    %rbx,%rdi
call   1050 <printf@plt>
lea    0xe67(%rip),%rdi
mov    %r15,%rsi
call   1060 <coloration@plt>
mov    %rbx,%rdi
call   1050 <printf@plt>
lea    0xe52(%rip),%rdi
mov    %r15,%rsi
call   1060 <coloration@plt>
lea    0xe68(%rip),%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
call   1050 <printf@plt>
lea    0xe31(%rip),%r13
lea    0xe2c(%rip),%rsi
mov    %r13,%rdi
call   1060 <coloration@plt>
mov    %rbx,%rdi
call   1050 <printf@plt>
lea    0xe18(%rip),%rsi
mov    %r13,%rdi
call   1060 <coloration@plt>
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    $0x24,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   1050 <printf@plt>
lea    0xdf2(%rip),%r12
mov    %r13,%rdi
mov    %r12,%rsi
call   1060 <coloration@plt>
mov    %rbx,%rdi
call   1050 <printf@plt>
lea    0xddb(%rip),%rsi
mov    %r13,%rdi
call   1060 <coloration@plt>
mov    %rbx,%rdi
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %r15,%rsi
call   1060 <coloration@plt>
lea    0xdd9(%rip),%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
call   1050 <printf@plt>
lea    0xda8(%rip),%rdi
mov    %r12,%rsi
call   1060 <coloration@plt>
lea    0xdc1(%rip),%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
call   1050 <printf@plt>
lea    0xd87(%rip),%rdi
mov    %r12,%rsi
call   1060 <coloration@plt>
lea    0xdab(%rip),%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
call   1050 <printf@plt>
lea    0xd66(%rip),%rdi
lea    0xd61(%rip),%rsi
call   1060 <coloration@plt>
lea    0xd8d(%rip),%rdi
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"Legende : \0A\0A\00"
@.str.1 = [4 x i8] c"\09- \00"
@.str.2 = [2 x i8] c">\00"
@.str.3 = [3 x i8] c"32\00"
@.str.4 = [3 x i8] c", \00"
@.str.5 = [2 x i8] c"<\00"
@.str.6 = [2 x i8] c"^\00"
@.str.7 = [2 x i8] c"v\00"
@.str.8 = [9 x i8] c" : vous\0A\00"
@.str.9 = [2 x i8] c"$\00"
@.str.10 = [3 x i8] c"31\00"
@.str.11 = [3 x i8] c"36\00"
@.str.12 = [3 x i8] c"33\00"
@.str.13 = [3 x i8] c"35\00"
@.str.14 = [12 x i8] c" : fantome\0A\00"
@.str.15 = [2 x i8] c".\00"
@.str.16 = [14 x i8] c" : pac-gomme\0A\00"
@.str.17 = [2 x i8] c"@\00"
@.str.18 = [10 x i8] c" : bonus\0A\00"
@.str.19 = [2 x i8] c"#\00"
@.str.20 = [3 x i8] c"34\00"
@.str.21 = [9 x i8] c" : mur\0A\0A\00"
define void @afficherLegendePacman() {
%1 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%18 = call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%20 = call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%22 = call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%25 = call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%28 = call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%31 = call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0))
%32 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [4 x i8] c"\09- \00"
@.str.2 = [2 x i8] c">\00"
@.str.3 = [3 x i8] c"32\00"
@.str.4 = [3 x i8] c", \00"
@.str.5 = [2 x i8] c"<\00"
@.str.6 = [2 x i8] c"^\00"
@.str.7 = [2 x i8] c"v\00"
@.str.9 = [2 x i8] c"$\00"
@.str.10 = [3 x i8] c"31\00"
@.str.11 = [3 x i8] c"36\00"
@.str.12 = [3 x i8] c"33\00"
@.str.13 = [3 x i8] c"35\00"
@.str.15 = [2 x i8] c".\00"
@.str.17 = [2 x i8] c"@\00"
@.str.19 = [2 x i8] c"#\00"
@.str.20 = [3 x i8] c"34\00"
@str = [12 x i8] c"Legende : \0A\00"
@str.22 = [8 x i8] c" : vous\00"
@str.23 = [11 x i8] c" : fantome\00"
@str.24 = [13 x i8] c" : pac-gomme\00"
@str.25 = [9 x i8] c" : bonus\00"
@str.26 = [8 x i8] c" : mur\0A\00"
define void @afficherLegendePacman() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%12 = tail call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%13 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%14 = tail call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%15 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%16 = tail call i32 @putchar(i32 36)
%17 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%18 = tail call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%19 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%20 = tail call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%21 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%22 = tail call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.23, i64 0, i64 0))
%24 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%25 = tail call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.24, i64 0, i64 0))
%27 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%28 = tail call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.25, i64 0, i64 0))
%30 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%31 = tail call i32 @coloration(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0))
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.26, i64 0, i64 0))
ret void
}