#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 convertCase(char);
int getCaseColor(char);
int /*<<< orphan*/ goToXY(int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ resetColor();
int /*<<< orphan*/ setColor(int);
void drawPanel() {
  setColor(8);
  goToXY(26, 4);
  setColor(getCaseColor('*'));
  printf("%c", convertCase('*'));
  setColor(8);
  printf(" %s\n", "Personnage");
  goToXY(26, 5);
  setColor(getCaseColor('W'));
  printf("%c", convertCase('W'));
  setColor(8);
  printf(" %s\n", "Mur");
  goToXY(26, 6);
  setColor(getCaseColor('D'));
  printf("%c", convertCase('D'));
  setColor(8);
  printf(" %s\n", "Porte de sortie");
  goToXY(26, 7);
  setColor(getCaseColor('o'));
  printf("%c", convertCase('o'));
  setColor(8);
  printf(" %s\n", "Glace fine");
  goToXY(26, 8);
  setColor(getCaseColor('O'));
  printf("%c", convertCase('O'));
  setColor(8);
  printf(" %s\n", "Glace epaisse");
  goToXY(26, 9);
  setColor(getCaseColor('i'));
  printf("%c", convertCase('i'));
  setColor(8);
  printf(" %s\n", "Glace glissante");
  goToXY(26, 10);
  setColor(getCaseColor('w'));
  printf("%c", convertCase('w'));
  setColor(8);
  printf(" %s\n", "Eau");
  goToXY(26, 11);
  setColor(getCaseColor('L'));
  printf("%c", convertCase('L'));
  setColor(8);
  printf(" %s\n", "Potion de legerete");
  goToXY(26, 12);
  setColor(getCaseColor('S'));
  printf("%c", convertCase('S'));
  setColor(8);
  printf(" %s\n", "Bonus de score");
  goToXY(26, 13);
  setColor(getCaseColor('T'));
  printf("%c", convertCase('T'));
  setColor(8);
  printf(" %s\n", "Tunnel");
  goToXY(26, 14);
  setColor(getCaseColor('R'));
  printf("%c", convertCase('R'));
  setColor(8);
  printf(" %s\n", "Tondeuse");
  goToXY(26, 15);
  setColor(getCaseColor('Z'));
  printf("%c", convertCase('Z'));
  setColor(8);
  printf(" %s\n", "Trou");
  goToXY(26, 16);
  setColor(getCaseColor('N'));
  printf("%c", convertCase('N'));
  setColor(8);
  printf(" %s\n", "Ennemi");
  goToXY(26, 18);
  printf("%s %4s\n", "(p)", "Pause");
  goToXY(26, 19);
  printf("%s %4s\n", "(r)", "Recommencer le niveau");
  goToXY(26, 20);
  printf("%s %2s\n", "(q)", "Quitter");
  resetColor();
}


x86 assembly (clang, -O0):
<drawPanel>:
push   %rbp
mov    %rsp,%rbp
mov    $0x8,%edi
call   1080 <setColor@plt>
mov    $0x1a,%edi
mov    $0x4,%esi
call   1040 <goToXY@plt>
mov    $0x2a,%edi
call   1060 <getCaseColor@plt>
mov    %eax,%edi
call   1080 <setColor@plt>
mov    $0x2a,%edi
call   1070 <convertCase@plt>
mov    %eax,%esi
lea    0xe5f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x8,%edi
call   1080 <setColor@plt>
lea    0xe4a(%rip),%rdi
lea    0xe48(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1a,%edi
mov    $0x5,%esi
call   1040 <goToXY@plt>
mov    $0x57,%edi
call   1060 <getCaseColor@plt>
mov    %eax,%edi
call   1080 <setColor@plt>
mov    $0x57,%edi
call   1070 <convertCase@plt>
mov    %eax,%esi
lea    0xe06(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x8,%edi
call   1080 <setColor@plt>
lea    0xdf1(%rip),%rdi
lea    0xdfa(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1a,%edi
mov    $0x6,%esi
call   1040 <goToXY@plt>
mov    $0x44,%edi
call   1060 <getCaseColor@plt>
mov    %eax,%edi
call   1080 <setColor@plt>
mov    $0x44,%edi
call   1070 <convertCase@plt>
mov    %eax,%esi
lea    0xdad(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x8,%edi
call   1080 <setColor@plt>
lea    0xd98(%rip),%rdi
lea    0xda5(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1a,%edi
mov    $0x7,%esi
call   1040 <goToXY@plt>
mov    $0x6f,%edi
call   1060 <getCaseColor@plt>
mov    %eax,%edi
call   1080 <setColor@plt>
mov    $0x6f,%edi
call   1070 <convertCase@plt>
mov    %eax,%esi
lea    0xd54(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x8,%edi
call   1080 <setColor@plt>
lea    0xd3f(%rip),%rdi
lea    0xd5c(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1a,%edi
mov    $0x8,%esi
call   1040 <goToXY@plt>
mov    $0x4f,%edi
call   1060 <getCaseColor@plt>
mov    %eax,%edi
call   1080 <setColor@plt>
mov    $0x4f,%edi
call   1070 <convertCase@plt>
mov    %eax,%esi
lea    0xcfb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x8,%edi
call   1080 <setColor@plt>
lea    0xce6(%rip),%rdi
lea    0xd0e(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1a,%edi
mov    $0x9,%esi
call   1040 <goToXY@plt>
mov    $0x69,%edi
call   1060 <getCaseColor@plt>
mov    %eax,%edi
call   1080 <setColor@plt>
mov    $0x69,%edi
call   1070 <convertCase@plt>
mov    %eax,%esi
lea    0xca2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x8,%edi
call   1080 <setColor@plt>
lea    0xc8d(%rip),%rdi
lea    0xcc3(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1a,%edi
mov    $0xa,%esi
call   1040 <goToXY@plt>
mov    $0x77,%edi
call   1060 <getCaseColor@plt>
mov    %eax,%edi
call   1080 <setColor@plt>
mov    $0x77,%edi
call   1070 <convertCase@plt>
mov    %eax,%esi
lea    0xc49(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x8,%edi
call   1080 <setColor@plt>
lea    0xc34(%rip),%rdi
lea    0xc7a(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1a,%edi
mov    $0xb,%esi
call   1040 <goToXY@plt>
mov    $0x4c,%edi
call   1060 <getCaseColor@plt>
mov    %eax,%edi
call   1080 <setColor@plt>
mov    $0x4c,%edi
call   1070 <convertCase@plt>
mov    %eax,%esi
lea    0xbf0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x8,%edi
call   1080 <setColor@plt>
lea    0xbdb(%rip),%rdi
lea    0xc25(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1a,%edi
mov    $0xc,%esi
call   1040 <goToXY@plt>
mov    $0x53,%edi
call   1060 <getCaseColor@plt>
mov    %eax,%edi
call   1080 <setColor@plt>
mov    $0x53,%edi
call   1070 <convertCase@plt>
mov    %eax,%esi
lea    0xb97(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x8,%edi
call   1080 <setColor@plt>
lea    0xb82(%rip),%rdi
lea    0xbdf(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1a,%edi
mov    $0xd,%esi
call   1040 <goToXY@plt>
mov    $0x54,%edi
call   1060 <getCaseColor@plt>
mov    %eax,%edi
call   1080 <setColor@plt>
mov    $0x54,%edi
call   1070 <convertCase@plt>
mov    %eax,%esi
lea    0xb3e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x8,%edi
call   1080 <setColor@plt>
lea    0xb29(%rip),%rdi
lea    0xb95(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1a,%edi
mov    $0xe,%esi
call   1040 <goToXY@plt>
mov    $0x52,%edi
call   1060 <getCaseColor@plt>
mov    %eax,%edi
call   1080 <setColor@plt>
mov    $0x52,%edi
call   1070 <convertCase@plt>
mov    %eax,%esi
lea    0xae5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x8,%edi
call   1080 <setColor@plt>
lea    0xad0(%rip),%rdi
lea    0xb43(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1a,%edi
mov    $0xf,%esi
call   1040 <goToXY@plt>
mov    $0x5a,%edi
call   1060 <getCaseColor@plt>
mov    %eax,%edi
call   1080 <setColor@plt>
mov    $0x5a,%edi
call   1070 <convertCase@plt>
mov    %eax,%esi
lea    0xa8c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x8,%edi
call   1080 <setColor@plt>
lea    0xa77(%rip),%rdi
lea    0xaf3(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1a,%edi
mov    $0x10,%esi
call   1040 <goToXY@plt>
mov    $0x4e,%edi
call   1060 <getCaseColor@plt>
mov    %eax,%edi
call   1080 <setColor@plt>
mov    $0x4e,%edi
call   1070 <convertCase@plt>
mov    %eax,%esi
lea    0xa33(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x8,%edi
call   1080 <setColor@plt>
lea    0xa1e(%rip),%rdi
lea    0xa9f(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1a,%edi
mov    $0x12,%esi
call   1040 <goToXY@plt>
lea    0xa89(%rip),%rdi
lea    0xa8a(%rip),%rsi
lea    0xa87(%rip),%rdx
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1a,%edi
mov    $0x13,%esi
call   1040 <goToXY@plt>
lea    0xa5e(%rip),%rdi
lea    0xa69(%rip),%rsi
lea    0xa66(%rip),%rdx
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1a,%edi
mov    $0x14,%esi
call   1040 <goToXY@plt>
lea    0xa5f(%rip),%rdi
lea    0xa60(%rip),%rsi
lea    0xa5d(%rip),%rdx
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <resetColor@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawPanel>:
push   %rbx
mov    $0x8,%edi
call   1090 <setColor@plt>
mov    $0x1a,%edi
mov    $0x4,%esi
call   1050 <goToXY@plt>
mov    $0x2a,%edi
call   1070 <getCaseColor@plt>
mov    %eax,%edi
call   1090 <setColor@plt>
mov    $0x2a,%edi
call   1080 <convertCase@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    $0x8,%edi
call   1090 <setColor@plt>
lea    0xe43(%rip),%rbx
lea    0xe41(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1a,%edi
mov    $0x5,%esi
call   1050 <goToXY@plt>
mov    $0x57,%edi
call   1070 <getCaseColor@plt>
mov    %eax,%edi
call   1090 <setColor@plt>
mov    $0x57,%edi
call   1080 <convertCase@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    $0x8,%edi
call   1090 <setColor@plt>
lea    0xe00(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1a,%edi
mov    $0x6,%esi
call   1050 <goToXY@plt>
mov    $0x44,%edi
call   1070 <getCaseColor@plt>
mov    %eax,%edi
call   1090 <setColor@plt>
mov    $0x44,%edi
call   1080 <convertCase@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    $0x8,%edi
call   1090 <setColor@plt>
lea    0xdb8(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1a,%edi
mov    $0x7,%esi
call   1050 <goToXY@plt>
mov    $0x6f,%edi
call   1070 <getCaseColor@plt>
mov    %eax,%edi
call   1090 <setColor@plt>
mov    $0x6f,%edi
call   1080 <convertCase@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    $0x8,%edi
call   1090 <setColor@plt>
lea    0xd7c(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1a,%edi
mov    $0x8,%esi
call   1050 <goToXY@plt>
mov    $0x4f,%edi
call   1070 <getCaseColor@plt>
mov    %eax,%edi
call   1090 <setColor@plt>
mov    $0x4f,%edi
call   1080 <convertCase@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    $0x8,%edi
call   1090 <setColor@plt>
lea    0xd3b(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1a,%edi
mov    $0x9,%esi
call   1050 <goToXY@plt>
mov    $0x69,%edi
call   1070 <getCaseColor@plt>
mov    %eax,%edi
call   1090 <setColor@plt>
mov    $0x69,%edi
call   1080 <convertCase@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    $0x8,%edi
call   1090 <setColor@plt>
lea    0xcfd(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1a,%edi
mov    $0xa,%esi
call   1050 <goToXY@plt>
mov    $0x77,%edi
call   1070 <getCaseColor@plt>
mov    %eax,%edi
call   1090 <setColor@plt>
mov    $0x77,%edi
call   1080 <convertCase@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    $0x8,%edi
call   1090 <setColor@plt>
lea    0xcc1(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1a,%edi
mov    $0xb,%esi
call   1050 <goToXY@plt>
mov    $0x4c,%edi
call   1070 <getCaseColor@plt>
mov    %eax,%edi
call   1090 <setColor@plt>
mov    $0x4c,%edi
call   1080 <convertCase@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    $0x8,%edi
call   1090 <setColor@plt>
lea    0xc79(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1a,%edi
mov    $0xc,%esi
call   1050 <goToXY@plt>
mov    $0x53,%edi
call   1070 <getCaseColor@plt>
mov    %eax,%edi
call   1090 <setColor@plt>
mov    $0x53,%edi
call   1080 <convertCase@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    $0x8,%edi
call   1090 <setColor@plt>
lea    0xc40(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1a,%edi
mov    $0xd,%esi
call   1050 <goToXY@plt>
mov    $0x54,%edi
call   1070 <getCaseColor@plt>
mov    %eax,%edi
call   1090 <setColor@plt>
mov    $0x54,%edi
call   1080 <convertCase@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    $0x8,%edi
call   1090 <setColor@plt>
lea    0xc03(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1a,%edi
mov    $0xe,%esi
call   1050 <goToXY@plt>
mov    $0x52,%edi
call   1070 <getCaseColor@plt>
mov    %eax,%edi
call   1090 <setColor@plt>
mov    $0x52,%edi
call   1080 <convertCase@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    $0x8,%edi
call   1090 <setColor@plt>
lea    0xbbe(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1a,%edi
mov    $0xf,%esi
call   1050 <goToXY@plt>
mov    $0x5a,%edi
call   1070 <getCaseColor@plt>
mov    %eax,%edi
call   1090 <setColor@plt>
mov    $0x5a,%edi
call   1080 <convertCase@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    $0x8,%edi
call   1090 <setColor@plt>
lea    0xb7b(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1a,%edi
mov    $0x10,%esi
call   1050 <goToXY@plt>
mov    $0x4e,%edi
call   1070 <getCaseColor@plt>
mov    %eax,%edi
call   1090 <setColor@plt>
mov    $0x4e,%edi
call   1080 <convertCase@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    $0x8,%edi
call   1090 <setColor@plt>
lea    0xb34(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1a,%edi
mov    $0x12,%esi
call   1050 <goToXY@plt>
lea    0xb1b(%rip),%rbx
lea    0xb1c(%rip),%rsi
lea    0xb19(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1a,%edi
mov    $0x13,%esi
call   1050 <goToXY@plt>
lea    0xaff(%rip),%rsi
lea    0xafc(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1a,%edi
mov    $0x14,%esi
call   1050 <goToXY@plt>
lea    0xaf2(%rip),%rdi
lea    0xaf3(%rip),%rsi
lea    0xaf0(%rip),%rdx
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
pop    %rbx
jmp    1040 <resetColor@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
@.str.1 = [5 x i8] c" %s\0A\00"
@.str.2 = [11 x i8] c"Personnage\00"
@.str.3 = [4 x i8] c"Mur\00"
@.str.4 = [16 x i8] c"Porte de sortie\00"
@.str.5 = [11 x i8] c"Glace fine\00"
@.str.6 = [14 x i8] c"Glace epaisse\00"
@.str.7 = [16 x i8] c"Glace glissante\00"
@.str.8 = [4 x i8] c"Eau\00"
@.str.9 = [19 x i8] c"Potion de legerete\00"
@.str.10 = [15 x i8] c"Bonus de score\00"
@.str.11 = [7 x i8] c"Tunnel\00"
@.str.12 = [9 x i8] c"Tondeuse\00"
@.str.13 = [5 x i8] c"Trou\00"
@.str.14 = [7 x i8] c"Ennemi\00"
@.str.15 = [8 x i8] c"%s %4s\0A\00"
@.str.16 = [4 x i8] c"(p)\00"
@.str.17 = [6 x i8] c"Pause\00"
@.str.18 = [4 x i8] c"(r)\00"
@.str.19 = [22 x i8] c"Recommencer le niveau\00"
@.str.20 = [8 x i8] c"%s %2s\0A\00"
@.str.21 = [4 x i8] c"(q)\00"
@.str.22 = [8 x i8] c"Quitter\00"
define void @drawPanel() {
%1 = call i32 @setColor(i32 8)
%2 = call i32 @goToXY(i32 26, i32 4)
%3 = call i32 @getCaseColor(i8 signext 42)
%4 = call i32 @setColor(i32 %3)
%5 = call i32 @convertCase(i8 signext 42)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = call i32 @setColor(i32 8)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @goToXY(i32 26, i32 5)
%10 = call i32 @getCaseColor(i8 signext 87)
%11 = call i32 @setColor(i32 %10)
%12 = call i32 @convertCase(i8 signext 87)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = call i32 @setColor(i32 8)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%16 = call i32 @goToXY(i32 26, i32 6)
%17 = call i32 @getCaseColor(i8 signext 68)
%18 = call i32 @setColor(i32 %17)
%19 = call i32 @convertCase(i8 signext 68)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %19)
%21 = call i32 @setColor(i32 8)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%23 = call i32 @goToXY(i32 26, i32 7)
%24 = call i32 @getCaseColor(i8 signext 111)
%25 = call i32 @setColor(i32 %24)
%26 = call i32 @convertCase(i8 signext 111)
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %26)
%28 = call i32 @setColor(i32 8)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%30 = call i32 @goToXY(i32 26, i32 8)
%31 = call i32 @getCaseColor(i8 signext 79)
%32 = call i32 @setColor(i32 %31)
%33 = call i32 @convertCase(i8 signext 79)
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %33)
%35 = call i32 @setColor(i32 8)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%37 = call i32 @goToXY(i32 26, i32 9)
%38 = call i32 @getCaseColor(i8 signext 105)
%39 = call i32 @setColor(i32 %38)
%40 = call i32 @convertCase(i8 signext 105)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %40)
%42 = call i32 @setColor(i32 8)
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%44 = call i32 @goToXY(i32 26, i32 10)
%45 = call i32 @getCaseColor(i8 signext 119)
%46 = call i32 @setColor(i32 %45)
%47 = call i32 @convertCase(i8 signext 119)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %47)
%49 = call i32 @setColor(i32 8)
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%51 = call i32 @goToXY(i32 26, i32 11)
%52 = call i32 @getCaseColor(i8 signext 76)
%53 = call i32 @setColor(i32 %52)
%54 = call i32 @convertCase(i8 signext 76)
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %54)
%56 = call i32 @setColor(i32 8)
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%58 = call i32 @goToXY(i32 26, i32 12)
%59 = call i32 @getCaseColor(i8 signext 83)
%60 = call i32 @setColor(i32 %59)
%61 = call i32 @convertCase(i8 signext 83)
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %61)
%63 = call i32 @setColor(i32 8)
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0))
%65 = call i32 @goToXY(i32 26, i32 13)
%66 = call i32 @getCaseColor(i8 signext 84)
%67 = call i32 @setColor(i32 %66)
%68 = call i32 @convertCase(i8 signext 84)
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %68)
%70 = call i32 @setColor(i32 8)
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%72 = call i32 @goToXY(i32 26, i32 14)
%73 = call i32 @getCaseColor(i8 signext 82)
%74 = call i32 @setColor(i32 %73)
%75 = call i32 @convertCase(i8 signext 82)
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %75)
%77 = call i32 @setColor(i32 8)
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0))
%79 = call i32 @goToXY(i32 26, i32 15)
%80 = call i32 @getCaseColor(i8 signext 90)
%81 = call i32 @setColor(i32 %80)
%82 = call i32 @convertCase(i8 signext 90)
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %82)
%84 = call i32 @setColor(i32 8)
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%86 = call i32 @goToXY(i32 26, i32 16)
%87 = call i32 @getCaseColor(i8 signext 78)
%88 = call i32 @setColor(i32 %87)
%89 = call i32 @convertCase(i8 signext 78)
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %89)
%91 = call i32 @setColor(i32 8)
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%93 = call i32 @goToXY(i32 26, i32 18)
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%95 = call i32 @goToXY(i32 26, i32 19)
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0))
%97 = call i32 @goToXY(i32 26, i32 20)
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0))
%99 = call i32 (...) @resetColor()
ret void
}

LLVM IR (-O2):
@.str.1 = [5 x i8] c" %s\0A\00"
@.str.2 = [11 x i8] c"Personnage\00"
@.str.3 = [4 x i8] c"Mur\00"
@.str.4 = [16 x i8] c"Porte de sortie\00"
@.str.5 = [11 x i8] c"Glace fine\00"
@.str.6 = [14 x i8] c"Glace epaisse\00"
@.str.7 = [16 x i8] c"Glace glissante\00"
@.str.8 = [4 x i8] c"Eau\00"
@.str.9 = [19 x i8] c"Potion de legerete\00"
@.str.10 = [15 x i8] c"Bonus de score\00"
@.str.11 = [7 x i8] c"Tunnel\00"
@.str.12 = [9 x i8] c"Tondeuse\00"
@.str.13 = [5 x i8] c"Trou\00"
@.str.14 = [7 x i8] c"Ennemi\00"
@.str.15 = [8 x i8] c"%s %4s\0A\00"
@.str.16 = [4 x i8] c"(p)\00"
@.str.17 = [6 x i8] c"Pause\00"
@.str.18 = [4 x i8] c"(r)\00"
@.str.19 = [22 x i8] c"Recommencer le niveau\00"
@.str.20 = [8 x i8] c"%s %2s\0A\00"
@.str.21 = [4 x i8] c"(q)\00"
@.str.22 = [8 x i8] c"Quitter\00"
define void @drawPanel() {
%1 = tail call i32 @setColor(i32 8)
%2 = tail call i32 @goToXY(i32 26, i32 4)
%3 = tail call i32 @getCaseColor(i8 signext 42)
%4 = tail call i32 @setColor(i32 %3)
%5 = tail call i32 @convertCase(i8 signext 42)
%6 = tail call i32 @putchar(i32 %5)
%7 = tail call i32 @setColor(i32 8)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 @goToXY(i32 26, i32 5)
%10 = tail call i32 @getCaseColor(i8 signext 87)
%11 = tail call i32 @setColor(i32 %10)
%12 = tail call i32 @convertCase(i8 signext 87)
%13 = tail call i32 @putchar(i32 %12)
%14 = tail call i32 @setColor(i32 8)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%16 = tail call i32 @goToXY(i32 26, i32 6)
%17 = tail call i32 @getCaseColor(i8 signext 68)
%18 = tail call i32 @setColor(i32 %17)
%19 = tail call i32 @convertCase(i8 signext 68)
%20 = tail call i32 @putchar(i32 %19)
%21 = tail call i32 @setColor(i32 8)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%23 = tail call i32 @goToXY(i32 26, i32 7)
%24 = tail call i32 @getCaseColor(i8 signext 111)
%25 = tail call i32 @setColor(i32 %24)
%26 = tail call i32 @convertCase(i8 signext 111)
%27 = tail call i32 @putchar(i32 %26)
%28 = tail call i32 @setColor(i32 8)
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%30 = tail call i32 @goToXY(i32 26, i32 8)
%31 = tail call i32 @getCaseColor(i8 signext 79)
%32 = tail call i32 @setColor(i32 %31)
%33 = tail call i32 @convertCase(i8 signext 79)
%34 = tail call i32 @putchar(i32 %33)
%35 = tail call i32 @setColor(i32 8)
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%37 = tail call i32 @goToXY(i32 26, i32 9)
%38 = tail call i32 @getCaseColor(i8 signext 105)
%39 = tail call i32 @setColor(i32 %38)
%40 = tail call i32 @convertCase(i8 signext 105)
%41 = tail call i32 @putchar(i32 %40)
%42 = tail call i32 @setColor(i32 8)
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%44 = tail call i32 @goToXY(i32 26, i32 10)
%45 = tail call i32 @getCaseColor(i8 signext 119)
%46 = tail call i32 @setColor(i32 %45)
%47 = tail call i32 @convertCase(i8 signext 119)
%48 = tail call i32 @putchar(i32 %47)
%49 = tail call i32 @setColor(i32 8)
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%51 = tail call i32 @goToXY(i32 26, i32 11)
%52 = tail call i32 @getCaseColor(i8 signext 76)
%53 = tail call i32 @setColor(i32 %52)
%54 = tail call i32 @convertCase(i8 signext 76)
%55 = tail call i32 @putchar(i32 %54)
%56 = tail call i32 @setColor(i32 8)
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%58 = tail call i32 @goToXY(i32 26, i32 12)
%59 = tail call i32 @getCaseColor(i8 signext 83)
%60 = tail call i32 @setColor(i32 %59)
%61 = tail call i32 @convertCase(i8 signext 83)
%62 = tail call i32 @putchar(i32 %61)
%63 = tail call i32 @setColor(i32 8)
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0))
%65 = tail call i32 @goToXY(i32 26, i32 13)
%66 = tail call i32 @getCaseColor(i8 signext 84)
%67 = tail call i32 @setColor(i32 %66)
%68 = tail call i32 @convertCase(i8 signext 84)
%69 = tail call i32 @putchar(i32 %68)
%70 = tail call i32 @setColor(i32 8)
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%72 = tail call i32 @goToXY(i32 26, i32 14)
%73 = tail call i32 @getCaseColor(i8 signext 82)
%74 = tail call i32 @setColor(i32 %73)
%75 = tail call i32 @convertCase(i8 signext 82)
%76 = tail call i32 @putchar(i32 %75)
%77 = tail call i32 @setColor(i32 8)
%78 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0))
%79 = tail call i32 @goToXY(i32 26, i32 15)
%80 = tail call i32 @getCaseColor(i8 signext 90)
%81 = tail call i32 @setColor(i32 %80)
%82 = tail call i32 @convertCase(i8 signext 90)
%83 = tail call i32 @putchar(i32 %82)
%84 = tail call i32 @setColor(i32 8)
%85 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%86 = tail call i32 @goToXY(i32 26, i32 16)
%87 = tail call i32 @getCaseColor(i8 signext 78)
%88 = tail call i32 @setColor(i32 %87)
%89 = tail call i32 @convertCase(i8 signext 78)
%90 = tail call i32 @putchar(i32 %89)
%91 = tail call i32 @setColor(i32 8)
%92 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%93 = tail call i32 @goToXY(i32 26, i32 18)
%94 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%95 = tail call i32 @goToXY(i32 26, i32 19)
%96 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0))
%97 = tail call i32 @goToXY(i32 26, i32 20)
%98 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0))
%99 = tail call i32 (...) @resetColor()
ret void
}