#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 const *, int);
int /*<<< orphan*/ couleur(int);
int /*<<< orphan*/ printf(char *, ...);
void afficherPotionIndividuelleInventaire(const char *nomPotion,
                                          const unsigned int nbPotionNiveau1,
                                          const unsigned int nbPotionNiveau2) {
  printf("\t- ");
  coloration(nomPotion, 32);
  printf(" : \n");
  if (nbPotionNiveau1 != 0 || nbPotionNiveau2 != 0) {
    if (nbPotionNiveau1 != 0) {
      printf("\t\t- ");
      couleur(34);
      printf("%d", nbPotionNiveau1);
      couleur(0);
      printf(" x %s I\n", nomPotion);
    }
    if (nbPotionNiveau2 != 0) {
      printf("\t\t- ");
      couleur(34);
      printf("%d", nbPotionNiveau2);
      couleur(0);
      printf(" x %s II\n\n", nomPotion);
    }
  } else {
    printf("\t\t- ");
    coloration("Aucune", 34);
    printf("\n\n");
  }
}


x86 assembly (clang, -O0):
<afficherPotionIndividuelleInventaire>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    $0x20,%esi
call   1040 <coloration@plt>
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jne    1180 <afficherPotionIndividuelleInventaire+0x50>
cmpl   $0x0,-0x10(%rbp)
je     121d <afficherPotionIndividuelleInventaire+0xed>
cmpl   $0x0,-0xc(%rbp)
je     11cc <afficherPotionIndividuelleInventaire+0x9c>
lea    0xe74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x22,%edi
call   1050 <couleur@plt>
mov    -0xc(%rbp),%esi
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <couleur@plt>
mov    -0x8(%rbp),%rsi
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x10(%rbp)
je     1218 <afficherPotionIndividuelleInventaire+0xe8>
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x22,%edi
call   1050 <couleur@plt>
mov    -0x10(%rbp),%esi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <couleur@plt>
mov    -0x8(%rbp),%rsi
lea    0xe05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    124a <afficherPotionIndividuelleInventaire+0x11a>
lea    0xde1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdef(%rip),%rdi
mov    $0x22,%esi
call   1040 <coloration@plt>
lea    0xddb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<afficherPotionIndividuelleInventaire>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%ebp
mov    %esi,%ebx
mov    %rdi,%r14
lea    0xeaf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x20,%esi
call   1050 <coloration@plt>
lea    0xeb6(%rip),%rdi
call   1030 <puts@plt>
mov    %ebp,%eax
or     %ebx,%eax
je     1208 <afficherPotionIndividuelleInventaire+0xc8>
test   %ebx,%ebx
je     11c0 <afficherPotionIndividuelleInventaire+0x80>
lea    0xe79(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x22,%edi
call   1060 <couleur@plt>
lea    0xe66(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
call   1060 <couleur@plt>
lea    0xe52(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
test   %ebp,%ebp
je     1237 <afficherPotionIndividuelleInventaire+0xf7>
lea    0xe35(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x22,%edi
call   1060 <couleur@plt>
lea    0xe22(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
call   1060 <couleur@plt>
lea    0xe17(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <printf@plt>
lea    0xdf1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdff(%rip),%rdi
mov    $0x22,%esi
call   1050 <coloration@plt>
lea    0xdec(%rip),%rdi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <puts@plt>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"\09- \00"
@.str.1 = [5 x i8] c" : \0A\00"
@.str.2 = [5 x i8] c"\09\09- \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [9 x i8] c" x %s I\0A\00"
@.str.5 = [11 x i8] c" x %s II\0A\0A\00"
@.str.6 = [7 x i8] c"Aucune\00"
@.str.7 = [3 x i8] c"\0A\0A\00"
define void @afficherPotionIndividuelleInventaire(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%8 = load i8*, i8** %4
%9 = call i32 @coloration(i8* %8, i32 32)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%11 = load i32, i32* %5
%12 = icmp ne i32 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %3
%14 = load i32, i32* %6
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %39
16: ; preds = %13, %3
%17 = load i32, i32* %5
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %27
19: ; preds = %16
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%21 = call i32 @couleur(i32 34)
%22 = load i32, i32* %5
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %22)
%24 = call i32 @couleur(i32 0)
%25 = load i8*, i8** %4
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* %25)
br label %27
27: ; preds = %19, %16
%28 = load i32, i32* %6
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %38
30: ; preds = %27
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%32 = call i32 @couleur(i32 34)
%33 = load i32, i32* %6
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %33)
%35 = call i32 @couleur(i32 0)
%36 = load i8*, i8** %4
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %36)
br label %38
38: ; preds = %30, %27
br label %43
39: ; preds = %13
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%41 = call i32 @coloration(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 34)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
br label %43
43: ; preds = %39, %38
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"\09- \00"
@.str.2 = [5 x i8] c"\09\09- \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [9 x i8] c" x %s I\0A\00"
@.str.5 = [11 x i8] c" x %s II\0A\0A\00"
@.str.6 = [7 x i8] c"Aucune\00"
@str = [4 x i8] c" : \00"
@str.8 = [2 x i8] c"\0A\00"
define void @afficherPotionIndividuelleInventaire(i8* %0, i32 %1, i32 %2) {
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @coloration(i8* %0, i32 32)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str, i64 0, i64 0))
%7 = icmp eq i32 %2, 0
%8 = or i32 %2, %1
%9 = icmp eq i32 %8, 0
br i1 %9, label %25, label %10
10: ; preds = %3
%11 = icmp eq i32 %1, 0
br i1 %11, label %18, label %12
12: ; preds = %10
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%14 = tail call i32 @couleur(i32 34)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %1)
%16 = tail call i32 @couleur(i32 0)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* %0)
br label %18
18: ; preds = %12, %10
br i1 %7, label %29, label %19
19: ; preds = %18
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%21 = tail call i32 @couleur(i32 34)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %2)
%23 = tail call i32 @couleur(i32 0)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %0)
br label %29
25: ; preds = %3
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%27 = tail call i32 @coloration(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 34)
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.8, i64 0, i64 0))
br label %29
29: ; preds = %18, %19, %25
ret void
}